2025-10-31 22:29:43,823 - INFO - Domain Default found not creating 2025-10-31 22:29:43,974 - INFO - Project ctest-TestBasicPolicy-12778936 not found, creating it 2025-10-31 22:29:44,426 - INFO - Created Project:ctest-TestBasicPolicy-12778936, ID : 9f61edc8-fe3d-4e18-9beb-5e7e8ec560a7 2025-10-31 22:29:45,975 - INFO - ================================================================================ 2025-10-31 22:29:45,975 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-31 22:29:45,975 - 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-10-31 22:29:46,242 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2025-10-31 22:29:46,242 - INFO - Initial checks done. Running the testcase now 2025-10-31 22:29:46,242 - INFO - 2025-10-31 22:29:46,936 - DEBUG - Response for create_network : {'network': {'id': '761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab', 'name': 'ctest-vn-91223708', 'tenant_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'project_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12778936', 'ctest-vn-91223708'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 22:29:47,153 - DEBUG - Response for create_subnet : {'subnet': {'id': '500775c5-f64d-46ac-a107-a643273151d3', 'name': '', 'tenant_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'network_id': '761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab', 'ip_version': 4, 'cidr': '96.20.205.192/26', 'allocation_pools': [{'start': '96.20.205.194', 'end': '96.20.205.254'}], 'gateway_ip': '96.20.205.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.20.205.194', 'tags': [], 'project_id': '9f61edc8fe3d4e189beb5e7e8ec560a7'}} 2025-10-31 22:29:47,171 - INFO - Created VN ctest-vn-91223708 2025-10-31 22:29:47,229 - DEBUG - VN ctest-vn-91223708 UUID is 761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab 2025-10-31 22:29:47,558 - DEBUG - Response for create_network : {'network': {'id': 'abf7e4c5-3c20-46b5-92a9-79e974fe8e05', 'name': 'ctest-vn-89509342', 'tenant_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'project_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12778936', 'ctest-vn-89509342'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 22:29:47,747 - DEBUG - Response for create_subnet : {'subnet': {'id': '6eb3c03f-be37-4a3f-aa40-5ff296f86319', 'name': '', 'tenant_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'network_id': 'abf7e4c5-3c20-46b5-92a9-79e974fe8e05', 'ip_version': 4, 'cidr': '216.7.171.128/26', 'allocation_pools': [{'start': '216.7.171.130', 'end': '216.7.171.190'}], 'gateway_ip': '216.7.171.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.7.171.130', 'tags': [], 'project_id': '9f61edc8fe3d4e189beb5e7e8ec560a7'}} 2025-10-31 22:29:47,763 - INFO - Created VN ctest-vn-89509342 2025-10-31 22:29:47,813 - DEBUG - VN ctest-vn-89509342 UUID is abf7e4c5-3c20-46b5-92a9-79e974fe8e05 2025-10-31 22:29:47,961 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-91223708, 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-12778936:ctest-vn-89509342, 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-10-31 22:29:48,247 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab', 'name': 'ctest-vn-91223708', 'tenant_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'project_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['500775c5-f64d-46ac-a107-a643273151d3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12778936', 'ctest-vn-91223708'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12778936', 'ctest-policy-allow-all-39451373']], 'subnet_ipam': [{'subnet_cidr': '96.20.205.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 22:29:48,508 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'abf7e4c5-3c20-46b5-92a9-79e974fe8e05', 'name': 'ctest-vn-89509342', 'tenant_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'project_id': '9f61edc8fe3d4e189beb5e7e8ec560a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6eb3c03f-be37-4a3f-aa40-5ff296f86319'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12778936', 'ctest-vn-89509342'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12778936', 'ctest-policy-allow-all-39451373']], 'subnet_ipam': [{'subnet_cidr': '216.7.171.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 22:29:48,657 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-31 22:29:48,990 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-31 22:29:49,017 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a62c51b6-741f-4137-91f9-451672835fa6 2025-10-31 22:29:49,028 - DEBUG - Requesting: http://10.0.0.33:8082/project/9f61edc8-fe3d-4e18-9beb-5e7e8ec560a7 2025-10-31 22:29:49,101 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab 2025-10-31 22:29:49,111 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab 2025-10-31 22:29:49,120 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d9809053-75ac-4f98-bcc7-75a2196396a0 2025-10-31 22:29:49,126 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d9809053-75ac-4f98-bcc7-75a2196396a0 2025-10-31 22:29:49,132 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/72e75e12-ccbc-498e-8ea7-59777a171fe9 2025-10-31 22:29:49,138 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 22:29:49,138 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab 2025-10-31 22:29:49,147 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d9809053-75ac-4f98-bcc7-75a2196396a0 2025-10-31 22:29:49,160 - INFO - Verified VN network id 12 for VN 761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab 2025-10-31 22:29:49,160 - INFO - Verifications in API Server for VN ctest-vn-91223708 passed 2025-10-31 22:29:49,160 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab 2025-10-31 22:29:49,169 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d9809053-75ac-4f98-bcc7-75a2196396a0 2025-10-31 22:29:49,178 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d9809053-75ac-4f98-bcc7-75a2196396a0 2025-10-31 22:29:49,184 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/72e75e12-ccbc-498e-8ea7-59777a171fe9 2025-10-31 22:29:49,195 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-91223708', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12778936', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8510546567073120968', 'uuid-lslong': '10067626430171883691'}, 'enable': 'true', 'created': '2025-10-31T22:29:46', 'last-modified': '2025-10-31T22:29:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974171'} 2025-10-31 22:29:49,203 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 22:29:49,203 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91223708 passed 2025-10-31 22:29:49,203 - DEBUG - ====Verifying policy data for ctest-vn-91223708 in API_Server ====== 2025-10-31 22:29:49,203 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-31 22:29:49,209 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a62c51b6-741f-4137-91f9-451672835fa6 2025-10-31 22:29:49,220 - DEBUG - Requesting: http://10.0.0.33:8082/project/9f61edc8-fe3d-4e18-9beb-5e7e8ec560a7 2025-10-31 22:29:49,296 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/761b8903-0ed0-42c8-8bb7-64e5cdbaa8ab 2025-10-31 22:29:49,308 - DEBUG - ==>Verifying data for policy with id: e6047022-f347-4312-8d89-ad13ee5f9fa3, fqn: ['default-domain', 'ctest-TestBasicPolicy-12778936', 'ctest-policy-allow-all-39451373'] 2025-10-31 22:29:49,308 - INFO - VN ctest-vn-91223708 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 22:29:49,308 - DEBUG - Verifying the vn in opserver 2025-10-31 22:29:49,308 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-91223708 virtual network link through opserver 10.0.0.33 2025-10-31 22:29:49,308 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-31 22:29:49,639 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-31 22:29:49,692 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-91223708', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-91223708?flat'} 2025-10-31 22:29:49,692 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-91223708 is found in opserver 2025-10-31 22:29:49,702 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 22:29:49,706 - DEBUG - VRF ids for VN ctest-vn-91223708: {} 2025-10-31 22:29:49,706 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-31 22:29:49,712 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a62c51b6-741f-4137-91f9-451672835fa6 2025-10-31 22:29:49,722 - DEBUG - Requesting: http://10.0.0.33:8082/project/9f61edc8-fe3d-4e18-9beb-5e7e8ec560a7 2025-10-31 22:29:49,799 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/abf7e4c5-3c20-46b5-92a9-79e974fe8e05 2025-10-31 22:29:49,812 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/abf7e4c5-3c20-46b5-92a9-79e974fe8e05 2025-10-31 22:29:49,820 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e5821c89-5eee-4f9a-86ed-a2158e7b05dc 2025-10-31 22:29:49,826 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e5821c89-5eee-4f9a-86ed-a2158e7b05dc 2025-10-31 22:29:49,832 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5c66f707-59e3-423d-98b8-c7fd09999362 2025-10-31 22:29:49,838 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-31 22:29:49,838 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/abf7e4c5-3c20-46b5-92a9-79e974fe8e05 2025-10-31 22:29:49,846 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e5821c89-5eee-4f9a-86ed-a2158e7b05dc 2025-10-31 22:29:49,857 - INFO - Verified VN network id 13 for VN abf7e4c5-3c20-46b5-92a9-79e974fe8e05 2025-10-31 22:29:49,858 - INFO - Verifications in API Server for VN ctest-vn-89509342 passed 2025-10-31 22:29:49,858 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/abf7e4c5-3c20-46b5-92a9-79e974fe8e05 2025-10-31 22:29:49,866 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e5821c89-5eee-4f9a-86ed-a2158e7b05dc 2025-10-31 22:29:49,872 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e5821c89-5eee-4f9a-86ed-a2158e7b05dc 2025-10-31 22:29:49,877 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5c66f707-59e3-423d-98b8-c7fd09999362 2025-10-31 22:29:49,887 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-89509342', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12778936', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12391624435501647541', 'uuid-lslong': '10568112044198759941'}, 'enable': 'true', 'created': '2025-10-31T22:29:47', 'last-modified': '2025-10-31T22:29:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.443339'} 2025-10-31 22:29:49,892 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-31 22:29:49,893 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89509342 passed 2025-10-31 22:29:49,893 - DEBUG - ====Verifying policy data for ctest-vn-89509342 in API_Server ====== 2025-10-31 22:29:49,893 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-31 22:29:49,898 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a62c51b6-741f-4137-91f9-451672835fa6 2025-10-31 22:29:49,907 - DEBUG - Requesting: http://10.0.0.33:8082/project/9f61edc8-fe3d-4e18-9beb-5e7e8ec560a7 2025-10-31 22:29:49,972 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/abf7e4c5-3c20-46b5-92a9-79e974fe8e05 2025-10-31 22:29:49,982 - DEBUG - ==>Verifying data for policy with id: e6047022-f347-4312-8d89-ad13ee5f9fa3, fqn: ['default-domain', 'ctest-TestBasicPolicy-12778936', 'ctest-policy-allow-all-39451373'] 2025-10-31 22:29:49,982 - INFO - VN ctest-vn-89509342 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 22:29:49,982 - DEBUG - Verifying the vn in opserver 2025-10-31 22:29:49,982 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-89509342 virtual network link through opserver 10.0.0.33 2025-10-31 22:29:49,982 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-31 22:29:49,991 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-89509342', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-89509342?flat'} 2025-10-31 22:29:49,991 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-89509342 is found in opserver 2025-10-31 22:29:50,002 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 22:29:50,006 - DEBUG - VRF ids for VN ctest-vn-89509342: {} 2025-10-31 22:29:50,062 - DEBUG - Services list from nova: [, , ] 2025-10-31 22:29:51,436 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4583-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4583-1) 2025-10-31 22:29:52,652 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4583-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4583-1) 2025-10-31 22:29:52,653 - INFO - Waiting for VM ctest-TestBasicPolicy-12778936-67212734 to be up.. 2025-10-31 22:29:52,732 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-31 22:29:57,803 - DEBUG - VM is in ACTIVE state now 2025-10-31 22:29:57,803 - INFO - VM name : ctest-TestBasicPolicy-12778936-67212734 2025-10-31 22:29:57,871 - DEBUG - VM ctest-TestBasicPolicy-12778936-67212734 ID is b1e4082f-f376-49f4-85ed-23abe02df180 2025-10-31 22:29:57,889 - DEBUG - VM ctest-TestBasicPolicy-12778936-67212734 launched on Node cn-jenkins-deploy-platform-ansible-os-4583-1 2025-10-31 22:29:57,961 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/b1e4082f-f376-49f4-85ed-23abe02df180 2025-10-31 22:29:57,969 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/3c191d51-6fce-4e06-a51c-9412446b0274 2025-10-31 22:30:01,230 - 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 1027ms') 2025-10-31 22:30:01,230 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-12778936-67212734 failed! 2025-10-31 22:30:01,285 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-12778936:ctest-vn-91223708 is 96.20.205.193 and allocation pool is NOT set 2025-10-31 22:30:03,342 - 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.38 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.439 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.439/3.908/7.378/3.469 ms') 2025-10-31 22:30:03,342 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-12778936-67212734 passed 2025-10-31 22:30:03,489 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 22:30:03,489 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-12778936-67212734, IP 96.20.205.195, Port 22 2025-10-31 22:30:03,666 - DEBUG - VM ctest-TestBasicPolicy-12778936-67212734 is ready for SSH connections 2025-10-31 22:30:03,667 - INFO - Waiting for VM ctest-TestBasicPolicy-12778936-42747273 to be up.. 2025-10-31 22:30:03,736 - DEBUG - VM is in ACTIVE state now 2025-10-31 22:30:03,736 - INFO - VM name : ctest-TestBasicPolicy-12778936-42747273 2025-10-31 22:30:03,805 - DEBUG - VM ctest-TestBasicPolicy-12778936-42747273 ID is 95456053-e16d-47c1-b4c8-14a29094ebc3 2025-10-31 22:30:03,805 - DEBUG - VM ctest-TestBasicPolicy-12778936-42747273 launched on Node cn-jenkins-deploy-platform-ansible-os-4583-1 2025-10-31 22:30:03,871 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/95456053-e16d-47c1-b4c8-14a29094ebc3 2025-10-31 22:30:03,879 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/bab8c9bb-31e7-49bb-8664-602a86450614 2025-10-31 22:30:05,123 - 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.03 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.91 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.913/2.971/3.030/0.058 ms') 2025-10-31 22:30:05,123 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-12778936-42747273 passed 2025-10-31 22:30:05,273 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 22:30:05,273 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-12778936-42747273, IP 216.7.171.131, Port 22 2025-10-31 22:30:05,338 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-31 22:30:05,412 - DEBUG - VM ctest-TestBasicPolicy-12778936-42747273 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-31 22:30:10,413 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 22:30:10,413 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-12778936-42747273, IP 216.7.171.131, Port 22 2025-10-31 22:30:10,572 - DEBUG - VM ctest-TestBasicPolicy-12778936-42747273 is ready for SSH connections 2025-10-31 22:30:10,572 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 22:30:10,572 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 216.7.171.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-10-31 22:30:10,572 - DEBUG - ping -s 56 -c 3 -W 1 216.7.171.131 2025-10-31 22:30:14,622 - DEBUG - PING 216.7.171.131 (216.7.171.131): 56 data bytes 64 bytes from 216.7.171.131: seq=0 ttl=63 time=3.490 ms 64 bytes from 216.7.171.131: seq=1 ttl=63 time=0.873 ms 64 bytes from 216.7.171.131: seq=2 ttl=63 time=0.740 ms --- 216.7.171.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.740/1.701/3.490 ms 2025-10-31 22:30:14,622 - INFO - Ping to IP 216.7.171.131 from VM ctest-TestBasicPolicy-12778936-67212734 passed 2025-10-31 22:30:14,797 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e6047022-f347-4312-8d89-ad13ee5f9fa3", "href": "http://10.0.0.33:8082/network-policy/e6047022-f347-4312-8d89-ad13ee5f9fa3"}} 2025-10-31 22:30:14,797 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 22:30:14,797 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 216.7.171.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-10-31 22:30:14,797 - DEBUG - ping -s 56 -c 3 -W 1 216.7.171.131 2025-10-31 22:30:18,040 - DEBUG - PING 216.7.171.131 (216.7.171.131): 56 data bytes --- 216.7.171.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-31 22:30:18,040 - WARNING - Ping to IP 216.7.171.131 from VM ctest-TestBasicPolicy-12778936-67212734 failed 2025-10-31 22:30:18,041 - INFO - Deleting VM ctest-TestBasicPolicy-12778936-42747273 2025-10-31 22:30:18,114 - INFO - Deleting VM ctest-TestBasicPolicy-12778936-67212734 2025-10-31 22:30:18,524 - INFO - Deleted policy ctest-policy-allow-all-39451373 2025-10-31 22:30:18,524 - INFO - Deleting VN ctest-vn-89509342 2025-10-31 22:30:18,561 - DEBUG - VN abf7e4c5-3c20-46b5-92a9-79e974fe8e05 still in use: Unable to complete operation on network abf7e4c5-3c20-46b5-92a9-79e974fe8e05. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4ca81f12-9e21-4bae-a349-0f62e7a5f615'] 2025-10-31 22:30:18,561 - WARNING - Deleting VN ctest-vn-89509342 failed..Will retry 2025-10-31 22:30:20,669 - DEBUG - Response for deleting network () 2025-10-31 22:30:20,669 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e5821c89-5eee-4f9a-86ed-a2158e7b05dc 2025-10-31 22:30:20,677 - DEBUG - Response Code: 404 2025-10-31 22:30:20,677 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-31 22:30:20,683 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a62c51b6-741f-4137-91f9-451672835fa6 2025-10-31 22:30:20,737 - DEBUG - Requesting: http://10.0.0.33:8082/project/9f61edc8-fe3d-4e18-9beb-5e7e8ec560a7 2025-10-31 22:30:20,803 - INFO - Validated that VN ctest-vn-89509342 is not found in API Server 2025-10-31 22:30:20,813 - DEBUG - VN ctest-vn-89509342 is not present in Agent 10.0.0.33 2025-10-31 22:30:20,813 - INFO - Validated that VN ctest-vn-89509342 is not in any agent 2025-10-31 22:30:20,825 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-89509342 info 2025-10-31 22:30:20,825 - INFO - Deleting VN ctest-vn-91223708 2025-10-31 22:30:20,909 - DEBUG - Response for deleting network () 2025-10-31 22:30:20,909 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d9809053-75ac-4f98-bcc7-75a2196396a0 2025-10-31 22:30:20,916 - DEBUG - Response Code: 404 2025-10-31 22:30:20,916 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-31 22:30:20,920 - DEBUG - Requesting: http://10.0.0.33:8082/domain/a62c51b6-741f-4137-91f9-451672835fa6 2025-10-31 22:30:20,973 - DEBUG - Requesting: http://10.0.0.33:8082/project/9f61edc8-fe3d-4e18-9beb-5e7e8ec560a7 2025-10-31 22:30:21,041 - INFO - Validated that VN ctest-vn-91223708 is not found in API Server 2025-10-31 22:30:21,050 - DEBUG - VN ctest-vn-91223708 is not present in Agent 10.0.0.33 2025-10-31 22:30:21,050 - INFO - Validated that VN ctest-vn-91223708 is not in any agent 2025-10-31 22:30:21,063 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91223708 info 2025-10-31 22:30:21,317 - DEBUG - No XMPP flaps were noticed during the test
2025-10-31 22:30:21,317 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-10-31 22:30:21,317 - INFO - -------------------------------------------------------------------------------- 2025-10-31 22:30:22,012 - INFO - Deleted project: ctest-TestBasicPolicy-12778936, ID : 9f61edc8-fe3d-4e18-9beb-5e7e8ec560a7