2025-06-17 14:53:24,235 - INFO - Domain Default found not creating 2025-06-17 14:53:24,411 - INFO - Project ctest-TestBasicPolicy-77906016 not found, creating it 2025-06-17 14:53:24,936 - INFO - Created Project:ctest-TestBasicPolicy-77906016, ID : a3cfab62-aeb9-4655-939a-80755d8fbf83 2025-06-17 14:53:26,530 - INFO - ================================================================================ 2025-06-17 14:53:26,530 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-17 14:53:26,531 - 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-06-17 14:53:26,799 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-06-17 14:53:26,799 - INFO - Initial checks done. Running the testcase now 2025-06-17 14:53:26,800 - INFO - 2025-06-17 14:53:27,400 - DEBUG - Response for create_network : {'network': {'id': 'c12f2e61-227b-4c2a-9be8-1e064a5de0a2', 'name': 'ctest-vn-22542687', 'tenant_id': 'a3cfab62aeb94655939a80755d8fbf83', 'project_id': 'a3cfab62aeb94655939a80755d8fbf83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77906016', 'ctest-vn-22542687'], 'port_security_enabled': True, 'description': ''}} 2025-06-17 14:53:27,646 - DEBUG - Response for create_subnet : {'subnet': {'id': '207da45a-fd81-4b4f-b40c-5cc3152f9c8f', 'name': '', 'tenant_id': 'a3cfab62aeb94655939a80755d8fbf83', 'network_id': 'c12f2e61-227b-4c2a-9be8-1e064a5de0a2', 'ip_version': 4, 'cidr': '202.228.191.0/26', 'allocation_pools': [{'start': '202.228.191.2', 'end': '202.228.191.62'}], 'gateway_ip': '202.228.191.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.228.191.2', 'tags': [], 'project_id': 'a3cfab62aeb94655939a80755d8fbf83'}} 2025-06-17 14:53:27,670 - INFO - Created VN ctest-vn-22542687 2025-06-17 14:53:27,725 - DEBUG - VN ctest-vn-22542687 UUID is c12f2e61-227b-4c2a-9be8-1e064a5de0a2 2025-06-17 14:53:28,046 - DEBUG - Response for create_network : {'network': {'id': '410286aa-9f1f-45cf-a72e-e24cbb8156c6', 'name': 'ctest-vn-86706395', 'tenant_id': 'a3cfab62aeb94655939a80755d8fbf83', 'project_id': 'a3cfab62aeb94655939a80755d8fbf83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77906016', 'ctest-vn-86706395'], 'port_security_enabled': True, 'description': ''}} 2025-06-17 14:53:28,247 - DEBUG - Response for create_subnet : {'subnet': {'id': '04f2f85c-5b82-4dc2-b589-473b6619f520', 'name': '', 'tenant_id': 'a3cfab62aeb94655939a80755d8fbf83', 'network_id': '410286aa-9f1f-45cf-a72e-e24cbb8156c6', 'ip_version': 4, 'cidr': '112.201.187.0/26', 'allocation_pools': [{'start': '112.201.187.2', 'end': '112.201.187.62'}], 'gateway_ip': '112.201.187.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.201.187.2', 'tags': [], 'project_id': 'a3cfab62aeb94655939a80755d8fbf83'}} 2025-06-17 14:53:28,267 - INFO - Created VN ctest-vn-86706395 2025-06-17 14:53:28,321 - DEBUG - VN ctest-vn-86706395 UUID is 410286aa-9f1f-45cf-a72e-e24cbb8156c6 2025-06-17 14:53:28,440 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-22542687, 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-77906016:ctest-vn-86706395, 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-06-17 14:53:28,751 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c12f2e61-227b-4c2a-9be8-1e064a5de0a2', 'name': 'ctest-vn-22542687', 'tenant_id': 'a3cfab62aeb94655939a80755d8fbf83', 'project_id': 'a3cfab62aeb94655939a80755d8fbf83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['207da45a-fd81-4b4f-b40c-5cc3152f9c8f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77906016', 'ctest-vn-22542687'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77906016', 'ctest-policy-allow-all-95039986']], 'subnet_ipam': [{'subnet_cidr': '202.228.191.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-17 14:53:29,004 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '410286aa-9f1f-45cf-a72e-e24cbb8156c6', 'name': 'ctest-vn-86706395', 'tenant_id': 'a3cfab62aeb94655939a80755d8fbf83', 'project_id': 'a3cfab62aeb94655939a80755d8fbf83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['04f2f85c-5b82-4dc2-b589-473b6619f520'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77906016', 'ctest-vn-86706395'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77906016', 'ctest-policy-allow-all-95039986']], 'subnet_ipam': [{'subnet_cidr': '112.201.187.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-17 14:53:29,181 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-17 14:53:29,488 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-17 14:53:29,522 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f83e99bc-13d5-497c-86f3-476e79570253 2025-06-17 14:53:29,538 - DEBUG - Requesting: http://10.0.0.254:8082/project/a3cfab62-aeb9-4655-939a-80755d8fbf83 2025-06-17 14:53:29,624 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c12f2e61-227b-4c2a-9be8-1e064a5de0a2 2025-06-17 14:53:29,638 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c12f2e61-227b-4c2a-9be8-1e064a5de0a2 2025-06-17 14:53:29,650 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e21bc8e-fc7b-4c6e-8077-fba4856d71b9 2025-06-17 14:53:29,659 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e21bc8e-fc7b-4c6e-8077-fba4856d71b9 2025-06-17 14:53:29,668 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c8f81b30-947b-4d57-acab-c27f7327c959 2025-06-17 14:53:29,676 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-17 14:53:29,676 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c12f2e61-227b-4c2a-9be8-1e064a5de0a2 2025-06-17 14:53:29,687 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e21bc8e-fc7b-4c6e-8077-fba4856d71b9 2025-06-17 14:53:29,706 - INFO - Verified VN network id 8 for VN c12f2e61-227b-4c2a-9be8-1e064a5de0a2 2025-06-17 14:53:29,706 - INFO - Verifications in API Server for VN ctest-vn-22542687 passed 2025-06-17 14:53:29,706 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c12f2e61-227b-4c2a-9be8-1e064a5de0a2 2025-06-17 14:53:29,717 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e21bc8e-fc7b-4c6e-8077-fba4856d71b9 2025-06-17 14:53:29,727 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e21bc8e-fc7b-4c6e-8077-fba4856d71b9 2025-06-17 14:53:29,737 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c8f81b30-947b-4d57-acab-c27f7327c959 2025-06-17 14:53:29,751 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-22542687', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77906016', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13920395967950703658', 'uuid-lslong': '11234262282842005666'}, 'enable': 'true', 'created': '2025-06-17T14:53:27', 'last-modified': '2025-06-17T14:53:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.020957'} 2025-06-17 14:53:29,759 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-17 14:53:29,759 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22542687 passed 2025-06-17 14:53:29,759 - DEBUG - ====Verifying policy data for ctest-vn-22542687 in API_Server ====== 2025-06-17 14:53:29,759 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-17 14:53:29,765 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f83e99bc-13d5-497c-86f3-476e79570253 2025-06-17 14:53:29,779 - DEBUG - Requesting: http://10.0.0.254:8082/project/a3cfab62-aeb9-4655-939a-80755d8fbf83 2025-06-17 14:53:29,854 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c12f2e61-227b-4c2a-9be8-1e064a5de0a2 2025-06-17 14:53:29,866 - DEBUG - ==>Verifying data for policy with id: 8bc64425-eeed-442b-bd61-0a807d2a4127, fqn: ['default-domain', 'ctest-TestBasicPolicy-77906016', 'ctest-policy-allow-all-95039986'] 2025-06-17 14:53:29,866 - INFO - VN ctest-vn-22542687 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-17 14:53:29,866 - DEBUG - Verifying the vn in opserver 2025-06-17 14:53:29,867 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-22542687 virtual network link through opserver 10.0.0.254 2025-06-17 14:53:29,867 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-17 14:53:30,179 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-17 14:53:30,241 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-22542687', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-22542687?flat'} 2025-06-17 14:53:30,241 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-22542687 is found in opserver 2025-06-17 14:53:30,254 - DEBUG - Do not have enough data to verify VN in agent 2025-06-17 14:53:30,260 - DEBUG - VRF ids for VN ctest-vn-22542687: {} 2025-06-17 14:53:30,260 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-17 14:53:30,267 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f83e99bc-13d5-497c-86f3-476e79570253 2025-06-17 14:53:30,281 - DEBUG - Requesting: http://10.0.0.254:8082/project/a3cfab62-aeb9-4655-939a-80755d8fbf83 2025-06-17 14:53:30,360 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/410286aa-9f1f-45cf-a72e-e24cbb8156c6 2025-06-17 14:53:30,375 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/410286aa-9f1f-45cf-a72e-e24cbb8156c6 2025-06-17 14:53:30,386 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e1124df8-162d-4100-8f6b-ee16bacf0dc7 2025-06-17 14:53:30,394 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e1124df8-162d-4100-8f6b-ee16bacf0dc7 2025-06-17 14:53:30,404 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1bedd073-fe85-4829-8005-ce73658d518d 2025-06-17 14:53:30,425 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-17 14:53:30,425 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/410286aa-9f1f-45cf-a72e-e24cbb8156c6 2025-06-17 14:53:30,437 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e1124df8-162d-4100-8f6b-ee16bacf0dc7 2025-06-17 14:53:30,460 - INFO - Verified VN network id 9 for VN 410286aa-9f1f-45cf-a72e-e24cbb8156c6 2025-06-17 14:53:30,460 - INFO - Verifications in API Server for VN ctest-vn-86706395 passed 2025-06-17 14:53:30,460 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/410286aa-9f1f-45cf-a72e-e24cbb8156c6 2025-06-17 14:53:30,471 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e1124df8-162d-4100-8f6b-ee16bacf0dc7 2025-06-17 14:53:30,479 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e1124df8-162d-4100-8f6b-ee16bacf0dc7 2025-06-17 14:53:30,488 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1bedd073-fe85-4829-8005-ce73658d518d 2025-06-17 14:53:30,504 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-86706395', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77906016', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4684454629790926287', 'uuid-lslong': '12046814872453863110'}, 'enable': 'true', 'created': '2025-06-17T14:53:28', 'last-modified': '2025-06-17T14:53:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.530113'} 2025-06-17 14:53:30,512 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-17 14:53:30,512 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86706395 passed 2025-06-17 14:53:30,512 - DEBUG - ====Verifying policy data for ctest-vn-86706395 in API_Server ====== 2025-06-17 14:53:30,512 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-17 14:53:30,519 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f83e99bc-13d5-497c-86f3-476e79570253 2025-06-17 14:53:30,535 - DEBUG - Requesting: http://10.0.0.254:8082/project/a3cfab62-aeb9-4655-939a-80755d8fbf83 2025-06-17 14:53:30,624 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/410286aa-9f1f-45cf-a72e-e24cbb8156c6 2025-06-17 14:53:30,637 - DEBUG - ==>Verifying data for policy with id: 8bc64425-eeed-442b-bd61-0a807d2a4127, fqn: ['default-domain', 'ctest-TestBasicPolicy-77906016', 'ctest-policy-allow-all-95039986'] 2025-06-17 14:53:30,637 - INFO - VN ctest-vn-86706395 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-17 14:53:30,637 - DEBUG - Verifying the vn in opserver 2025-06-17 14:53:30,637 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-86706395 virtual network link through opserver 10.0.0.254 2025-06-17 14:53:30,637 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-17 14:53:30,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-86706395', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-86706395?flat'} 2025-06-17 14:53:30,650 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-86706395 is found in opserver 2025-06-17 14:53:30,669 - DEBUG - Do not have enough data to verify VN in agent 2025-06-17 14:53:30,675 - DEBUG - VRF ids for VN ctest-vn-86706395: {} 2025-06-17 14:53:30,738 - DEBUG - Services list from nova: [, , ] 2025-06-17 14:53:31,858 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3462-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3462-1) 2025-06-17 14:53:33,193 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3462-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3462-1) 2025-06-17 14:53:33,193 - INFO - Waiting for VM ctest-TestBasicPolicy-77906016-62146974 to be up.. 2025-06-17 14:53:33,289 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-17 14:53:38,403 - DEBUG - VM is in ACTIVE state now 2025-06-17 14:53:38,403 - INFO - VM name : ctest-TestBasicPolicy-77906016-62146974 2025-06-17 14:53:38,522 - DEBUG - VM ctest-TestBasicPolicy-77906016-62146974 ID is 4b729903-39d5-420c-9a0e-08fc30467206 2025-06-17 14:53:38,549 - DEBUG - VM ctest-TestBasicPolicy-77906016-62146974 launched on Node cn-jenkins-deploy-platform-ansible-os-3462-1 2025-06-17 14:53:38,632 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/4b729903-39d5-420c-9a0e-08fc30467206 2025-06-17 14:53:38,641 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/8356d74d-562a-44c3-9ccb-56e1c9691363 2025-06-17 14:53:41,924 - 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 1026ms') 2025-06-17 14:53:41,924 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77906016-62146974 failed! 2025-06-17 14:53:41,996 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-77906016:ctest-vn-22542687 is 202.228.191.1 and allocation pool is NOT set 2025-06-17 14:53:44,065 - 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=12.6 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.14 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.138/7.382/12.627/5.244 ms') 2025-06-17 14:53:44,065 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77906016-62146974 passed 2025-06-17 14:53:44,225 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-17 14:53:44,225 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77906016-62146974, IP 202.228.191.3, Port 22 2025-06-17 14:53:44,390 - DEBUG - VM ctest-TestBasicPolicy-77906016-62146974 is ready for SSH connections 2025-06-17 14:53:44,391 - INFO - Waiting for VM ctest-TestBasicPolicy-77906016-13175188 to be up.. 2025-06-17 14:53:44,495 - DEBUG - VM is in ACTIVE state now 2025-06-17 14:53:44,495 - INFO - VM name : ctest-TestBasicPolicy-77906016-13175188 2025-06-17 14:53:44,579 - DEBUG - VM ctest-TestBasicPolicy-77906016-13175188 ID is d594673f-bb7d-4d24-b843-487ea9ae7f11 2025-06-17 14:53:44,579 - DEBUG - VM ctest-TestBasicPolicy-77906016-13175188 launched on Node cn-jenkins-deploy-platform-ansible-os-3462-1 2025-06-17 14:53:44,678 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/d594673f-bb7d-4d24-b843-487ea9ae7f11 2025-06-17 14:53:44,688 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/570e4a85-ece8-4ae8-8174-e336a5f11c7b 2025-06-17 14:53:45,951 - 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.50 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.477 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 = 0.477/1.986/3.496/1.509 ms') 2025-06-17 14:53:45,951 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-77906016-13175188 passed 2025-06-17 14:53:46,117 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-17 14:53:46,117 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77906016-13175188, IP 112.201.187.3, Port 22 2025-06-17 14:53:46,273 - DEBUG - VM ctest-TestBasicPolicy-77906016-13175188 is ready for SSH connections 2025-06-17 14:53:46,273 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-17 14:53:46,273 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.201.187.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-17 14:53:46,273 - DEBUG - ping -s 56 -c 3 -W 1 112.201.187.3 2025-06-17 14:53:50,063 - DEBUG - PING 112.201.187.3 (112.201.187.3): 56 data bytes 64 bytes from 112.201.187.3: seq=0 ttl=63 time=5.038 ms 64 bytes from 112.201.187.3: seq=1 ttl=63 time=0.842 ms 64 bytes from 112.201.187.3: seq=2 ttl=63 time=0.901 ms --- 112.201.187.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.842/2.260/5.038 ms 2025-06-17 14:53:50,063 - INFO - Ping to IP 112.201.187.3 from VM ctest-TestBasicPolicy-77906016-62146974 passed 2025-06-17 14:53:50,260 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8bc64425-eeed-442b-bd61-0a807d2a4127", "href": "http://10.0.0.254:8082/network-policy/8bc64425-eeed-442b-bd61-0a807d2a4127"}} 2025-06-17 14:53:50,260 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-17 14:53:50,261 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.201.187.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-17 14:53:50,261 - DEBUG - ping -s 56 -c 3 -W 1 112.201.187.3 2025-06-17 14:53:53,495 - DEBUG - PING 112.201.187.3 (112.201.187.3): 56 data bytes 64 bytes from 112.201.187.3: seq=0 ttl=63 time=2.511 ms --- 112.201.187.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.511/2.511/2.511 ms 2025-06-17 14:53:53,496 - WARNING - Ping to IP 112.201.187.3 from VM ctest-TestBasicPolicy-77906016-62146974 failed 2025-06-17 14:53:53,496 - INFO - Deleting VM ctest-TestBasicPolicy-77906016-13175188 2025-06-17 14:53:53,575 - INFO - Deleting VM ctest-TestBasicPolicy-77906016-62146974 2025-06-17 14:53:53,997 - INFO - Deleted policy ctest-policy-allow-all-95039986 2025-06-17 14:53:53,997 - INFO - Deleting VN ctest-vn-86706395 2025-06-17 14:53:54,050 - DEBUG - VN 410286aa-9f1f-45cf-a72e-e24cbb8156c6 still in use: Unable to complete operation on network 410286aa-9f1f-45cf-a72e-e24cbb8156c6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6f53b392-d894-4781-82a6-20a2bd7e4675'] 2025-06-17 14:53:54,050 - WARNING - Deleting VN ctest-vn-86706395 failed..Will retry 2025-06-17 14:53:56,229 - DEBUG - Response for deleting network () 2025-06-17 14:53:56,229 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e1124df8-162d-4100-8f6b-ee16bacf0dc7 2025-06-17 14:53:56,238 - DEBUG - Response Code: 404 2025-06-17 14:53:56,239 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-17 14:53:56,246 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f83e99bc-13d5-497c-86f3-476e79570253 2025-06-17 14:53:56,305 - DEBUG - Requesting: http://10.0.0.254:8082/project/a3cfab62-aeb9-4655-939a-80755d8fbf83 2025-06-17 14:53:56,390 - INFO - Validated that VN ctest-vn-86706395 is not found in API Server 2025-06-17 14:53:56,402 - DEBUG - VN ctest-vn-86706395 is not present in Agent 10.0.0.254 2025-06-17 14:53:56,402 - INFO - Validated that VN ctest-vn-86706395 is not in any agent 2025-06-17 14:53:56,421 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-86706395 info 2025-06-17 14:53:56,421 - INFO - Deleting VN ctest-vn-22542687 2025-06-17 14:53:56,543 - DEBUG - Response for deleting network () 2025-06-17 14:53:56,543 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e21bc8e-fc7b-4c6e-8077-fba4856d71b9 2025-06-17 14:53:56,551 - DEBUG - Response Code: 404 2025-06-17 14:53:56,551 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-17 14:53:56,557 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f83e99bc-13d5-497c-86f3-476e79570253 2025-06-17 14:53:56,619 - DEBUG - Requesting: http://10.0.0.254:8082/project/a3cfab62-aeb9-4655-939a-80755d8fbf83 2025-06-17 14:53:56,695 - INFO - Validated that VN ctest-vn-22542687 is not found in API Server 2025-06-17 14:53:56,708 - DEBUG - VN ctest-vn-22542687 is not present in Agent 10.0.0.254 2025-06-17 14:53:56,708 - INFO - Validated that VN ctest-vn-22542687 is not in any agent 2025-06-17 14:53:56,728 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-22542687 info 2025-06-17 14:53:56,987 - DEBUG - No XMPP flaps were noticed during the test
2025-06-17 14:53:56,987 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-06-17 14:53:56,987 - INFO - -------------------------------------------------------------------------------- 2025-06-17 14:53:57,713 - INFO - Deleted project: ctest-TestBasicPolicy-77906016, ID : a3cfab62-aeb9-4655-939a-80755d8fbf83