← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1475661] [NEW] py27 jobs failing due to mock_open after mock 1.1.4 released

 

Public bug reported:

2015-07-17 12:11:00.987 | ==============================
2015-07-17 12:11:00.987 | Failed 2 tests - output below:
2015-07-17 12:11:00.987 | ==============================
2015-07-17 12:11:00.987 | 
2015-07-17 12:11:00.988 | nova.tests.unit.virt.hyperv.test_vhdutils.VHDUtilsTestCase.test_get_vhd_format_zero_length_file
2015-07-17 12:11:00.988 | -----------------------------------------------------------------------------------------------
2015-07-17 12:11:00.988 | 
2015-07-17 12:11:00.988 | Captured traceback:
2015-07-17 12:11:00.988 | ~~~~~~~~~~~~~~~~~~~
2015-07-17 12:11:00.988 |     Traceback (most recent call last):
2015-07-17 12:11:00.988 |       File "nova/tests/unit/virt/hyperv/test_vhdutils.py", line 279, in test_get_vhd_format_zero_length_file
2015-07-17 12:11:00.988 |         f.seek.assert_called_once_with(0, 2)
2015-07-17 12:11:00.988 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 947, in assert_called_once_with
2015-07-17 12:11:00.988 |         raise AssertionError(msg)
2015-07-17 12:11:00.988 |     AssertionError: Expected 'seek' to be called once. Called 0 times.
2015-07-17 12:11:00.989 |     
2015-07-17 12:11:00.989 | 
2015-07-17 12:11:00.989 | nova.tests.unit.virt.hyperv.test_vmops.VMOpsTestCase.test_get_console_output
2015-07-17 12:11:00.989 | ----------------------------------------------------------------------------
2015-07-17 12:11:00.989 | 
2015-07-17 12:11:00.989 | Captured traceback:
2015-07-17 12:11:00.989 | ~~~~~~~~~~~~~~~~~~~
2015-07-17 12:11:00.989 |     Traceback (most recent call last):
2015-07-17 12:11:00.989 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
2015-07-17 12:11:00.989 |         return func(*args, **keywargs)
2015-07-17 12:11:00.989 |       File "nova/tests/unit/virt/hyperv/test_vmops.py", line 981, in test_get_console_output
2015-07-17 12:11:00.989 |         self.assertEqual(self.FAKE_LOG * 2, instance_log)
2015-07-17 12:11:00.990 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 350, in assertEqual
2015-07-17 12:11:00.990 |         self.assertThat(observed, matcher, message)
2015-07-17 12:11:00.990 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat
2015-07-17 12:11:00.990 |         raise mismatch_error
2015-07-17 12:11:00.990 |     testtools.matchers._impl.MismatchError: 'fake_logfake_log' != 'fake_logfake_logfake_logfake_log'

http://logs.openstack.org/57/186757/13/check/gate-nova-
python27/c75a463/console.html#_2015-07-17_12_11_00_988


Logstash is having 12 hours backlog now, unable to get a pattern.

** Affects: nova
     Importance: Critical
         Status: Confirmed


** Tags: testing

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

Title:
  py27 jobs failing due to mock_open after mock 1.1.4 released

Status in OpenStack Compute (nova):
  Confirmed

Bug description:
  2015-07-17 12:11:00.987 | ==============================
  2015-07-17 12:11:00.987 | Failed 2 tests - output below:
  2015-07-17 12:11:00.987 | ==============================
  2015-07-17 12:11:00.987 | 
  2015-07-17 12:11:00.988 | nova.tests.unit.virt.hyperv.test_vhdutils.VHDUtilsTestCase.test_get_vhd_format_zero_length_file
  2015-07-17 12:11:00.988 | -----------------------------------------------------------------------------------------------
  2015-07-17 12:11:00.988 | 
  2015-07-17 12:11:00.988 | Captured traceback:
  2015-07-17 12:11:00.988 | ~~~~~~~~~~~~~~~~~~~
  2015-07-17 12:11:00.988 |     Traceback (most recent call last):
  2015-07-17 12:11:00.988 |       File "nova/tests/unit/virt/hyperv/test_vhdutils.py", line 279, in test_get_vhd_format_zero_length_file
  2015-07-17 12:11:00.988 |         f.seek.assert_called_once_with(0, 2)
  2015-07-17 12:11:00.988 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 947, in assert_called_once_with
  2015-07-17 12:11:00.988 |         raise AssertionError(msg)
  2015-07-17 12:11:00.988 |     AssertionError: Expected 'seek' to be called once. Called 0 times.
  2015-07-17 12:11:00.989 |     
  2015-07-17 12:11:00.989 | 
  2015-07-17 12:11:00.989 | nova.tests.unit.virt.hyperv.test_vmops.VMOpsTestCase.test_get_console_output
  2015-07-17 12:11:00.989 | ----------------------------------------------------------------------------
  2015-07-17 12:11:00.989 | 
  2015-07-17 12:11:00.989 | Captured traceback:
  2015-07-17 12:11:00.989 | ~~~~~~~~~~~~~~~~~~~
  2015-07-17 12:11:00.989 |     Traceback (most recent call last):
  2015-07-17 12:11:00.989 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
  2015-07-17 12:11:00.989 |         return func(*args, **keywargs)
  2015-07-17 12:11:00.989 |       File "nova/tests/unit/virt/hyperv/test_vmops.py", line 981, in test_get_console_output
  2015-07-17 12:11:00.989 |         self.assertEqual(self.FAKE_LOG * 2, instance_log)
  2015-07-17 12:11:00.990 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 350, in assertEqual
  2015-07-17 12:11:00.990 |         self.assertThat(observed, matcher, message)
  2015-07-17 12:11:00.990 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat
  2015-07-17 12:11:00.990 |         raise mismatch_error
  2015-07-17 12:11:00.990 |     testtools.matchers._impl.MismatchError: 'fake_logfake_log' != 'fake_logfake_logfake_logfake_log'

  http://logs.openstack.org/57/186757/13/check/gate-nova-
  python27/c75a463/console.html#_2015-07-17_12_11_00_988

  
  Logstash is having 12 hours backlog now, unable to get a pattern.

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


Follow ups