2025-06-19 08:08:26,508 - INFO - Domain Default found not creating 2025-06-19 08:08:26,644 - INFO - Project ctest-TestBasicPolicy-60449486 not found, creating it 2025-06-19 08:08:27,114 - INFO - Created Project:ctest-TestBasicPolicy-60449486, ID : 4d6e3dd6-b9fc-4268-b2ed-5a33b411e187 2025-06-19 08:08:28,700 - INFO - ================================================================================ 2025-06-19 08:08:28,700 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-19 08:08:28,700 - 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-19 08:08:28,964 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-06-19 08:08:28,964 - INFO - Initial checks done. Running the testcase now 2025-06-19 08:08:28,964 - INFO - 2025-06-19 08:08:29,565 - DEBUG - Response for create_network : {'network': {'id': '64418a17-7d35-4430-ad71-5bd157c0442d', 'name': 'ctest-vn-08525513', 'tenant_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'project_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60449486', 'ctest-vn-08525513'], 'port_security_enabled': True, 'description': ''}} 2025-06-19 08:08:29,740 - DEBUG - Response for create_subnet : {'subnet': {'id': '1bda32df-252d-4a7b-b776-a11183dd5346', 'name': '', 'tenant_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'network_id': '64418a17-7d35-4430-ad71-5bd157c0442d', 'ip_version': 4, 'cidr': '197.55.251.64/26', 'allocation_pools': [{'start': '197.55.251.66', 'end': '197.55.251.126'}], 'gateway_ip': '197.55.251.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.55.251.66', 'tags': [], 'project_id': '4d6e3dd6b9fc4268b2ed5a33b411e187'}} 2025-06-19 08:08:29,762 - INFO - Created VN ctest-vn-08525513 2025-06-19 08:08:29,818 - DEBUG - VN ctest-vn-08525513 UUID is 64418a17-7d35-4430-ad71-5bd157c0442d 2025-06-19 08:08:30,165 - DEBUG - Response for create_network : {'network': {'id': '67e1e074-6752-4adc-b2f1-96d89792eed4', 'name': 'ctest-vn-85501307', 'tenant_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'project_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60449486', 'ctest-vn-85501307'], 'port_security_enabled': True, 'description': ''}} 2025-06-19 08:08:30,371 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a453f89-641b-43ce-a552-995b425311bb', 'name': '', 'tenant_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'network_id': '67e1e074-6752-4adc-b2f1-96d89792eed4', 'ip_version': 4, 'cidr': '120.16.222.64/26', 'allocation_pools': [{'start': '120.16.222.66', 'end': '120.16.222.126'}], 'gateway_ip': '120.16.222.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.16.222.66', 'tags': [], 'project_id': '4d6e3dd6b9fc4268b2ed5a33b411e187'}} 2025-06-19 08:08:30,391 - INFO - Created VN ctest-vn-85501307 2025-06-19 08:08:30,446 - DEBUG - VN ctest-vn-85501307 UUID is 67e1e074-6752-4adc-b2f1-96d89792eed4 2025-06-19 08:08:30,568 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-08525513, 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-60449486:ctest-vn-85501307, 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-19 08:08:30,873 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '64418a17-7d35-4430-ad71-5bd157c0442d', 'name': 'ctest-vn-08525513', 'tenant_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'project_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1bda32df-252d-4a7b-b776-a11183dd5346'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60449486', 'ctest-vn-08525513'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60449486', 'ctest-policy-allow-all-54697152']], 'subnet_ipam': [{'subnet_cidr': '197.55.251.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-19 08:08:31,192 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '67e1e074-6752-4adc-b2f1-96d89792eed4', 'name': 'ctest-vn-85501307', 'tenant_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'project_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3a453f89-641b-43ce-a552-995b425311bb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60449486', 'ctest-vn-85501307'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60449486', 'ctest-policy-allow-all-54697152']], 'subnet_ipam': [{'subnet_cidr': '120.16.222.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-19 08:08:31,342 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-19 08:08:31,689 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-19 08:08:31,720 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac2177e2-85cb-448b-aa83-8e377ff2e421 2025-06-19 08:08:31,737 - DEBUG - Requesting: http://10.0.0.254:8082/project/4d6e3dd6-b9fc-4268-b2ed-5a33b411e187 2025-06-19 08:08:31,818 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/64418a17-7d35-4430-ad71-5bd157c0442d 2025-06-19 08:08:31,831 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/64418a17-7d35-4430-ad71-5bd157c0442d 2025-06-19 08:08:31,843 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/36415e67-c79c-474d-bcd0-7e9b5b64a547 2025-06-19 08:08:31,852 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/36415e67-c79c-474d-bcd0-7e9b5b64a547 2025-06-19 08:08:31,860 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fc556beb-11c1-4119-9858-61a87e9b8a61 2025-06-19 08:08:31,868 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-19 08:08:31,868 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/64418a17-7d35-4430-ad71-5bd157c0442d 2025-06-19 08:08:31,879 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/36415e67-c79c-474d-bcd0-7e9b5b64a547 2025-06-19 08:08:31,897 - INFO - Verified VN network id 8 for VN 64418a17-7d35-4430-ad71-5bd157c0442d 2025-06-19 08:08:31,897 - INFO - Verifications in API Server for VN ctest-vn-08525513 passed 2025-06-19 08:08:31,897 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/64418a17-7d35-4430-ad71-5bd157c0442d 2025-06-19 08:08:31,910 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/36415e67-c79c-474d-bcd0-7e9b5b64a547 2025-06-19 08:08:31,919 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/36415e67-c79c-474d-bcd0-7e9b5b64a547 2025-06-19 08:08:31,927 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fc556beb-11c1-4119-9858-61a87e9b8a61 2025-06-19 08:08:31,942 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-08525513', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60449486', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7224207110768510000', 'uuid-lslong': '12497871395608347693'}, 'enable': 'true', 'created': '2025-06-19T08:08:29', 'last-modified': '2025-06-19T08:08:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.092853'} 2025-06-19 08:08:31,951 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-19 08:08:31,951 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08525513 passed 2025-06-19 08:08:31,951 - DEBUG - ====Verifying policy data for ctest-vn-08525513 in API_Server ====== 2025-06-19 08:08:31,951 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-19 08:08:31,963 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac2177e2-85cb-448b-aa83-8e377ff2e421 2025-06-19 08:08:31,979 - DEBUG - Requesting: http://10.0.0.254:8082/project/4d6e3dd6-b9fc-4268-b2ed-5a33b411e187 2025-06-19 08:08:32,057 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/64418a17-7d35-4430-ad71-5bd157c0442d 2025-06-19 08:08:32,071 - DEBUG - ==>Verifying data for policy with id: 77468cb1-e198-4e64-a41e-760fbe7e9379, fqn: ['default-domain', 'ctest-TestBasicPolicy-60449486', 'ctest-policy-allow-all-54697152'] 2025-06-19 08:08:32,071 - INFO - VN ctest-vn-08525513 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-19 08:08:32,071 - DEBUG - Verifying the vn in opserver 2025-06-19 08:08:32,071 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-08525513 virtual network link through opserver 10.0.0.254 2025-06-19 08:08:32,071 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-19 08:08:32,405 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-19 08:08:32,475 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-08525513', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-08525513?flat'} 2025-06-19 08:08:32,475 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-08525513 is found in opserver 2025-06-19 08:08:32,490 - DEBUG - Do not have enough data to verify VN in agent 2025-06-19 08:08:32,498 - DEBUG - VRF ids for VN ctest-vn-08525513: {} 2025-06-19 08:08:32,498 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-19 08:08:32,505 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac2177e2-85cb-448b-aa83-8e377ff2e421 2025-06-19 08:08:32,520 - DEBUG - Requesting: http://10.0.0.254:8082/project/4d6e3dd6-b9fc-4268-b2ed-5a33b411e187 2025-06-19 08:08:32,597 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/67e1e074-6752-4adc-b2f1-96d89792eed4 2025-06-19 08:08:32,613 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/67e1e074-6752-4adc-b2f1-96d89792eed4 2025-06-19 08:08:32,623 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/163dce3d-ee23-47d9-8382-b19358665c07 2025-06-19 08:08:32,631 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/163dce3d-ee23-47d9-8382-b19358665c07 2025-06-19 08:08:32,637 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b2770683-151b-491b-a195-531016b6f69a 2025-06-19 08:08:32,644 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-19 08:08:32,644 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/67e1e074-6752-4adc-b2f1-96d89792eed4 2025-06-19 08:08:32,654 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/163dce3d-ee23-47d9-8382-b19358665c07 2025-06-19 08:08:32,668 - INFO - Verified VN network id 9 for VN 67e1e074-6752-4adc-b2f1-96d89792eed4 2025-06-19 08:08:32,668 - INFO - Verifications in API Server for VN ctest-vn-85501307 passed 2025-06-19 08:08:32,668 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/67e1e074-6752-4adc-b2f1-96d89792eed4 2025-06-19 08:08:32,679 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/163dce3d-ee23-47d9-8382-b19358665c07 2025-06-19 08:08:32,687 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/163dce3d-ee23-47d9-8382-b19358665c07 2025-06-19 08:08:32,695 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b2770683-151b-491b-a195-531016b6f69a 2025-06-19 08:08:32,710 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-85501307', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60449486', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7485510846220749532', 'uuid-lslong': '12894253065138532052'}, 'enable': 'true', 'created': '2025-06-19T08:08:30', 'last-modified': '2025-06-19T08:08:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.598859'} 2025-06-19 08:08:32,717 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-19 08:08:32,717 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85501307 passed 2025-06-19 08:08:32,717 - DEBUG - ====Verifying policy data for ctest-vn-85501307 in API_Server ====== 2025-06-19 08:08:32,717 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-19 08:08:32,724 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac2177e2-85cb-448b-aa83-8e377ff2e421 2025-06-19 08:08:32,737 - DEBUG - Requesting: http://10.0.0.254:8082/project/4d6e3dd6-b9fc-4268-b2ed-5a33b411e187 2025-06-19 08:08:32,812 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/67e1e074-6752-4adc-b2f1-96d89792eed4 2025-06-19 08:08:32,823 - DEBUG - ==>Verifying data for policy with id: 77468cb1-e198-4e64-a41e-760fbe7e9379, fqn: ['default-domain', 'ctest-TestBasicPolicy-60449486', 'ctest-policy-allow-all-54697152'] 2025-06-19 08:08:32,823 - INFO - VN ctest-vn-85501307 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-19 08:08:32,823 - DEBUG - Verifying the vn in opserver 2025-06-19 08:08:32,823 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-85501307 virtual network link through opserver 10.0.0.254 2025-06-19 08:08:32,823 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-19 08:08:32,834 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-85501307', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-85501307?flat'} 2025-06-19 08:08:32,835 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-85501307 is found in opserver 2025-06-19 08:08:32,847 - DEBUG - Do not have enough data to verify VN in agent 2025-06-19 08:08:32,852 - DEBUG - VRF ids for VN ctest-vn-85501307: {} 2025-06-19 08:08:32,916 - DEBUG - Services list from nova: [, , ] 2025-06-19 08:08:34,002 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3485-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3485-1) 2025-06-19 08:08:35,323 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3485-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3485-1) 2025-06-19 08:08:35,324 - INFO - Waiting for VM ctest-TestBasicPolicy-60449486-05022913 to be up.. 2025-06-19 08:08:35,408 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-19 08:08:40,505 - DEBUG - VM is in ACTIVE state now 2025-06-19 08:08:40,506 - INFO - VM name : ctest-TestBasicPolicy-60449486-05022913 2025-06-19 08:08:40,588 - DEBUG - VM ctest-TestBasicPolicy-60449486-05022913 ID is 71817a46-bdce-4f38-9bbe-52b3b821ef11 2025-06-19 08:08:40,606 - DEBUG - VM ctest-TestBasicPolicy-60449486-05022913 launched on Node cn-jenkins-deploy-platform-ansible-os-3485-1 2025-06-19 08:08:40,692 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/71817a46-bdce-4f38-9bbe-52b3b821ef11 2025-06-19 08:08:40,701 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/7982d94c-97e1-4b16-bdc4-68302867a46f 2025-06-19 08:08:43,951 - 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 1006ms') 2025-06-19 08:08:43,951 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60449486-05022913 failed! 2025-06-19 08:08:44,006 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-08525513 is 197.55.251.65 and allocation pool is NOT set 2025-06-19 08:08:46,066 - 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=7.64 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.442 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 = 0.442/4.041/7.641/3.599 ms') 2025-06-19 08:08:46,066 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60449486-05022913 passed 2025-06-19 08:08:46,226 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 08:08:46,227 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60449486-05022913, IP 197.55.251.67, Port 22 2025-06-19 08:08:46,400 - DEBUG - VM ctest-TestBasicPolicy-60449486-05022913 is ready for SSH connections 2025-06-19 08:08:46,400 - INFO - Waiting for VM ctest-TestBasicPolicy-60449486-04925897 to be up.. 2025-06-19 08:08:46,523 - DEBUG - VM is in ACTIVE state now 2025-06-19 08:08:46,523 - INFO - VM name : ctest-TestBasicPolicy-60449486-04925897 2025-06-19 08:08:46,633 - DEBUG - VM ctest-TestBasicPolicy-60449486-04925897 ID is caa076d3-314f-4c9c-bab2-7607e896838b 2025-06-19 08:08:46,633 - DEBUG - VM ctest-TestBasicPolicy-60449486-04925897 launched on Node cn-jenkins-deploy-platform-ansible-os-3485-1 2025-06-19 08:08:46,736 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/caa076d3-314f-4c9c-bab2-7607e896838b 2025-06-19 08:08:46,747 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/382693c7-e964-4c0b-a71a-67704a02145c 2025-06-19 08:08:47,991 - 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.01 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.725 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.725/1.869/3.014/1.144 ms') 2025-06-19 08:08:47,991 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-60449486-04925897 passed 2025-06-19 08:08:48,154 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 08:08:48,154 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60449486-04925897, IP 120.16.222.67, Port 22 2025-06-19 08:08:48,314 - DEBUG - VM ctest-TestBasicPolicy-60449486-04925897 is ready for SSH connections 2025-06-19 08:08:48,314 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 08:08:48,314 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 120.16.222.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-19 08:08:48,314 - DEBUG - ping -s 56 -c 3 -W 1 120.16.222.67 2025-06-19 08:08:52,070 - DEBUG - PING 120.16.222.67 (120.16.222.67): 56 data bytes 64 bytes from 120.16.222.67: seq=0 ttl=63 time=4.178 ms 64 bytes from 120.16.222.67: seq=1 ttl=63 time=1.386 ms 64 bytes from 120.16.222.67: seq=2 ttl=63 time=1.056 ms --- 120.16.222.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.056/2.206/4.178 ms 2025-06-19 08:08:52,070 - INFO - Ping to IP 120.16.222.67 from VM ctest-TestBasicPolicy-60449486-05022913 passed 2025-06-19 08:08:52,262 - DEBUG - Policy Update Response {"network-policy": {"uuid": "77468cb1-e198-4e64-a41e-760fbe7e9379", "href": "http://10.0.0.254:8082/network-policy/77468cb1-e198-4e64-a41e-760fbe7e9379"}} 2025-06-19 08:08:52,262 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 08:08:52,263 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 120.16.222.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-19 08:08:52,263 - DEBUG - ping -s 56 -c 3 -W 1 120.16.222.67 2025-06-19 08:08:55,499 - DEBUG - PING 120.16.222.67 (120.16.222.67): 56 data bytes 64 bytes from 120.16.222.67: seq=0 ttl=63 time=1.739 ms --- 120.16.222.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.739/1.739/1.739 ms 2025-06-19 08:08:55,499 - WARNING - Ping to IP 120.16.222.67 from VM ctest-TestBasicPolicy-60449486-05022913 failed 2025-06-19 08:08:55,499 - INFO - Deleting VM ctest-TestBasicPolicy-60449486-04925897 2025-06-19 08:08:55,566 - INFO - Deleting VM ctest-TestBasicPolicy-60449486-05022913 2025-06-19 08:08:56,012 - INFO - Deleted policy ctest-policy-allow-all-54697152 2025-06-19 08:08:56,012 - INFO - Deleting VN ctest-vn-85501307 2025-06-19 08:08:56,056 - DEBUG - VN 67e1e074-6752-4adc-b2f1-96d89792eed4 still in use: Unable to complete operation on network 67e1e074-6752-4adc-b2f1-96d89792eed4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-646b8246-c9ab-4e92-b73a-6256b4904002'] 2025-06-19 08:08:56,056 - WARNING - Deleting VN ctest-vn-85501307 failed..Will retry 2025-06-19 08:08:58,343 - DEBUG - Response for deleting network () 2025-06-19 08:08:58,343 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/163dce3d-ee23-47d9-8382-b19358665c07 2025-06-19 08:08:58,351 - DEBUG - Response Code: 404 2025-06-19 08:08:58,352 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-19 08:08:58,373 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac2177e2-85cb-448b-aa83-8e377ff2e421 2025-06-19 08:08:58,405 - DEBUG - Requesting: http://10.0.0.254:8082/project/4d6e3dd6-b9fc-4268-b2ed-5a33b411e187 2025-06-19 08:08:58,491 - INFO - Validated that VN ctest-vn-85501307 is not found in API Server 2025-06-19 08:08:58,505 - DEBUG - VN ctest-vn-85501307 is not present in Agent 10.0.0.254 2025-06-19 08:08:58,505 - INFO - Validated that VN ctest-vn-85501307 is not in any agent 2025-06-19 08:08:58,525 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-85501307 info 2025-06-19 08:08:58,525 - INFO - Deleting VN ctest-vn-08525513 2025-06-19 08:08:58,651 - DEBUG - Response for deleting network () 2025-06-19 08:08:58,651 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/36415e67-c79c-474d-bcd0-7e9b5b64a547 2025-06-19 08:08:58,657 - DEBUG - Response Code: 404 2025-06-19 08:08:58,657 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-19 08:08:58,664 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac2177e2-85cb-448b-aa83-8e377ff2e421 2025-06-19 08:08:58,721 - DEBUG - Requesting: http://10.0.0.254:8082/project/4d6e3dd6-b9fc-4268-b2ed-5a33b411e187 2025-06-19 08:08:58,800 - INFO - Validated that VN ctest-vn-08525513 is not found in API Server 2025-06-19 08:08:58,813 - DEBUG - VN ctest-vn-08525513 is not present in Agent 10.0.0.254 2025-06-19 08:08:58,813 - INFO - Validated that VN ctest-vn-08525513 is not in any agent 2025-06-19 08:08:58,832 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-08525513 info 2025-06-19 08:08:59,093 - DEBUG - No XMPP flaps were noticed during the test
2025-06-19 08:08:59,093 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2025-06-19 08:08:59,093 - INFO - -------------------------------------------------------------------------------- 2025-06-19 08:08:59,854 - INFO - Deleted project: ctest-TestBasicPolicy-60449486, ID : 4d6e3dd6-b9fc-4268-b2ed-5a33b411e187