2024-11-08 13:59:38,127 - INFO - Domain Default found not creating 2024-11-08 13:59:38,294 - INFO - Project ctest-TestBasicPolicy-25311271 not found, creating it 2024-11-08 13:59:38,787 - INFO - Created Project:ctest-TestBasicPolicy-25311271, ID : 370c3c7b-d5a4-43bd-8bbf-91690b8557bd 2024-11-08 13:59:40,255 - INFO - ================================================================================ 2024-11-08 13:59:40,256 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-08 13:59:40,256 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2024-11-08 13:59:40,515 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.13': '0'}} with 2024-11-08 13:59:40,515 - INFO - Initial checks done. Running the testcase now 2024-11-08 13:59:40,516 - INFO - 2024-11-08 13:59:41,129 - DEBUG - Response for create_network : {'network': {'id': '4a1ddb19-d0ce-46c5-8f86-3819c4b39190', 'name': 'ctest-vn-01982695', 'tenant_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'project_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25311271', 'ctest-vn-01982695'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 13:59:41,335 - DEBUG - Response for create_subnet : {'subnet': {'id': '80d4af21-fb96-4165-bb77-6f4844a94ab1', 'name': '', 'tenant_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'network_id': '4a1ddb19-d0ce-46c5-8f86-3819c4b39190', 'ip_version': 4, 'cidr': '70.127.253.128/26', 'allocation_pools': [{'start': '70.127.253.130', 'end': '70.127.253.190'}], 'gateway_ip': '70.127.253.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.127.253.130', 'tags': [], 'project_id': '370c3c7bd5a443bd8bbf91690b8557bd'}} 2024-11-08 13:59:41,355 - INFO - Created VN ctest-vn-01982695 2024-11-08 13:59:41,413 - DEBUG - VN ctest-vn-01982695 UUID is 4a1ddb19-d0ce-46c5-8f86-3819c4b39190 2024-11-08 13:59:41,730 - DEBUG - Response for create_network : {'network': {'id': '1429e29d-4f2a-4a25-b15d-bc64be71a6cf', 'name': 'ctest-vn-51077479', 'tenant_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'project_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25311271', 'ctest-vn-51077479'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 13:59:41,966 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0f5694f-5f48-450c-93c4-367ad22dd13f', 'name': '', 'tenant_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'network_id': '1429e29d-4f2a-4a25-b15d-bc64be71a6cf', 'ip_version': 4, 'cidr': '172.138.184.64/26', 'allocation_pools': [{'start': '172.138.184.66', 'end': '172.138.184.126'}], 'gateway_ip': '172.138.184.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.138.184.66', 'tags': [], 'project_id': '370c3c7bd5a443bd8bbf91690b8557bd'}} 2024-11-08 13:59:41,983 - INFO - Created VN ctest-vn-51077479 2024-11-08 13:59:42,037 - DEBUG - VN ctest-vn-51077479 UUID is 1429e29d-4f2a-4a25-b15d-bc64be71a6cf 2024-11-08 13:59:42,135 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-01982695, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-51077479, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2024-11-08 13:59:42,457 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a1ddb19-d0ce-46c5-8f86-3819c4b39190', 'name': 'ctest-vn-01982695', 'tenant_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'project_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80d4af21-fb96-4165-bb77-6f4844a94ab1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25311271', 'ctest-vn-01982695'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25311271', 'ctest-policy-allow-all-97051792']], 'subnet_ipam': [{'subnet_cidr': '70.127.253.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 13:59:42,706 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1429e29d-4f2a-4a25-b15d-bc64be71a6cf', 'name': 'ctest-vn-51077479', 'tenant_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'project_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0f5694f-5f48-450c-93c4-367ad22dd13f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25311271', 'ctest-vn-51077479'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25311271', 'ctest-policy-allow-all-97051792']], 'subnet_ipam': [{'subnet_cidr': '172.138.184.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 13:59:42,913 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-11-08 13:59:43,210 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-11-08 13:59:43,241 - DEBUG - Requesting: http://10.0.0.52:8082/domain/7b25375f-6760-4ddf-a546-aa8d80397841 2024-11-08 13:59:43,256 - DEBUG - Requesting: http://10.0.0.52:8082/project/370c3c7b-d5a4-43bd-8bbf-91690b8557bd 2024-11-08 13:59:43,355 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4a1ddb19-d0ce-46c5-8f86-3819c4b39190 2024-11-08 13:59:43,369 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4a1ddb19-d0ce-46c5-8f86-3819c4b39190 2024-11-08 13:59:43,383 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/82088a9a-cb18-4a5a-ab1b-953fc27ad3b9 2024-11-08 13:59:43,391 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/82088a9a-cb18-4a5a-ab1b-953fc27ad3b9 2024-11-08 13:59:43,400 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/fb134b3d-e2b7-403e-9335-4c0d8a58d051 2024-11-08 13:59:43,408 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 13:59:43,408 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4a1ddb19-d0ce-46c5-8f86-3819c4b39190 2024-11-08 13:59:43,422 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/82088a9a-cb18-4a5a-ab1b-953fc27ad3b9 2024-11-08 13:59:43,439 - INFO - Verified VN network id 8 for VN 4a1ddb19-d0ce-46c5-8f86-3819c4b39190 2024-11-08 13:59:43,439 - INFO - Verifications in API Server for VN ctest-vn-01982695 passed 2024-11-08 13:59:43,439 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4a1ddb19-d0ce-46c5-8f86-3819c4b39190 2024-11-08 13:59:43,451 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/82088a9a-cb18-4a5a-ab1b-953fc27ad3b9 2024-11-08 13:59:43,459 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/82088a9a-cb18-4a5a-ab1b-953fc27ad3b9 2024-11-08 13:59:43,466 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/fb134b3d-e2b7-403e-9335-4c0d8a58d051 2024-11-08 13:59:43,478 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-01982695', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25311271', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5340665637055121093', 'uuid-lslong': '10342015277628363152'}, 'enable': 'true', 'created': '2024-11-08T13:59:41', 'last-modified': '2024-11-08T13:59:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.051016'} 2024-11-08 13:59:43,486 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 13:59:43,486 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01982695 passed 2024-11-08 13:59:43,487 - DEBUG - ====Verifying policy data for ctest-vn-01982695 in API_Server ====== 2024-11-08 13:59:43,487 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-11-08 13:59:43,493 - DEBUG - Requesting: http://10.0.0.52:8082/domain/7b25375f-6760-4ddf-a546-aa8d80397841 2024-11-08 13:59:43,505 - DEBUG - Requesting: http://10.0.0.52:8082/project/370c3c7b-d5a4-43bd-8bbf-91690b8557bd 2024-11-08 13:59:43,579 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4a1ddb19-d0ce-46c5-8f86-3819c4b39190 2024-11-08 13:59:43,592 - DEBUG - ==>Verifying data for policy with id: 962f0018-623d-47eb-a8d5-cf185c5c3e6e, fqn: ['default-domain', 'ctest-TestBasicPolicy-25311271', 'ctest-policy-allow-all-97051792'] 2024-11-08 13:59:43,592 - INFO - VN ctest-vn-01982695 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 13:59:43,592 - DEBUG - Verifying the vn in opserver 2024-11-08 13:59:43,592 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-01982695 virtual network link through opserver 10.0.0.52 2024-11-08 13:59:43,593 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2024-11-08 13:59:43,899 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2024-11-08 13:59:43,961 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-01982695', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-01982695?flat'} 2024-11-08 13:59:43,961 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-01982695 is found in opserver 2024-11-08 13:59:43,972 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 13:59:43,978 - DEBUG - VRF ids for VN ctest-vn-01982695: {} 2024-11-08 13:59:43,978 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-11-08 13:59:43,984 - DEBUG - Requesting: http://10.0.0.52:8082/domain/7b25375f-6760-4ddf-a546-aa8d80397841 2024-11-08 13:59:43,997 - DEBUG - Requesting: http://10.0.0.52:8082/project/370c3c7b-d5a4-43bd-8bbf-91690b8557bd 2024-11-08 13:59:44,079 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/1429e29d-4f2a-4a25-b15d-bc64be71a6cf 2024-11-08 13:59:44,095 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/1429e29d-4f2a-4a25-b15d-bc64be71a6cf 2024-11-08 13:59:44,109 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/29724531-5ada-45e7-a9ff-0f0e3d0679f7 2024-11-08 13:59:44,118 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/29724531-5ada-45e7-a9ff-0f0e3d0679f7 2024-11-08 13:59:44,127 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/8561ecf0-0447-49e8-963b-fc42acee87f1 2024-11-08 13:59:44,137 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-08 13:59:44,137 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/1429e29d-4f2a-4a25-b15d-bc64be71a6cf 2024-11-08 13:59:44,151 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/29724531-5ada-45e7-a9ff-0f0e3d0679f7 2024-11-08 13:59:44,175 - INFO - Verified VN network id 9 for VN 1429e29d-4f2a-4a25-b15d-bc64be71a6cf 2024-11-08 13:59:44,175 - INFO - Verifications in API Server for VN ctest-vn-51077479 passed 2024-11-08 13:59:44,175 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/1429e29d-4f2a-4a25-b15d-bc64be71a6cf 2024-11-08 13:59:44,189 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/29724531-5ada-45e7-a9ff-0f0e3d0679f7 2024-11-08 13:59:44,197 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/29724531-5ada-45e7-a9ff-0f0e3d0679f7 2024-11-08 13:59:44,204 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/8561ecf0-0447-49e8-963b-fc42acee87f1 2024-11-08 13:59:44,218 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-51077479', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25311271', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1452941520069610021', 'uuid-lslong': '12780578458425206479'}, 'enable': 'true', 'created': '2024-11-08T13:59:41', 'last-modified': '2024-11-08T13:59:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.537247'} 2024-11-08 13:59:44,224 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-08 13:59:44,225 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51077479 passed 2024-11-08 13:59:44,225 - DEBUG - ====Verifying policy data for ctest-vn-51077479 in API_Server ====== 2024-11-08 13:59:44,225 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-11-08 13:59:44,231 - DEBUG - Requesting: http://10.0.0.52:8082/domain/7b25375f-6760-4ddf-a546-aa8d80397841 2024-11-08 13:59:44,243 - DEBUG - Requesting: http://10.0.0.52:8082/project/370c3c7b-d5a4-43bd-8bbf-91690b8557bd 2024-11-08 13:59:44,338 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/1429e29d-4f2a-4a25-b15d-bc64be71a6cf 2024-11-08 13:59:44,353 - DEBUG - ==>Verifying data for policy with id: 962f0018-623d-47eb-a8d5-cf185c5c3e6e, fqn: ['default-domain', 'ctest-TestBasicPolicy-25311271', 'ctest-policy-allow-all-97051792'] 2024-11-08 13:59:44,353 - INFO - VN ctest-vn-51077479 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 13:59:44,353 - DEBUG - Verifying the vn in opserver 2024-11-08 13:59:44,353 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-51077479 virtual network link through opserver 10.0.0.52 2024-11-08 13:59:44,353 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2024-11-08 13:59:44,365 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-51077479', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-51077479?flat'} 2024-11-08 13:59:44,365 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-51077479 is found in opserver 2024-11-08 13:59:44,377 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 13:59:44,383 - DEBUG - VRF ids for VN ctest-vn-51077479: {} 2024-11-08 13:59:44,443 - DEBUG - Services list from nova: [, , ] 2024-11-08 13:59:45,513 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2227-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2227-1) 2024-11-08 13:59:46,859 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2227-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2227-1) 2024-11-08 13:59:46,859 - INFO - Waiting for VM ctest-TestBasicPolicy-25311271-98545258 to be up.. 2024-11-08 13:59:46,983 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 13:59:52,068 - DEBUG - VM is in ACTIVE state now 2024-11-08 13:59:52,068 - INFO - VM name : ctest-TestBasicPolicy-25311271-98545258 2024-11-08 13:59:52,144 - DEBUG - VM ctest-TestBasicPolicy-25311271-98545258 ID is 23a2e6a9-258c-4be6-a754-d43a218a6bdb 2024-11-08 13:59:52,160 - DEBUG - VM ctest-TestBasicPolicy-25311271-98545258 launched on Node cn-jenkins-deploy-platform-ansible-os-2227-1 2024-11-08 13:59:52,239 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/23a2e6a9-258c-4be6-a754-d43a218a6bdb 2024-11-08 13:59:52,249 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/de140eac-925d-410a-ac02-72f45077d90a 2024-11-08 13:59:55,518 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1016ms') 2024-11-08 13:59:55,518 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25311271-98545258 failed! 2024-11-08 13:59:55,581 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-01982695 is 70.127.253.129 and allocation pool is NOT set 2024-11-08 13:59:57,646 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=3.09 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.348 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.348/1.718/3.088/1.370 ms') 2024-11-08 13:59:57,646 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25311271-98545258 passed 2024-11-08 13:59:57,805 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 13:59:57,805 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25311271-98545258, IP 70.127.253.131, Port 22 2024-11-08 13:59:57,982 - DEBUG - VM ctest-TestBasicPolicy-25311271-98545258 is ready for SSH connections 2024-11-08 13:59:57,983 - INFO - Waiting for VM ctest-TestBasicPolicy-25311271-32442037 to be up.. 2024-11-08 13:59:58,073 - DEBUG - VM is in ACTIVE state now 2024-11-08 13:59:58,073 - INFO - VM name : ctest-TestBasicPolicy-25311271-32442037 2024-11-08 13:59:58,148 - DEBUG - VM ctest-TestBasicPolicy-25311271-32442037 ID is 96b9e6d8-1010-4b8e-9e33-5b6230bdf9b7 2024-11-08 13:59:58,149 - DEBUG - VM ctest-TestBasicPolicy-25311271-32442037 launched on Node cn-jenkins-deploy-platform-ansible-os-2227-1 2024-11-08 13:59:58,224 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/96b9e6d8-1010-4b8e-9e33-5b6230bdf9b7 2024-11-08 13:59:58,234 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/685fc388-0e80-41fb-a63e-ae8689fb2f18 2024-11-08 13:59:59,495 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=2.74 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.408 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.408/1.572/2.737/1.164 ms') 2024-11-08 13:59:59,495 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-25311271-32442037 passed 2024-11-08 13:59:59,649 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 13:59:59,649 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25311271-32442037, IP 172.138.184.67, Port 22 2024-11-08 13:59:59,816 - DEBUG - VM ctest-TestBasicPolicy-25311271-32442037 is ready for SSH connections 2024-11-08 13:59:59,816 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 13:59:59,816 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 172.138.184.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2024-11-08 13:59:59,816 - DEBUG - ping -s 56 -c 3 -W 1 172.138.184.67 2024-11-08 14:00:03,848 - DEBUG - PING 172.138.184.67 (172.138.184.67): 56 data bytes 64 bytes from 172.138.184.67: seq=0 ttl=63 time=3.927 ms 64 bytes from 172.138.184.67: seq=1 ttl=63 time=1.146 ms 64 bytes from 172.138.184.67: seq=2 ttl=63 time=0.944 ms --- 172.138.184.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.944/2.005/3.927 ms 2024-11-08 14:00:03,848 - INFO - Ping to IP 172.138.184.67 from VM ctest-TestBasicPolicy-25311271-98545258 passed 2024-11-08 14:00:04,040 - DEBUG - Policy Update Response {"network-policy": {"uuid": "962f0018-623d-47eb-a8d5-cf185c5c3e6e", "href": "http://10.0.0.52:8082/network-policy/962f0018-623d-47eb-a8d5-cf185c5c3e6e"}} 2024-11-08 14:00:04,041 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 14:00:04,041 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 172.138.184.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2024-11-08 14:00:04,041 - DEBUG - ping -s 56 -c 3 -W 1 172.138.184.67 2024-11-08 14:00:07,261 - DEBUG - PING 172.138.184.67 (172.138.184.67): 56 data bytes 64 bytes from 172.138.184.67: seq=0 ttl=63 time=2.557 ms --- 172.138.184.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.557/2.557/2.557 ms 2024-11-08 14:00:07,261 - WARNING - Ping to IP 172.138.184.67 from VM ctest-TestBasicPolicy-25311271-98545258 failed 2024-11-08 14:00:07,261 - INFO - Deleting VM ctest-TestBasicPolicy-25311271-32442037 2024-11-08 14:00:07,339 - INFO - Deleting VM ctest-TestBasicPolicy-25311271-98545258 2024-11-08 14:00:07,791 - INFO - Deleted policy ctest-policy-allow-all-97051792 2024-11-08 14:00:07,792 - INFO - Deleting VN ctest-vn-51077479 2024-11-08 14:00:07,846 - DEBUG - VN 1429e29d-4f2a-4a25-b15d-bc64be71a6cf still in use: Unable to complete operation on network 1429e29d-4f2a-4a25-b15d-bc64be71a6cf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f84e771b-b541-42a5-a52a-18c3fe505959'] 2024-11-08 14:00:07,846 - WARNING - Deleting VN ctest-vn-51077479 failed..Will retry 2024-11-08 14:00:09,949 - DEBUG - Response for deleting network () 2024-11-08 14:00:09,949 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/29724531-5ada-45e7-a9ff-0f0e3d0679f7 2024-11-08 14:00:09,954 - DEBUG - Response Code: 404 2024-11-08 14:00:09,954 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-11-08 14:00:09,961 - DEBUG - Requesting: http://10.0.0.52:8082/domain/7b25375f-6760-4ddf-a546-aa8d80397841 2024-11-08 14:00:10,019 - DEBUG - Requesting: http://10.0.0.52:8082/project/370c3c7b-d5a4-43bd-8bbf-91690b8557bd 2024-11-08 14:00:10,099 - INFO - Validated that VN ctest-vn-51077479 is not found in API Server 2024-11-08 14:00:10,112 - DEBUG - VN ctest-vn-51077479 is not present in Agent 10.0.0.52 2024-11-08 14:00:10,112 - INFO - Validated that VN ctest-vn-51077479 is not in any agent 2024-11-08 14:00:10,127 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-51077479 info 2024-11-08 14:00:10,127 - INFO - Deleting VN ctest-vn-01982695 2024-11-08 14:00:10,250 - DEBUG - Response for deleting network () 2024-11-08 14:00:10,250 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/82088a9a-cb18-4a5a-ab1b-953fc27ad3b9 2024-11-08 14:00:10,258 - DEBUG - Response Code: 404 2024-11-08 14:00:10,258 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-11-08 14:00:10,265 - DEBUG - Requesting: http://10.0.0.52:8082/domain/7b25375f-6760-4ddf-a546-aa8d80397841 2024-11-08 14:00:10,323 - DEBUG - Requesting: http://10.0.0.52:8082/project/370c3c7b-d5a4-43bd-8bbf-91690b8557bd 2024-11-08 14:00:10,407 - INFO - Validated that VN ctest-vn-01982695 is not found in API Server 2024-11-08 14:00:10,419 - DEBUG - VN ctest-vn-01982695 is not present in Agent 10.0.0.52 2024-11-08 14:00:10,419 - INFO - Validated that VN ctest-vn-01982695 is not in any agent 2024-11-08 14:00:10,437 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-01982695 info 2024-11-08 14:00:10,690 - DEBUG - No XMPP flaps were noticed during the test 2024-11-08 14:00:10,691 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-11-08 14:00:10,691 - INFO - -------------------------------------------------------------------------------- 2024-11-08 14:00:11,366 - INFO - Deleted project: ctest-TestBasicPolicy-25311271, ID : 370c3c7b-d5a4-43bd-8bbf-91690b8557bd