Comment 2 for bug 1078304

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

Reviewed: https://review.openstack.org/15992
Committed: http://github.com/openstack/ceilometer/commit/090964310b2eb57874edfd81001b75c7cb42c096
Submitter: Jenkins
Branch: master

commit 090964310b2eb57874edfd81001b75c7cb42c096
Author: Eoghan Glynn <email address hidden>
Date: Tue Nov 13 16:31:00 2012 +0000

    Avoid TypeError when loading libvirt.LibvirtDriver

    Fixes bug 1078304

    The libvirt.LibvirtDriver.__init__() signature has changed since:

      https://github.com/openstack/nova/commit/081b652c

    to take a new virtapi parameter. This is not required by any
    ceilometer usage of the driver, however the absence of a
    corresponding argument causes importutils.import_object_ns()
    to fail with TypeError.

    For testing the nova fake.FakeVirtAPI still uses the old
    signature, hence we try both.

    Change-Id: I05a9728ceb435a72f5fa8a648cd70b079126396e