Reviewed: https://review.openstack.org/155626 Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=3820a0660c151e5adf777623b7d7d6ba00d35d62 Submitter: Jenkins Branch: master
commit 3820a0660c151e5adf777623b7d7d6ba00d35d62 Author: armando-migliaccio <[email protected]> Date: Thu Feb 12 19:31:54 2015 -0800 Fix 'Number of new ports: 2' failure mode on test_hotplug_nic After change ce34d2fcf10 merged became evident that this test fails because there are 'too' many ports that match the server id. Looking closer this is due to the fact that we compare the entire port dictionaries instead of just uuids. This may lead to spurious failures, when some port attributes (like the STATUS) changes during the test execution. It should suffice comparing uuids rather than dictionaries. Change-Id: I5fd25689ad73258b092cef62e5657871eedd8b30 Closes-bug: #1321207 ** 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/1321207 Title: test_network_basic_ops.TestNetworkBasicOps.test_hotplug_nic fails Status in OpenStack Neutron (virtual network service): Invalid Status in Tempest: Fix Released Bug description: tempest.scenario.test_network_basic_ops.TestNetworkBasicOps.test_hotplug_nic fails with "NetworkInUseClient: Unable to complete operation on network 1a3a6a7c-d3a6-4790-b04a-e57b20c927ba. There are one or more ports still in use on the network." The test failed once as follows: traceback-1: {{{ Traceback (most recent call last): File "tempest/scenario/test_network_basic_ops.py", line 98, in cleanup_wrapper self.cleanup_resource(resource, self.__class__.__name__) File "tempest/scenario/manager.py", line 114, in cleanup_resource resource.delete() File "tempest/api/network/common.py", line 55, in delete self.client.delete_network(self.id) File "/opt/stack/new/python-neutronclient/neutronclient/v2_0/client.py", line 101, in with_params ret = self.function(instance, *args, **kwargs) File "/opt/stack/new/python-neutronclient/neutronclient/v2_0/client.py", line 355, in delete_network return self.delete(self.network_path % (network)) File "/opt/stack/new/python-neutronclient/neutronclient/v2_0/client.py", line 1311, in delete headers=headers, params=params) File "/opt/stack/new/python-neutronclient/neutronclient/v2_0/client.py", line 1300, in retry_request headers=headers, params=params) File "/opt/stack/new/python-neutronclient/neutronclient/v2_0/client.py", line 1243, in do_request self._handle_fault_response(status_code, replybody) File "/opt/stack/new/python-neutronclient/neutronclient/v2_0/client.py", line 1211, in _handle_fault_response exception_handler_v20(status_code, des_error_body) File "/opt/stack/new/python-neutronclient/neutronclient/v2_0/client.py", line 68, in exception_handler_v20 status_code=status_code) NetworkInUseClient: Unable to complete operation on network 1a3a6a7c-d3a6-4790-b04a-e57b20c927ba. There are one or more ports still in use on the network. }}} Traceback (most recent call last): File "tempest/scenario/test_network_basic_ops.py", line 98, in cleanup_wrapper self.cleanup_resource(resource, self.__class__.__name__) File "tempest/scenario/manager.py", line 114, in cleanup_resource resource.delete() File "tempest/api/network/common.py", line 79, in delete self.client.delete_subnet(self.id) File "/opt/stack/new/python-neutronclient/neutronclient/v2_0/client.py", line 101, in with_params ret = self.function(instance, *args, **kwargs) File "/opt/stack/new/python-neutronclient/neutronclient/v2_0/client.py", line 381, in delete_subnet return self.delete(self.subnet_path % (subnet)) File "/opt/stack/new/python-neutronclient/neutronclient/v2_0/client.py", line 1311, in delete headers=headers, params=params) File "/opt/stack/new/python-neutronclient/neutronclient/v2_0/client.py", line 1300, in retry_request headers=headers, params=params) File "/opt/stack/new/python-neutronclient/neutronclient/v2_0/client.py", line 1243, in do_request self._handle_fault_response(status_code, replybody) File "/opt/stack/new/python-neutronclient/neutronclient/v2_0/client.py", line 1211, in _handle_fault_response exception_handler_v20(status_code, des_error_body) File "/opt/stack/new/python-neutronclient/neutronclient/v2_0/client.py", line 68, in exception_handler_v20 status_code=status_code) Conflict: Unable to complete operation on subnet 82c00781-ed44-4c2d-85b9-0ce8c9a49c08. One or more ports have an IP allocation from this subnet. In screen-q-agt.txt.gz, you can find a message that seems related to the failure: 2014-05-19 09:06:18.065 10379 WARNING neutron.agent.linux.ovs_lib [-] Found not yet ready openvswitch port: [u'tap81bfbadf-8a', [u'map', [[u 'attached-mac', u'fa:16:3e:1a:02:d1'], [u'iface-id', u'81bfbadf- 8ab5-4bd6-94dd-f855d8c9813f'], [u'iface-status', u'active']]], [u'set', []]] Other similar messages are spread throughout the log file, including the following error: 2014-05-19 08:51:32.439 10379 ERROR neutron.agent.linux.ovs_lib [-] Interface tap182c3e81-02 not found. All the logs can be found at: http://logs.openstack.org/24/90724/4/check/check-tempest-dsvm-neutron/0efa4aa/logs/ The patch that failed is: https://review.openstack.org/#/c/90724/ (expected to be unrelated to the failure) To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1321207/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

