Public bug reported: API test_update_agent_description modifies the description of the agent identified by self.agent['id']. If that test case is run before test_list_agent, then the latter will fail because it compares with the original description:
2015-03-18 14:47:53.271 | 2015-03-18 14:47:53.237 | 2015-03-18 14:47:53.273 | 2015-03-18 14:47:53.239 | Captured traceback: 2015-03-18 14:47:53.275 | 2015-03-18 14:47:53.240 | ~~~~~~~~~~~~~~~~~~~ 2015-03-18 14:47:53.275 | 2015-03-18 14:47:53.242 | Traceback (most recent call last): 2015-03-18 14:47:53.277 | 2015-03-18 14:47:53.243 | File "neutron/tests/tempest/api/network/admin/test_agent_management.py", line 43, in test_list_agent 2015-03-18 14:47:53.302 | 2015-03-18 14:47:53.244 | self.assertIn(self.agent, agents) 2015-03-18 14:47:53.303 | 2015-03-18 14:47:53.246 | File "/opt/stack/new/neutron/.tox/api/local/lib/python2.7/site-packages/testtools/testcase.py", line 356, in assertIn 2015-03-18 14:47:53.304 | 2015-03-18 14:47:53.251 | self.assertThat(haystack, Contains(needle), message) 2015-03-18 14:47:53.304 | 2015-03-18 14:47:53.254 | File "/opt/stack/new/neutron/.tox/api/local/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat 2015-03-18 14:47:53.305 | 2015-03-18 14:47:53.255 | raise mismatch_error 2015-03-18 14:47:53.306 | 2015-03-18 14:47:53.257 | testtools.matchers._impl.MismatchError: {u'alive': True, u'started_at': u'2015-03-18 14:43:45', u'admin_state_up': True, u'binary': u'neutron-dhcp-agent', u'host': u'devstack-trusty-rax-ord-1343601.slave.openstack.org', u'created_at': u'2015-03-18 14:43:45', u'description': u'description for update agent.', u'topic': u'dhcp_agent', u'agent_type': u'DHCP agent', u'id': u'25ea8e00-36e8-4408-9b00-d60e8b3a9b39'} not in [{u'alive': True, u'started_at': u'2015-03-18 14:43:45', u'admin_state_up': True, u'binary': u'neutron-dhcp-agent', u'host': u'devstack-trusty-rax-ord-1343601.slave.openstack.org', u'created_at': u'2015-03-18 14:43:45', u'description': u'', u'topic': u'dhcp_agent', u'agent_type': u'DHCP agent', u'id': u'25ea8e00-36e8-4408-9b00-d60e8b3a9b39'}, {u'alive': True, u'started_at': u'2015-03-18 14:43:45', u'admin_state_up': True, u'binary': u'neutron-lbaas-agent', u'host': u'devstack-trusty-rax-ord-1343601.slave.openstack.org ', u'created_at': u'2015-03-18 14:43:45', u'description': None, u'topic': u'n-lbaas_agent', u'agent_type': u'Loadbalancer agent', u'id': u'667de509-9eb8-4350-9f42-9a8511b85e06'}, {u'alive': True, u'started_at': u'2015-03-18 14:43:45', u'admin_state_up': True, u'binary': u'neutron-openvswitch-agent', u'host': u'devstack-trusty-rax-ord-1343601.slave.openstack.org', u'created_at': u'2015-03-18 14:43:45', u'description': None, u'topic': u'N/A', u'agent_type': u'Open vSwitch agent', u'id': u'68006b4f-4950-46d6-b660-ddbe23c9b30c'}, {u'alive': True, u'started_at': u'2015-03-18 14:43:45', u'admin_state_up': True, u'binary': u'neutron-metering-agent', u'host': u'devstack-trusty-rax-ord-1343601.slave.openstack.org', u'created_at': u'2015-03-18 14:43:45', u'description': None, u'topic': u'metering_agent', u'agent_type': u'Metering agent', u'id': u'8f0f8c3a-b8fe-41c8-ad3a-191e26dd71a4'}, {u'alive': True, u'started_at': u'2015-03-18 14:43:45', u'admin_state_up': True, u'binary': u'neutron-l3-age nt', u'host': u'devstack-trusty-rax-ord-1343601.slave.openstack.org', u'created_at': u'2015-03-18 14:43:45', u'description': None, u'topic': u'l3_agent', u'agent_type': u'L3 agent', u'id': u'f1ed957b-68ed-4669-9c85-84cac8095561'}, {u'alive': True, u'started_at': u'2015-03-18 14:43:45', u'admin_state_up': True, u'binary': u'neutron-metadata-agent', u'host': u'devstack-trusty-rax-ord-1343601.slave.openstack.org', u'created_at': u'2015-03-18 14:43:45', u'description': None, u'topic': u'N/A', u'agent_type': u'Metadata agent', u'id': u'fa4d51c9-5bbc-4a0b-b6f7-22f60eef742f'}] ** Affects: neutron Importance: Undecided Assignee: Henry Gessau (gessau) Status: New ** Changed in: neutron Assignee: (unassigned) => Henry Gessau (gessau) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1437124 Title: API test_update_agent_description modifies agent assumed unchanged by test_list_agent Status in OpenStack Neutron (virtual network service): New Bug description: API test_update_agent_description modifies the description of the agent identified by self.agent['id']. If that test case is run before test_list_agent, then the latter will fail because it compares with the original description: 2015-03-18 14:47:53.271 | 2015-03-18 14:47:53.237 | 2015-03-18 14:47:53.273 | 2015-03-18 14:47:53.239 | Captured traceback: 2015-03-18 14:47:53.275 | 2015-03-18 14:47:53.240 | ~~~~~~~~~~~~~~~~~~~ 2015-03-18 14:47:53.275 | 2015-03-18 14:47:53.242 | Traceback (most recent call last): 2015-03-18 14:47:53.277 | 2015-03-18 14:47:53.243 | File "neutron/tests/tempest/api/network/admin/test_agent_management.py", line 43, in test_list_agent 2015-03-18 14:47:53.302 | 2015-03-18 14:47:53.244 | self.assertIn(self.agent, agents) 2015-03-18 14:47:53.303 | 2015-03-18 14:47:53.246 | File "/opt/stack/new/neutron/.tox/api/local/lib/python2.7/site-packages/testtools/testcase.py", line 356, in assertIn 2015-03-18 14:47:53.304 | 2015-03-18 14:47:53.251 | self.assertThat(haystack, Contains(needle), message) 2015-03-18 14:47:53.304 | 2015-03-18 14:47:53.254 | File "/opt/stack/new/neutron/.tox/api/local/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat 2015-03-18 14:47:53.305 | 2015-03-18 14:47:53.255 | raise mismatch_error 2015-03-18 14:47:53.306 | 2015-03-18 14:47:53.257 | testtools.matchers._impl.MismatchError: {u'alive': True, u'started_at': u'2015-03-18 14:43:45', u'admin_state_up': True, u'binary': u'neutron-dhcp-agent', u'host': u'devstack-trusty-rax-ord-1343601.slave.openstack.org', u'created_at': u'2015-03-18 14:43:45', u'description': u'description for update agent.', u'topic': u'dhcp_agent', u'agent_type': u'DHCP agent', u'id': u'25ea8e00-36e8-4408-9b00-d60e8b3a9b39'} not in [{u'alive': True, u'started_at': u'2015-03-18 14:43:45', u'admin_state_up': True, u'binary': u'neutron-dhcp-agent', u'host': u'devstack-trusty-rax-ord-1343601.slave.openstack.org', u'created_at': u'2015-03-18 14:43:45', u'description': u'', u'topic': u'dhcp_agent', u'agent_type': u'DHCP agent', u'id': u'25ea8e00-36e8-4408-9b00-d60e8b3a9b39'}, {u'alive': True, u'started_at': u'2015-03-18 14:43:45', u'admin_state_up': True, u'binary': u'neutron-lbaas-agent', u'host': u'devstack-trusty-rax-ord-1343601.slave.openstack.o rg', u'created_at': u'2015-03-18 14:43:45', u'description': None, u'topic': u'n-lbaas_agent', u'agent_type': u'Loadbalancer agent', u'id': u'667de509-9eb8-4350-9f42-9a8511b85e06'}, {u'alive': True, u'started_at': u'2015-03-18 14:43:45', u'admin_state_up': True, u'binary': u'neutron-openvswitch-agent', u'host': u'devstack-trusty-rax-ord-1343601.slave.openstack.org', u'created_at': u'2015-03-18 14:43:45', u'description': None, u'topic': u'N/A', u'agent_type': u'Open vSwitch agent', u'id': u'68006b4f-4950-46d6-b660-ddbe23c9b30c'}, {u'alive': True, u'started_at': u'2015-03-18 14:43:45', u'admin_state_up': True, u'binary': u'neutron-metering-agent', u'host': u'devstack-trusty-rax-ord-1343601.slave.openstack.org', u'created_at': u'2015-03-18 14:43:45', u'description': None, u'topic': u'metering_agent', u'agent_type': u'Metering agent', u'id': u'8f0f8c3a-b8fe-41c8-ad3a-191e26dd71a4'}, {u'alive': True, u'started_at': u'2015-03-18 14:43:45', u'admin_state_up': True, u'binary': u'neutron-l3-a gent', u'host': u'devstack-trusty-rax-ord-1343601.slave.openstack.org', u'created_at': u'2015-03-18 14:43:45', u'description': None, u'topic': u'l3_agent', u'agent_type': u'L3 agent', u'id': u'f1ed957b-68ed-4669-9c85-84cac8095561'}, {u'alive': True, u'started_at': u'2015-03-18 14:43:45', u'admin_state_up': True, u'binary': u'neutron-metadata-agent', u'host': u'devstack-trusty-rax-ord-1343601.slave.openstack.org', u'created_at': u'2015-03-18 14:43:45', u'description': None, u'topic': u'N/A', u'agent_type': u'Metadata agent', u'id': u'fa4d51c9-5bbc-4a0b-b6f7-22f60eef742f'}] To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1437124/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp