consoleauth_manager option importing missing

Bug #1164845 reported by Zhi Yan Liu
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Zhi Yan Liu

Bug Description

Miss import consoleauth_manager option caused nova-consoleauth service start failure.

2013-04-05 14:32:54 CRITICAL [nova] no such option: consoleauth_manager
Traceback (most recent call last):
  File "/home/lzy/workspace/openstack-org/nova/bin/nova-consoleauth", line 25, in <module>
    consoleauth.main()
  File "/home/lzy/workspace/openstack-org/nova/nova/cmd/consoleauth.py", line 36, in main
    topic=CONF.consoleauth_topic)
  File "/home/lzy/workspace/openstack-org/nova/nova/service.py", line 522, in create
    manager = CONF.get(manager_cls, None)
  File "/usr/lib/python2.7/_abcoll.py", line 342, in get
    return self[key]
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1195, in __getitem__
    return self.__getattr__(key)
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1191, in __getattr__
    return self._get(name)
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1513, in _get
    value = self._substitute(self._do_get(name, group))
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1529, in _do_get
    info = self._get_opt_info(name, group)
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1629, in _get_opt_info
    raise NoSuchOptError(opt_name, group)
NoSuchOptError: no such option: consoleauth_manager

Need call import_opt method in "nova/cmd/consoleauth.py":
CONF.import_opt('consoleauth_manager', 'nova.consoleauth.manager')

Zhi Yan Liu (lzy-dev)
Changed in nova:
assignee: nobody → Zhi Yan Liu (lzy-dev)
assignee: Zhi Yan Liu (lzy-dev) → nobody
status: New → In Progress
assignee: nobody → Zhi Yan Liu (lzy-dev)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
importance: Undecided → High
milestone: none → havana-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/26311
Committed: http://github.com/openstack/nova/commit/6a299b59bab935d95d20e51642290680df9560fe
Submitter: Jenkins
Branch: master

commit 6a299b59bab935d95d20e51642290680df9560fe
Author: Zhi Yan Liu <email address hidden>
Date: Fri Apr 5 22:18:11 2013 +0800

    nova-consoleauth start failed by consoleauth_manager option missing

    Miss onsoleauth_manager option importing caused nova-consoleauth service
    start failure: "NoSuchOptError: no such option: consoleauth_manager".

    Fixes bug: 1164845

    Change-Id: I59a15a423f49ee6c28401f905b4973c2231faaa6
    Signed-off-by: Zhi Yan Liu <email address hidden>

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-1 → 2013.2
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.