[ovirt-devel] [VDSM] new virt tests failing

Nir Soffer nsoffer at redhat.com
Sun May 15 20:49:55 UTC 2016


Hi all,

I'm seeing these tests failing locally:

======================================================================
ERROR: test___str__ (vmMigrationTests.TestProgress)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nsoffer/src/vdsm/tests/vmMigrationTests.py", line 166, in setUp
    libvirt.VIR_DOMAIN_JOB_TIME_ELAPSED: 42,
AttributeError: 'module' object has no attribute 'VIR_DOMAIN_JOB_TIME_ELAPSED'

======================================================================
ERROR: test___str___without_optional_fields (vmMigrationTests.TestProgress)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nsoffer/src/vdsm/tests/vmMigrationTests.py", line 166, in setUp
    libvirt.VIR_DOMAIN_JOB_TIME_ELAPSED: 42,
AttributeError: 'module' object has no attribute 'VIR_DOMAIN_JOB_TIME_ELAPSED'

----------------------------------------------------------------------

And indeed, there is no such constant:

>>> import libvirt
>>> libvirt.VIR_DOMAIN_JOB_TIME_ELAPSED
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'VIR_DOMAIN_JOB_TIME_ELAPSED'

$ rpm -q libvirt-python
libvirt-python-1.2.13-1.fc22.x86_64

Is this old libvirt version, or the tests are broken?

Cheers,
Nir



More information about the Devel mailing list