2025-07-12 07:36:08,397 - INFO - Domain Default found not creating 2025-07-12 07:36:08,572 - INFO - Project ctest-TestBasicPolicy-46305267 not found, creating it 2025-07-12 07:36:09,090 - INFO - Created Project:ctest-TestBasicPolicy-46305267, ID : adc4a8fe-72cf-4d3e-805a-07d182b0132c 2025-07-12 07:36:10,767 - INFO - ================================================================================ 2025-07-12 07:36:10,767 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-12 07:36:10,767 - 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-07-12 07:36:11,028 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-07-12 07:36:11,028 - INFO - Initial checks done. Running the testcase now 2025-07-12 07:36:11,028 - INFO - 2025-07-12 07:36:11,666 - DEBUG - Response for create_network : {'network': {'id': 'ed8ad399-5aa3-4953-b4b8-601758776655', 'name': 'ctest-vn-36214403', 'tenant_id': 'adc4a8fe72cf4d3e805a07d182b0132c', 'project_id': 'adc4a8fe72cf4d3e805a07d182b0132c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46305267', 'ctest-vn-36214403'], 'port_security_enabled': True, 'description': ''}} 2025-07-12 07:36:11,918 - DEBUG - Response for create_subnet : {'subnet': {'id': '8600e3c2-c45c-464e-a22a-641d86eb3c6a', 'name': '', 'tenant_id': 'adc4a8fe72cf4d3e805a07d182b0132c', 'network_id': 'ed8ad399-5aa3-4953-b4b8-601758776655', 'ip_version': 4, 'cidr': '30.2.111.192/26', 'allocation_pools': [{'start': '30.2.111.194', 'end': '30.2.111.254'}], 'gateway_ip': '30.2.111.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.2.111.194', 'tags': [], 'project_id': 'adc4a8fe72cf4d3e805a07d182b0132c'}} 2025-07-12 07:36:11,940 - INFO - Created VN ctest-vn-36214403 2025-07-12 07:36:11,996 - DEBUG - VN ctest-vn-36214403 UUID is ed8ad399-5aa3-4953-b4b8-601758776655 2025-07-12 07:36:12,305 - DEBUG - Response for create_network : {'network': {'id': 'd65050f4-bfa7-4918-938e-6ae34a205a68', 'name': 'ctest-vn-49595053', 'tenant_id': 'adc4a8fe72cf4d3e805a07d182b0132c', 'project_id': 'adc4a8fe72cf4d3e805a07d182b0132c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46305267', 'ctest-vn-49595053'], 'port_security_enabled': True, 'description': ''}} 2025-07-12 07:36:12,476 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cdf296eb-72e8-4fc6-a8e9-01c40db06e31', 'name': '', 'tenant_id': 'adc4a8fe72cf4d3e805a07d182b0132c', 'network_id': 'd65050f4-bfa7-4918-938e-6ae34a205a68', 'ip_version': 4, 'cidr': '205.153.54.64/26', 'allocation_pools': [{'start': '205.153.54.66', 'end': '205.153.54.126'}], 'gateway_ip': '205.153.54.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.153.54.66', 'tags': [], 'project_id': 'adc4a8fe72cf4d3e805a07d182b0132c'}} 2025-07-12 07:36:12,499 - INFO - Created VN ctest-vn-49595053 2025-07-12 07:36:12,552 - DEBUG - VN ctest-vn-49595053 UUID is d65050f4-bfa7-4918-938e-6ae34a205a68 2025-07-12 07:36:12,680 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46305267:ctest-vn-36214403, 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-46305267:ctest-vn-49595053, 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-07-12 07:36:13,010 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ed8ad399-5aa3-4953-b4b8-601758776655', 'name': 'ctest-vn-36214403', 'tenant_id': 'adc4a8fe72cf4d3e805a07d182b0132c', 'project_id': 'adc4a8fe72cf4d3e805a07d182b0132c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8600e3c2-c45c-464e-a22a-641d86eb3c6a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46305267', 'ctest-vn-36214403'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46305267', 'ctest-policy-allow-all-10748382']], 'subnet_ipam': [{'subnet_cidr': '30.2.111.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-12 07:36:13,257 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd65050f4-bfa7-4918-938e-6ae34a205a68', 'name': 'ctest-vn-49595053', 'tenant_id': 'adc4a8fe72cf4d3e805a07d182b0132c', 'project_id': 'adc4a8fe72cf4d3e805a07d182b0132c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cdf296eb-72e8-4fc6-a8e9-01c40db06e31'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46305267', 'ctest-vn-49595053'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46305267', 'ctest-policy-allow-all-10748382']], 'subnet_ipam': [{'subnet_cidr': '205.153.54.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-12 07:36:13,440 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-12 07:36:13,791 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-12 07:36:13,821 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e8feb27b-61db-4a19-9c26-e4042193a004 2025-07-12 07:36:13,836 - DEBUG - Requesting: http://10.0.0.50:8082/project/adc4a8fe-72cf-4d3e-805a-07d182b0132c 2025-07-12 07:36:13,921 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed8ad399-5aa3-4953-b4b8-601758776655 2025-07-12 07:36:13,934 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed8ad399-5aa3-4953-b4b8-601758776655 2025-07-12 07:36:13,946 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/286c80ce-5334-4c53-8ba8-5990fa545946 2025-07-12 07:36:13,954 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/286c80ce-5334-4c53-8ba8-5990fa545946 2025-07-12 07:36:13,962 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0ccb19db-b382-4fd1-acaa-962780bc4709 2025-07-12 07:36:13,970 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-12 07:36:13,970 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed8ad399-5aa3-4953-b4b8-601758776655 2025-07-12 07:36:13,982 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/286c80ce-5334-4c53-8ba8-5990fa545946 2025-07-12 07:36:13,998 - INFO - Verified VN network id 9 for VN ed8ad399-5aa3-4953-b4b8-601758776655 2025-07-12 07:36:13,998 - INFO - Verifications in API Server for VN ctest-vn-36214403 passed 2025-07-12 07:36:13,998 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed8ad399-5aa3-4953-b4b8-601758776655 2025-07-12 07:36:14,061 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/286c80ce-5334-4c53-8ba8-5990fa545946 2025-07-12 07:36:14,069 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/286c80ce-5334-4c53-8ba8-5990fa545946 2025-07-12 07:36:14,079 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0ccb19db-b382-4fd1-acaa-962780bc4709 2025-07-12 07:36:14,094 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46305267:ctest-vn-36214403', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46305267', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17116725989379098963', 'uuid-lslong': '13022263975926523477'}, 'enable': 'true', 'created': '2025-07-12T07:36:11', 'last-modified': '2025-07-12T07:36:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.120996'} 2025-07-12 07:36:14,102 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-12 07:36:14,102 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36214403 passed 2025-07-12 07:36:14,102 - DEBUG - ====Verifying policy data for ctest-vn-36214403 in API_Server ====== 2025-07-12 07:36:14,102 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-12 07:36:14,109 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e8feb27b-61db-4a19-9c26-e4042193a004 2025-07-12 07:36:14,123 - DEBUG - Requesting: http://10.0.0.50:8082/project/adc4a8fe-72cf-4d3e-805a-07d182b0132c 2025-07-12 07:36:14,200 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed8ad399-5aa3-4953-b4b8-601758776655 2025-07-12 07:36:14,213 - DEBUG - ==>Verifying data for policy with id: 4883c609-02a1-497e-a0db-fde9bfb71377, fqn: ['default-domain', 'ctest-TestBasicPolicy-46305267', 'ctest-policy-allow-all-10748382'] 2025-07-12 07:36:14,213 - INFO - VN ctest-vn-36214403 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-12 07:36:14,213 - DEBUG - Verifying the vn in opserver 2025-07-12 07:36:14,213 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46305267:ctest-vn-36214403 virtual network link through opserver 10.0.0.50 2025-07-12 07:36:14,213 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-12 07:36:14,548 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-12 07:36:14,605 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46305267:ctest-vn-36214403', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46305267:ctest-vn-36214403?flat'} 2025-07-12 07:36:14,606 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46305267:ctest-vn-36214403 is found in opserver 2025-07-12 07:36:14,621 - DEBUG - Do not have enough data to verify VN in agent 2025-07-12 07:36:14,626 - DEBUG - VRF ids for VN ctest-vn-36214403: {} 2025-07-12 07:36:14,627 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-12 07:36:14,633 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e8feb27b-61db-4a19-9c26-e4042193a004 2025-07-12 07:36:14,646 - DEBUG - Requesting: http://10.0.0.50:8082/project/adc4a8fe-72cf-4d3e-805a-07d182b0132c 2025-07-12 07:36:14,722 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d65050f4-bfa7-4918-938e-6ae34a205a68 2025-07-12 07:36:14,739 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d65050f4-bfa7-4918-938e-6ae34a205a68 2025-07-12 07:36:14,752 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50e243af-f37d-48c0-8c24-b641e1cfc9c9 2025-07-12 07:36:14,762 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50e243af-f37d-48c0-8c24-b641e1cfc9c9 2025-07-12 07:36:14,771 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8694f1bc-21d0-42c8-b78e-ec6522fc0f46 2025-07-12 07:36:14,779 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-12 07:36:14,779 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d65050f4-bfa7-4918-938e-6ae34a205a68 2025-07-12 07:36:14,791 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50e243af-f37d-48c0-8c24-b641e1cfc9c9 2025-07-12 07:36:14,805 - INFO - Verified VN network id 10 for VN d65050f4-bfa7-4918-938e-6ae34a205a68 2025-07-12 07:36:14,805 - INFO - Verifications in API Server for VN ctest-vn-49595053 passed 2025-07-12 07:36:14,805 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d65050f4-bfa7-4918-938e-6ae34a205a68 2025-07-12 07:36:14,816 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50e243af-f37d-48c0-8c24-b641e1cfc9c9 2025-07-12 07:36:14,823 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50e243af-f37d-48c0-8c24-b641e1cfc9c9 2025-07-12 07:36:14,831 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8694f1bc-21d0-42c8-b78e-ec6522fc0f46 2025-07-12 07:36:14,846 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46305267:ctest-vn-49595053', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46305267', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15442932134371084568', 'uuid-lslong': '10632553294702074472'}, 'enable': 'true', 'created': '2025-07-12T07:36:12', 'last-modified': '2025-07-12T07:36:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.610960'} 2025-07-12 07:36:14,852 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-12 07:36:14,853 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49595053 passed 2025-07-12 07:36:14,853 - DEBUG - ====Verifying policy data for ctest-vn-49595053 in API_Server ====== 2025-07-12 07:36:14,853 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-12 07:36:14,859 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e8feb27b-61db-4a19-9c26-e4042193a004 2025-07-12 07:36:14,873 - DEBUG - Requesting: http://10.0.0.50:8082/project/adc4a8fe-72cf-4d3e-805a-07d182b0132c 2025-07-12 07:36:14,947 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d65050f4-bfa7-4918-938e-6ae34a205a68 2025-07-12 07:36:14,958 - DEBUG - ==>Verifying data for policy with id: 4883c609-02a1-497e-a0db-fde9bfb71377, fqn: ['default-domain', 'ctest-TestBasicPolicy-46305267', 'ctest-policy-allow-all-10748382'] 2025-07-12 07:36:14,958 - INFO - VN ctest-vn-49595053 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-12 07:36:14,958 - DEBUG - Verifying the vn in opserver 2025-07-12 07:36:14,958 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46305267:ctest-vn-49595053 virtual network link through opserver 10.0.0.50 2025-07-12 07:36:14,958 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-12 07:36:14,969 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46305267:ctest-vn-49595053', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46305267:ctest-vn-49595053?flat'} 2025-07-12 07:36:14,969 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46305267:ctest-vn-49595053 is found in opserver 2025-07-12 07:36:14,982 - DEBUG - Do not have enough data to verify VN in agent 2025-07-12 07:36:14,988 - DEBUG - VRF ids for VN ctest-vn-49595053: {} 2025-07-12 07:36:15,053 - DEBUG - Services list from nova: [, , ] 2025-07-12 07:36:16,220 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3630-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3630-1) 2025-07-12 07:36:17,750 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3630-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3630-1) 2025-07-12 07:36:17,750 - INFO - Waiting for VM ctest-TestBasicPolicy-46305267-44787953 to be up.. 2025-07-12 07:36:17,892 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-12 07:36:22,975 - DEBUG - VM is in ACTIVE state now 2025-07-12 07:36:22,976 - INFO - VM name : ctest-TestBasicPolicy-46305267-44787953 2025-07-12 07:36:23,058 - DEBUG - VM ctest-TestBasicPolicy-46305267-44787953 ID is 88710560-2dab-481d-b89f-0e0b3550c1bb 2025-07-12 07:36:23,080 - DEBUG - VM ctest-TestBasicPolicy-46305267-44787953 launched on Node cn-jenkins-deploy-platform-ansible-os-3630-1 2025-07-12 07:36:23,164 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/88710560-2dab-481d-b89f-0e0b3550c1bb 2025-07-12 07:36:23,174 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/4ca17dfd-fe8d-4c40-a6b3-4dfc9ed417c1 2025-07-12 07:36:26,456 - 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 1029ms') 2025-07-12 07:36:26,456 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46305267-44787953 failed! 2025-07-12 07:36:26,516 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-46305267:ctest-vn-36214403 is 30.2.111.193 and allocation pool is NOT set 2025-07-12 07:36:28,578 - 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=10.5 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.673 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.673/5.565/10.457/4.892 ms') 2025-07-12 07:36:28,579 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46305267-44787953 passed 2025-07-12 07:36:28,744 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-12 07:36:28,744 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46305267-44787953, IP 30.2.111.195, Port 22 2025-07-12 07:36:28,918 - DEBUG - VM ctest-TestBasicPolicy-46305267-44787953 is ready for SSH connections 2025-07-12 07:36:28,919 - INFO - Waiting for VM ctest-TestBasicPolicy-46305267-90091141 to be up.. 2025-07-12 07:36:29,013 - DEBUG - VM is in ACTIVE state now 2025-07-12 07:36:29,013 - INFO - VM name : ctest-TestBasicPolicy-46305267-90091141 2025-07-12 07:36:29,088 - DEBUG - VM ctest-TestBasicPolicy-46305267-90091141 ID is 54cd5dc2-2447-4937-a091-a28f2f1c58a1 2025-07-12 07:36:29,088 - DEBUG - VM ctest-TestBasicPolicy-46305267-90091141 launched on Node cn-jenkins-deploy-platform-ansible-os-3630-1 2025-07-12 07:36:29,165 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/54cd5dc2-2447-4937-a091-a28f2f1c58a1 2025-07-12 07:36:29,175 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/7a4de4fb-8009-421f-8655-1fba6597454e 2025-07-12 07:36:30,425 - 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=7.67 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.761 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.761/4.216/7.671/3.455 ms') 2025-07-12 07:36:30,426 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-46305267-90091141 passed 2025-07-12 07:36:30,580 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-12 07:36:30,580 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46305267-90091141, IP 205.153.54.67, Port 22 2025-07-12 07:36:30,645 - 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-07-12 07:36:30,727 - DEBUG - VM ctest-TestBasicPolicy-46305267-90091141 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-12 07:36:35,728 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-12 07:36:35,728 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46305267-90091141, IP 205.153.54.67, Port 22 2025-07-12 07:36:35,883 - DEBUG - VM ctest-TestBasicPolicy-46305267-90091141 is ready for SSH connections 2025-07-12 07:36:35,884 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-12 07:36:35,884 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 205.153.54.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-12 07:36:35,884 - DEBUG - ping -s 56 -c 3 -W 1 205.153.54.67 2025-07-12 07:36:39,630 - DEBUG - PING 205.153.54.67 (205.153.54.67): 56 data bytes 64 bytes from 205.153.54.67: seq=0 ttl=63 time=3.966 ms 64 bytes from 205.153.54.67: seq=1 ttl=63 time=1.000 ms 64 bytes from 205.153.54.67: seq=2 ttl=63 time=0.758 ms --- 205.153.54.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.758/1.908/3.966 ms 2025-07-12 07:36:39,630 - INFO - Ping to IP 205.153.54.67 from VM ctest-TestBasicPolicy-46305267-44787953 passed 2025-07-12 07:36:39,820 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4883c609-02a1-497e-a0db-fde9bfb71377", "href": "http://10.0.0.50:8082/network-policy/4883c609-02a1-497e-a0db-fde9bfb71377"}} 2025-07-12 07:36:39,820 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-12 07:36:39,820 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 205.153.54.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-12 07:36:39,820 - DEBUG - ping -s 56 -c 3 -W 1 205.153.54.67 2025-07-12 07:36:43,043 - DEBUG - PING 205.153.54.67 (205.153.54.67): 56 data bytes 64 bytes from 205.153.54.67: seq=0 ttl=63 time=1.445 ms --- 205.153.54.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.445/1.445/1.445 ms 2025-07-12 07:36:43,044 - WARNING - Ping to IP 205.153.54.67 from VM ctest-TestBasicPolicy-46305267-44787953 failed 2025-07-12 07:36:43,044 - INFO - Deleting VM ctest-TestBasicPolicy-46305267-90091141 2025-07-12 07:36:43,119 - INFO - Deleting VM ctest-TestBasicPolicy-46305267-44787953 2025-07-12 07:36:43,522 - INFO - Deleted policy ctest-policy-allow-all-10748382 2025-07-12 07:36:43,522 - INFO - Deleting VN ctest-vn-49595053 2025-07-12 07:36:43,563 - DEBUG - VN d65050f4-bfa7-4918-938e-6ae34a205a68 still in use: Unable to complete operation on network d65050f4-bfa7-4918-938e-6ae34a205a68. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-883c5eb8-3dce-4ecf-9a14-940ed30d2c30'] 2025-07-12 07:36:43,563 - WARNING - Deleting VN ctest-vn-49595053 failed..Will retry 2025-07-12 07:36:45,721 - DEBUG - Response for deleting network () 2025-07-12 07:36:45,721 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50e243af-f37d-48c0-8c24-b641e1cfc9c9 2025-07-12 07:36:45,732 - DEBUG - Response Code: 404 2025-07-12 07:36:45,732 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-12 07:36:45,739 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e8feb27b-61db-4a19-9c26-e4042193a004 2025-07-12 07:36:45,801 - DEBUG - Requesting: http://10.0.0.50:8082/project/adc4a8fe-72cf-4d3e-805a-07d182b0132c 2025-07-12 07:36:45,879 - INFO - Validated that VN ctest-vn-49595053 is not found in API Server 2025-07-12 07:36:45,892 - DEBUG - VN ctest-vn-49595053 is not present in Agent 10.0.0.50 2025-07-12 07:36:45,892 - INFO - Validated that VN ctest-vn-49595053 is not in any agent 2025-07-12 07:36:45,910 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-49595053 info 2025-07-12 07:36:45,910 - INFO - Deleting VN ctest-vn-36214403 2025-07-12 07:36:46,032 - DEBUG - Response for deleting network () 2025-07-12 07:36:46,032 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/286c80ce-5334-4c53-8ba8-5990fa545946 2025-07-12 07:36:46,041 - DEBUG - Response Code: 404 2025-07-12 07:36:46,042 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-12 07:36:46,047 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e8feb27b-61db-4a19-9c26-e4042193a004 2025-07-12 07:36:46,110 - DEBUG - Requesting: http://10.0.0.50:8082/project/adc4a8fe-72cf-4d3e-805a-07d182b0132c 2025-07-12 07:36:46,182 - INFO - Validated that VN ctest-vn-36214403 is not found in API Server 2025-07-12 07:36:46,194 - DEBUG - VN ctest-vn-36214403 is not present in Agent 10.0.0.50 2025-07-12 07:36:46,194 - INFO - Validated that VN ctest-vn-36214403 is not in any agent 2025-07-12 07:36:46,213 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-36214403 info 2025-07-12 07:36:46,474 - DEBUG - No XMPP flaps were noticed during the test 2025-07-12 07:36:46,474 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-07-12 07:36:46,475 - INFO - -------------------------------------------------------------------------------- 2025-07-12 07:36:47,225 - INFO - Deleted project: ctest-TestBasicPolicy-46305267, ID : adc4a8fe-72cf-4d3e-805a-07d182b0132c