Public bug reported: Following the instructions at http://docs.openstack.org/developer/neutron/devref/upgrade.html#server- upgrade results in an error.
(neutron-newton) root@aio1-neutron-server-container-c1cf8f9d:/openstack/venvs/neutron-newton/bin# ./neutron-db-manage upgrade -expand INFO [alembic.runtime.migration] Context impl MySQLImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. Traceback (most recent call last): File "./neutron-db-manage", line 10, in <module> sys.exit(main()) File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 724, in main return_val |= bool(CONF.command.func(config, CONF.command.name)) File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 216, in do_upgrade run_sanity_checks(config, revision) File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 702, in run_sanity_checks script_dir.run_env() File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/alembic/script/base.py", line 397, in run_env util.load_python_file(self.dir, 'env.py') File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/alembic/util/pyfiles.py", line 93, in load_python_file module = load_module_py(module_id, path) File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/alembic/util/compat.py", line 79, in load_module_py mod = imp.load_source(module_id, path, fp) File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/neutron/db/migration/alembic_migrations/env.py", line 120, in <module> run_migrations_online() File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/neutron/db/migration/alembic_migrations/env.py", line 114, in run_migrations_online context.run_migrations() File "<string>", line 8, in run_migrations File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/alembic/runtime/environment.py", line 797, in run_migrations self.get_context().run_migrations(**kw) File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/alembic/runtime/migration.py", line 303, in run_migrations for step in self._migrations_fn(heads, self): File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 693, in check_sanity revision, rev, implicit_base=True): File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/alembic/script/revision.py", line 664, in _iterate_revisions raise RangeNotAncestorError(lower, upper) alembic.script.revision.RangeNotAncestorError: Revision (u'4ffceebfcdc',) is not an ancestor of revision expand The invocation should be neutron-db-manage upgrade --expand ** Affects: neutron Importance: Undecided Assignee: Sean M. Collins (scollins) Status: In Progress -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1588880 Title: Upgrade doc needs --expand parameter Status in neutron: In Progress Bug description: Following the instructions at http://docs.openstack.org/developer/neutron/devref/upgrade.html #server-upgrade results in an error. (neutron-newton) root@aio1-neutron-server-container-c1cf8f9d:/openstack/venvs/neutron-newton/bin# ./neutron-db-manage upgrade -expand INFO [alembic.runtime.migration] Context impl MySQLImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. Traceback (most recent call last): File "./neutron-db-manage", line 10, in <module> sys.exit(main()) File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 724, in main return_val |= bool(CONF.command.func(config, CONF.command.name)) File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 216, in do_upgrade run_sanity_checks(config, revision) File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 702, in run_sanity_checks script_dir.run_env() File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/alembic/script/base.py", line 397, in run_env util.load_python_file(self.dir, 'env.py') File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/alembic/util/pyfiles.py", line 93, in load_python_file module = load_module_py(module_id, path) File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/alembic/util/compat.py", line 79, in load_module_py mod = imp.load_source(module_id, path, fp) File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/neutron/db/migration/alembic_migrations/env.py", line 120, in <module> run_migrations_online() File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/neutron/db/migration/alembic_migrations/env.py", line 114, in run_migrations_online context.run_migrations() File "<string>", line 8, in run_migrations File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/alembic/runtime/environment.py", line 797, in run_migrations self.get_context().run_migrations(**kw) File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/alembic/runtime/migration.py", line 303, in run_migrations for step in self._migrations_fn(heads, self): File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 693, in check_sanity revision, rev, implicit_base=True): File "/openstack/venvs/neutron-newton/local/lib/python2.7/site-packages/alembic/script/revision.py", line 664, in _iterate_revisions raise RangeNotAncestorError(lower, upper) alembic.script.revision.RangeNotAncestorError: Revision (u'4ffceebfcdc',) is not an ancestor of revision expand The invocation should be neutron-db-manage upgrade --expand To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1588880/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp