2025-06-10 09:19:21,625 - INFO - Domain Default found not creating 2025-06-10 09:19:21,793 - INFO - Project ctest-TestBasicPolicy-05599415 not found, creating it 2025-06-10 09:19:22,298 - INFO - Created Project:ctest-TestBasicPolicy-05599415, ID : 9d70b5af-d7ca-495c-9ff7-ddc2a9c2897b 2025-06-10 09:19:24,012 - INFO - ================================================================================ 2025-06-10 09:19:24,012 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-10 09:19:24,012 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-06-10 09:19:24,290 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.17': '0'}} with 2025-06-10 09:19:24,290 - INFO - Initial checks done. Running the testcase now 2025-06-10 09:19:24,290 - INFO - 2025-06-10 09:19:24,995 - DEBUG - Response for create_network : {'network': {'id': '467ff7db-3880-4df7-a1d1-6b7066c5fea6', 'name': 'ctest-vn-35687835', 'tenant_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'project_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05599415', 'ctest-vn-35687835'], 'port_security_enabled': True, 'description': ''}} 2025-06-10 09:19:25,230 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc032a88-0b50-4a18-a5f3-976fd135b827', 'name': '', 'tenant_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'network_id': '467ff7db-3880-4df7-a1d1-6b7066c5fea6', 'ip_version': 4, 'cidr': '173.235.180.64/26', 'allocation_pools': [{'start': '173.235.180.66', 'end': '173.235.180.126'}], 'gateway_ip': '173.235.180.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.235.180.66', 'tags': [], 'project_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b'}} 2025-06-10 09:19:25,249 - INFO - Created VN ctest-vn-35687835 2025-06-10 09:19:25,303 - DEBUG - VN ctest-vn-35687835 UUID is 467ff7db-3880-4df7-a1d1-6b7066c5fea6 2025-06-10 09:19:25,606 - DEBUG - Response for create_network : {'network': {'id': 'aa777517-8270-408d-bfa5-5272e9d58858', 'name': 'ctest-vn-93774187', 'tenant_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'project_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05599415', 'ctest-vn-93774187'], 'port_security_enabled': True, 'description': ''}} 2025-06-10 09:19:25,823 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7f858b0-f2f7-4766-b194-9c1e7f0d2e49', 'name': '', 'tenant_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'network_id': 'aa777517-8270-408d-bfa5-5272e9d58858', 'ip_version': 4, 'cidr': '144.27.88.64/26', 'allocation_pools': [{'start': '144.27.88.66', 'end': '144.27.88.126'}], 'gateway_ip': '144.27.88.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.27.88.66', 'tags': [], 'project_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b'}} 2025-06-10 09:19:25,843 - INFO - Created VN ctest-vn-93774187 2025-06-10 09:19:25,895 - DEBUG - VN ctest-vn-93774187 UUID is aa777517-8270-408d-bfa5-5272e9d58858 2025-06-10 09:19:26,022 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-35687835, 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-05599415:ctest-vn-93774187, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-06-10 09:19:26,338 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '467ff7db-3880-4df7-a1d1-6b7066c5fea6', 'name': 'ctest-vn-35687835', 'tenant_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'project_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc032a88-0b50-4a18-a5f3-976fd135b827'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05599415', 'ctest-vn-35687835'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05599415', 'ctest-policy-allow-all-16710427']], 'subnet_ipam': [{'subnet_cidr': '173.235.180.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-10 09:19:26,631 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa777517-8270-408d-bfa5-5272e9d58858', 'name': 'ctest-vn-93774187', 'tenant_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'project_id': '9d70b5afd7ca495c9ff7ddc2a9c2897b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a7f858b0-f2f7-4766-b194-9c1e7f0d2e49'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05599415', 'ctest-vn-93774187'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05599415', 'ctest-policy-allow-all-16710427']], 'subnet_ipam': [{'subnet_cidr': '144.27.88.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-10 09:19:26,795 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-06-10 09:19:27,146 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-06-10 09:19:27,179 - DEBUG - Requesting: http://10.0.0.56:8082/domain/337592ad-097b-4290-b226-fadcdd96d6b8 2025-06-10 09:19:27,194 - DEBUG - Requesting: http://10.0.0.56:8082/project/9d70b5af-d7ca-495c-9ff7-ddc2a9c2897b 2025-06-10 09:19:27,271 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/467ff7db-3880-4df7-a1d1-6b7066c5fea6 2025-06-10 09:19:27,284 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/467ff7db-3880-4df7-a1d1-6b7066c5fea6 2025-06-10 09:19:27,299 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3efbad6b-c266-4db8-849c-75e9398ea02a 2025-06-10 09:19:27,311 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3efbad6b-c266-4db8-849c-75e9398ea02a 2025-06-10 09:19:27,321 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/37097829-6d8e-4a9d-a913-101a897022db 2025-06-10 09:19:27,328 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-10 09:19:27,328 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/467ff7db-3880-4df7-a1d1-6b7066c5fea6 2025-06-10 09:19:27,339 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3efbad6b-c266-4db8-849c-75e9398ea02a 2025-06-10 09:19:27,357 - INFO - Verified VN network id 9 for VN 467ff7db-3880-4df7-a1d1-6b7066c5fea6 2025-06-10 09:19:27,357 - INFO - Verifications in API Server for VN ctest-vn-35687835 passed 2025-06-10 09:19:27,357 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/467ff7db-3880-4df7-a1d1-6b7066c5fea6 2025-06-10 09:19:27,369 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3efbad6b-c266-4db8-849c-75e9398ea02a 2025-06-10 09:19:27,378 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3efbad6b-c266-4db8-849c-75e9398ea02a 2025-06-10 09:19:27,387 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/37097829-6d8e-4a9d-a913-101a897022db 2025-06-10 09:19:27,401 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-35687835', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05599415', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5080051425615039991', 'uuid-lslong': '11660219040743685798'}, 'enable': 'true', 'created': '2025-06-10T09:19:24', 'last-modified': '2025-06-10T09:19:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.093922'} 2025-06-10 09:19:27,408 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-10 09:19:27,409 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35687835 passed 2025-06-10 09:19:27,409 - DEBUG - ====Verifying policy data for ctest-vn-35687835 in API_Server ====== 2025-06-10 09:19:27,409 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-06-10 09:19:27,416 - DEBUG - Requesting: http://10.0.0.56:8082/domain/337592ad-097b-4290-b226-fadcdd96d6b8 2025-06-10 09:19:27,430 - DEBUG - Requesting: http://10.0.0.56:8082/project/9d70b5af-d7ca-495c-9ff7-ddc2a9c2897b 2025-06-10 09:19:27,510 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/467ff7db-3880-4df7-a1d1-6b7066c5fea6 2025-06-10 09:19:27,523 - DEBUG - ==>Verifying data for policy with id: 0f2dd705-f133-4e9f-b653-cba4c8585c79, fqn: ['default-domain', 'ctest-TestBasicPolicy-05599415', 'ctest-policy-allow-all-16710427'] 2025-06-10 09:19:27,523 - INFO - VN ctest-vn-35687835 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-10 09:19:27,523 - DEBUG - Verifying the vn in opserver 2025-06-10 09:19:27,523 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-35687835 virtual network link through opserver 10.0.0.56 2025-06-10 09:19:27,523 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-06-10 09:19:27,860 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-06-10 09:19:27,922 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-35687835', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-35687835?flat'} 2025-06-10 09:19:27,922 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-35687835 is found in opserver 2025-06-10 09:19:27,936 - DEBUG - Do not have enough data to verify VN in agent 2025-06-10 09:19:27,942 - DEBUG - VRF ids for VN ctest-vn-35687835: {} 2025-06-10 09:19:27,942 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-06-10 09:19:27,948 - DEBUG - Requesting: http://10.0.0.56:8082/domain/337592ad-097b-4290-b226-fadcdd96d6b8 2025-06-10 09:19:27,962 - DEBUG - Requesting: http://10.0.0.56:8082/project/9d70b5af-d7ca-495c-9ff7-ddc2a9c2897b 2025-06-10 09:19:28,043 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa777517-8270-408d-bfa5-5272e9d58858 2025-06-10 09:19:28,058 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa777517-8270-408d-bfa5-5272e9d58858 2025-06-10 09:19:28,069 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/561fc6c8-c6b0-4d8c-ae8a-0ecf49d9904f 2025-06-10 09:19:28,077 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/561fc6c8-c6b0-4d8c-ae8a-0ecf49d9904f 2025-06-10 09:19:28,087 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/8dc409dc-b190-4202-a8dd-32fbe882f78b 2025-06-10 09:19:28,096 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-10 09:19:28,096 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa777517-8270-408d-bfa5-5272e9d58858 2025-06-10 09:19:28,107 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/561fc6c8-c6b0-4d8c-ae8a-0ecf49d9904f 2025-06-10 09:19:28,127 - INFO - Verified VN network id 10 for VN aa777517-8270-408d-bfa5-5272e9d58858 2025-06-10 09:19:28,127 - INFO - Verifications in API Server for VN ctest-vn-93774187 passed 2025-06-10 09:19:28,128 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa777517-8270-408d-bfa5-5272e9d58858 2025-06-10 09:19:28,140 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/561fc6c8-c6b0-4d8c-ae8a-0ecf49d9904f 2025-06-10 09:19:28,149 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/561fc6c8-c6b0-4d8c-ae8a-0ecf49d9904f 2025-06-10 09:19:28,157 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/8dc409dc-b190-4202-a8dd-32fbe882f78b 2025-06-10 09:19:28,170 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-93774187', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05599415', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12283415252509409421', 'uuid-lslong': '13809534485904328792'}, 'enable': 'true', 'created': '2025-06-10T09:19:25', 'last-modified': '2025-06-10T09:19:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.615724'} 2025-06-10 09:19:28,178 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-10 09:19:28,178 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93774187 passed 2025-06-10 09:19:28,178 - DEBUG - ====Verifying policy data for ctest-vn-93774187 in API_Server ====== 2025-06-10 09:19:28,178 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-06-10 09:19:28,185 - DEBUG - Requesting: http://10.0.0.56:8082/domain/337592ad-097b-4290-b226-fadcdd96d6b8 2025-06-10 09:19:28,200 - DEBUG - Requesting: http://10.0.0.56:8082/project/9d70b5af-d7ca-495c-9ff7-ddc2a9c2897b 2025-06-10 09:19:28,277 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/aa777517-8270-408d-bfa5-5272e9d58858 2025-06-10 09:19:28,289 - DEBUG - ==>Verifying data for policy with id: 0f2dd705-f133-4e9f-b653-cba4c8585c79, fqn: ['default-domain', 'ctest-TestBasicPolicy-05599415', 'ctest-policy-allow-all-16710427'] 2025-06-10 09:19:28,289 - INFO - VN ctest-vn-93774187 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-10 09:19:28,289 - DEBUG - Verifying the vn in opserver 2025-06-10 09:19:28,289 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-93774187 virtual network link through opserver 10.0.0.56 2025-06-10 09:19:28,289 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-06-10 09:19:28,302 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-93774187', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-93774187?flat'} 2025-06-10 09:19:28,302 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-93774187 is found in opserver 2025-06-10 09:19:28,318 - DEBUG - Do not have enough data to verify VN in agent 2025-06-10 09:19:28,324 - DEBUG - VRF ids for VN ctest-vn-93774187: {} 2025-06-10 09:19:28,395 - DEBUG - Services list from nova: [, , ] 2025-06-10 09:19:29,547 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3429-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3429-1) 2025-06-10 09:19:31,227 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3429-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3429-1) 2025-06-10 09:19:31,227 - INFO - Waiting for VM ctest-TestBasicPolicy-05599415-33225370 to be up.. 2025-06-10 09:19:31,314 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-10 09:19:36,413 - DEBUG - VM is in ACTIVE state now 2025-06-10 09:19:36,413 - INFO - VM name : ctest-TestBasicPolicy-05599415-33225370 2025-06-10 09:19:36,497 - DEBUG - VM ctest-TestBasicPolicy-05599415-33225370 ID is 96d93a65-0c84-4b87-b594-7e7c0e45c128 2025-06-10 09:19:36,519 - DEBUG - VM ctest-TestBasicPolicy-05599415-33225370 launched on Node cn-jenkins-deploy-platform-ansible-os-3429-1 2025-06-10 09:19:36,613 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/96d93a65-0c84-4b87-b594-7e7c0e45c128 2025-06-10 09:19:36,623 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/89047ff3-af58-4a57-8c3f-a225cde76705 2025-06-10 09:19:39,886 - 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 1010ms') 2025-06-10 09:19:39,886 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-05599415-33225370 failed! 2025-06-10 09:19:39,943 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-05599415:ctest-vn-35687835 is 173.235.180.65 and allocation pool is NOT set 2025-06-10 09:19:42,005 - 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=5.01 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.16 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 = 2.155/3.580/5.005/1.425 ms') 2025-06-10 09:19:42,005 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-05599415-33225370 passed 2025-06-10 09:19:42,163 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 09:19:42,163 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-05599415-33225370, IP 173.235.180.67, Port 22 2025-06-10 09:19:42,322 - DEBUG - VM ctest-TestBasicPolicy-05599415-33225370 is ready for SSH connections 2025-06-10 09:19:42,323 - INFO - Waiting for VM ctest-TestBasicPolicy-05599415-24482258 to be up.. 2025-06-10 09:19:42,425 - DEBUG - VM is in ACTIVE state now 2025-06-10 09:19:42,425 - INFO - VM name : ctest-TestBasicPolicy-05599415-24482258 2025-06-10 09:19:42,510 - DEBUG - VM ctest-TestBasicPolicy-05599415-24482258 ID is 85f268e1-3cd6-4307-9799-7a912fe3f49c 2025-06-10 09:19:42,510 - DEBUG - VM ctest-TestBasicPolicy-05599415-24482258 launched on Node cn-jenkins-deploy-platform-ansible-os-3429-1 2025-06-10 09:19:42,597 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine/85f268e1-3cd6-4307-9799-7a912fe3f49c 2025-06-10 09:19:42,609 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-machine-interface/cf44ff98-8230-4c55-b247-bf9b3002adf7 2025-06-10 09:19:43,866 - 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.79 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.81 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 3.785/3.798/3.811/0.013 ms') 2025-06-10 09:19:43,866 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-05599415-24482258 passed 2025-06-10 09:19:44,027 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 09:19:44,027 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-05599415-24482258, IP 144.27.88.67, Port 22 2025-06-10 09:19:44,093 - 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-06-10 09:19:44,179 - DEBUG - VM ctest-TestBasicPolicy-05599415-24482258 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-10 09:19:49,181 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 09:19:49,181 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-05599415-24482258, IP 144.27.88.67, Port 22 2025-06-10 09:19:49,343 - DEBUG - VM ctest-TestBasicPolicy-05599415-24482258 is ready for SSH connections 2025-06-10 09:19:49,343 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 09:19:49,344 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.27.88.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-06-10 09:19:49,344 - DEBUG - ping -s 56 -c 3 -W 1 144.27.88.67 2025-06-10 09:19:53,445 - DEBUG - PING 144.27.88.67 (144.27.88.67): 56 data bytes 64 bytes from 144.27.88.67: seq=0 ttl=63 time=4.971 ms 64 bytes from 144.27.88.67: seq=1 ttl=63 time=0.905 ms 64 bytes from 144.27.88.67: seq=2 ttl=63 time=0.877 ms --- 144.27.88.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.877/2.251/4.971 ms 2025-06-10 09:19:53,445 - INFO - Ping to IP 144.27.88.67 from VM ctest-TestBasicPolicy-05599415-33225370 passed 2025-06-10 09:19:53,631 - DEBUG - Policy Update Response {"network-policy": {"uuid": "0f2dd705-f133-4e9f-b653-cba4c8585c79", "href": "http://10.0.0.56:8082/network-policy/0f2dd705-f133-4e9f-b653-cba4c8585c79"}} 2025-06-10 09:19:53,631 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 09:19:53,631 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.27.88.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2025-06-10 09:19:53,631 - DEBUG - ping -s 56 -c 3 -W 1 144.27.88.67 2025-06-10 09:19:56,860 - DEBUG - PING 144.27.88.67 (144.27.88.67): 56 data bytes 64 bytes from 144.27.88.67: seq=0 ttl=63 time=1.336 ms --- 144.27.88.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.336/1.336/1.336 ms 2025-06-10 09:19:56,861 - WARNING - Ping to IP 144.27.88.67 from VM ctest-TestBasicPolicy-05599415-33225370 failed 2025-06-10 09:19:56,861 - INFO - Deleting VM ctest-TestBasicPolicy-05599415-24482258 2025-06-10 09:19:56,943 - INFO - Deleting VM ctest-TestBasicPolicy-05599415-33225370 2025-06-10 09:19:57,374 - INFO - Deleted policy ctest-policy-allow-all-16710427 2025-06-10 09:19:57,375 - INFO - Deleting VN ctest-vn-93774187 2025-06-10 09:19:57,421 - DEBUG - VN aa777517-8270-408d-bfa5-5272e9d58858 still in use: Unable to complete operation on network aa777517-8270-408d-bfa5-5272e9d58858. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fddaa0e5-8ecb-4d3b-a04e-f9c518576bc5'] 2025-06-10 09:19:57,422 - WARNING - Deleting VN ctest-vn-93774187 failed..Will retry 2025-06-10 09:19:59,538 - DEBUG - Response for deleting network () 2025-06-10 09:19:59,538 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/561fc6c8-c6b0-4d8c-ae8a-0ecf49d9904f 2025-06-10 09:19:59,551 - DEBUG - Response Code: 404 2025-06-10 09:19:59,551 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-06-10 09:19:59,557 - DEBUG - Requesting: http://10.0.0.56:8082/domain/337592ad-097b-4290-b226-fadcdd96d6b8 2025-06-10 09:19:59,615 - DEBUG - Requesting: http://10.0.0.56:8082/project/9d70b5af-d7ca-495c-9ff7-ddc2a9c2897b 2025-06-10 09:19:59,695 - INFO - Validated that VN ctest-vn-93774187 is not found in API Server 2025-06-10 09:19:59,708 - DEBUG - VN ctest-vn-93774187 is not present in Agent 10.0.0.56 2025-06-10 09:19:59,708 - INFO - Validated that VN ctest-vn-93774187 is not in any agent 2025-06-10 09:19:59,726 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-93774187 info 2025-06-10 09:19:59,726 - INFO - Deleting VN ctest-vn-35687835 2025-06-10 09:19:59,840 - DEBUG - Response for deleting network () 2025-06-10 09:19:59,840 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/3efbad6b-c266-4db8-849c-75e9398ea02a 2025-06-10 09:19:59,847 - DEBUG - Response Code: 404 2025-06-10 09:19:59,847 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-06-10 09:19:59,854 - DEBUG - Requesting: http://10.0.0.56:8082/domain/337592ad-097b-4290-b226-fadcdd96d6b8 2025-06-10 09:19:59,908 - DEBUG - Requesting: http://10.0.0.56:8082/project/9d70b5af-d7ca-495c-9ff7-ddc2a9c2897b 2025-06-10 09:19:59,988 - INFO - Validated that VN ctest-vn-35687835 is not found in API Server 2025-06-10 09:20:00,005 - DEBUG - VN ctest-vn-35687835 is not present in Agent 10.0.0.56 2025-06-10 09:20:00,005 - INFO - Validated that VN ctest-vn-35687835 is not in any agent 2025-06-10 09:20:00,026 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35687835 info 2025-06-10 09:20:00,283 - DEBUG - No XMPP flaps were noticed during the test 2025-06-10 09:20:00,283 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-06-10 09:20:00,283 - INFO - -------------------------------------------------------------------------------- 2025-06-10 09:20:01,037 - INFO - Deleted project: ctest-TestBasicPolicy-05599415, ID : 9d70b5af-d7ca-495c-9ff7-ddc2a9c2897b