tempest test test_create_update_delete_port and test_create_list_update_show_delete_security_group fails at times

Bug #1474804 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
New
High
Sahil Sabharwal

Bug Description

3.0 mainline Ubuntu 12.04.4

During CI, it was seen that test test_create_update_delete_port fails sometimes.
It is seen that the updated display_name is not reflected.

(Pdb) l 60
 55 def test_create_update_delete_port(self):
 56 # Verify port creation
 57 resp, body = self.client.create_port(network_id=self.network['id'])
 58 self.assertEqual('201', resp['status'])
 59 port = body['port']
 60 # Schedule port deletion with verification upon test completion
 61 self.addCleanup(self._delete_port, port['id'])
 62 self.assertTrue(port['admin_state_up'])
 63 # Verify port update
 64 new_name = "New_Port"
 65 resp, body = self.client.update_port(
(Pdb) l
 66 port['id'],
 67 name=new_name,
 68 admin_state_up=False)
 69 self.assertEqual('200', resp['status'])
 70 updated_port = body['port']
 71 if updated_port['name'] != new_name:
 72 import pdb; pdb.set_trace()
 73 -> self.assertEqual(updated_port['name'], new_name)
 74 self.assertFalse(updated_port['admin_state_up'])
 75
 76 @test.attr(type='smoke')
(Pdb) print port['id']
a193801f-d5dd-452e-8443-5d35a6075a21
(Pdb)
(Pdb) print updated_port
{u'status': u'DOWN', u'name': u'a193801f-d5dd-452e-8443-5d35a6075a21', u'admin_state_up': True, u'network_id': u'd2769e1a-297c-4716-8bdd-dc11289aa06a', u'tenant_id': u'2e1f4eb6d8964c8d9f5ed0386015d87b', u'device_owner': u'', u'mac_address': u'02:a1:93:80:1f:d5', u'fixed_ips': [], u'id': u'a193801f-d5dd-452e-8443-5d35a6075a21', u'security_groups': [u'9ce0579e-d366-4779-8547-3c3a85b6f1cf'], u'device_id': u''}
(Pdb) print new_name
New_Port
(Pdb)

From contrail-logs, it is seen that after the contrail-api updates the name to "New_Port", contrail-schema overwrote this immediately.

2015 Jul 15 03:11:01.866126 ci-oc-subslave-ubuntu-10-84-58-39-1.localdomain.com [Config:contrail-api:0:__default__][SYS_INFO] : VncApiConfigLog:3776 [VncApiCommon: identifier_uuid = a193801f-d5dd-452e-8443-5d35a6075a21, object_type = virtual_machine_interface, identifier_name = default-domain:PortsTestJSON-2090200502:a193801f-d5dd-452e-8443-5d35a6075a21, url = http://127.0.0.1:9100/virtual-machine-interface/a193801f-d5dd-452e-8443-5d35a6075a21, operation = put, useragent = ci-oc-subslave-ubuntu-10-84-58-39-1.localdomain.com:/usr/bin/contrail-api, remote_ip = 127.0.0.1:9100, body = {u'virtual-machine-interface': {u'id_perms': {u'enable': False, u'uuid': {u'uuid_mslong': 11642790335903253806L, u'uuid_lslong': 9530563721446251041L}, u'creator': None, u'created': u'2015-07-15T10:11:01.630905', u'user_visible': True, u'last_modified': u'2015-07-15T10:11:01.630905', u'permissions': {u'owner': u'neutron', u'owner_access': 7, u'other_access': 7, u'group': u'_member_', u'group_access': 7}, u'description': None}, u'display_name': u'New_Port', u'uuid': u'a193801f-d5dd-452e-8443-5d35a6075a21'}}, domain = default-domain, project = service, user = neutron]
2015 Jul 15 03:11:01.879841 ci-oc-subslave-ubuntu-10-84-58-39-1.localdomain.com [Config:contrail-api:0:__default__][SYS_INFO] : VncApiConfigLog:3777 [VncApiCommon: identifier_uuid = a193801f-d5dd-452e-8443-5d35a6075a21, object_type = virtual_machine_interface, identifier_name = default-domain:PortsTestJSON-2090200502:a193801f-d5dd-452e-8443-5d35a6075a21, url = http://192.168.0.15:8082/virtual-machine-interface/a193801f-d5dd-452e-8443-5d35a6075a21, operation = put, useragent = ci-oc-subslave-ubuntu-10-84-58-39-1.localdomain.com:/usr/bin/contrail-schema, remote_ip = 192.168.0.15:8082, body = {u'virtual-machine-interface': {u'fq_name': [u'default-domain', u'PortsTestJSON-2090200502', u'a193801f-d5dd-452e-8443-5d35a6075a21'], u'uuid': u'a193801f-d5dd-452e-8443-5d35a6075a21', u'parent_type': u'project', u'id_perms': {u'enable': True, u'uuid': {u'uuid_mslong': 11642790335903253806L, u'uuid_lslong': 9530563721446251041L}, u'creator': None, u'created': u'2015-07-15T10:11:01.630905', u'user_visible': True, u'last_modified': u'2015-07-15T10:11:01.630905', u'permissions': {u'owner': u'neutron', u'owner_access': 7, u'other_access': 7, u'group': u'_member_', u'group_access': 7}, u'description': None}, u'virtual_machine_interface_device_owner': u'', u'display_name': u'a193801f-d5dd-452e-8443-5d35a6075a21', u'virtual_machine_interface_mac_addresses': {u'mac_address': [u'02:a1:93:80:1f:d5']}}}, domain = default-domain, project = admin, user = admin]

Full contrail logs is attached

Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote :
Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote :

Similar behavior seen for test test_create_list_update_show_delete_security_group as well.

2015 Jul 15 06:48:39.620873 ci-oc-subslave-ubuntu-10-84-58-39-1.localdomain.com [Config:contrail-api:0:__default__][SYS_INFO] : VncApiConfigLog:3982 [VncApiCommon: identifier_uuid = cfa45cdb-1953-4612-b5b8-3fca98229382, object_type = security_group, identifier_name = default-domain:SecGroupTestXML-509305018:secgroup--2115551577, url = http://127.0.0.1:9100/security-group/cfa45cdb-1953-4612-b5b8-3fca98229382, operation = put, useragent = ci-oc-subslave-ubuntu-10-84-58-39-1.localdomain.com:/usr/bin/contrail-api, remote_ip = 127.0.0.1:9100, body = {u'security-group': {u'id_perms': {u'enable': True, u'uuid': {u'uuid_mslong': 14962185958124111378L, u'uuid_lslong': 13094286055948063618L}, u'creator': None, u'created': u'2015-07-15T13:48:39.409752', u'user_visible': True, u'last_modified': u'2015-07-15T13:48:39.438467', u'permissions': {u'owner': u'neutron', u'owner_access': 7, u'other_access': 7, u'group': u'_member_', u'group_access': 7}, u'description': u'security-description-2080977838'}, u'display_name': u'security--1843937143', u'uuid': u'cfa45cdb-1953-4612-b5b8-3fca98229382'}}, domain = default-domain, project = service, user = neutron]

2015 Jul 15 06:48:39.651892 ci-oc-subslave-ubuntu-10-84-58-39-1.localdomain.com [Config:contrail-api:0:__default__][SYS_INFO] : VncApiConfigLog:3983 [VncApiCommon: identifier_uuid = cfa45cdb-1953-4612-b5b8-3fca98229382, object_type = security_group, identifier_name = default-domain:SecGroupTestXML-509305018:secgroup--2115551577, url = http://192.168.0.15:8082/security-group/cfa45cdb-1953-4612-b5b8-3fca98229382, operation = put, useragent = ci-oc-subslave-ubuntu-10-84-58-39-1.localdomain.com:/usr/bin/contrail-schema, remote_ip = 192.168.0.15:8082, body = {u'security-group': {u'fq_name': [u'default-domain', u'SecGroupTestXML-509305018', u'secgroup--2115551577'], u'uuid': u'cfa45cdb-1953-4612-b5b8-3fca98229382', u'parent_type': u'project', u'security_group_id': 8000004, u'id_perms': {u'enable': True, u'uuid': {u'uuid_mslong': 14962185958124111378L, u'uuid_lslong': 13094286055948063618L}, u'creator': None, u'created': u'2015-07-15T13:48:39.409752', u'user_visible': True, u'last_modified': u'2015-07-15T13:48:39.438467', u'permissions': {u'owner': u'neutron', u'owner_access': 7, u'other_access': 7, u'group': u'_member_', u'group_access': 7}, u'description': u''}, u'security_group_entries': {u'policy_rule': [{u'direction': u'>', u'protocol': u'any', u'dst_addresses': [{u'security_group': None, u'subnet': {u'ip_prefix': u'0.0.0.0', u'ip_prefix_len': 0}, u'network_policy': None, u'virtual_network': None}], u'action_list': None, u'rule_uuid': u'be1a3922-1ac1-447d-913a-20b744202d7c', u'dst_ports': [{u'end_port': 65535, u'start_port': 0}], u'application': [], u'ethertype': u'IPv4', u'src_addresses': [{u'security_group': u'local', u'subnet': None, u'network_policy': None, u'virtual_network': None}], u'rule_sequence': None, u'src_ports': [{u'end_port': 65535, u'start_port': 0}]}]}, u'display_name': u'secgroup--2115551577'}}, domain = default-domain, project = admin, user = admin]

summary: - tempest test test_create_update_delete_port fails at times
+ tempest test test_create_update_delete_port and
+ test_create_list_update_show_delete_security_group fails at times
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.