2024-09-05 14:08:02,680 - INFO - Domain Default found not creating 2024-09-05 14:08:02,933 - INFO - Project ctest-TestBasicPolicy-52877586 not found, creating it 2024-09-05 14:08:03,412 - INFO - Created Project:ctest-TestBasicPolicy-52877586, ID : fec0a4c5-54a4-4969-9b6e-00072f1be715 2024-09-05 14:08:04,924 - INFO - ================================================================================ 2024-09-05 14:08:04,924 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-05 14:08:04,924 - 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-09-05 14:08:05,193 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.18': '0'}} with 2024-09-05 14:08:05,193 - INFO - Initial checks done. Running the testcase now 2024-09-05 14:08:05,193 - INFO - 2024-09-05 14:08:06,003 - DEBUG - Response for create_network : {'network': {'id': 'a63a0743-970a-443a-8478-c7acc8096cd9', 'name': 'ctest-vn-68104418', 'tenant_id': 'fec0a4c554a449699b6e00072f1be715', 'project_id': 'fec0a4c554a449699b6e00072f1be715', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52877586', 'ctest-vn-68104418'], 'port_security_enabled': True, 'description': ''}} 2024-09-05 14:08:06,431 - DEBUG - Response for create_subnet : {'subnet': {'id': '136f17cf-db69-42ae-afac-2e949e29f5b9', 'name': '', 'tenant_id': 'fec0a4c554a449699b6e00072f1be715', 'network_id': 'a63a0743-970a-443a-8478-c7acc8096cd9', 'ip_version': 4, 'cidr': '6.226.231.192/26', 'allocation_pools': [{'start': '6.226.231.194', 'end': '6.226.231.254'}], 'gateway_ip': '6.226.231.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.226.231.194', 'tags': [], 'project_id': 'fec0a4c554a449699b6e00072f1be715'}} 2024-09-05 14:08:06,454 - INFO - Created VN ctest-vn-68104418 2024-09-05 14:08:06,504 - DEBUG - VN ctest-vn-68104418 UUID is a63a0743-970a-443a-8478-c7acc8096cd9 2024-09-05 14:08:06,809 - DEBUG - Response for create_network : {'network': {'id': 'c91255f4-fc9a-4cb1-880b-d17e462922e9', 'name': 'ctest-vn-71163008', 'tenant_id': 'fec0a4c554a449699b6e00072f1be715', 'project_id': 'fec0a4c554a449699b6e00072f1be715', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52877586', 'ctest-vn-71163008'], 'port_security_enabled': True, 'description': ''}} 2024-09-05 14:08:06,987 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9ab0fd4-4bcb-4c9b-acc2-d28c6f946c54', 'name': '', 'tenant_id': 'fec0a4c554a449699b6e00072f1be715', 'network_id': 'c91255f4-fc9a-4cb1-880b-d17e462922e9', 'ip_version': 4, 'cidr': '222.235.150.128/26', 'allocation_pools': [{'start': '222.235.150.130', 'end': '222.235.150.190'}], 'gateway_ip': '222.235.150.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.235.150.130', 'tags': [], 'project_id': 'fec0a4c554a449699b6e00072f1be715'}} 2024-09-05 14:08:07,008 - INFO - Created VN ctest-vn-71163008 2024-09-05 14:08:07,060 - DEBUG - VN ctest-vn-71163008 UUID is c91255f4-fc9a-4cb1-880b-d17e462922e9 2024-09-05 14:08:07,185 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-68104418, 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-52877586:ctest-vn-71163008, 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-09-05 14:08:07,495 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a63a0743-970a-443a-8478-c7acc8096cd9', 'name': 'ctest-vn-68104418', 'tenant_id': 'fec0a4c554a449699b6e00072f1be715', 'project_id': 'fec0a4c554a449699b6e00072f1be715', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['136f17cf-db69-42ae-afac-2e949e29f5b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52877586', 'ctest-vn-68104418'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52877586', 'ctest-policy-allow-all-69682746']], 'subnet_ipam': [{'subnet_cidr': '6.226.231.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-05 14:08:07,748 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c91255f4-fc9a-4cb1-880b-d17e462922e9', 'name': 'ctest-vn-71163008', 'tenant_id': 'fec0a4c554a449699b6e00072f1be715', 'project_id': 'fec0a4c554a449699b6e00072f1be715', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9ab0fd4-4bcb-4c9b-acc2-d28c6f946c54'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52877586', 'ctest-vn-71163008'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52877586', 'ctest-policy-allow-all-69682746']], 'subnet_ipam': [{'subnet_cidr': '222.235.150.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-05 14:08:07,924 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-05 14:08:08,224 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-05 14:08:08,256 - DEBUG - Requesting: http://10.0.0.33:8082/domain/bf13edcc-4504-407b-b0e7-e9e6eeca28eb 2024-09-05 14:08:08,270 - DEBUG - Requesting: http://10.0.0.33:8082/project/fec0a4c5-54a4-4969-9b6e-00072f1be715 2024-09-05 14:08:08,342 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a63a0743-970a-443a-8478-c7acc8096cd9 2024-09-05 14:08:08,353 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a63a0743-970a-443a-8478-c7acc8096cd9 2024-09-05 14:08:08,362 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a93b7649-e005-4ba2-9411-f4162b8b7b97 2024-09-05 14:08:08,370 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a93b7649-e005-4ba2-9411-f4162b8b7b97 2024-09-05 14:08:08,377 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/95866ca9-fa10-4f9e-961f-45282538a6da 2024-09-05 14:08:08,384 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-05 14:08:08,384 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a63a0743-970a-443a-8478-c7acc8096cd9 2024-09-05 14:08:08,394 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a93b7649-e005-4ba2-9411-f4162b8b7b97 2024-09-05 14:08:08,408 - INFO - Verified VN network id 9 for VN a63a0743-970a-443a-8478-c7acc8096cd9 2024-09-05 14:08:08,408 - INFO - Verifications in API Server for VN ctest-vn-68104418 passed 2024-09-05 14:08:08,408 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a63a0743-970a-443a-8478-c7acc8096cd9 2024-09-05 14:08:08,417 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a93b7649-e005-4ba2-9411-f4162b8b7b97 2024-09-05 14:08:08,425 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a93b7649-e005-4ba2-9411-f4162b8b7b97 2024-09-05 14:08:08,431 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/95866ca9-fa10-4f9e-961f-45282538a6da 2024-09-05 14:08:08,445 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-68104418', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52877586', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11977894145823491130', 'uuid-lslong': '9545598955116129497'}, 'enable': 'true', 'created': '2024-09-05T14:08:05', 'last-modified': '2024-09-05T14:08:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.972170'} 2024-09-05 14:08:08,453 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-05 14:08:08,453 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68104418 passed 2024-09-05 14:08:08,453 - DEBUG - ====Verifying policy data for ctest-vn-68104418 in API_Server ====== 2024-09-05 14:08:08,453 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-05 14:08:08,460 - DEBUG - Requesting: http://10.0.0.33:8082/domain/bf13edcc-4504-407b-b0e7-e9e6eeca28eb 2024-09-05 14:08:08,471 - DEBUG - Requesting: http://10.0.0.33:8082/project/fec0a4c5-54a4-4969-9b6e-00072f1be715 2024-09-05 14:08:08,545 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a63a0743-970a-443a-8478-c7acc8096cd9 2024-09-05 14:08:08,553 - DEBUG - ==>Verifying data for policy with id: 9acec983-4926-4f73-aee5-ce684071269a, fqn: ['default-domain', 'ctest-TestBasicPolicy-52877586', 'ctest-policy-allow-all-69682746'] 2024-09-05 14:08:08,554 - INFO - VN ctest-vn-68104418 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-05 14:08:08,554 - DEBUG - Verifying the vn in opserver 2024-09-05 14:08:08,554 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-68104418 virtual network link through opserver 10.0.0.33 2024-09-05 14:08:08,554 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-05 14:08:08,850 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-05 14:08:08,917 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-68104418', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-68104418?flat'} 2024-09-05 14:08:08,917 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-68104418 is found in opserver 2024-09-05 14:08:08,929 - DEBUG - Do not have enough data to verify VN in agent 2024-09-05 14:08:08,935 - DEBUG - VRF ids for VN ctest-vn-68104418: {} 2024-09-05 14:08:08,935 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-05 14:08:08,942 - DEBUG - Requesting: http://10.0.0.33:8082/domain/bf13edcc-4504-407b-b0e7-e9e6eeca28eb 2024-09-05 14:08:08,954 - DEBUG - Requesting: http://10.0.0.33:8082/project/fec0a4c5-54a4-4969-9b6e-00072f1be715 2024-09-05 14:08:09,024 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c91255f4-fc9a-4cb1-880b-d17e462922e9 2024-09-05 14:08:09,036 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c91255f4-fc9a-4cb1-880b-d17e462922e9 2024-09-05 14:08:09,045 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/adb1869a-8c66-4c68-9f7b-01b15f587715 2024-09-05 14:08:09,052 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/adb1869a-8c66-4c68-9f7b-01b15f587715 2024-09-05 14:08:09,060 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8e61ec7a-d8e0-474f-aebe-d74bba0860f5 2024-09-05 14:08:09,069 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-05 14:08:09,069 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c91255f4-fc9a-4cb1-880b-d17e462922e9 2024-09-05 14:08:09,077 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/adb1869a-8c66-4c68-9f7b-01b15f587715 2024-09-05 14:08:09,093 - INFO - Verified VN network id 10 for VN c91255f4-fc9a-4cb1-880b-d17e462922e9 2024-09-05 14:08:09,093 - INFO - Verifications in API Server for VN ctest-vn-71163008 passed 2024-09-05 14:08:09,093 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c91255f4-fc9a-4cb1-880b-d17e462922e9 2024-09-05 14:08:09,102 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/adb1869a-8c66-4c68-9f7b-01b15f587715 2024-09-05 14:08:09,111 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/adb1869a-8c66-4c68-9f7b-01b15f587715 2024-09-05 14:08:09,118 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8e61ec7a-d8e0-474f-aebe-d74bba0860f5 2024-09-05 14:08:09,131 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-71163008', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52877586', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14488737461902658737', 'uuid-lslong': '9803159354175202025'}, 'enable': 'true', 'created': '2024-09-05T14:08:06', 'last-modified': '2024-09-05T14:08:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.415139'} 2024-09-05 14:08:09,139 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-05 14:08:09,139 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71163008 passed 2024-09-05 14:08:09,139 - DEBUG - ====Verifying policy data for ctest-vn-71163008 in API_Server ====== 2024-09-05 14:08:09,139 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-05 14:08:09,147 - DEBUG - Requesting: http://10.0.0.33:8082/domain/bf13edcc-4504-407b-b0e7-e9e6eeca28eb 2024-09-05 14:08:09,160 - DEBUG - Requesting: http://10.0.0.33:8082/project/fec0a4c5-54a4-4969-9b6e-00072f1be715 2024-09-05 14:08:09,232 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c91255f4-fc9a-4cb1-880b-d17e462922e9 2024-09-05 14:08:09,242 - DEBUG - ==>Verifying data for policy with id: 9acec983-4926-4f73-aee5-ce684071269a, fqn: ['default-domain', 'ctest-TestBasicPolicy-52877586', 'ctest-policy-allow-all-69682746'] 2024-09-05 14:08:09,242 - INFO - VN ctest-vn-71163008 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-05 14:08:09,242 - DEBUG - Verifying the vn in opserver 2024-09-05 14:08:09,242 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-71163008 virtual network link through opserver 10.0.0.33 2024-09-05 14:08:09,242 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-09-05 14:08:09,256 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-71163008', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-71163008?flat'} 2024-09-05 14:08:09,256 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-71163008 is found in opserver 2024-09-05 14:08:09,267 - DEBUG - Do not have enough data to verify VN in agent 2024-09-05 14:08:09,273 - DEBUG - VRF ids for VN ctest-vn-71163008: {} 2024-09-05 14:08:09,333 - DEBUG - Services list from nova: [, , ] 2024-09-05 14:08:10,361 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1855-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1855-1) 2024-09-05 14:08:11,592 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1855-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1855-1) 2024-09-05 14:08:11,592 - INFO - Waiting for VM ctest-TestBasicPolicy-52877586-66648725 to be up.. 2024-09-05 14:08:11,706 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-05 14:08:16,787 - DEBUG - VM is in ACTIVE state now 2024-09-05 14:08:16,787 - INFO - VM name : ctest-TestBasicPolicy-52877586-66648725 2024-09-05 14:08:16,866 - DEBUG - VM ctest-TestBasicPolicy-52877586-66648725 ID is 721d34f2-6835-4735-b1bf-71fe3800d12b 2024-09-05 14:08:16,886 - DEBUG - VM ctest-TestBasicPolicy-52877586-66648725 launched on Node cn-jenkins-deploy-platform-ansible-os-1855-1 2024-09-05 14:08:16,968 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/721d34f2-6835-4735-b1bf-71fe3800d12b 2024-09-05 14:08:16,977 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/fc9de2f6-0246-4ce0-9065-6c32d615daf8 2024-09-05 14:08:20,226 - 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 1011ms') 2024-09-05 14:08:20,226 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52877586-66648725 failed! 2024-09-05 14:08:20,284 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-52877586:ctest-vn-68104418 is 6.226.231.193 and allocation pool is NOT set 2024-09-05 14:08:22,347 - 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=4.24 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.407 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.407/2.324/4.242/1.917 ms') 2024-09-05 14:08:22,347 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52877586-66648725 passed 2024-09-05 14:08:22,496 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 14:08:22,496 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-52877586-66648725, IP 6.226.231.195, Port 22 2024-09-05 14:08:22,670 - DEBUG - VM ctest-TestBasicPolicy-52877586-66648725 is ready for SSH connections 2024-09-05 14:08:22,670 - INFO - Waiting for VM ctest-TestBasicPolicy-52877586-30926201 to be up.. 2024-09-05 14:08:22,756 - DEBUG - VM is in ACTIVE state now 2024-09-05 14:08:22,756 - INFO - VM name : ctest-TestBasicPolicy-52877586-30926201 2024-09-05 14:08:22,837 - DEBUG - VM ctest-TestBasicPolicy-52877586-30926201 ID is 7ec86d87-ab50-4f39-9079-831b62841529 2024-09-05 14:08:22,838 - DEBUG - VM ctest-TestBasicPolicy-52877586-30926201 launched on Node cn-jenkins-deploy-platform-ansible-os-1855-1 2024-09-05 14:08:22,919 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/7ec86d87-ab50-4f39-9079-831b62841529 2024-09-05 14:08:22,929 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/f458ac35-0304-4338-a49b-2c89479ae7fa 2024-09-05 14:08:24,178 - 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=3.24 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.393 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.393/1.816/3.240/1.423 ms') 2024-09-05 14:08:24,178 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-52877586-30926201 passed 2024-09-05 14:08:24,336 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 14:08:24,336 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-52877586-30926201, IP 222.235.150.131, Port 22 2024-09-05 14:08:24,495 - DEBUG - VM ctest-TestBasicPolicy-52877586-30926201 is ready for SSH connections 2024-09-05 14:08:24,495 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 14:08:24,496 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 222.235.150.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-09-05 14:08:24,496 - DEBUG - ping -s 56 -c 3 -W 1 222.235.150.131 2024-09-05 14:08:28,180 - DEBUG - PING 222.235.150.131 (222.235.150.131): 56 data bytes 64 bytes from 222.235.150.131: seq=0 ttl=63 time=3.377 ms 64 bytes from 222.235.150.131: seq=1 ttl=63 time=0.879 ms 64 bytes from 222.235.150.131: seq=2 ttl=63 time=0.748 ms --- 222.235.150.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.748/1.668/3.377 ms 2024-09-05 14:08:28,181 - INFO - Ping to IP 222.235.150.131 from VM ctest-TestBasicPolicy-52877586-66648725 passed 2024-09-05 14:08:28,364 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9acec983-4926-4f73-aee5-ce684071269a", "href": "http://10.0.0.33:8082/network-policy/9acec983-4926-4f73-aee5-ce684071269a"}} 2024-09-05 14:08:28,364 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-05 14:08:28,364 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 222.235.150.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-09-05 14:08:28,364 - DEBUG - ping -s 56 -c 3 -W 1 222.235.150.131 2024-09-05 14:08:31,568 - DEBUG - PING 222.235.150.131 (222.235.150.131): 56 data bytes 64 bytes from 222.235.150.131: seq=0 ttl=63 time=1.428 ms --- 222.235.150.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.428/1.428/1.428 ms 2024-09-05 14:08:31,568 - WARNING - Ping to IP 222.235.150.131 from VM ctest-TestBasicPolicy-52877586-66648725 failed 2024-09-05 14:08:31,568 - INFO - Deleting VM ctest-TestBasicPolicy-52877586-30926201 2024-09-05 14:08:31,650 - INFO - Deleting VM ctest-TestBasicPolicy-52877586-66648725 2024-09-05 14:08:32,036 - INFO - Deleted policy ctest-policy-allow-all-69682746 2024-09-05 14:08:32,036 - INFO - Deleting VN ctest-vn-71163008 2024-09-05 14:08:32,077 - DEBUG - VN c91255f4-fc9a-4cb1-880b-d17e462922e9 still in use: Unable to complete operation on network c91255f4-fc9a-4cb1-880b-d17e462922e9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-25be0ac9-e015-4bd9-b223-2718d890a008'] 2024-09-05 14:08:32,077 - WARNING - Deleting VN ctest-vn-71163008 failed..Will retry 2024-09-05 14:08:34,192 - DEBUG - Response for deleting network () 2024-09-05 14:08:34,192 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/adb1869a-8c66-4c68-9f7b-01b15f587715 2024-09-05 14:08:34,199 - DEBUG - Response Code: 404 2024-09-05 14:08:34,200 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-05 14:08:34,206 - DEBUG - Requesting: http://10.0.0.33:8082/domain/bf13edcc-4504-407b-b0e7-e9e6eeca28eb 2024-09-05 14:08:34,261 - DEBUG - Requesting: http://10.0.0.33:8082/project/fec0a4c5-54a4-4969-9b6e-00072f1be715 2024-09-05 14:08:34,330 - INFO - Validated that VN ctest-vn-71163008 is not found in API Server 2024-09-05 14:08:34,342 - DEBUG - VN ctest-vn-71163008 is not present in Agent 10.0.0.33 2024-09-05 14:08:34,342 - INFO - Validated that VN ctest-vn-71163008 is not in any agent 2024-09-05 14:08:34,360 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-71163008 info 2024-09-05 14:08:34,360 - INFO - Deleting VN ctest-vn-68104418 2024-09-05 14:08:34,478 - DEBUG - Response for deleting network () 2024-09-05 14:08:34,478 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a93b7649-e005-4ba2-9411-f4162b8b7b97 2024-09-05 14:08:34,488 - DEBUG - Response Code: 404 2024-09-05 14:08:34,488 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-09-05 14:08:34,496 - DEBUG - Requesting: http://10.0.0.33:8082/domain/bf13edcc-4504-407b-b0e7-e9e6eeca28eb 2024-09-05 14:08:34,553 - DEBUG - Requesting: http://10.0.0.33:8082/project/fec0a4c5-54a4-4969-9b6e-00072f1be715 2024-09-05 14:08:34,625 - INFO - Validated that VN ctest-vn-68104418 is not found in API Server 2024-09-05 14:08:34,637 - DEBUG - VN ctest-vn-68104418 is not present in Agent 10.0.0.33 2024-09-05 14:08:34,637 - INFO - Validated that VN ctest-vn-68104418 is not in any agent 2024-09-05 14:08:34,656 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-68104418 info 2024-09-05 14:08:34,910 - DEBUG - No XMPP flaps were noticed during the test
2024-09-05 14:08:34,910 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-09-05 14:08:34,911 - INFO - -------------------------------------------------------------------------------- 2024-09-05 14:08:35,589 - INFO - Deleted project: ctest-TestBasicPolicy-52877586, ID : fec0a4c5-54a4-4969-9b6e-00072f1be715