Raise error when run "tox -egenconfig"

Bug #1448897 reported by qiaojian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Undecided
qiaojian

Bug Description

Raise error when run "tox -egenconfig", detail:

genconfig develop-inst-noop: /root/ceilometer
genconfig runtests: PYTHONHASHSEED='2887780094'
genconfig runtests: commands[0] | oslo-config-generator --output-file etc/ceilometer/ceilometer.conf --namespace ceilometer --namespace oslo.concurrency --namespace oslo.db --namespace oslo.messaging --namespace oslo.policy --namespace keystonemiddleware.auth_token
Traceback (most recent call last):
  File ".tox/genconfig/bin/oslo-config-generator", line 11, in <module>
    sys.exit(main())
  File "/root/ceilometer/.tox/genconfig/local/lib/python2.7/site-packages/oslo_config/generator.py", line 256, in main
    generate(conf)
  File "/root/ceilometer/.tox/genconfig/local/lib/python2.7/site-packages/oslo_config/generator.py", line 226, in generate
    for namespace, listing in _list_opts(conf.namespace):
  File "/root/ceilometer/.tox/genconfig/local/lib/python2.7/site-packages/oslo_config/generator.py", line 201, in _list_opts
    invoke_on_load=True)
  File "/root/ceilometer/.tox/genconfig/local/lib/python2.7/site-packages/stevedore/named.py", line 55, in __init__
    verify_requirements)
  File "/root/ceilometer/.tox/genconfig/local/lib/python2.7/site-packages/stevedore/extension.py", line 170, in _load_plugins
    self._on_load_failure_callback(self, ep, err)
  File "/root/ceilometer/.tox/genconfig/local/lib/python2.7/site-packages/stevedore/extension.py", line 162, in _load_plugins
    verify_requirements,
  File "/root/ceilometer/.tox/genconfig/local/lib/python2.7/site-packages/stevedore/named.py", line 123, in _load_one_plugin
    verify_requirements,
  File "/root/ceilometer/.tox/genconfig/local/lib/python2.7/site-packages/stevedore/extension.py", line 187, in _load_one_plugin
    obj = plugin(*invoke_args, **invoke_kwds)
  File "/root/ceilometer/ceilometer/opts.py", line 107, in list_opts
    ceilometer.cmd.alarm.OPTS)),
AttributeError: 'module' object has no attribute 'OPTS'
ERROR: InvocationError: '/root/ceilometer/.tox/genconfig/bin/oslo-config-generator --output-file etc/ceilometer/ceilometer.conf --namespace ceilometer --namespace oslo.concurrency --namespace oslo.db --namespace oslo.messaging --namespace oslo.policy --namespace keystonemiddleware.auth_token'
_______________________________________________________________ summary _______________________________________________________________
ERROR: genconfig: commands failed

qiaojian (qiaojian)
Changed in ceilometer:
assignee: nobody → qiaojian (qiaojian)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

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

Changed in ceilometer:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/177675
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=b3fbb32f92211006a132c46db826d23be432cd53
Submitter: Jenkins
Branch: master

commit b3fbb32f92211006a132c46db826d23be432cd53
Author: joyce <email address hidden>
Date: Mon Apr 27 16:01:17 2015 +0800

    Fix raise error when run "tox -egenconfig"

    In script ceilometer/cmd/alarm.py, OPTS is not exist,
    remove this item.

    Change-Id: I233c1550f3a7c26ec4bb8ff81a3050fc1ae73fa8
    Closes-Bug: #1448897

Changed in ceilometer:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: liberty-1 → 5.0.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.