[openstack-dev] [ceilometer] importutils problem in import_object_ns

John Tran njhtran at gmail.com
Fri Nov 2 18:11:24 UTC 2012


I had to standup a new devstack instance this morning and running tox
-epy27 tests are failing.  My old devstack instance works unless I
delete .tox.


======================================================================
ERROR: test_fetch_diskio (tests.compute.test_libvirt.TestDiskIOPollster)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/ceilometer/tests/skip.py",
line 58, in _skipper
    func(*args, **kw)
  File "/opt/stack/ceilometer/tests/compute/test_libvirt.py", line 87,
in test_fetch_diskio
    list(self.pollster.get_counters(self.manager, self.instance))
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/ceilometer/compute/libvirt.py",
line 108, in get_counters
    conn = get_libvirt_connection()
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/ceilometer/compute/libvirt.py",
line 41, in get_libvirt_connection
    FLAGS.compute_driver)
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/ceilometer/openstack/common/importutils.py",
line 51, in import_object_ns
    return import_class(import_value)(*args, **kwargs)
TypeError: __init__() takes at least 2 arguments (1 given)

======================================================================
ERROR: test_fetch_diskio_not_libvirt
(tests.compute.test_libvirt.TestDiskIOPollster)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/ceilometer/tests/skip.py",
line 58, in _skipper
    func(*args, **kw)
  File "/opt/stack/ceilometer/tests/compute/test_libvirt.py", line 98,
in test_fetch_diskio_not_libvirt
    self.instance))
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/ceilometer/compute/libvirt.py",
line 108, in get_counters
    conn = get_libvirt_connection()
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/ceilometer/compute/libvirt.py",
line 41, in get_libvirt_connection
    FLAGS.compute_driver)
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/ceilometer/openstack/common/importutils.py",
line 51, in import_object_ns
    return import_class(import_value)(*args, **kwargs)
TypeError: __init__() takes at least 2 arguments (1 given)

======================================================================
ERROR: test_fetch_diskio_with_libvirt_non_existent_instance
(tests.compute.test_libvirt.TestDiskIOPollster)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/ceilometer/tests/skip.py",
line 58, in _skipper
    func(*args, **kw)
  File "/opt/stack/ceilometer/tests/compute/test_libvirt.py", line
106, in test_fetch_diskio_with_libvirt_non_existent_instance
    counters = list(self.pollster.get_counters(self.manager, instance))
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/ceilometer/compute/libvirt.py",
line 108, in get_counters
    conn = get_libvirt_connection()
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/ceilometer/compute/libvirt.py",
line 41, in get_libvirt_connection
    FLAGS.compute_driver)
  File "/opt/stack/ceilometer/.tox/py27/local/lib/python2.7/site-packages/ceilometer/openstack/common/importutils.py",
line 51, in import_object_ns
    return import_class(import_value)(*args, **kwargs)
TypeError: __init__() takes at least 2 arguments (1 given)

----------------------------------------------------------------------
Ran 242 tests in 3.477s



More information about the OpenStack-dev mailing list