2025-11-20 13:43:50,311 - INFO - Domain Default found not creating 2025-11-20 13:43:50,659 - INFO - Project ctest-TestBasicPolicy-66045427 not found, creating it 2025-11-20 13:43:51,362 - INFO - Created Project:ctest-TestBasicPolicy-66045427, ID : 181ca0c4-e175-4f36-b4dd-ace7aae79ada 2025-11-20 13:43:53,393 - INFO - ================================================================================ 2025-11-20 13:43:53,394 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-20 13:43:53,394 - 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-11-20 13:43:53,731 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.249': '0'}} with 2025-11-20 13:43:53,731 - INFO - Initial checks done. Running the testcase now 2025-11-20 13:43:53,731 - INFO - 2025-11-20 13:43:54,442 - DEBUG - Response for create_network : {'network': {'id': '9b6eb1ec-1ac8-4948-a969-17fffaba8fa4', 'name': 'ctest-vn-60215275', 'tenant_id': '181ca0c4e1754f36b4ddace7aae79ada', 'project_id': '181ca0c4e1754f36b4ddace7aae79ada', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66045427', 'ctest-vn-60215275'], 'port_security_enabled': True, 'description': ''}} 2025-11-20 13:43:54,675 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a141b8a1-f1d8-496d-bff3-a7a751d6ac26', 'name': '', 'tenant_id': '181ca0c4e1754f36b4ddace7aae79ada', 'network_id': '9b6eb1ec-1ac8-4948-a969-17fffaba8fa4', 'ip_version': 4, 'cidr': '81.234.104.64/26', 'allocation_pools': [{'start': '81.234.104.66', 'end': '81.234.104.126'}], 'gateway_ip': '81.234.104.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.234.104.66', 'tags': [], 'project_id': '181ca0c4e1754f36b4ddace7aae79ada'}} 2025-11-20 13:43:54,697 - INFO - Created VN ctest-vn-60215275 2025-11-20 13:43:54,755 - DEBUG - VN ctest-vn-60215275 UUID is 9b6eb1ec-1ac8-4948-a969-17fffaba8fa4 2025-11-20 13:43:55,147 - DEBUG - Response for create_network : {'network': {'id': '5a7b24ac-951f-4965-a1c8-b1ee8aa1f978', 'name': 'ctest-vn-05684626', 'tenant_id': '181ca0c4e1754f36b4ddace7aae79ada', 'project_id': '181ca0c4e1754f36b4ddace7aae79ada', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66045427', 'ctest-vn-05684626'], 'port_security_enabled': True, 'description': ''}} 2025-11-20 13:43:55,302 - DEBUG - Response for create_subnet : {'subnet': {'id': '92847ae3-fc99-40b0-8004-420d1cfc0281', 'name': '', 'tenant_id': '181ca0c4e1754f36b4ddace7aae79ada', 'network_id': '5a7b24ac-951f-4965-a1c8-b1ee8aa1f978', 'ip_version': 4, 'cidr': '179.201.63.192/26', 'allocation_pools': [{'start': '179.201.63.194', 'end': '179.201.63.254'}], 'gateway_ip': '179.201.63.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.201.63.194', 'tags': [], 'project_id': '181ca0c4e1754f36b4ddace7aae79ada'}} 2025-11-20 13:43:55,325 - INFO - Created VN ctest-vn-05684626 2025-11-20 13:43:55,379 - DEBUG - VN ctest-vn-05684626 UUID is 5a7b24ac-951f-4965-a1c8-b1ee8aa1f978 2025-11-20 13:43:55,541 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-60215275, 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-66045427:ctest-vn-05684626, 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-11-20 13:43:55,906 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b6eb1ec-1ac8-4948-a969-17fffaba8fa4', 'name': 'ctest-vn-60215275', 'tenant_id': '181ca0c4e1754f36b4ddace7aae79ada', 'project_id': '181ca0c4e1754f36b4ddace7aae79ada', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a141b8a1-f1d8-496d-bff3-a7a751d6ac26'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66045427', 'ctest-vn-60215275'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66045427', 'ctest-policy-allow-all-21819486']], 'subnet_ipam': [{'subnet_cidr': '81.234.104.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-20 13:43:56,152 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5a7b24ac-951f-4965-a1c8-b1ee8aa1f978', 'name': 'ctest-vn-05684626', 'tenant_id': '181ca0c4e1754f36b4ddace7aae79ada', 'project_id': '181ca0c4e1754f36b4ddace7aae79ada', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['92847ae3-fc99-40b0-8004-420d1cfc0281'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66045427', 'ctest-vn-05684626'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66045427', 'ctest-policy-allow-all-21819486']], 'subnet_ipam': [{'subnet_cidr': '179.201.63.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-20 13:43:56,315 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-11-20 13:43:56,650 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-11-20 13:43:56,693 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ebb41f27-7f4d-4f6b-8b76-984add42501d 2025-11-20 13:43:56,719 - DEBUG - Requesting: http://10.0.0.49:8082/project/181ca0c4-e175-4f36-b4dd-ace7aae79ada 2025-11-20 13:43:56,810 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b6eb1ec-1ac8-4948-a969-17fffaba8fa4 2025-11-20 13:43:56,828 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b6eb1ec-1ac8-4948-a969-17fffaba8fa4 2025-11-20 13:43:56,844 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/fa0c80f9-2e5f-4b07-9806-b315a9081f86 2025-11-20 13:43:56,856 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/fa0c80f9-2e5f-4b07-9806-b315a9081f86 2025-11-20 13:43:56,867 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/9dad900e-4616-423b-9d6a-1db63843e8aa 2025-11-20 13:43:56,878 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 13:43:56,878 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b6eb1ec-1ac8-4948-a969-17fffaba8fa4 2025-11-20 13:43:56,893 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/fa0c80f9-2e5f-4b07-9806-b315a9081f86 2025-11-20 13:43:56,917 - INFO - Verified VN network id 11 for VN 9b6eb1ec-1ac8-4948-a969-17fffaba8fa4 2025-11-20 13:43:56,917 - INFO - Verifications in API Server for VN ctest-vn-60215275 passed 2025-11-20 13:43:56,917 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b6eb1ec-1ac8-4948-a969-17fffaba8fa4 2025-11-20 13:43:56,939 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/fa0c80f9-2e5f-4b07-9806-b315a9081f86 2025-11-20 13:43:56,953 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/fa0c80f9-2e5f-4b07-9806-b315a9081f86 2025-11-20 13:43:56,971 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/9dad900e-4616-423b-9d6a-1db63843e8aa 2025-11-20 13:43:57,002 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-60215275', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66045427', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11200084950936734024', 'uuid-lslong': '12207314653155069860'}, 'enable': 'true', 'created': '2025-11-20T13:43:54', 'last-modified': '2025-11-20T13:43:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.133211'} 2025-11-20 13:43:57,015 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 13:43:57,015 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60215275 passed 2025-11-20 13:43:57,016 - DEBUG - ====Verifying policy data for ctest-vn-60215275 in API_Server ====== 2025-11-20 13:43:57,016 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-11-20 13:43:57,030 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ebb41f27-7f4d-4f6b-8b76-984add42501d 2025-11-20 13:43:57,059 - DEBUG - Requesting: http://10.0.0.49:8082/project/181ca0c4-e175-4f36-b4dd-ace7aae79ada 2025-11-20 13:43:57,156 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b6eb1ec-1ac8-4948-a969-17fffaba8fa4 2025-11-20 13:43:57,180 - DEBUG - ==>Verifying data for policy with id: b0bf7f64-b616-42ee-9766-e68a40d18d01, fqn: ['default-domain', 'ctest-TestBasicPolicy-66045427', 'ctest-policy-allow-all-21819486'] 2025-11-20 13:43:57,180 - INFO - VN ctest-vn-60215275 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-20 13:43:57,181 - DEBUG - Verifying the vn in opserver 2025-11-20 13:43:57,181 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-60215275 virtual network link through opserver 10.0.0.49 2025-11-20 13:43:57,181 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-11-20 13:43:57,500 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-11-20 13:43:57,582 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-60215275', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-60215275?flat'} 2025-11-20 13:43:57,582 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-60215275 is found in opserver 2025-11-20 13:43:57,606 - DEBUG - Do not have enough data to verify VN in agent 2025-11-20 13:43:57,613 - DEBUG - VRF ids for VN ctest-vn-60215275: {} 2025-11-20 13:43:57,613 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-11-20 13:43:57,620 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ebb41f27-7f4d-4f6b-8b76-984add42501d 2025-11-20 13:43:57,640 - DEBUG - Requesting: http://10.0.0.49:8082/project/181ca0c4-e175-4f36-b4dd-ace7aae79ada 2025-11-20 13:43:57,746 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5a7b24ac-951f-4965-a1c8-b1ee8aa1f978 2025-11-20 13:43:57,770 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5a7b24ac-951f-4965-a1c8-b1ee8aa1f978 2025-11-20 13:43:57,790 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e9f5d7c1-efad-4aeb-9cff-7c0572a3ef34 2025-11-20 13:43:57,811 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e9f5d7c1-efad-4aeb-9cff-7c0572a3ef34 2025-11-20 13:43:57,825 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/e85ed7fe-4be5-431d-80de-cce49ecbf976 2025-11-20 13:43:57,838 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-20 13:43:57,838 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5a7b24ac-951f-4965-a1c8-b1ee8aa1f978 2025-11-20 13:43:57,855 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e9f5d7c1-efad-4aeb-9cff-7c0572a3ef34 2025-11-20 13:43:57,878 - INFO - Verified VN network id 12 for VN 5a7b24ac-951f-4965-a1c8-b1ee8aa1f978 2025-11-20 13:43:57,878 - INFO - Verifications in API Server for VN ctest-vn-05684626 passed 2025-11-20 13:43:57,879 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5a7b24ac-951f-4965-a1c8-b1ee8aa1f978 2025-11-20 13:43:57,892 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e9f5d7c1-efad-4aeb-9cff-7c0572a3ef34 2025-11-20 13:43:57,901 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e9f5d7c1-efad-4aeb-9cff-7c0572a3ef34 2025-11-20 13:43:57,910 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/e85ed7fe-4be5-431d-80de-cce49ecbf976 2025-11-20 13:43:57,925 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-05684626', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66045427', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6519845209203755365', 'uuid-lslong': '11657763273534732664'}, 'enable': 'true', 'created': '2025-11-20T13:43:55', 'last-modified': '2025-11-20T13:43:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.799604'} 2025-11-20 13:43:57,934 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-20 13:43:57,934 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05684626 passed 2025-11-20 13:43:57,934 - DEBUG - ====Verifying policy data for ctest-vn-05684626 in API_Server ====== 2025-11-20 13:43:57,934 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-11-20 13:43:57,943 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ebb41f27-7f4d-4f6b-8b76-984add42501d 2025-11-20 13:43:57,963 - DEBUG - Requesting: http://10.0.0.49:8082/project/181ca0c4-e175-4f36-b4dd-ace7aae79ada 2025-11-20 13:43:58,081 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5a7b24ac-951f-4965-a1c8-b1ee8aa1f978 2025-11-20 13:43:58,098 - DEBUG - ==>Verifying data for policy with id: b0bf7f64-b616-42ee-9766-e68a40d18d01, fqn: ['default-domain', 'ctest-TestBasicPolicy-66045427', 'ctest-policy-allow-all-21819486'] 2025-11-20 13:43:58,098 - INFO - VN ctest-vn-05684626 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-20 13:43:58,098 - DEBUG - Verifying the vn in opserver 2025-11-20 13:43:58,098 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-05684626 virtual network link through opserver 10.0.0.49 2025-11-20 13:43:58,098 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-11-20 13:43:58,119 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-05684626', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-05684626?flat'} 2025-11-20 13:43:58,119 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-05684626 is found in opserver 2025-11-20 13:43:58,138 - DEBUG - Do not have enough data to verify VN in agent 2025-11-20 13:43:58,147 - DEBUG - VRF ids for VN ctest-vn-05684626: {} 2025-11-20 13:43:58,292 - DEBUG - Services list from nova: [, , ] 2025-11-20 13:43:59,619 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4774-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4774-1) 2025-11-20 13:44:00,936 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4774-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4774-1) 2025-11-20 13:44:00,937 - INFO - Waiting for VM ctest-TestBasicPolicy-66045427-68714263 to be up.. 2025-11-20 13:44:01,027 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-20 13:44:06,151 - DEBUG - VM is in ACTIVE state now 2025-11-20 13:44:06,152 - INFO - VM name : ctest-TestBasicPolicy-66045427-68714263 2025-11-20 13:44:06,257 - DEBUG - VM ctest-TestBasicPolicy-66045427-68714263 ID is 1373fa89-7b68-4b87-bdc7-74a0fc97b389 2025-11-20 13:44:06,288 - DEBUG - VM ctest-TestBasicPolicy-66045427-68714263 launched on Node cn-jenkins-deploy-platform-ansible-os-4774-1 2025-11-20 13:44:06,375 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/1373fa89-7b68-4b87-bdc7-74a0fc97b389 2025-11-20 13:44:06,383 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/10676e2c-a2fc-483e-9603-af52ab1c3224 2025-11-20 13:44:09,646 - 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 1019ms') 2025-11-20 13:44:09,647 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-66045427-68714263 failed! 2025-11-20 13:44:09,731 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-66045427:ctest-vn-60215275 is 81.234.104.65 and allocation pool is NOT set 2025-11-20 13:44:13,805 - 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=2 ttl=63 time=8.99 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1007ms\r\nrtt min/avg/max/mdev = 8.986/8.986/8.986/0.000 ms') 2025-11-20 13:44:13,806 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-66045427-68714263 passed 2025-11-20 13:44:13,979 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 13:44:13,980 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-66045427-68714263, IP 81.234.104.67, Port 22 2025-11-20 13:44:14,152 - DEBUG - VM ctest-TestBasicPolicy-66045427-68714263 is ready for SSH connections 2025-11-20 13:44:14,153 - INFO - Waiting for VM ctest-TestBasicPolicy-66045427-56529096 to be up.. 2025-11-20 13:44:14,273 - DEBUG - VM is in ACTIVE state now 2025-11-20 13:44:14,273 - INFO - VM name : ctest-TestBasicPolicy-66045427-56529096 2025-11-20 13:44:14,373 - DEBUG - VM ctest-TestBasicPolicy-66045427-56529096 ID is 5f0119ab-73ec-409d-96ca-d30bf28679f9 2025-11-20 13:44:14,373 - DEBUG - VM ctest-TestBasicPolicy-66045427-56529096 launched on Node cn-jenkins-deploy-platform-ansible-os-4774-1 2025-11-20 13:44:14,491 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/5f0119ab-73ec-409d-96ca-d30bf28679f9 2025-11-20 13:44:14,502 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/541460c5-8e1f-41ec-9f52-fa7a8a223aa4 2025-11-20 13:44:15,762 - 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.99 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.29 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 = 1.290/2.637/3.985/1.347 ms') 2025-11-20 13:44:15,762 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-66045427-56529096 passed 2025-11-20 13:44:15,923 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 13:44:15,923 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-66045427-56529096, IP 179.201.63.195, Port 22 2025-11-20 13:44:15,993 - 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-11-20 13:44:16,098 - DEBUG - VM ctest-TestBasicPolicy-66045427-56529096 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-20 13:44:21,099 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 13:44:21,100 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-66045427-56529096, IP 179.201.63.195, Port 22 2025-11-20 13:44:21,305 - DEBUG - VM ctest-TestBasicPolicy-66045427-56529096 is ready for SSH connections 2025-11-20 13:44:21,305 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 13:44:21,306 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 179.201.63.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-11-20 13:44:21,306 - DEBUG - ping -s 56 -c 3 -W 1 179.201.63.195 2025-11-20 13:44:25,798 - DEBUG - PING 179.201.63.195 (179.201.63.195): 56 data bytes 64 bytes from 179.201.63.195: seq=0 ttl=63 time=5.506 ms 64 bytes from 179.201.63.195: seq=1 ttl=63 time=1.359 ms 64 bytes from 179.201.63.195: seq=2 ttl=63 time=2.823 ms --- 179.201.63.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.359/3.229/5.506 ms 2025-11-20 13:44:25,799 - INFO - Ping to IP 179.201.63.195 from VM ctest-TestBasicPolicy-66045427-68714263 passed 2025-11-20 13:44:26,023 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b0bf7f64-b616-42ee-9766-e68a40d18d01", "href": "http://10.0.0.49:8082/network-policy/b0bf7f64-b616-42ee-9766-e68a40d18d01"}} 2025-11-20 13:44:26,023 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 13:44:26,023 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 179.201.63.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-11-20 13:44:26,023 - DEBUG - ping -s 56 -c 3 -W 1 179.201.63.195 2025-11-20 13:44:29,249 - DEBUG - PING 179.201.63.195 (179.201.63.195): 56 data bytes --- 179.201.63.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-20 13:44:29,250 - WARNING - Ping to IP 179.201.63.195 from VM ctest-TestBasicPolicy-66045427-68714263 failed 2025-11-20 13:44:29,250 - INFO - Deleting VM ctest-TestBasicPolicy-66045427-56529096 2025-11-20 13:44:29,369 - INFO - Deleting VM ctest-TestBasicPolicy-66045427-68714263 2025-11-20 13:44:29,844 - INFO - Deleted policy ctest-policy-allow-all-21819486 2025-11-20 13:44:29,844 - INFO - Deleting VN ctest-vn-05684626 2025-11-20 13:44:29,890 - DEBUG - VN 5a7b24ac-951f-4965-a1c8-b1ee8aa1f978 still in use: Unable to complete operation on network 5a7b24ac-951f-4965-a1c8-b1ee8aa1f978. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-60bbb288-fb49-4465-9324-063a4165a423'] 2025-11-20 13:44:29,890 - WARNING - Deleting VN ctest-vn-05684626 failed..Will retry 2025-11-20 13:44:32,111 - DEBUG - Response for deleting network () 2025-11-20 13:44:32,111 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e9f5d7c1-efad-4aeb-9cff-7c0572a3ef34 2025-11-20 13:44:32,121 - DEBUG - Response Code: 404 2025-11-20 13:44:32,121 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-11-20 13:44:32,130 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ebb41f27-7f4d-4f6b-8b76-984add42501d 2025-11-20 13:44:32,199 - DEBUG - Requesting: http://10.0.0.49:8082/project/181ca0c4-e175-4f36-b4dd-ace7aae79ada 2025-11-20 13:44:32,303 - INFO - Validated that VN ctest-vn-05684626 is not found in API Server 2025-11-20 13:44:32,322 - DEBUG - VN ctest-vn-05684626 is not present in Agent 10.0.0.49 2025-11-20 13:44:32,322 - INFO - Validated that VN ctest-vn-05684626 is not in any agent 2025-11-20 13:44:32,351 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-05684626 info 2025-11-20 13:44:32,351 - INFO - Deleting VN ctest-vn-60215275 2025-11-20 13:44:32,500 - DEBUG - Response for deleting network () 2025-11-20 13:44:32,500 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/fa0c80f9-2e5f-4b07-9806-b315a9081f86 2025-11-20 13:44:32,507 - DEBUG - Response Code: 404 2025-11-20 13:44:32,507 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-11-20 13:44:32,513 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ebb41f27-7f4d-4f6b-8b76-984add42501d 2025-11-20 13:44:32,570 - DEBUG - Requesting: http://10.0.0.49:8082/project/181ca0c4-e175-4f36-b4dd-ace7aae79ada 2025-11-20 13:44:32,673 - INFO - Validated that VN ctest-vn-60215275 is not found in API Server 2025-11-20 13:44:32,687 - DEBUG - VN ctest-vn-60215275 is not present in Agent 10.0.0.49 2025-11-20 13:44:32,687 - INFO - Validated that VN ctest-vn-60215275 is not in any agent 2025-11-20 13:44:32,707 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60215275 info 2025-11-20 13:44:32,997 - DEBUG - No XMPP flaps were noticed during the test
2025-11-20 13:44:32,997 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39]
2025-11-20 13:44:32,997 - INFO - -------------------------------------------------------------------------------- 2025-11-20 13:44:33,915 - INFO - Deleted project: ctest-TestBasicPolicy-66045427, ID : 181ca0c4-e175-4f36-b4dd-ace7aae79ada