← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1526369] Re: nova.tests.unit.virt.xenapi.test_vmops.BootableTestCase.test_set_bootable is racy on py34

 

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

commit 14295be0edba4070a604d93b4e9acb91d5ed39d2
Author: Matt Riedemann <mriedem@xxxxxxxxxx>
Date:   Thu Dec 31 08:12:54 2015 -0800

    xen: block BootableTestCase from py34 testing
    
    The tests use mox which isn't stable with py34 testing, there are
    race failures with the assertions. This test fails in unexpected
    ways in unrelated changes so we need to blacklist it from py34
    testing.
    
    Change-Id: Ieb972f4705254af4b014d79a39bd6d78ad0b6376
    Closes-Bug: #1526369


** Changed in: nova
       Status: In Progress => Fix Released

-- 
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/1526369

Title:
  nova.tests.unit.virt.xenapi.test_vmops.BootableTestCase.test_set_bootable
  is racy on py34

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  http://logstash.openstack.org/#/dashboard/file/logstash.json?query=message:%5C%22mox3.mox.UnexpectedMethodCallError:%20Unexpected%20method%20call%20function.__call__(%3Cnova.virt.xenapi.client.session.XenAPISession%5C%22%20AND%20tags:%5C%22console%5C%22%20AND%20build_name:%5C
  %22gate-nova-python34%5C%22

  ft1.7942: nova.tests.unit.virt.xenapi.test_vmops.BootableTestCase.test_set_bootable_StringException: Empty attachments:
    stdout

  pythonlogging:'': {{{2015-12-15 13:33:23,562 WARNING [oslo_reports.guru_meditation_report] Guru mediation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.}}}
  stderr: {{{
  /home/jenkins/workspace/gate-nova-python34/.tox/py34/lib/python3.4/site-packages/pkg_resources/__init__.py:213: RuntimeWarning: You have iterated over the result of pkg_resources.parse_version. This is a legacy behavior which is inconsistent with the new version class introduced in setuptools 8.0. In most cases, conversion to a tuple is unnecessary. For comparison of versions, sort the Version instances directly. If you have another use case requiring the tuple, please file a bug with the setuptools project describing that need.
    stacklevel=1,
  }}}

  Traceback (most recent call last):
    File "/home/jenkins/workspace/gate-nova-python34/.tox/py34/lib/python3.4/site-packages/mox3/mox.py", line 1153, in _PopNextMethod
      return self._call_queue.popleft()
  IndexError: pop from an empty deque

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/home/jenkins/workspace/gate-nova-python34/nova/tests/unit/virt/xenapi/test_vmops.py", line 1044, in test_set_bootable
      self.vmops.set_bootable(self.instance, True)
    File "/home/jenkins/workspace/gate-nova-python34/nova/virt/xenapi/vmops.py", line 1621, in set_bootable
      vm_ref = self._get_vm_opaque_ref(instance)
    File "/home/jenkins/workspace/gate-nova-python34/nova/virt/xenapi/vmops.py", line 824, in _get_vm_opaque_ref
      vm_ref = vm_utils.lookup(self._session, instance['name'], check_rescue)
    File "/home/jenkins/workspace/gate-nova-python34/.tox/py34/lib/python3.4/site-packages/mox3/mox.py", line 814, in __call__
      return mock_method(*params, **named_params)
    File "/home/jenkins/workspace/gate-nova-python34/.tox/py34/lib/python3.4/site-packages/mox3/mox.py", line 1113, in __call__
      expected_method = self._VerifyMethodCall()
    File "/home/jenkins/workspace/gate-nova-python34/.tox/py34/lib/python3.4/site-packages/mox3/mox.py", line 1169, in _VerifyMethodCall
      expected = self._PopNextMethod()
    File "/home/jenkins/workspace/gate-nova-python34/.tox/py34/lib/python3.4/site-packages/mox3/mox.py", line 1155, in _PopNextMethod
      raise UnexpectedMethodCallError(self, None)
  mox3.mox.UnexpectedMethodCallError: Unexpected method call function.__call__(<nova.virt.xenapi.client.session.XenAPISession object at 0x7fb2174c84a8>, 'test', False) -> None

  7 hits in 7 days, check and gate, py34 only, this is just mox3 being
  racy on py34.

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


References