← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1428728] Re: nova.tests.unit.test_context.ContextTestCase.test_store_when_no_overwrite intermittently fails with MismatchError

 

Fixed here: https://review.openstack.org/#/c/161784/

** Also affects: oslo.context
   Importance: Undecided
       Status: New

** Changed in: nova
       Status: In Progress => Invalid

** Changed in: oslo.context
       Status: New => Fix Committed

** Changed in: oslo.context
   Importance: Undecided => Critical

** Changed in: oslo.context
     Assignee: (unassigned) => Davanum Srinivas (DIMS) (dims-v)

** Changed in: oslo.context
       Status: Fix Committed => 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/1428728

Title:
  nova.tests.unit.test_context.ContextTestCase.test_store_when_no_overwrite
  intermittently fails with MismatchError

Status in OpenStack Compute (Nova):
  Invalid
Status in Oslo Context library for OpenStack projects:
  Fix Released

Bug description:
  http://logs.openstack.org/53/155853/16/check/gate-nova-
  python27/1f928bf/console.html#_2015-03-05_15_33_13_116

  2015-03-05 15:33:13.116 | Captured traceback:
  2015-03-05 15:33:13.116 | ~~~~~~~~~~~~~~~~~~~
  2015-03-05 15:33:13.116 |     Traceback (most recent call last):
  2015-03-05 15:33:13.116 |       File "nova/tests/unit/test_context.py", line 147, in test_store_when_no_overwrite
  2015-03-05 15:33:13.117 |         self.assertIs(o_context.get_current(), ctx)
  2015-03-05 15:33:13.117 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 382, in assertIs
  2015-03-05 15:33:13.117 |         self.assertThat(observed, matcher, message)
  2015-03-05 15:33:13.117 |       File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 433, in assertThat
  2015-03-05 15:33:13.117 |         raise mismatch_error
  2015-03-05 15:33:13.117 |     MismatchError: is not:
  2015-03-05 15:33:13.117 |     reference = <nova.context.RequestContext object at 0x7f610d4b8650>
  2015-03-05 15:33:13.117 |     actual    = <nova.context.RequestContext object at 0x7f610d4b1410>
  2015-03-05 15:33:13.117 |     
  2015-03-05 15:33:13.117 |     Traceback (most recent call last):
  2015-03-05 15:33:13.117 |     _StringException: Empty attachments:
  2015-03-05 15:33:13.118 |       pythonlogging:''
  2015-03-05 15:33:13.118 |       stderr
  2015-03-05 15:33:13.118 |       stdout

  Looks like it's just this test:

  http://logstash.openstack.org/#eyJzZWFyY2giOiJtZXNzYWdlOlwiRmlsZSBcXFwibm92YS90ZXN0cy91bml0L3Rlc3RfY29udGV4dC5weVxcXCIsIGxpbmVcIiBBTkQgYnVpbGRfcXVldWU6XCJnYXRlXCIgQU5EIHRhZ3M6XCJjb25zb2xlXCIgQU5EIGJ1aWxkX25hbWU6XCJnYXRlLW5vdmEtcHl0aG9uMjdcIiIsImZpZWxkcyI6W10sIm9mZnNldCI6MCwidGltZWZyYW1lIjoiNjA0ODAwIiwiZ3JhcGhtb2RlIjoiY291bnQiLCJ0aW1lIjp7InVzZXJfaW50ZXJ2YWwiOjB9LCJzdGFtcCI6MTQyNTU3MzEzNzE0NSwibW9kZSI6IiIsImFuYWx5emVfZmllbGQiOiIifQ==

  18 hits in the last 7 days, 2 different changes in the gate hit on
  this.

  Note that RequestContext doesn't implement __eq__ or __ne__.

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


References