libvirt: some tests taking longer than 2 seconds

Bug #1279820 reported by Gary Kotton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Wishlist
Gary Kotton

Bug Description

py27 develop-inst-nodeps: /home/gkotton/nova
py27 runtests: commands[0] | python -m nova.openstack.common.lockutils python setup.py test --slowest --testr-args=nova.tests.virt.libvirt
[pbr] Excluding argparse: Python 2.6 only dependency
running test
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
${PYTHON:-python} -m subunit.run discover -t ./ ./nova/tests --list
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
${PYTHON:-python} -m subunit.run discover -t ./ ./nova/tests --load-list /tmp/tmp1dQ_3A
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
${PYTHON:-python} -m subunit.run discover -t ./ ./nova/tests --load-list /tmp/tmpSmMObk
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
${PYTHON:-python} -m subunit.run discover -t ./ ./nova/tests --load-list /tmp/tmpqnRKjm
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
${PYTHON:-python} -m subunit.run discover -t ./ ./nova/tests --load-list /tmp/tmpMKqiiM
Ran 572 tests in 13.283s (-0.814s)
PASSED (id=358)
Slowest Tests
Test id Runtime (s)
---------------------------------------------------------------------------------------------------------------------- -----------
nova.tests.virt.libvirt.test_libvirt.LibvirtConnTestCase.test_pre_live_migration_plug_vifs_retry_works 2.080
nova.tests.virt.libvirt.test_libvirt.LibvirtConnTestCase.test_pre_live_migration_plug_vifs_retry_fails 2.079
nova.tests.virt.libvirt.test_libvirt_volume.LibvirtVolumeTestCase.test_libvirt_kvm_iser_volume_with_multipath 2.011
nova.tests.virt.libvirt.test_libvirt_volume.LibvirtVolumeTestCase.test_libvirt_kvm_iser_volume_with_multipath_getmpdev 2.010
nova.tests.virt.libvirt.test_libvirt.HostStateTestCase.test_update_status 1.024
nova.tests.virt.libvirt.test_dmcrypt.LibvirtDmcryptTestCase.test_create_volume 1.019
nova.tests.virt.libvirt.test_dmcrypt.LibvirtDmcryptTestCase.test_delete_volume 1.016
nova.tests.virt.libvirt.test_libvirt.CacheConcurrencyTestCase.test_same_fname_concurrency 0.886
nova.tests.virt.libvirt.test_libvirt.LibvirtConnTestCase.test_power_on 0.795
nova.tests.virt.libvirt.test_libvirt.LibvirtConnTestCase.test_hard_reboot 0.643
py33 create: /home/gkotton/nova/.tox/py33
ERROR: InterpreterNotFound: python3.3

Tags: libvirt
Gary Kotton (garyk)
Changed in nova:
importance: Undecided → Medium
Revision history for this message
Gary Kotton (garyk) wrote :
Changed in nova:
assignee: nobody → Gary Kotton (garyk)
tags: added: libvirt
Changed in nova:
milestone: none → icehouse-3
Gary Kotton (garyk)
Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to nova (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/73826

Joe Gordon (jogo)
Changed in nova:
importance: Medium → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/73290
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=41a720ae55ac817e51d9a09394a30c68bc9abd25
Submitter: Jenkins
Branch: master

commit 41a720ae55ac817e51d9a09394a30c68bc9abd25
Author: Gary Kotton <email address hidden>
Date: Thu Feb 13 06:04:49 2014 -0800

    libvirt: improve unit test time

    A number of tests would invoke code that would sleep. This
    patch adds a mocked function for the sleep.

    Change-Id: Iecdc8488393cb118aa77bc5c33bcfde33ceb4733
    Closes-bug: #1279820

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

Reviewed: https://review.openstack.org/73826
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=e16b2a8822880dce7993c925412d9856e1454f50
Submitter: Jenkins
Branch: master

commit e16b2a8822880dce7993c925412d9856e1454f50
Author: Gary Kotton <email address hidden>
Date: Sat Feb 15 08:54:45 2014 -0800

    libvirt-volume: improve unit test time

    A number of tests would invoke code that would sleep. This
    patch adds a mocked function for the sleep.

    Change-Id: I804a86e3b8b750919cf7a9547ef514f833a5fd49
    Related-bug: #1279820

Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-3 → 2014.1
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.