Exception during the installation of Nova Essex-rc4 on Ubuntu 12.04

Bug #974256 reported by Philippe Berthault
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova (Ubuntu)
Expired
Low
Unassigned

Bug Description

Nova Essex RC-4 can't be installed on Ubuntu 12.04 using apt-get because of an exception on the installation of the nova-common package.

The exception is:
  CRITICAL nova [-] (OperationalError) duplicate column name: flavorid_str '\n
  ALTER TABLE instance_types ADD flavorid_str VARCHAR(255)' ()

Revision history for this message
Chuck Short (zulcss) wrote :

Is this an upgrade or a new installation?

Regards
chuck

Changed in nova:
status: New → Incomplete
Thierry Carrez (ttx)
affects: nova → ubuntu
affects: ubuntu → nova (Ubuntu)
Revision history for this message
Chuck Short (zulcss) wrote :

Can you please attach your /var/log/nova/nova-manage.log as well?

Thanks
chuck

Revision history for this message
Philippe Berthault (philippe-berthault-deactivatedaccount) wrote :

The installation of OpenStack is from scratch but Ubuntu has been upgraded from 11.10 to 12.04.

Revision history for this message
Philippe Berthault (philippe-berthault-deactivatedaccount) wrote :

For information, there is also another error:

The "apt-get install nova-common" command stops on the message:
DEBUG nova.utils [-] backend <module 'nova.db.sqlalchemy.migration' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/migration.pyc'> from (pid=21474) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658

In another shell window, I see by using ps that the "apt-get install" command is waiting indefinitely on the "nova-manage db sync" command. So I kill the "nova-manage" command and retry the apt-get install.

Perhaps the "nova-manage db sync" command takes very, very long time and I'am not quite patient.

Revision history for this message
Philippe Berthault (philippe-berthault-deactivatedaccount) wrote :

I've retried the installation and waits.

The "nova-manage db sync" command called during the installation of the nova-common package completes after 10 minutes which is a very long time for my opinion.

Could you explain why it is so long ?

James Page (james-page)
Changed in nova (Ubuntu):
importance: Undecided → Low
Revision history for this message
James Page (james-page) wrote :

Hi Philippe

nova-manage db sync is normally pretty fast on a fresh installation so this is quite unusual.

What type of database are you using with nova? Unless you specify it will use sqlite (file created in /var/lib/nova).

Revision history for this message
Philippe Berthault (philippe-berthault-deactivatedaccount) wrote :

I'm using a MySQL database but when you install OpenStack with apt-get, of course at this moment, you can't configure OpenStack; so the nova-manage db sync command called by apt-get creates a SQLite database. It's after the installation you can change the database from SQLite to MySQL in the nova configuration.

I can't retry the installation to see if the problem still exists because OpenStack is now used by several users on our site.
So you can close this problem.

Regards.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for nova (Ubuntu) because there has been no activity for 60 days.]

Changed in nova (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.