test_get_service_by_host_name is racy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
Critical
|
Sean Dague |
Bug Description
This racy test breaks if the timestamps on the service list has changed:
2013-07-26 18:00:36.696 |
2013-07-26 18:00:36.697 | =======
2013-07-26 18:00:36.697 | FAIL: tempest.
2013-07-26 18:00:36.698 | -------
2013-07-26 18:00:36.734 | _StringException: Traceback (most recent call last):
2013-07-26 18:00:36.734 | File "/opt/stack/
2013-07-26 18:00:36.734 | self.assertEqua
2013-07-26 18:00:36.734 | File "/usr/local/
2013-07-26 18:00:36.734 | self.assertThat
2013-07-26 18:00:36.734 | File "/usr/local/
2013-07-26 18:00:36.734 | raise MismatchError(
2013-07-26 18:00:36.734 | MismatchError: !=:
2013-07-26 18:00:36.735 | reference = [{u'binary': u'nova-conductor',
2013-07-26 18:00:36.735 | u'disabled_reason': None,
2013-07-26 18:00:36.735 | u'host': u'devstack-
2013-07-26 18:00:36.735 | u'state': u'up',
2013-07-26 18:00:36.735 | u'status': u'enabled',
2013-07-26 18:00:36.735 | u'updated_at': u'2013-
2013-07-26 18:00:36.735 | u'zone': u'internal'},
2013-07-26 18:00:36.735 | {u'binary': u'nova-compute',
2013-07-26 18:00:36.735 | u'disabled_reason': None,
2013-07-26 18:00:36.735 | u'host': u'devstack-
2013-07-26 18:00:36.735 | u'state': u'up',
2013-07-26 18:00:36.735 | u'status': u'enabled',
2013-07-26 18:00:36.735 | u'updated_at': u'2013-
2013-07-26 18:00:36.735 | u'zone': u'nova'},
2013-07-26 18:00:36.735 | {u'binary': u'nova-cert',
2013-07-26 18:00:36.735 | u'disabled_reason': None,
2013-07-26 18:00:36.736 | u'host': u'devstack-
2013-07-26 18:00:36.736 | u'state': u'up',
2013-07-26 18:00:36.736 | u'status': u'enabled',
2013-07-26 18:00:36.736 | u'updated_at': u'2013-
2013-07-26 18:00:36.736 | u'zone': u'internal'},
2013-07-26 18:00:36.736 | {u'binary': u'nova-scheduler',
2013-07-26 18:00:36.736 | u'disabled_reason': None,
2013-07-26 18:00:36.736 | u'host': u'devstack-
2013-07-26 18:00:36.736 | u'state': u'up',
2013-07-26 18:00:36.736 | u'status': u'enabled',
2013-07-26 18:00:36.736 | u'updated_at': u'2013-
2013-07-26 18:00:36.736 | u'zone': u'internal'},
2013-07-26 18:00:36.736 | {u'binary': u'nova-network',
2013-07-26 18:00:36.736 | u'disabled_reason': None,
2013-07-26 18:00:36.736 | u'host': u'devstack-
2013-07-26 18:00:36.736 | u'state': u'up',
2013-07-26 18:00:36.737 | u'status': u'enabled',
2013-07-26 18:00:36.737 | u'updated_at': u'2013-
2013-07-26 18:00:36.737 | u'zone': u'internal'}]
2013-07-26 18:00:36.737 | actual = [{u'binary': u'nova-compute',
2013-07-26 18:00:36.737 | u'disabled_reason': None,
2013-07-26 18:00:36.737 | u'host': u'devstack-
2013-07-26 18:00:36.737 | u'state': u'up',
2013-07-26 18:00:36.737 | u'status': u'enabled',
2013-07-26 18:00:36.737 | u'updated_at': u'2013-
2013-07-26 18:00:36.737 | u'zone': u'nova'},
2013-07-26 18:00:36.737 | {u'binary': u'nova-cert',
2013-07-26 18:00:36.737 | u'disabled_reason': None,
2013-07-26 18:00:36.737 | u'host': u'devstack-
2013-07-26 18:00:36.737 | u'state': u'up',
2013-07-26 18:00:36.737 | u'status': u'enabled',
2013-07-26 18:00:36.738 | u'updated_at': u'2013-
2013-07-26 18:00:36.738 | u'zone': u'internal'},
2013-07-26 18:00:36.738 | {u'binary': u'nova-scheduler',
2013-07-26 18:00:36.738 | u'disabled_reason': None,
2013-07-26 18:00:36.738 | u'host': u'devstack-
2013-07-26 18:00:36.738 | u'state': u'up',
2013-07-26 18:00:36.738 | u'status': u'enabled',
2013-07-26 18:00:36.738 | u'updated_at': u'2013-
2013-07-26 18:00:36.738 | u'zone': u'internal'},
2013-07-26 18:00:36.738 | {u'binary': u'nova-network',
2013-07-26 18:00:36.738 | u'disabled_reason': None,
2013-07-26 18:00:36.738 | u'host': u'devstack-
2013-07-26 18:00:36.738 | u'state': u'up',
2013-07-26 18:00:36.738 | u'status': u'enabled',
2013-07-26 18:00:36.738 | u'updated_at': u'2013-
2013-07-26 18:00:36.739 | u'zone': u'internal'},
2013-07-26 18:00:36.739 | {u'binary': u'nova-conductor',
2013-07-26 18:00:36.739 | u'disabled_reason': None,
2013-07-26 18:00:36.739 | u'host': u'devstack-
2013-07-26 18:00:36.739 | u'state': u'up',
2013-07-26 18:00:36.739 | u'status': u'enabled',
2013-07-26 18:00:36.739 | u'updated_at': u'2013-
2013-07-26 18:00:36.739 | u'zone': u'internal'}]
2013-07-26 18:00:36.739 |
2013-07-26 18:00:36.739 | -------
Changed in tempest: | |
milestone: | none → havana-3 |
Fix proposed to branch: master /review. openstack. org/38859
Review: https:/