2025-04-16 22:04:01,464 - INFO - Domain Default found not creating 2025-04-16 22:04:01,640 - INFO - Project ctest-TestBasicPolicy-85807495 not found, creating it 2025-04-16 22:04:02,173 - INFO - Created Project:ctest-TestBasicPolicy-85807495, ID : a184999f-afc7-49e5-8005-90a275dcb1d0 2025-04-16 22:04:03,799 - INFO - ================================================================================ 2025-04-16 22:04:03,799 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-16 22:04:03,799 - 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 2025-04-16 22:04:04,060 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2025-04-16 22:04:04,060 - INFO - Initial checks done. Running the testcase now 2025-04-16 22:04:04,060 - INFO - 2025-04-16 22:04:04,624 - DEBUG - Response for create_network : {'network': {'id': '61a65f73-153f-43d7-b7b8-bda7dc8d79d5', 'name': 'ctest-vn-94099487', 'tenant_id': 'a184999fafc749e5800590a275dcb1d0', 'project_id': 'a184999fafc749e5800590a275dcb1d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85807495', 'ctest-vn-94099487'], 'port_security_enabled': True, 'description': ''}} 2025-04-16 22:04:04,828 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6e06273-eed2-4920-9890-c35c61f4c76a', 'name': '', 'tenant_id': 'a184999fafc749e5800590a275dcb1d0', 'network_id': '61a65f73-153f-43d7-b7b8-bda7dc8d79d5', 'ip_version': 4, 'cidr': '175.166.235.64/26', 'allocation_pools': [{'start': '175.166.235.66', 'end': '175.166.235.126'}], 'gateway_ip': '175.166.235.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.166.235.66', 'tags': [], 'project_id': 'a184999fafc749e5800590a275dcb1d0'}} 2025-04-16 22:04:04,849 - INFO - Created VN ctest-vn-94099487 2025-04-16 22:04:04,908 - DEBUG - VN ctest-vn-94099487 UUID is 61a65f73-153f-43d7-b7b8-bda7dc8d79d5 2025-04-16 22:04:05,218 - DEBUG - Response for create_network : {'network': {'id': 'fba6661f-b0b0-41e9-9bca-1ac0ecdd592e', 'name': 'ctest-vn-58396730', 'tenant_id': 'a184999fafc749e5800590a275dcb1d0', 'project_id': 'a184999fafc749e5800590a275dcb1d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85807495', 'ctest-vn-58396730'], 'port_security_enabled': True, 'description': ''}} 2025-04-16 22:04:05,465 - DEBUG - Response for create_subnet : {'subnet': {'id': '0bef35ac-205e-4273-b7b4-4699dee3d119', 'name': '', 'tenant_id': 'a184999fafc749e5800590a275dcb1d0', 'network_id': 'fba6661f-b0b0-41e9-9bca-1ac0ecdd592e', 'ip_version': 4, 'cidr': '103.163.237.128/26', 'allocation_pools': [{'start': '103.163.237.130', 'end': '103.163.237.190'}], 'gateway_ip': '103.163.237.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.163.237.130', 'tags': [], 'project_id': 'a184999fafc749e5800590a275dcb1d0'}} 2025-04-16 22:04:05,486 - INFO - Created VN ctest-vn-58396730 2025-04-16 22:04:05,540 - DEBUG - VN ctest-vn-58396730 UUID is fba6661f-b0b0-41e9-9bca-1ac0ecdd592e 2025-04-16 22:04:05,668 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-94099487, 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-85807495:ctest-vn-58396730, 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] 2025-04-16 22:04:05,990 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '61a65f73-153f-43d7-b7b8-bda7dc8d79d5', 'name': 'ctest-vn-94099487', 'tenant_id': 'a184999fafc749e5800590a275dcb1d0', 'project_id': 'a184999fafc749e5800590a275dcb1d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c6e06273-eed2-4920-9890-c35c61f4c76a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85807495', 'ctest-vn-94099487'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85807495', 'ctest-policy-allow-all-38357038']], 'subnet_ipam': [{'subnet_cidr': '175.166.235.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-16 22:04:06,228 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fba6661f-b0b0-41e9-9bca-1ac0ecdd592e', 'name': 'ctest-vn-58396730', 'tenant_id': 'a184999fafc749e5800590a275dcb1d0', 'project_id': 'a184999fafc749e5800590a275dcb1d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0bef35ac-205e-4273-b7b4-4699dee3d119'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85807495', 'ctest-vn-58396730'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85807495', 'ctest-policy-allow-all-38357038']], 'subnet_ipam': [{'subnet_cidr': '103.163.237.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-16 22:04:06,396 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-04-16 22:04:06,711 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-04-16 22:04:06,740 - DEBUG - Requesting: http://10.0.0.22:8082/domain/858be3c2-28ce-4982-8697-08225f860df7 2025-04-16 22:04:06,755 - DEBUG - Requesting: http://10.0.0.22:8082/project/a184999f-afc7-49e5-8005-90a275dcb1d0 2025-04-16 22:04:06,834 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61a65f73-153f-43d7-b7b8-bda7dc8d79d5 2025-04-16 22:04:06,847 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61a65f73-153f-43d7-b7b8-bda7dc8d79d5 2025-04-16 22:04:06,861 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08e19a44-51a3-406c-9794-5178a2a1d273 2025-04-16 22:04:06,871 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08e19a44-51a3-406c-9794-5178a2a1d273 2025-04-16 22:04:06,880 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fb0098eb-7f7d-4658-8d13-e86692a2bc58 2025-04-16 22:04:06,888 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-16 22:04:06,888 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61a65f73-153f-43d7-b7b8-bda7dc8d79d5 2025-04-16 22:04:06,901 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08e19a44-51a3-406c-9794-5178a2a1d273 2025-04-16 22:04:06,918 - INFO - Verified VN network id 9 for VN 61a65f73-153f-43d7-b7b8-bda7dc8d79d5 2025-04-16 22:04:06,918 - INFO - Verifications in API Server for VN ctest-vn-94099487 passed 2025-04-16 22:04:06,918 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61a65f73-153f-43d7-b7b8-bda7dc8d79d5 2025-04-16 22:04:06,929 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08e19a44-51a3-406c-9794-5178a2a1d273 2025-04-16 22:04:06,937 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08e19a44-51a3-406c-9794-5178a2a1d273 2025-04-16 22:04:06,946 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fb0098eb-7f7d-4658-8d13-e86692a2bc58 2025-04-16 22:04:06,960 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-94099487', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85807495', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7036416415695324119', 'uuid-lslong': '13238539633313020373'}, 'enable': 'true', 'created': '2025-04-16T22:04:04', 'last-modified': '2025-04-16T22:04:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999923'} 2025-04-16 22:04:06,967 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-16 22:04:06,968 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94099487 passed 2025-04-16 22:04:06,968 - DEBUG - ====Verifying policy data for ctest-vn-94099487 in API_Server ====== 2025-04-16 22:04:06,968 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-04-16 22:04:06,974 - DEBUG - Requesting: http://10.0.0.22:8082/domain/858be3c2-28ce-4982-8697-08225f860df7 2025-04-16 22:04:06,989 - DEBUG - Requesting: http://10.0.0.22:8082/project/a184999f-afc7-49e5-8005-90a275dcb1d0 2025-04-16 22:04:07,073 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61a65f73-153f-43d7-b7b8-bda7dc8d79d5 2025-04-16 22:04:07,085 - DEBUG - ==>Verifying data for policy with id: 4735260e-d063-4b72-94d7-12f39fb5c6f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-85807495', 'ctest-policy-allow-all-38357038'] 2025-04-16 22:04:07,085 - INFO - VN ctest-vn-94099487 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-16 22:04:07,085 - DEBUG - Verifying the vn in opserver 2025-04-16 22:04:07,086 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-94099487 virtual network link through opserver 10.0.0.22 2025-04-16 22:04:07,086 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-04-16 22:04:07,387 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-04-16 22:04:07,443 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-94099487', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-94099487?flat'} 2025-04-16 22:04:07,443 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-94099487 is found in opserver 2025-04-16 22:04:07,456 - DEBUG - Do not have enough data to verify VN in agent 2025-04-16 22:04:07,462 - DEBUG - VRF ids for VN ctest-vn-94099487: {} 2025-04-16 22:04:07,462 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-04-16 22:04:07,468 - DEBUG - Requesting: http://10.0.0.22:8082/domain/858be3c2-28ce-4982-8697-08225f860df7 2025-04-16 22:04:07,481 - DEBUG - Requesting: http://10.0.0.22:8082/project/a184999f-afc7-49e5-8005-90a275dcb1d0 2025-04-16 22:04:07,557 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fba6661f-b0b0-41e9-9bca-1ac0ecdd592e 2025-04-16 22:04:07,569 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fba6661f-b0b0-41e9-9bca-1ac0ecdd592e 2025-04-16 22:04:07,580 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/442d3004-6e66-4a64-8f08-1166b0634389 2025-04-16 22:04:07,589 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/442d3004-6e66-4a64-8f08-1166b0634389 2025-04-16 22:04:07,597 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/58234395-9cd0-44be-9f40-ba9a3229ff3e 2025-04-16 22:04:07,604 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-16 22:04:07,604 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fba6661f-b0b0-41e9-9bca-1ac0ecdd592e 2025-04-16 22:04:07,617 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/442d3004-6e66-4a64-8f08-1166b0634389 2025-04-16 22:04:07,633 - INFO - Verified VN network id 10 for VN fba6661f-b0b0-41e9-9bca-1ac0ecdd592e 2025-04-16 22:04:07,633 - INFO - Verifications in API Server for VN ctest-vn-58396730 passed 2025-04-16 22:04:07,633 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fba6661f-b0b0-41e9-9bca-1ac0ecdd592e 2025-04-16 22:04:07,696 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/442d3004-6e66-4a64-8f08-1166b0634389 2025-04-16 22:04:07,704 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/442d3004-6e66-4a64-8f08-1166b0634389 2025-04-16 22:04:07,712 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/58234395-9cd0-44be-9f40-ba9a3229ff3e 2025-04-16 22:04:07,727 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-58396730', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85807495', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18133293235948241385', 'uuid-lslong': '11225814437084354862'}, 'enable': 'true', 'created': '2025-04-16T22:04:05', 'last-modified': '2025-04-16T22:04:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.526740'} 2025-04-16 22:04:07,734 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-16 22:04:07,734 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58396730 passed 2025-04-16 22:04:07,734 - DEBUG - ====Verifying policy data for ctest-vn-58396730 in API_Server ====== 2025-04-16 22:04:07,734 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-04-16 22:04:07,740 - DEBUG - Requesting: http://10.0.0.22:8082/domain/858be3c2-28ce-4982-8697-08225f860df7 2025-04-16 22:04:07,754 - DEBUG - Requesting: http://10.0.0.22:8082/project/a184999f-afc7-49e5-8005-90a275dcb1d0 2025-04-16 22:04:07,830 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fba6661f-b0b0-41e9-9bca-1ac0ecdd592e 2025-04-16 22:04:07,841 - DEBUG - ==>Verifying data for policy with id: 4735260e-d063-4b72-94d7-12f39fb5c6f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-85807495', 'ctest-policy-allow-all-38357038'] 2025-04-16 22:04:07,841 - INFO - VN ctest-vn-58396730 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-16 22:04:07,841 - DEBUG - Verifying the vn in opserver 2025-04-16 22:04:07,841 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-58396730 virtual network link through opserver 10.0.0.22 2025-04-16 22:04:07,841 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-04-16 22:04:07,858 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-58396730', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-58396730?flat'} 2025-04-16 22:04:07,858 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-58396730 is found in opserver 2025-04-16 22:04:07,869 - DEBUG - Do not have enough data to verify VN in agent 2025-04-16 22:04:07,874 - DEBUG - VRF ids for VN ctest-vn-58396730: {} 2025-04-16 22:04:07,934 - DEBUG - Services list from nova: [, , ] 2025-04-16 22:04:09,016 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3127-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3127-1) 2025-04-16 22:04:10,317 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3127-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3127-1) 2025-04-16 22:04:10,317 - INFO - Waiting for VM ctest-TestBasicPolicy-85807495-20515746 to be up.. 2025-04-16 22:04:10,417 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-16 22:04:15,515 - DEBUG - VM is in ACTIVE state now 2025-04-16 22:04:15,515 - INFO - VM name : ctest-TestBasicPolicy-85807495-20515746 2025-04-16 22:04:15,610 - DEBUG - VM ctest-TestBasicPolicy-85807495-20515746 ID is 82567d91-e5f9-435e-b838-aa607d420ab1 2025-04-16 22:04:15,634 - DEBUG - VM ctest-TestBasicPolicy-85807495-20515746 launched on Node cn-jenkins-deploy-platform-ansible-os-3127-1 2025-04-16 22:04:15,738 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/82567d91-e5f9-435e-b838-aa607d420ab1 2025-04-16 22:04:15,748 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/5588bd2a-02d9-45d9-aa2b-54e9228838c8 2025-04-16 22:04:19,013 - 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 1014ms') 2025-04-16 22:04:19,013 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-85807495-20515746 failed! 2025-04-16 22:04:19,068 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-94099487 is 175.166.235.65 and allocation pool is NOT set 2025-04-16 22:04:21,135 - 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.85 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.791 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.791/2.819/4.847/2.028 ms') 2025-04-16 22:04:21,135 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-85807495-20515746 passed 2025-04-16 22:04:21,292 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 22:04:21,294 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85807495-20515746, IP 175.166.235.67, Port 22 2025-04-16 22:04:21,452 - DEBUG - VM ctest-TestBasicPolicy-85807495-20515746 is ready for SSH connections 2025-04-16 22:04:21,453 - INFO - Waiting for VM ctest-TestBasicPolicy-85807495-66111867 to be up.. 2025-04-16 22:04:21,546 - DEBUG - VM is in ACTIVE state now 2025-04-16 22:04:21,546 - INFO - VM name : ctest-TestBasicPolicy-85807495-66111867 2025-04-16 22:04:21,638 - DEBUG - VM ctest-TestBasicPolicy-85807495-66111867 ID is 3c1882aa-96c1-470c-b74c-64b09f78a59d 2025-04-16 22:04:21,638 - DEBUG - VM ctest-TestBasicPolicy-85807495-66111867 launched on Node cn-jenkins-deploy-platform-ansible-os-3127-1 2025-04-16 22:04:21,734 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/3c1882aa-96c1-470c-b74c-64b09f78a59d 2025-04-16 22:04:21,744 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/1a47bb8a-87f0-4488-b3a8-ce72f91c0a0e 2025-04-16 22:04:22,996 - 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=1.35 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 = 1.347/2.813/4.280/1.466 ms') 2025-04-16 22:04:22,997 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-85807495-66111867 passed 2025-04-16 22:04:23,160 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 22:04:23,161 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85807495-66111867, IP 103.163.237.131, Port 22 2025-04-16 22:04:23,324 - DEBUG - VM ctest-TestBasicPolicy-85807495-66111867 is ready for SSH connections 2025-04-16 22:04:23,325 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 22:04:23,325 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 103.163.237.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-04-16 22:04:23,325 - DEBUG - ping -s 56 -c 3 -W 1 103.163.237.131 2025-04-16 22:04:27,420 - DEBUG - PING 103.163.237.131 (103.163.237.131): 56 data bytes 64 bytes from 103.163.237.131: seq=0 ttl=63 time=4.484 ms 64 bytes from 103.163.237.131: seq=1 ttl=63 time=0.932 ms 64 bytes from 103.163.237.131: seq=2 ttl=63 time=0.953 ms --- 103.163.237.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.932/2.123/4.484 ms 2025-04-16 22:04:27,420 - INFO - Ping to IP 103.163.237.131 from VM ctest-TestBasicPolicy-85807495-20515746 passed 2025-04-16 22:04:27,616 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4735260e-d063-4b72-94d7-12f39fb5c6f8", "href": "http://10.0.0.22:8082/network-policy/4735260e-d063-4b72-94d7-12f39fb5c6f8"}} 2025-04-16 22:04:27,616 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 22:04:27,617 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 103.163.237.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-04-16 22:04:27,617 - DEBUG - ping -s 56 -c 3 -W 1 103.163.237.131 2025-04-16 22:04:30,864 - DEBUG - PING 103.163.237.131 (103.163.237.131): 56 data bytes 64 bytes from 103.163.237.131: seq=0 ttl=63 time=1.668 ms --- 103.163.237.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.668/1.668/1.668 ms 2025-04-16 22:04:30,865 - WARNING - Ping to IP 103.163.237.131 from VM ctest-TestBasicPolicy-85807495-20515746 failed 2025-04-16 22:04:30,865 - INFO - Deleting VM ctest-TestBasicPolicy-85807495-66111867 2025-04-16 22:04:30,944 - INFO - Deleting VM ctest-TestBasicPolicy-85807495-20515746 2025-04-16 22:04:31,390 - INFO - Deleted policy ctest-policy-allow-all-38357038 2025-04-16 22:04:31,390 - INFO - Deleting VN ctest-vn-58396730 2025-04-16 22:04:31,434 - DEBUG - VN fba6661f-b0b0-41e9-9bca-1ac0ecdd592e still in use: Unable to complete operation on network fba6661f-b0b0-41e9-9bca-1ac0ecdd592e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-dc5be78c-cc78-49b5-84e8-6f8cf07989c5'] 2025-04-16 22:04:31,435 - WARNING - Deleting VN ctest-vn-58396730 failed..Will retry 2025-04-16 22:04:33,542 - DEBUG - Response for deleting network () 2025-04-16 22:04:33,542 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/442d3004-6e66-4a64-8f08-1166b0634389 2025-04-16 22:04:33,550 - DEBUG - Response Code: 404 2025-04-16 22:04:33,551 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-04-16 22:04:33,556 - DEBUG - Requesting: http://10.0.0.22:8082/domain/858be3c2-28ce-4982-8697-08225f860df7 2025-04-16 22:04:33,613 - DEBUG - Requesting: http://10.0.0.22:8082/project/a184999f-afc7-49e5-8005-90a275dcb1d0 2025-04-16 22:04:33,691 - INFO - Validated that VN ctest-vn-58396730 is not found in API Server 2025-04-16 22:04:33,702 - DEBUG - VN ctest-vn-58396730 is not present in Agent 10.0.0.22 2025-04-16 22:04:33,702 - INFO - Validated that VN ctest-vn-58396730 is not in any agent 2025-04-16 22:04:33,720 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-58396730 info 2025-04-16 22:04:33,720 - INFO - Deleting VN ctest-vn-94099487 2025-04-16 22:04:33,829 - DEBUG - Response for deleting network () 2025-04-16 22:04:33,830 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08e19a44-51a3-406c-9794-5178a2a1d273 2025-04-16 22:04:33,835 - DEBUG - Response Code: 404 2025-04-16 22:04:33,836 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-04-16 22:04:33,841 - DEBUG - Requesting: http://10.0.0.22:8082/domain/858be3c2-28ce-4982-8697-08225f860df7 2025-04-16 22:04:33,894 - DEBUG - Requesting: http://10.0.0.22:8082/project/a184999f-afc7-49e5-8005-90a275dcb1d0 2025-04-16 22:04:33,971 - INFO - Validated that VN ctest-vn-94099487 is not found in API Server 2025-04-16 22:04:33,982 - DEBUG - VN ctest-vn-94099487 is not present in Agent 10.0.0.22 2025-04-16 22:04:33,982 - INFO - Validated that VN ctest-vn-94099487 is not in any agent 2025-04-16 22:04:34,000 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94099487 info 2025-04-16 22:04:34,263 - DEBUG - No XMPP flaps were noticed during the test
2025-04-16 22:04:34,263 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2025-04-16 22:04:34,263 - INFO - -------------------------------------------------------------------------------- 2025-04-16 22:04:34,972 - INFO - Deleted project: ctest-TestBasicPolicy-85807495, ID : a184999f-afc7-49e5-8005-90a275dcb1d0