yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #03223
[Bug 1188828] Re: nova db migrate downgrade fails without _() imported
This is a usage error. The downgrade should be ran through: nova-manage
db sync 132
[root@rhel62 migrate_repo]# nova-manage db sync --help
usage: nova-manage db sync [-h] [--version <version>]
[action_args [action_args ...]]
positional arguments:
action_args
optional arguments:
-h, --help show this help message and exit
--version <version> Database version
** Changed in: nova
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1188828
Title:
nova db migrate downgrade fails without _() imported
Status in OpenStack Compute (Nova):
Invalid
Bug description:
Doing a downgrade of the nova db via sqlalchemy migrate on master
(havana-1) fails immediately because the _() method is not defined:
http://paste.openstack.org/show/38260/
This is because the _() method is only imported in
nova/cmd/__init__.py, so it will work only when commands are ran, e.g.
nova-manage db sync. To run the downgrade, you have to invoke the
manage.py script directly.
The fix is to import the _() method from
nova.openstack.common.gettextutils in nova/__init__.py.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1188828/+subscriptions