← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1361337] [NEW] keystone.tests.test_serializer.XmlSerializerTestCase.test_collection_member random fails; lxml hashseed?

 

Public bug reported:

This is in the gate:

http://logs.openstack.org/19/111519/4/gate/gate-keystone-
python26/7003102/console.html.gz#_2014-08-22_05_00_00_019

2014-08-22 05:00:00.019 | FAIL: keystone.tests.test_serializer.XmlSerializerTestCase.test_collection_member
2014-08-22 05:00:00.019 | tags: worker-0
2014-08-22 05:00:00.019 | ----------------------------------------------------------------------
2014-08-22 05:00:00.019 | pythonlogging:'': {{{Adding cache-proxy 'keystone.tests.test_cache.CacheIsolatingProxy' to backend.}}}
2014-08-22 05:00:00.019 | 
2014-08-22 05:00:00.019 | Traceback (most recent call last):
2014-08-22 05:00:00.019 |   File "keystone/tests/test_serializer.py", line 253, in test_collection_member
2014-08-22 05:00:00.019 |     self.assertSerializeDeserialize(d, xml)
2014-08-22 05:00:00.019 |   File "keystone/tests/test_serializer.py", line 37, in assertSerializeDeserialize
2014-08-22 05:00:00.019 |     ksmatchers.XMLEquals(xml))
2014-08-22 05:00:00.020 |   File "/home/jenkins/workspace/gate-keystone-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 423, in assertThat
2014-08-22 05:00:00.020 |     raise mismatch_error
2014-08-22 05:00:00.020 | MismatchError: expected = <object xmlns="http://docs.openstack.org/identity/api/v2.0"; attribute="value">
2014-08-22 05:00:00.020 |   <links>
2014-08-22 05:00:00.020 |     <link href="http://localhost:5000/v3/objects/abc123def"; rel="self"/>
2014-08-22 05:00:00.020 |     <link href="http://localhost:5000/v3/anotherobjs/123"; rel="anotherobj"/>
2014-08-22 05:00:00.020 |   </links>
2014-08-22 05:00:00.020 | </object>
2014-08-22 05:00:00.020 | 
2014-08-22 05:00:00.020 | actual = <object xmlns="http://docs.openstack.org/identity/api/v2.0"; attribute="value">
2014-08-22 05:00:00.020 |   <links>
2014-08-22 05:00:00.020 |     <link href="http://localhost:5000/v3/anotherobjs/123"; rel="anotherobj"/>
2014-08-22 05:00:00.021 |     <link href="http://localhost:5000/v3/objects/abc123def"; rel="self"/>
2014-08-22 05:00:00.021 |   </links>
2014-08-22 05:00:00.021 | </object>

This is probably due to running with latest tox and tests using lxml
which is not hash safe, so the unit tests need to be updated to account
for random order results.  Tempest had a similar problem last week.

** Affects: keystone
     Importance: Undecided
         Status: New


** Tags: testing xml

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1361337

Title:
  keystone.tests.test_serializer.XmlSerializerTestCase.test_collection_member
  random fails; lxml hashseed?

Status in OpenStack Identity (Keystone):
  New

Bug description:
  This is in the gate:

  http://logs.openstack.org/19/111519/4/gate/gate-keystone-
  python26/7003102/console.html.gz#_2014-08-22_05_00_00_019

  2014-08-22 05:00:00.019 | FAIL: keystone.tests.test_serializer.XmlSerializerTestCase.test_collection_member
  2014-08-22 05:00:00.019 | tags: worker-0
  2014-08-22 05:00:00.019 | ----------------------------------------------------------------------
  2014-08-22 05:00:00.019 | pythonlogging:'': {{{Adding cache-proxy 'keystone.tests.test_cache.CacheIsolatingProxy' to backend.}}}
  2014-08-22 05:00:00.019 | 
  2014-08-22 05:00:00.019 | Traceback (most recent call last):
  2014-08-22 05:00:00.019 |   File "keystone/tests/test_serializer.py", line 253, in test_collection_member
  2014-08-22 05:00:00.019 |     self.assertSerializeDeserialize(d, xml)
  2014-08-22 05:00:00.019 |   File "keystone/tests/test_serializer.py", line 37, in assertSerializeDeserialize
  2014-08-22 05:00:00.019 |     ksmatchers.XMLEquals(xml))
  2014-08-22 05:00:00.020 |   File "/home/jenkins/workspace/gate-keystone-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 423, in assertThat
  2014-08-22 05:00:00.020 |     raise mismatch_error
  2014-08-22 05:00:00.020 | MismatchError: expected = <object xmlns="http://docs.openstack.org/identity/api/v2.0"; attribute="value">
  2014-08-22 05:00:00.020 |   <links>
  2014-08-22 05:00:00.020 |     <link href="http://localhost:5000/v3/objects/abc123def"; rel="self"/>
  2014-08-22 05:00:00.020 |     <link href="http://localhost:5000/v3/anotherobjs/123"; rel="anotherobj"/>
  2014-08-22 05:00:00.020 |   </links>
  2014-08-22 05:00:00.020 | </object>
  2014-08-22 05:00:00.020 | 
  2014-08-22 05:00:00.020 | actual = <object xmlns="http://docs.openstack.org/identity/api/v2.0"; attribute="value">
  2014-08-22 05:00:00.020 |   <links>
  2014-08-22 05:00:00.020 |     <link href="http://localhost:5000/v3/anotherobjs/123"; rel="anotherobj"/>
  2014-08-22 05:00:00.021 |     <link href="http://localhost:5000/v3/objects/abc123def"; rel="self"/>
  2014-08-22 05:00:00.021 |   </links>
  2014-08-22 05:00:00.021 | </object>

  This is probably due to running with latest tox and tests using lxml
  which is not hash safe, so the unit tests need to be updated to
  account for random order results.  Tempest had a similar problem last
  week.

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


Follow ups

References