magnum-db-manage stamp run have NoneType error

Bug #1414521 reported by Kai Qiang Wu(Kennan)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Medium
Kai Qiang Wu(Kennan)

Bug Description

when run magnum-db-manage stamp, it have following error

/usr/local/lib/python2.7/dist-packages/stevedore/extension.py:178: DeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.
  plugin = ep.load(require=verify_requirements)
/usr/local/lib/python2.7/dist-packages/stevedore/extension.py:178: DeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.
  plugin = ep.load(require=verify_requirements)
Traceback (most recent call last):
  File "/usr/local/bin/magnum-db-manage", line 9, in <module>
    load_entry_point('magnum===m1.post11', 'console_scripts', 'magnum-db-manage')()
  File "/home/test/magnum/magnum/cmd/db_manage.py", line 99, in main
    CONF.command.func(get_manager())
  File "/home/test/magnum/magnum/cmd/db_manage.py", line 41, in do_stamp
    mgr.stamp(CONF.command.revision)
  File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/migration_cli/manager.py", line 71, in stamp
    return self._plugins[-1].stamp(revision)
  File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/migration_cli/ext_alembic.py", line 78, in stamp
    return alembic.command.stamp(self.config, revision=revision)
  File "/usr/local/lib/python2.7/dist-packages/alembic/command.py", line 329, in stamp
    if ":" in revision:
TypeError: argument of type 'NoneType' is not iterable

it not right, should like this

usage: magnum-db-manage stamp [-h] revision
magnum-db-manage stamp: error: too few arguments

Changed in magnum:
assignee: nobody → Kai Qiang Wu(Kennan) (wkqwu)
status: New → Confirmed
Changed in magnum:
status: Confirmed → New
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/149903

Changed in magnum:
status: New → In Progress
Adrian Otto (aotto)
Changed in magnum:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/149903
Committed: https://git.openstack.org/cgit/stackforge/magnum/commit/?id=84e73e5a9a69f09cbfaeed7dfb899a623c36cb97
Submitter: Jenkins
Branch: master

commit 84e73e5a9a69f09cbfaeed7dfb899a623c36cb97
Author: Kennan <email address hidden>
Date: Mon Jan 26 09:21:37 2015 +0800

    Fix the stamp parameter in db-manage

    Closes-Bug: #1414521
    Change-Id: I25125eaa1efa86c4c66ee1dbe68f0545ffeba593

Changed in magnum:
status: In Progress → Fix Committed
Adrian Otto (aotto)
Changed in magnum:
status: Fix Committed → Fix Released
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.