← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1588880] Re: Upgrade doc needs --expand parameter

 

Reviewed:  https://review.openstack.org/325371
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=49b96b4ec27c0eca87d6143afbca674aeda84a5a
Submitter: Jenkins
Branch:    master

commit 49b96b4ec27c0eca87d6143afbca674aeda84a5a
Author: Sean M. Collins <sean@xxxxxxxxxxxxx>
Date:   Fri Jun 3 11:39:58 2016 -0400

    Devref: Add inline codeblock to upgrade command
    
    Change-Id: I7498e80c2d28b97adc9d9801bcda7d8a49027ca2
    Closes-Bug: #1588880


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
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:
  Fix Released

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


References