<div dir="ltr"><div><div>Hi Calvin,<br><br>Thank you for the reply. It solved the "db sync" issue. But soon after this, the nova-compute daemons started throwing the following trace.<br><br>2013-04-30 15:53:21 TRACE nova OperationalError: (OperationalError) (1054, "Unknown column 'instance_metadata_1.instance_id' in 'field list'")<br>

<br></div>When I checked the instance_metatdata table, I found that it has "instance_uuid" as a field and not "instance_id". It seems to be another issue with db sync.<br><br></div>Suggestions?<br></div>

<div class="gmail_extra"><br clear="all"><div>--<br>Shashank Sahni<br></div>
<br><br><div class="gmail_quote">On Tue, Apr 30, 2013 at 2:32 AM, Calvin Walton <span dir="ltr"><<a href="mailto:calvin.walton@kepstin.ca" target="_blank">calvin.walton@kepstin.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5">On Mon, 2013-04-29 at 20:16 +0530, Shashank Sahni wrote:<br>
> Hi everyone,<br>
><br>
> I'm having some trouble upgrading from essex to folsom. The cloud is<br>
> currently running on Ubuntu 12.04. For the upgrade, I included the folsom<br>
> repo(ubuntu cloud archive) and upgraded the packages. Things went fine<br>
> until I issued "nova-manage db sync". It failed with the following error.<br>
><br>
> 2013-04-29 20:13:50 23254 TRACE nova     raise<br>
> exc.NoSuchTableError(full_name)<br>
> 2013-04-29 20:13:50 23254 TRACE nova NoSuchTableError: `projects`<br>
><br>
> Ironically, the table exists. But I get the same message accessing it<br>
> through mysql console.<br>
<br>
</div></div>This is due to a bug in one version of the Ubuntu package that included<br>
a broken database migration; it had a foreign key on a latin-1 table<br>
(dns_domains) referencing a text column on a utf-8 table (projects),<br>
which mysql does not support. As a result, a *later* migration that<br>
changed the projects table partially failed, and left the table in a<br>
half-created state.<br>
<br>
I ran into this problem, and the only way I found to *fix* the error was<br>
to dump the database to a sql file, drop the entire database, manually<br>
edit the dump file to correct the referencing table charset on the<br>
'dns_domains' table, add the definition for the projects table back,<br>
then restore the database from the dump.<br>
<br>
Related issues on launchpad:<br>
<a href="https://bugs.launchpad.net/nova/+bug/993663" target="_blank">https://bugs.launchpad.net/nova/+bug/993663</a><br>
<a href="https://bugs.launchpad.net/ubuntu/+source/nova/+bug/975085" target="_blank">https://bugs.launchpad.net/ubuntu/+source/nova/+bug/975085</a><br>
<br>
Amusingly, if you're using keystone, the 'projects' table is actually<br>
not used by anything, but it still has to exist.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Calvin Walton <<a href="mailto:calvin.walton@kepstin.ca">calvin.walton@kepstin.ca</a>><br>
</font></span></blockquote></div><br></div>