← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1369537] Re: LibvirtConnTestCase.test_create_propagates_exceptions takes 30 seconds to run

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => juno-rc1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1369537

Title:
  LibvirtConnTestCase.test_create_propagates_exceptions takes 30 seconds
  to run

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  This is clearly unacceptable for a test case:

  $ .venv/bin/python -m testtools.run nova.tests.virt.libvirt.test_driver.LibvirtConnTestCase.test_create_propagates_exceptions
  Tests running...

  Ran 1 test in 31.816s
  OK

  
  It is caused by  a looping sleep in the disk mount code, which shoudln't even be run in this test case.

        File "nova/virt/libvirt/driver.py", line 4412, in _create_domain_and_network
          disk_info):
        File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__
          return self.gen.next()
        File "nova/virt/libvirt/driver.py", line 4308, in _lxc_disk_handler
          self._create_domain_setup_lxc(instance, block_device_info, disk_info)
        File "nova/virt/libvirt/driver.py", line 4260, in _create_domain_setup_lxc
          use_cow=use_cow)
        File "nova/virt/disk/api.py", line 386, in setup_container
          dev = img.mount()
        File "nova/virt/disk/api.py", line 306, in mount
          if mounter.do_mount():
        File "nova/virt/disk/mount/api.py", line 218, in do_mount
          status = self.get_dev() and self.map_dev() and self.mnt_dev()
        File "nova/virt/disk/mount/nbd.py", line 120, in get_dev
          return self._get_dev_retry_helper()
        File "nova/virt/disk/mount/api.py", line 121, in _get_dev_retry_helper
          time.sleep(2)

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1369537/+subscriptions


References