yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #26605
[Bug 1406438] Re: Failures in test_create_list_show_delete_interfaces
Reviewed: https://review.openstack.org/144434
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=45375301000b27fb8c37bea25b117448baca2a21
Submitter: Jenkins
Branch: master
commit 45375301000b27fb8c37bea25b117448baca2a21
Author: venkata anil <anil.venkata@xxxxxxxxxxxx>
Date: Tue Dec 30 10:41:43 2014 +0000
Avoid port_state error in test_create_list_show_delete_interfaces
In Jenkins, some times test_create_list_show_delete_interfaces is
failing as port_state not matched while comparing interfaces,
i.e self.assertEqual(iface, _iface)
This is because port_state may likely have changed at this time.
Other test cases use _check_interface to compare interfaces instead of
directly comparing interfaces. So we follow the same here.
Closes-bug: #1406438
Change-Id: I76c52ce134197b548e4a5e7405140b0ad18fae2e
** Changed in: tempest
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1406438
Title:
Failures in test_create_list_show_delete_interfaces
Status in OpenStack Neutron (virtual network service):
In Progress
Status in Tempest:
Fix Released
Bug description:
logstash showed several dozen examples of this in the last week,
searching for
"u'port_state': u'BUILD'"
tempest.api.compute.servers.test_attach_interfaces.AttachInterfacesTestJSON.test_create_list_show_delete_interfaces[gate,network,smoke]
2014-12-29 23:02:14.022 | ---------------------------------------------------------------------------------------------------------------------------------------
2014-12-29 23:02:14.022 |
2014-12-29 23:02:14.022 | Captured traceback:
2014-12-29 23:02:14.022 | ~~~~~~~~~~~~~~~~~~~
2014-12-29 23:02:14.022 | Traceback (most recent call last):
2014-12-29 23:02:14.022 | File "tempest/test.py", line 112, in wrapper
2014-12-29 23:02:14.022 | return f(self, *func_args, **func_kwargs)
2014-12-29 23:02:14.022 | File "tempest/api/compute/servers/test_attach_interfaces.py", line 128, in test_create_list_show_delete_interfaces
2014-12-29 23:02:14.023 | self._test_show_interface(server, ifs)
2014-12-29 23:02:14.023 | File "tempest/api/compute/servers/test_attach_interfaces.py", line 81, in _test_show_interface
2014-12-29 23:02:14.023 | self.assertEqual(iface, _iface)
2014-12-29 23:02:14.023 | File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 348, in assertEqual
2014-12-29 23:02:14.023 | self.assertThat(observed, matcher, message)
2014-12-29 23:02:14.023 | File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 433, in assertThat
2014-12-29 23:02:14.023 | raise mismatch_error
2014-12-29 23:02:14.023 | MismatchError: !=:
2014-12-29 23:02:14.023 | reference = {u'fixed_ips': [{u'ip_address': u'10.100.0.4',
2014-12-29 23:02:14.023 | u'subnet_id': u'14eede71-3e7c-45d0-ba9a-1e862971e73a'}],
2014-12-29 23:02:14.023 | u'mac_addr': u'fa:16:3e:b4:a6:5a',
2014-12-29 23:02:14.023 | u'net_id': u'5820024b-ce9d-4175-a922-2fc197f425e9',
2014-12-29 23:02:14.024 | u'port_id': u'49bc5869-1716-49a6-812a-90a603e4f8f3',
2014-12-29 23:02:14.024 | u'port_state': u'ACTIVE'}
2014-12-29 23:02:14.024 | actual = {u'fixed_ips': [{u'ip_address': u'10.100.0.4',
2014-12-29 23:02:14.024 | u'subnet_id': u'14eede71-3e7c-45d0-ba9a-1e862971e73a'}],
2014-12-29 23:02:14.024 | u'mac_addr': u'fa:16:3e:b4:a6:5a',
2014-12-29 23:02:14.024 | u'net_id': u'5820024b-ce9d-4175-a922-2fc197f425e9',
2014-12-29 23:02:14.024 | u'port_id': u'49bc5869-1716-49a6-812a-90a603e4f8f3',
2014-12-29 23:02:14.024 | u'port_state': u'BUILD'}
2014-12-29 23:02:14.024
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1406438/+subscriptions
References