oslo.db should >= 1.4.0

Bug #1411132 reported by stanzgy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Designate
Fix Released
High
stanzgy

Bug Description

designate: 6b75da0#master (2015-01-14 23:39:30 +0000)

My devstack designate-manage command broken that lacks subcommand powerdns, pool-manager-cache and database.
Tried reinstall designate but not worked.

$ sudo designate-manage
usage: designate [-h] [--config-dir DIR] [--config-file PATH] [--debug]
                 [--log-config-append PATH] [--log-date-format DATE_FORMAT]
                 [--log-dir LOG_DIR] [--log-file PATH] [--log-format FORMAT]
                 [--nouse-syslog] [--nouse-syslog-rfc-format] [--noverbose]
                 [--syslog-log-facility SYSLOG_LOG_FACILITY] [--use-syslog]
                 [--use-syslog-rfc-format] [--verbose] [--version] [--nodebug]
                 {tlds} ...
designate: error: too few arguments

After a debug with ipdb, I found this is due to commit c6a7cbb which moves oslo.db out of "oslo" namespace but not updates the version of oslo.db.
My devstack has already installed the 1.3.0 oslo.db which matches the requirements.txt will not get upgraded during reinstalling designate.
When I manually installed lastest 1.4.1 oslo.db, designate-manage works good.

ipdb result:
...
> /usr/local/lib/python2.7/dist-packages/stevedore/extension.py(157)_load_plugins()
    156 LOG.debug('found extension %r', ep)
--> 157 try:
    158 ext = self._load_one_plugin(ep,

ipdb> ep
EntryPoint.parse('powerdns = designate.manage.powerdns:DatabaseCommands')
...
> /usr/local/lib/python2.7/dist-packages/stevedore/extension.py(162)_load_plugins()
    161 invoke_kwds,
--> 162 verify_requirements,
    163 )

ipdb>
ImportError: 'No module named oslo_db.sqlalchemy.migration_cli'

requirement.txt
oslo.db>=1.3.0 # Apache-2.0

oslo.db release notes:
1.4.0:
...
Move files out of the namespace package

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (master)

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

Changed in designate:
assignee: nobody → stanzgy (stanzgy)
status: New → In Progress
stanzgy (stanzgy)
description: updated
stanzgy (stanzgy)
summary: - designate-manage commands broken
+ oslo.db should >= 1.4.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on designate (master)

Change abandoned by stanzgy (<email address hidden>) on branch: master
Review: https://review.openstack.org/147407

Revision history for this message
Kiall Mac Innes (kiall) wrote :
Changed in designate:
status: In Progress → Fix Committed
importance: Undecided → High
milestone: none → kilo-2
Thierry Carrez (ttx)
Changed in designate:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in designate:
milestone: kilo-2 → 2015.1.0
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.