py27 jobs failing due to mock_open after mock 1.1.4 released

Bug #1475661 reported by Sylvain Bauza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Critical
Matt Riedemann

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.

Tags: testing
Revision history for this message
Matt Riedemann (mriedem) wrote :
summary: - py27 jobs failing due to mock_open
+ py27 jobs failing due to mock_open after mock 1.1.4 released
Revision history for this message
Matt Riedemann (mriedem) wrote :
Revision history for this message
Matt Riedemann (mriedem) wrote :
Changed in nova:
assignee: nobody → Matt Riedemann (mriedem)
status: Confirmed → In Progress
Revision history for this message
Matt Riedemann (mriedem) wrote :

The g-r change merged and we have the sync in nova but it's still failng:

https://review.openstack.org/#/c/200708/

Something else is pulling in mock 1.1.4.

Revision history for this message
Matt Riedemann (mriedem) wrote :

mock 1.2 is out now with a revert of the original problem:

https://github.com/rbtcollins/mock/commit/31d3922237ae51bba54c891970c3a638feb36768

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → liberty-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: liberty-2 → 12.0.0
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.