Ask Your Question
1

install of nova-common fails

asked 2013-12-30 09:14:03 -0500

rony gravatar image

updated 2014-01-22 15:13:01 -0500

Evgeny gravatar image

I have been trying to install the nova packages starting with nova-common and every time it ran into the error below and i have no clue how to get rid of it and successfully install the package.

Setting up nova-common (1:2013.2-0ubuntu1~cloud0) ...
usermod: no changes
Command failed, please check log for more info
2013-12-27 14:23:07.397 4946 CRITICAL nova [-] <VerNum(83)>
2013-12-27 14:23:07.397 4946 TRACE nova Traceback (most recent call last):
2013-12-27 14:23:07.397 4946 TRACE nova File "/usr/bin/nova-manage", line 10, in <module>
2013-12-27 14:23:07.397 4946 TRACE nova sys.exit(main())
2013-12-27 14:23:07.397 4946 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/cmd/manage.py", line 1377, in main
2013-12-27 14:23:07.397 4946 TRACE nova ret = fn(*fn_args, **fn_kwargs)
2013-12-27 14:23:07.397 4946 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/cmd/manage.py", line 885, in sync
2013-12-27 14:23:07.397 4946 TRACE nova return migration.db_sync(version)
2013-12-27 14:23:07.397 4946 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/migration.py", line 33, in db_sync
2013-12-27 14:23:07.397 4946 TRACE nova return IMPL.db_sync(version=version)
2013-12-27 14:23:07.397 4946 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/migration.py", line 75, in db_sync
2013-12-27 14:23:07.397 4946 TRACE nova return versioning_api.upgrade(get_engine(), repository, version)
2013-12-27 14:23:07.397 4946 TRACE nova File "/usr/lib/python2.7/dist-packages/migrate/versioning/api.py", line 186, in upgrade
2013-12-27 14:23:07.397 4946 TRACE nova return _migrate(url, repository, version, upgrade=True, err=err, **opts)
2013-12-27 14:23:07.397 4946 TRACE nova File "<string>", line 2, in _migrate
2013-12-27 14:23:07.397 4946 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/migration.py", line 40, in patched_with_engine
2013-12-27 14:23:07.397 4946 TRACE nova return f(*a, **kw)
2013-12-27 14:23:07.397 4946 TRACE nova File "/usr/lib/python2.7/dist-packages/migrate/versioning/api.py", line 345, in _migrate
2013-12-27 14:23:07.397 4946 TRACE nova changeset = schema.changeset(version)
2013-12-27 14:23:07.397 4946 TRACE nova File "/usr/lib/python2.7/dist-packages/migrate/versioning/schema.py", line 80, in changeset
2013-12-27 14:23:07.397 4946 TRACE nova changeset = self.repository.changeset(database, start_ver, version)
2013-12-27 14:23:07.397 4946 TRACE nova File "/usr/lib/python2.7/dist-packages/migrate/versioning/repository.py", line 225, in changeset
2013-12-27 14:23:07.397 4946 TRACE nova changes = [self.version(v).script(database, op) for v in versions]
2013-12-27 14:23:07.397 4946 TRACE nova File "/usr/lib/python2.7/dist-packages/migrate/versioning/repository.py", line 189, in version
2013-12-27 14:23:07.397 4946 TRACE nova return self.versions.version(*p, **k)
2013-12-27 14:23:07.397 4946 TRACE nova File "/usr/lib/python2.7/dist-packages/migrate/versioning/version.py ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-05-16 09:32:33 -0500

Ed S gravatar image

updated 2014-05-16 09:38:15 -0500

I encountered this same problem using Ubuntu 12.04 after first adding the icehouse cloud archive repository, installing nova-common, purging all the nova components, removing the icehouse repo, adding the havana cloud archive repository, and then reattempting to install nova-common.

At least in my case, it appears that purge is not properly rolling back.

Edit:

Immediately after posting this, I purged nova-common again, and then I did the following:

userdel -r nova

which removed the nova user and it's home directory (/var/lib/nova). Then, the reinstallation process worked.

edit flag offensive delete link more
0

answered 2013-12-30 13:09:34 -0500

SamYaple gravatar image

Is this a fresh install of nova? What OS version? What repository are you using?

It looks like it may be failing when it tries to sync with the DB. If you have an existing /etc/nova/nova.conf, please back it up and remove it and rerun in verbose to see exactly where it is breaking.

edit flag offensive delete link more

Comments

Yes, this is a fresh install of nova. The OS is Ubuntu 12.04 and this is how i am enabling havana. #add-apt-repository cloud-archive:havana. Since this is a fresh installation there isn't a nova.conf.

rony gravatar imagerony ( 2013-12-30 13:48:22 -0500 )edit

This is a distro problem. You may have encountered a bug in the packaging. I would recommend getting more verbose with aptitude and seeing _where_ it is breaking. You may also wish to file a bug report with Ubuntu if you feel it is their issue.

SamYaple gravatar imageSamYaple ( 2013-12-30 14:05:00 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-12-30 09:14:03 -0500

Seen: 603 times

Last updated: May 16 '14