2025-08-28 02:41:15,139 - INFO - Domain Default found not creating 2025-08-28 02:41:15,307 - INFO - Project ctest-TestBasicPolicy-00209082 not found, creating it 2025-08-28 02:41:15,803 - INFO - Created Project:ctest-TestBasicPolicy-00209082, ID : f2209cd7-f508-4202-b066-f45b1bb1ee2e 2025-08-28 02:41:17,461 - INFO - ================================================================================ 2025-08-28 02:41:17,461 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-28 02:41:17,462 - 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-08-28 02:41:17,732 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.209': '0'}} with 2025-08-28 02:41:17,732 - INFO - Initial checks done. Running the testcase now 2025-08-28 02:41:17,733 - INFO - 2025-08-28 02:41:18,599 - DEBUG - Response for create_network : {'network': {'id': '132f2602-5d02-4513-b865-61f4cc7cc844', 'name': 'ctest-vn-85476750', 'tenant_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'project_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00209082', 'ctest-vn-85476750'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 02:41:18,920 - DEBUG - Response for create_subnet : {'subnet': {'id': '522fd624-3fc4-482e-aa4a-b447a3b25ecc', 'name': '', 'tenant_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'network_id': '132f2602-5d02-4513-b865-61f4cc7cc844', 'ip_version': 4, 'cidr': '109.159.145.64/26', 'allocation_pools': [{'start': '109.159.145.66', 'end': '109.159.145.126'}], 'gateway_ip': '109.159.145.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.159.145.66', 'tags': [], 'project_id': 'f2209cd7f5084202b066f45b1bb1ee2e'}} 2025-08-28 02:41:18,947 - INFO - Created VN ctest-vn-85476750 2025-08-28 02:41:19,002 - DEBUG - VN ctest-vn-85476750 UUID is 132f2602-5d02-4513-b865-61f4cc7cc844 2025-08-28 02:41:19,322 - DEBUG - Response for create_network : {'network': {'id': 'b894e0ab-65e5-4e40-80bb-e9691e7c0b49', 'name': 'ctest-vn-83644616', 'tenant_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'project_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00209082', 'ctest-vn-83644616'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 02:41:19,512 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9c1e655-f9e8-49f1-83e1-b290b774187a', 'name': '', 'tenant_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'network_id': 'b894e0ab-65e5-4e40-80bb-e9691e7c0b49', 'ip_version': 4, 'cidr': '140.101.85.64/26', 'allocation_pools': [{'start': '140.101.85.66', 'end': '140.101.85.126'}], 'gateway_ip': '140.101.85.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.101.85.66', 'tags': [], 'project_id': 'f2209cd7f5084202b066f45b1bb1ee2e'}} 2025-08-28 02:41:19,538 - INFO - Created VN ctest-vn-83644616 2025-08-28 02:41:19,593 - DEBUG - VN ctest-vn-83644616 UUID is b894e0ab-65e5-4e40-80bb-e9691e7c0b49 2025-08-28 02:41:19,714 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-85476750, 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-00209082:ctest-vn-83644616, 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-08-28 02:41:20,025 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '132f2602-5d02-4513-b865-61f4cc7cc844', 'name': 'ctest-vn-85476750', 'tenant_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'project_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['522fd624-3fc4-482e-aa4a-b447a3b25ecc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00209082', 'ctest-vn-85476750'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00209082', 'ctest-policy-allow-all-28699165']], 'subnet_ipam': [{'subnet_cidr': '109.159.145.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-28 02:41:20,268 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b894e0ab-65e5-4e40-80bb-e9691e7c0b49', 'name': 'ctest-vn-83644616', 'tenant_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'project_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e9c1e655-f9e8-49f1-83e1-b290b774187a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00209082', 'ctest-vn-83644616'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00209082', 'ctest-policy-allow-all-28699165']], 'subnet_ipam': [{'subnet_cidr': '140.101.85.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-28 02:41:20,429 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 02:41:20,778 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 02:41:20,810 - DEBUG - Requesting: http://10.0.0.249:8082/domain/58a52db9-5c75-431f-b090-7480be74f975 2025-08-28 02:41:20,826 - DEBUG - Requesting: http://10.0.0.249:8082/project/f2209cd7-f508-4202-b066-f45b1bb1ee2e 2025-08-28 02:41:20,905 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/132f2602-5d02-4513-b865-61f4cc7cc844 2025-08-28 02:41:20,917 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/132f2602-5d02-4513-b865-61f4cc7cc844 2025-08-28 02:41:20,929 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1bae14f4-3c17-4eae-9c39-5f57c829c7f5 2025-08-28 02:41:20,937 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1bae14f4-3c17-4eae-9c39-5f57c829c7f5 2025-08-28 02:41:20,945 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/7fe67bcc-7ca5-493a-a14a-f791b1f3a220 2025-08-28 02:41:20,951 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 02:41:20,951 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/132f2602-5d02-4513-b865-61f4cc7cc844 2025-08-28 02:41:20,960 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1bae14f4-3c17-4eae-9c39-5f57c829c7f5 2025-08-28 02:41:20,976 - INFO - Verified VN network id 12 for VN 132f2602-5d02-4513-b865-61f4cc7cc844 2025-08-28 02:41:20,976 - INFO - Verifications in API Server for VN ctest-vn-85476750 passed 2025-08-28 02:41:20,976 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/132f2602-5d02-4513-b865-61f4cc7cc844 2025-08-28 02:41:20,987 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1bae14f4-3c17-4eae-9c39-5f57c829c7f5 2025-08-28 02:41:20,999 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1bae14f4-3c17-4eae-9c39-5f57c829c7f5 2025-08-28 02:41:21,007 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/7fe67bcc-7ca5-493a-a14a-f791b1f3a220 2025-08-28 02:41:21,021 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-85476750', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00209082', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1382365402218251539', 'uuid-lslong': '13287133979657160772'}, 'enable': 'true', 'created': '2025-08-28T02:41:18', 'last-modified': '2025-08-28T02:41:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.017133'} 2025-08-28 02:41:21,030 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 02:41:21,030 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85476750 passed 2025-08-28 02:41:21,030 - DEBUG - ====Verifying policy data for ctest-vn-85476750 in API_Server ====== 2025-08-28 02:41:21,030 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 02:41:21,036 - DEBUG - Requesting: http://10.0.0.249:8082/domain/58a52db9-5c75-431f-b090-7480be74f975 2025-08-28 02:41:21,049 - DEBUG - Requesting: http://10.0.0.249:8082/project/f2209cd7-f508-4202-b066-f45b1bb1ee2e 2025-08-28 02:41:21,124 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/132f2602-5d02-4513-b865-61f4cc7cc844 2025-08-28 02:41:21,135 - DEBUG - ==>Verifying data for policy with id: 09247d08-033b-42bc-b35a-217ce7fa298b, fqn: ['default-domain', 'ctest-TestBasicPolicy-00209082', 'ctest-policy-allow-all-28699165'] 2025-08-28 02:41:21,135 - INFO - VN ctest-vn-85476750 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-28 02:41:21,135 - DEBUG - Verifying the vn in opserver 2025-08-28 02:41:21,135 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-85476750 virtual network link through opserver 10.0.0.249 2025-08-28 02:41:21,135 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-28 02:41:21,485 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-28 02:41:21,553 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-85476750', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-85476750?flat'} 2025-08-28 02:41:21,553 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-85476750 is found in opserver 2025-08-28 02:41:21,565 - DEBUG - Do not have enough data to verify VN in agent 2025-08-28 02:41:21,571 - DEBUG - VRF ids for VN ctest-vn-85476750: {} 2025-08-28 02:41:21,571 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 02:41:21,577 - DEBUG - Requesting: http://10.0.0.249:8082/domain/58a52db9-5c75-431f-b090-7480be74f975 2025-08-28 02:41:21,590 - DEBUG - Requesting: http://10.0.0.249:8082/project/f2209cd7-f508-4202-b066-f45b1bb1ee2e 2025-08-28 02:41:21,667 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b894e0ab-65e5-4e40-80bb-e9691e7c0b49 2025-08-28 02:41:21,680 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b894e0ab-65e5-4e40-80bb-e9691e7c0b49 2025-08-28 02:41:21,691 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/fdb08b22-0ef9-4116-a65e-db072935afa7 2025-08-28 02:41:21,699 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/fdb08b22-0ef9-4116-a65e-db072935afa7 2025-08-28 02:41:21,707 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/fb15960f-336c-4d2b-8c67-76bb5bc723ec 2025-08-28 02:41:21,715 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-28 02:41:21,715 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b894e0ab-65e5-4e40-80bb-e9691e7c0b49 2025-08-28 02:41:21,725 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/fdb08b22-0ef9-4116-a65e-db072935afa7 2025-08-28 02:41:21,741 - INFO - Verified VN network id 13 for VN b894e0ab-65e5-4e40-80bb-e9691e7c0b49 2025-08-28 02:41:21,742 - INFO - Verifications in API Server for VN ctest-vn-83644616 passed 2025-08-28 02:41:21,742 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b894e0ab-65e5-4e40-80bb-e9691e7c0b49 2025-08-28 02:41:21,754 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/fdb08b22-0ef9-4116-a65e-db072935afa7 2025-08-28 02:41:21,764 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/fdb08b22-0ef9-4116-a65e-db072935afa7 2025-08-28 02:41:21,772 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/fb15960f-336c-4d2b-8c67-76bb5bc723ec 2025-08-28 02:41:21,786 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-83644616', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00209082', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13300502626285473344', 'uuid-lslong': '9276264495191952201'}, 'enable': 'true', 'created': '2025-08-28T02:41:19', 'last-modified': '2025-08-28T02:41:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.542335'} 2025-08-28 02:41:21,793 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-28 02:41:21,793 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83644616 passed 2025-08-28 02:41:21,793 - DEBUG - ====Verifying policy data for ctest-vn-83644616 in API_Server ====== 2025-08-28 02:41:21,793 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 02:41:21,800 - DEBUG - Requesting: http://10.0.0.249:8082/domain/58a52db9-5c75-431f-b090-7480be74f975 2025-08-28 02:41:21,811 - DEBUG - Requesting: http://10.0.0.249:8082/project/f2209cd7-f508-4202-b066-f45b1bb1ee2e 2025-08-28 02:41:21,887 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b894e0ab-65e5-4e40-80bb-e9691e7c0b49 2025-08-28 02:41:21,898 - DEBUG - ==>Verifying data for policy with id: 09247d08-033b-42bc-b35a-217ce7fa298b, fqn: ['default-domain', 'ctest-TestBasicPolicy-00209082', 'ctest-policy-allow-all-28699165'] 2025-08-28 02:41:21,898 - INFO - VN ctest-vn-83644616 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-28 02:41:21,898 - DEBUG - Verifying the vn in opserver 2025-08-28 02:41:21,898 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-83644616 virtual network link through opserver 10.0.0.249 2025-08-28 02:41:21,898 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-28 02:41:21,909 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-83644616', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-83644616?flat'} 2025-08-28 02:41:21,909 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-83644616 is found in opserver 2025-08-28 02:41:21,919 - DEBUG - Do not have enough data to verify VN in agent 2025-08-28 02:41:21,924 - DEBUG - VRF ids for VN ctest-vn-83644616: {} 2025-08-28 02:41:21,989 - DEBUG - Services list from nova: [, , ] 2025-08-28 02:41:23,198 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3955-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3955-1) 2025-08-28 02:41:24,898 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3955-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3955-1) 2025-08-28 02:41:24,898 - INFO - Waiting for VM ctest-TestBasicPolicy-00209082-71962938 to be up.. 2025-08-28 02:41:25,006 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-28 02:41:30,094 - DEBUG - VM is in ACTIVE state now 2025-08-28 02:41:30,094 - INFO - VM name : ctest-TestBasicPolicy-00209082-71962938 2025-08-28 02:41:30,180 - DEBUG - VM ctest-TestBasicPolicy-00209082-71962938 ID is ffe60b6b-ef1e-4f1d-aaaa-e4d489a2586e 2025-08-28 02:41:30,218 - DEBUG - VM ctest-TestBasicPolicy-00209082-71962938 launched on Node cn-jenkins-deploy-platform-ansible-os-3955-1 2025-08-28 02:41:30,315 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/ffe60b6b-ef1e-4f1d-aaaa-e4d489a2586e 2025-08-28 02:41:30,325 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/234eabc4-f2ca-405e-a3bc-ce5e1fba7ffa 2025-08-28 02:41:33,580 - 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 1005ms') 2025-08-28 02:41:33,580 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00209082-71962938 failed! 2025-08-28 02:41:33,638 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-85476750 is 109.159.145.65 and allocation pool is NOT set 2025-08-28 02:41:35,709 - 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=3.57 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.90 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.901/3.236/3.571/0.335 ms') 2025-08-28 02:41:35,710 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00209082-71962938 passed 2025-08-28 02:41:35,866 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 02:41:35,866 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00209082-71962938, IP 109.159.145.67, Port 22 2025-08-28 02:41:36,036 - DEBUG - VM ctest-TestBasicPolicy-00209082-71962938 is ready for SSH connections 2025-08-28 02:41:36,036 - INFO - Waiting for VM ctest-TestBasicPolicy-00209082-17121887 to be up.. 2025-08-28 02:41:36,128 - DEBUG - VM is in ACTIVE state now 2025-08-28 02:41:36,128 - INFO - VM name : ctest-TestBasicPolicy-00209082-17121887 2025-08-28 02:41:36,215 - DEBUG - VM ctest-TestBasicPolicy-00209082-17121887 ID is 90586769-1c77-45db-b643-9b4a2a48985d 2025-08-28 02:41:36,215 - DEBUG - VM ctest-TestBasicPolicy-00209082-17121887 launched on Node cn-jenkins-deploy-platform-ansible-os-3955-1 2025-08-28 02:41:36,297 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/90586769-1c77-45db-b643-9b4a2a48985d 2025-08-28 02:41:36,306 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/b20a1d49-0c78-4421-9e75-8cfa831d5d14 2025-08-28 02:41:37,556 - 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.15 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.04 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.042/2.597/3.153/0.555 ms') 2025-08-28 02:41:37,557 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-00209082-17121887 passed 2025-08-28 02:41:37,705 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 02:41:37,706 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00209082-17121887, IP 140.101.85.67, Port 22 2025-08-28 02:41:37,772 - 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-08-28 02:41:37,868 - DEBUG - VM ctest-TestBasicPolicy-00209082-17121887 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-28 02:41:42,869 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 02:41:42,869 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00209082-17121887, IP 140.101.85.67, Port 22 2025-08-28 02:41:43,047 - DEBUG - VM ctest-TestBasicPolicy-00209082-17121887 is ready for SSH connections 2025-08-28 02:41:43,048 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 02:41:43,048 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 140.101.85.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-08-28 02:41:43,048 - DEBUG - ping -s 56 -c 3 -W 1 140.101.85.67 2025-08-28 02:41:47,217 - DEBUG - PING 140.101.85.67 (140.101.85.67): 56 data bytes 64 bytes from 140.101.85.67: seq=0 ttl=63 time=7.881 ms 64 bytes from 140.101.85.67: seq=1 ttl=63 time=1.364 ms 64 bytes from 140.101.85.67: seq=2 ttl=63 time=1.567 ms --- 140.101.85.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.364/3.604/7.881 ms 2025-08-28 02:41:47,217 - INFO - Ping to IP 140.101.85.67 from VM ctest-TestBasicPolicy-00209082-71962938 passed 2025-08-28 02:41:47,409 - DEBUG - Policy Update Response {"network-policy": {"uuid": "09247d08-033b-42bc-b35a-217ce7fa298b", "href": "http://10.0.0.249:8082/network-policy/09247d08-033b-42bc-b35a-217ce7fa298b"}} 2025-08-28 02:41:47,409 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 02:41:47,410 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 140.101.85.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-08-28 02:41:47,410 - DEBUG - ping -s 56 -c 3 -W 1 140.101.85.67 2025-08-28 02:41:50,683 - DEBUG - PING 140.101.85.67 (140.101.85.67): 56 data bytes --- 140.101.85.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-28 02:41:50,683 - WARNING - Ping to IP 140.101.85.67 from VM ctest-TestBasicPolicy-00209082-71962938 failed 2025-08-28 02:41:50,683 - INFO - Deleting VM ctest-TestBasicPolicy-00209082-17121887 2025-08-28 02:41:50,760 - INFO - Deleting VM ctest-TestBasicPolicy-00209082-71962938 2025-08-28 02:41:51,206 - INFO - Deleted policy ctest-policy-allow-all-28699165 2025-08-28 02:41:51,206 - INFO - Deleting VN ctest-vn-83644616 2025-08-28 02:41:51,255 - DEBUG - VN b894e0ab-65e5-4e40-80bb-e9691e7c0b49 still in use: Unable to complete operation on network b894e0ab-65e5-4e40-80bb-e9691e7c0b49. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-448070ac-b25e-4887-942e-8ffa08027bcb'] 2025-08-28 02:41:51,255 - WARNING - Deleting VN ctest-vn-83644616 failed..Will retry 2025-08-28 02:41:53,383 - DEBUG - Response for deleting network () 2025-08-28 02:41:53,383 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/fdb08b22-0ef9-4116-a65e-db072935afa7 2025-08-28 02:41:53,388 - DEBUG - Response Code: 404 2025-08-28 02:41:53,388 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 02:41:53,400 - DEBUG - Requesting: http://10.0.0.249:8082/domain/58a52db9-5c75-431f-b090-7480be74f975 2025-08-28 02:41:53,460 - DEBUG - Requesting: http://10.0.0.249:8082/project/f2209cd7-f508-4202-b066-f45b1bb1ee2e 2025-08-28 02:41:53,538 - INFO - Validated that VN ctest-vn-83644616 is not found in API Server 2025-08-28 02:41:53,549 - DEBUG - VN ctest-vn-83644616 is not present in Agent 10.0.0.249 2025-08-28 02:41:53,549 - INFO - Validated that VN ctest-vn-83644616 is not in any agent 2025-08-28 02:41:53,566 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83644616 info 2025-08-28 02:41:53,567 - INFO - Deleting VN ctest-vn-85476750 2025-08-28 02:41:53,695 - DEBUG - Response for deleting network () 2025-08-28 02:41:53,695 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1bae14f4-3c17-4eae-9c39-5f57c829c7f5 2025-08-28 02:41:53,700 - DEBUG - Response Code: 404 2025-08-28 02:41:53,700 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 02:41:53,708 - DEBUG - Requesting: http://10.0.0.249:8082/domain/58a52db9-5c75-431f-b090-7480be74f975 2025-08-28 02:41:53,763 - DEBUG - Requesting: http://10.0.0.249:8082/project/f2209cd7-f508-4202-b066-f45b1bb1ee2e 2025-08-28 02:41:53,838 - INFO - Validated that VN ctest-vn-85476750 is not found in API Server 2025-08-28 02:41:53,849 - DEBUG - VN ctest-vn-85476750 is not present in Agent 10.0.0.249 2025-08-28 02:41:53,849 - INFO - Validated that VN ctest-vn-85476750 is not in any agent 2025-08-28 02:41:53,863 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-85476750 info 2025-08-28 02:41:54,132 - DEBUG - No XMPP flaps were noticed during the test
2025-08-28 02:41:54,132 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2025-08-28 02:41:54,132 - INFO - -------------------------------------------------------------------------------- 2025-08-28 02:41:54,881 - INFO - Deleted project: ctest-TestBasicPolicy-00209082, ID : f2209cd7-f508-4202-b066-f45b1bb1ee2e