2024-09-12 10:25:24,862 - INFO - Domain Default found not creating 2024-09-12 10:25:25,024 - INFO - Project ctest-TestBasicPolicy-07622294 not found, creating it 2024-09-12 10:25:25,522 - INFO - Created Project:ctest-TestBasicPolicy-07622294, ID : 0136072b-b220-40c2-bb2a-945de6d8bb08 2024-09-12 10:25:27,551 - INFO - ================================================================================ 2024-09-12 10:25:27,552 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-12 10:25:27,552 - 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-12 10:25:27,811 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.20': '0'}} with 2024-09-12 10:25:27,812 - INFO - Initial checks done. Running the testcase now 2024-09-12 10:25:27,812 - INFO - 2024-09-12 10:25:28,389 - DEBUG - Response for create_network : {'network': {'id': '634d8db1-3d64-4398-8c62-75dab61afcb8', 'name': 'ctest-vn-31070480', 'tenant_id': '0136072bb22040c2bb2a945de6d8bb08', 'project_id': '0136072bb22040c2bb2a945de6d8bb08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07622294', 'ctest-vn-31070480'], 'port_security_enabled': True, 'description': ''}} 2024-09-12 10:25:28,587 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cef9c305-00ad-4634-99e7-fd01ba1f9769', 'name': '', 'tenant_id': '0136072bb22040c2bb2a945de6d8bb08', 'network_id': '634d8db1-3d64-4398-8c62-75dab61afcb8', 'ip_version': 4, 'cidr': '214.93.227.0/26', 'allocation_pools': [{'start': '214.93.227.2', 'end': '214.93.227.62'}], 'gateway_ip': '214.93.227.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.93.227.2', 'tags': [], 'project_id': '0136072bb22040c2bb2a945de6d8bb08'}} 2024-09-12 10:25:28,608 - INFO - Created VN ctest-vn-31070480 2024-09-12 10:25:28,665 - DEBUG - VN ctest-vn-31070480 UUID is 634d8db1-3d64-4398-8c62-75dab61afcb8 2024-09-12 10:25:30,522 - DEBUG - Response for create_network : {'network': {'id': '50aaaaeb-250c-47b0-b88e-6fa863901082', 'name': 'ctest-vn-13290113', 'tenant_id': '0136072bb22040c2bb2a945de6d8bb08', 'project_id': '0136072bb22040c2bb2a945de6d8bb08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07622294', 'ctest-vn-13290113'], 'port_security_enabled': True, 'description': ''}} 2024-09-12 10:25:30,734 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f34d0c1c-4edd-4b97-8ffe-f8c89c289acf', 'name': '', 'tenant_id': '0136072bb22040c2bb2a945de6d8bb08', 'network_id': '50aaaaeb-250c-47b0-b88e-6fa863901082', 'ip_version': 4, 'cidr': '121.253.3.192/26', 'allocation_pools': [{'start': '121.253.3.194', 'end': '121.253.3.254'}], 'gateway_ip': '121.253.3.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.253.3.194', 'tags': [], 'project_id': '0136072bb22040c2bb2a945de6d8bb08'}} 2024-09-12 10:25:30,753 - INFO - Created VN ctest-vn-13290113 2024-09-12 10:25:30,809 - DEBUG - VN ctest-vn-13290113 UUID is 50aaaaeb-250c-47b0-b88e-6fa863901082 2024-09-12 10:25:30,929 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-31070480, 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-07622294:ctest-vn-13290113, 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-12 10:25:33,492 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '634d8db1-3d64-4398-8c62-75dab61afcb8', 'name': 'ctest-vn-31070480', 'tenant_id': '0136072bb22040c2bb2a945de6d8bb08', 'project_id': '0136072bb22040c2bb2a945de6d8bb08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cef9c305-00ad-4634-99e7-fd01ba1f9769'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07622294', 'ctest-vn-31070480'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07622294', 'ctest-policy-allow-all-92457382']], 'subnet_ipam': [{'subnet_cidr': '214.93.227.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-12 10:25:33,690 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50aaaaeb-250c-47b0-b88e-6fa863901082', 'name': 'ctest-vn-13290113', 'tenant_id': '0136072bb22040c2bb2a945de6d8bb08', 'project_id': '0136072bb22040c2bb2a945de6d8bb08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f34d0c1c-4edd-4b97-8ffe-f8c89c289acf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07622294', 'ctest-vn-13290113'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07622294', 'ctest-policy-allow-all-92457382']], 'subnet_ipam': [{'subnet_cidr': '121.253.3.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-12 10:25:33,825 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-12 10:25:34,120 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-12 10:25:34,154 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd8b555d-88d2-46b0-9b57-cb87294f06b4 2024-09-12 10:25:34,172 - DEBUG - Requesting: http://10.0.0.22:8082/project/0136072b-b220-40c2-bb2a-945de6d8bb08 2024-09-12 10:25:34,261 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/634d8db1-3d64-4398-8c62-75dab61afcb8 2024-09-12 10:25:34,277 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/634d8db1-3d64-4398-8c62-75dab61afcb8 2024-09-12 10:25:34,292 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/27595fda-2c65-477d-9129-63b912924a9b 2024-09-12 10:25:34,302 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/27595fda-2c65-477d-9129-63b912924a9b 2024-09-12 10:25:34,312 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/25788452-018c-41dd-9370-f34d715c8b2a 2024-09-12 10:25:34,320 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-12 10:25:34,320 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/634d8db1-3d64-4398-8c62-75dab61afcb8 2024-09-12 10:25:34,335 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/27595fda-2c65-477d-9129-63b912924a9b 2024-09-12 10:25:34,356 - INFO - Verified VN network id 8 for VN 634d8db1-3d64-4398-8c62-75dab61afcb8 2024-09-12 10:25:34,356 - INFO - Verifications in API Server for VN ctest-vn-31070480 passed 2024-09-12 10:25:34,356 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/634d8db1-3d64-4398-8c62-75dab61afcb8 2024-09-12 10:25:34,371 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/27595fda-2c65-477d-9129-63b912924a9b 2024-09-12 10:25:34,380 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/27595fda-2c65-477d-9129-63b912924a9b 2024-09-12 10:25:34,390 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/25788452-018c-41dd-9370-f34d715c8b2a 2024-09-12 10:25:34,405 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-31070480', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07622294', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7155531175340295064', 'uuid-lslong': '10115777295246097592'}, 'enable': 'true', 'created': '2024-09-12T10:25:28', 'last-modified': '2024-09-12T10:25:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.954697'} 2024-09-12 10:25:34,411 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-12 10:25:34,411 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31070480 passed 2024-09-12 10:25:34,412 - DEBUG - ====Verifying policy data for ctest-vn-31070480 in API_Server ====== 2024-09-12 10:25:34,412 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-12 10:25:34,418 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd8b555d-88d2-46b0-9b57-cb87294f06b4 2024-09-12 10:25:34,432 - DEBUG - Requesting: http://10.0.0.22:8082/project/0136072b-b220-40c2-bb2a-945de6d8bb08 2024-09-12 10:25:34,514 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/634d8db1-3d64-4398-8c62-75dab61afcb8 2024-09-12 10:25:34,528 - DEBUG - ==>Verifying data for policy with id: 888d4c36-4c2b-432f-92df-9cc6e0e9a56e, fqn: ['default-domain', 'ctest-TestBasicPolicy-07622294', 'ctest-policy-allow-all-92457382'] 2024-09-12 10:25:34,529 - INFO - VN ctest-vn-31070480 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-12 10:25:34,529 - DEBUG - Verifying the vn in opserver 2024-09-12 10:25:34,529 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-31070480 virtual network link through opserver 10.0.0.22 2024-09-12 10:25:34,529 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-09-12 10:25:34,822 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-09-12 10:25:34,887 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-31070480', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-31070480?flat'} 2024-09-12 10:25:34,887 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-31070480 is found in opserver 2024-09-12 10:25:34,898 - DEBUG - Do not have enough data to verify VN in agent 2024-09-12 10:25:34,904 - DEBUG - VRF ids for VN ctest-vn-31070480: {} 2024-09-12 10:25:34,904 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-12 10:25:34,911 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd8b555d-88d2-46b0-9b57-cb87294f06b4 2024-09-12 10:25:34,926 - DEBUG - Requesting: http://10.0.0.22:8082/project/0136072b-b220-40c2-bb2a-945de6d8bb08 2024-09-12 10:25:35,013 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50aaaaeb-250c-47b0-b88e-6fa863901082 2024-09-12 10:25:35,030 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50aaaaeb-250c-47b0-b88e-6fa863901082 2024-09-12 10:25:35,045 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d14739ca-f1ae-4ed0-9a60-4a1eba1363bb 2024-09-12 10:25:35,054 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d14739ca-f1ae-4ed0-9a60-4a1eba1363bb 2024-09-12 10:25:35,062 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7173965f-e174-4223-ba0b-25f0d97dabf1 2024-09-12 10:25:35,070 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-12 10:25:35,070 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50aaaaeb-250c-47b0-b88e-6fa863901082 2024-09-12 10:25:35,084 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d14739ca-f1ae-4ed0-9a60-4a1eba1363bb 2024-09-12 10:25:35,106 - INFO - Verified VN network id 9 for VN 50aaaaeb-250c-47b0-b88e-6fa863901082 2024-09-12 10:25:35,106 - INFO - Verifications in API Server for VN ctest-vn-13290113 passed 2024-09-12 10:25:35,106 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50aaaaeb-250c-47b0-b88e-6fa863901082 2024-09-12 10:25:35,121 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d14739ca-f1ae-4ed0-9a60-4a1eba1363bb 2024-09-12 10:25:35,130 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d14739ca-f1ae-4ed0-9a60-4a1eba1363bb 2024-09-12 10:25:35,140 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7173965f-e174-4223-ba0b-25f0d97dabf1 2024-09-12 10:25:35,157 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-13290113', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07622294', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5812646195990644656', 'uuid-lslong': '13298689518687228034'}, 'enable': 'true', 'created': '2024-09-12T10:25:30', 'last-modified': '2024-09-12T10:25:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.490265'} 2024-09-12 10:25:35,164 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-12 10:25:35,164 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13290113 passed 2024-09-12 10:25:35,164 - DEBUG - ====Verifying policy data for ctest-vn-13290113 in API_Server ====== 2024-09-12 10:25:35,164 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-12 10:25:35,171 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd8b555d-88d2-46b0-9b57-cb87294f06b4 2024-09-12 10:25:35,186 - DEBUG - Requesting: http://10.0.0.22:8082/project/0136072b-b220-40c2-bb2a-945de6d8bb08 2024-09-12 10:25:35,276 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50aaaaeb-250c-47b0-b88e-6fa863901082 2024-09-12 10:25:35,291 - DEBUG - ==>Verifying data for policy with id: 888d4c36-4c2b-432f-92df-9cc6e0e9a56e, fqn: ['default-domain', 'ctest-TestBasicPolicy-07622294', 'ctest-policy-allow-all-92457382'] 2024-09-12 10:25:35,291 - INFO - VN ctest-vn-13290113 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-12 10:25:35,291 - DEBUG - Verifying the vn in opserver 2024-09-12 10:25:35,291 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-13290113 virtual network link through opserver 10.0.0.22 2024-09-12 10:25:35,291 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-09-12 10:25:35,302 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-13290113', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-13290113?flat'} 2024-09-12 10:25:35,302 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-13290113 is found in opserver 2024-09-12 10:25:35,314 - DEBUG - Do not have enough data to verify VN in agent 2024-09-12 10:25:35,319 - DEBUG - VRF ids for VN ctest-vn-13290113: {} 2024-09-12 10:25:35,382 - DEBUG - Services list from nova: [, , ] 2024-09-12 10:25:36,483 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1906-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1906-1) 2024-09-12 10:25:39,304 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1906-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1906-1) 2024-09-12 10:25:39,304 - INFO - Waiting for VM ctest-TestBasicPolicy-07622294-94605796 to be up.. 2024-09-12 10:25:39,385 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-12 10:25:44,467 - DEBUG - VM is in ACTIVE state now 2024-09-12 10:25:44,467 - INFO - VM name : ctest-TestBasicPolicy-07622294-94605796 2024-09-12 10:25:44,546 - DEBUG - VM ctest-TestBasicPolicy-07622294-94605796 ID is 27c28f41-d489-484c-8402-b79e1554b76d 2024-09-12 10:25:44,565 - DEBUG - VM ctest-TestBasicPolicy-07622294-94605796 launched on Node cn-jenkins-deploy-platform-ansible-os-1906-1 2024-09-12 10:25:44,648 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/27c28f41-d489-484c-8402-b79e1554b76d 2024-09-12 10:25:44,660 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/ee060d65-7a33-4063-b498-17a98b7de954 2024-09-12 10:25:47,930 - 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 1015ms') 2024-09-12 10:25:47,930 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07622294-94605796 failed! 2024-09-12 10:25:47,989 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07622294:ctest-vn-31070480 is 214.93.227.1 and allocation pool is NOT set 2024-09-12 10:25:50,058 - 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=2.56 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.386 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.386/1.473/2.560/1.087 ms') 2024-09-12 10:25:50,058 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07622294-94605796 passed 2024-09-12 10:25:50,221 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 10:25:50,221 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07622294-94605796, IP 214.93.227.3, Port 22 2024-09-12 10:25:50,377 - DEBUG - VM ctest-TestBasicPolicy-07622294-94605796 is ready for SSH connections 2024-09-12 10:25:50,377 - INFO - Waiting for VM ctest-TestBasicPolicy-07622294-37401905 to be up.. 2024-09-12 10:25:50,844 - DEBUG - VM is in ACTIVE state now 2024-09-12 10:25:50,844 - INFO - VM name : ctest-TestBasicPolicy-07622294-37401905 2024-09-12 10:25:50,924 - DEBUG - VM ctest-TestBasicPolicy-07622294-37401905 ID is db214817-ec93-48f3-a42a-70ef5c53c0d8 2024-09-12 10:25:50,924 - DEBUG - VM ctest-TestBasicPolicy-07622294-37401905 launched on Node cn-jenkins-deploy-platform-ansible-os-1906-1 2024-09-12 10:25:51,009 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/db214817-ec93-48f3-a42a-70ef5c53c0d8 2024-09-12 10:25:51,020 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/9a8af816-d968-43ef-a661-32fccfd75fe5 2024-09-12 10:25:52,274 - 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=4.28 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.46 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.463/3.369/4.275/0.906 ms') 2024-09-12 10:25:52,274 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-07622294-37401905 passed 2024-09-12 10:25:52,425 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 10:25:52,425 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07622294-37401905, IP 121.253.3.195, Port 22 2024-09-12 10:25:52,581 - DEBUG - VM ctest-TestBasicPolicy-07622294-37401905 is ready for SSH connections 2024-09-12 10:25:52,581 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 10:25:52,581 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 121.253.3.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-09-12 10:25:52,581 - DEBUG - ping -s 56 -c 3 -W 1 121.253.3.195 2024-09-12 10:25:56,670 - DEBUG - PING 121.253.3.195 (121.253.3.195): 56 data bytes 64 bytes from 121.253.3.195: seq=0 ttl=63 time=3.463 ms 64 bytes from 121.253.3.195: seq=1 ttl=63 time=0.884 ms 64 bytes from 121.253.3.195: seq=2 ttl=63 time=0.776 ms --- 121.253.3.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.776/1.707/3.463 ms 2024-09-12 10:25:56,670 - INFO - Ping to IP 121.253.3.195 from VM ctest-TestBasicPolicy-07622294-94605796 passed 2024-09-12 10:25:56,857 - DEBUG - Policy Update Response {"network-policy": {"uuid": "888d4c36-4c2b-432f-92df-9cc6e0e9a56e", "href": "http://10.0.0.22:8082/network-policy/888d4c36-4c2b-432f-92df-9cc6e0e9a56e"}} 2024-09-12 10:25:56,857 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 10:25:56,857 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 121.253.3.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-09-12 10:25:56,857 - DEBUG - ping -s 56 -c 3 -W 1 121.253.3.195 2024-09-12 10:26:00,073 - DEBUG - PING 121.253.3.195 (121.253.3.195): 56 data bytes --- 121.253.3.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-12 10:26:00,073 - WARNING - Ping to IP 121.253.3.195 from VM ctest-TestBasicPolicy-07622294-94605796 failed 2024-09-12 10:26:00,073 - INFO - Deleting VM ctest-TestBasicPolicy-07622294-37401905 2024-09-12 10:26:00,157 - INFO - Deleting VM ctest-TestBasicPolicy-07622294-94605796 2024-09-12 10:26:00,610 - INFO - Deleted policy ctest-policy-allow-all-92457382 2024-09-12 10:26:00,610 - INFO - Deleting VN ctest-vn-13290113 2024-09-12 10:26:00,656 - DEBUG - VN 50aaaaeb-250c-47b0-b88e-6fa863901082 still in use: Unable to complete operation on network 50aaaaeb-250c-47b0-b88e-6fa863901082. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ea105e1e-bd07-4149-9aca-3538ee28ed73'] 2024-09-12 10:26:00,656 - WARNING - Deleting VN ctest-vn-13290113 failed..Will retry 2024-09-12 10:26:02,814 - DEBUG - Response for deleting network () 2024-09-12 10:26:02,814 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d14739ca-f1ae-4ed0-9a60-4a1eba1363bb 2024-09-12 10:26:02,824 - DEBUG - Response Code: 404 2024-09-12 10:26:02,825 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-12 10:26:02,839 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd8b555d-88d2-46b0-9b57-cb87294f06b4 2024-09-12 10:26:02,856 - DEBUG - Requesting: http://10.0.0.22:8082/project/0136072b-b220-40c2-bb2a-945de6d8bb08 2024-09-12 10:26:02,939 - INFO - Validated that VN ctest-vn-13290113 is not found in API Server 2024-09-12 10:26:02,951 - DEBUG - VN ctest-vn-13290113 is not present in Agent 10.0.0.22 2024-09-12 10:26:02,951 - INFO - Validated that VN ctest-vn-13290113 is not in any agent 2024-09-12 10:26:02,969 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-13290113 info 2024-09-12 10:26:02,969 - INFO - Deleting VN ctest-vn-31070480 2024-09-12 10:26:03,128 - DEBUG - Response for deleting network () 2024-09-12 10:26:03,128 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/27595fda-2c65-477d-9129-63b912924a9b 2024-09-12 10:26:03,134 - DEBUG - Response Code: 404 2024-09-12 10:26:03,134 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-09-12 10:26:03,140 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd8b555d-88d2-46b0-9b57-cb87294f06b4 2024-09-12 10:26:03,196 - DEBUG - Requesting: http://10.0.0.22:8082/project/0136072b-b220-40c2-bb2a-945de6d8bb08 2024-09-12 10:26:03,280 - INFO - Validated that VN ctest-vn-31070480 is not found in API Server 2024-09-12 10:26:03,290 - DEBUG - VN ctest-vn-31070480 is not present in Agent 10.0.0.22 2024-09-12 10:26:03,290 - INFO - Validated that VN ctest-vn-31070480 is not in any agent 2024-09-12 10:26:03,306 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-31070480 info 2024-09-12 10:26:03,560 - DEBUG - No XMPP flaps were noticed during the test
2024-09-12 10:26:03,560 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2024-09-12 10:26:03,560 - INFO - -------------------------------------------------------------------------------- 2024-09-12 10:26:04,286 - INFO - Deleted project: ctest-TestBasicPolicy-07622294, ID : 0136072b-b220-40c2-bb2a-945de6d8bb08