2025-10-09 14:08:23,538 - INFO - Domain Default found not creating 2025-10-09 14:08:23,728 - INFO - Project ctest-TestBasicPolicy-32584545 not found, creating it 2025-10-09 14:08:24,193 - INFO - Created Project:ctest-TestBasicPolicy-32584545, ID : 5a9a62cf-ebda-4ba1-8f24-eb62a05bba8d 2025-10-09 14:08:25,768 - INFO - ================================================================================ 2025-10-09 14:08:25,768 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-09 14:08:25,769 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-10-09 14:08:26,047 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with 2025-10-09 14:08:26,048 - INFO - Initial checks done. Running the testcase now 2025-10-09 14:08:26,048 - INFO - 2025-10-09 14:08:26,741 - DEBUG - Response for create_network : {'network': {'id': '8f5fc5b5-022e-4f09-9505-0dc3a7b174eb', 'name': 'ctest-vn-65245888', 'tenant_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'project_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32584545', 'ctest-vn-65245888'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 14:08:26,974 - DEBUG - Response for create_subnet : {'subnet': {'id': '5af20be7-37a2-4931-9c80-5088afc3efb1', 'name': '', 'tenant_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'network_id': '8f5fc5b5-022e-4f09-9505-0dc3a7b174eb', 'ip_version': 4, 'cidr': '63.196.205.64/26', 'allocation_pools': [{'start': '63.196.205.66', 'end': '63.196.205.126'}], 'gateway_ip': '63.196.205.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.196.205.66', 'tags': [], 'project_id': '5a9a62cfebda4ba18f24eb62a05bba8d'}} 2025-10-09 14:08:26,996 - INFO - Created VN ctest-vn-65245888 2025-10-09 14:08:27,052 - DEBUG - VN ctest-vn-65245888 UUID is 8f5fc5b5-022e-4f09-9505-0dc3a7b174eb 2025-10-09 14:08:27,388 - DEBUG - Response for create_network : {'network': {'id': '7bb27b8a-7223-4838-b1e5-743b219c9049', 'name': 'ctest-vn-22163341', 'tenant_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'project_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32584545', 'ctest-vn-22163341'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 14:08:27,568 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0754b04-aac3-4add-a78c-4dfaf1e00ebc', 'name': '', 'tenant_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'network_id': '7bb27b8a-7223-4838-b1e5-743b219c9049', 'ip_version': 4, 'cidr': '125.153.139.192/26', 'allocation_pools': [{'start': '125.153.139.194', 'end': '125.153.139.254'}], 'gateway_ip': '125.153.139.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.153.139.194', 'tags': [], 'project_id': '5a9a62cfebda4ba18f24eb62a05bba8d'}} 2025-10-09 14:08:27,590 - INFO - Created VN ctest-vn-22163341 2025-10-09 14:08:27,644 - DEBUG - VN ctest-vn-22163341 UUID is 7bb27b8a-7223-4838-b1e5-743b219c9049 2025-10-09 14:08:27,763 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-65245888, 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-32584545:ctest-vn-22163341, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-10-09 14:08:28,084 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8f5fc5b5-022e-4f09-9505-0dc3a7b174eb', 'name': 'ctest-vn-65245888', 'tenant_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'project_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5af20be7-37a2-4931-9c80-5088afc3efb1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32584545', 'ctest-vn-65245888'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32584545', 'ctest-policy-allow-all-95991652']], 'subnet_ipam': [{'subnet_cidr': '63.196.205.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 14:08:28,330 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7bb27b8a-7223-4838-b1e5-743b219c9049', 'name': 'ctest-vn-22163341', 'tenant_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'project_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0754b04-aac3-4add-a78c-4dfaf1e00ebc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32584545', 'ctest-vn-22163341'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32584545', 'ctest-policy-allow-all-95991652']], 'subnet_ipam': [{'subnet_cidr': '125.153.139.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 14:08:28,492 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-09 14:08:28,791 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-09 14:08:28,823 - DEBUG - Requesting: http://10.0.0.27:8082/domain/fc5ea74f-f795-4d55-a6d1-f2f95952c4e4 2025-10-09 14:08:28,839 - DEBUG - Requesting: http://10.0.0.27:8082/project/5a9a62cf-ebda-4ba1-8f24-eb62a05bba8d 2025-10-09 14:08:28,913 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8f5fc5b5-022e-4f09-9505-0dc3a7b174eb 2025-10-09 14:08:28,926 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8f5fc5b5-022e-4f09-9505-0dc3a7b174eb 2025-10-09 14:08:28,936 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8ca0e02a-2f01-47f3-a6f3-526b41e91794 2025-10-09 14:08:28,944 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8ca0e02a-2f01-47f3-a6f3-526b41e91794 2025-10-09 14:08:28,952 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0b64369b-ca18-4484-8727-2388379cd234 2025-10-09 14:08:28,960 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 14:08:28,960 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8f5fc5b5-022e-4f09-9505-0dc3a7b174eb 2025-10-09 14:08:28,970 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8ca0e02a-2f01-47f3-a6f3-526b41e91794 2025-10-09 14:08:28,987 - INFO - Verified VN network id 11 for VN 8f5fc5b5-022e-4f09-9505-0dc3a7b174eb 2025-10-09 14:08:28,987 - INFO - Verifications in API Server for VN ctest-vn-65245888 passed 2025-10-09 14:08:28,987 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8f5fc5b5-022e-4f09-9505-0dc3a7b174eb 2025-10-09 14:08:28,998 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8ca0e02a-2f01-47f3-a6f3-526b41e91794 2025-10-09 14:08:29,007 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8ca0e02a-2f01-47f3-a6f3-526b41e91794 2025-10-09 14:08:29,016 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0b64369b-ca18-4484-8727-2388379cd234 2025-10-09 14:08:29,028 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-65245888', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32584545', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10331193451427548937', 'uuid-lslong': '10738004020518024427'}, 'enable': 'true', 'created': '2025-10-09T14:08:26', 'last-modified': '2025-10-09T14:08:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965266'} 2025-10-09 14:08:29,034 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 14:08:29,034 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65245888 passed 2025-10-09 14:08:29,034 - DEBUG - ====Verifying policy data for ctest-vn-65245888 in API_Server ====== 2025-10-09 14:08:29,034 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-09 14:08:29,041 - DEBUG - Requesting: http://10.0.0.27:8082/domain/fc5ea74f-f795-4d55-a6d1-f2f95952c4e4 2025-10-09 14:08:29,056 - DEBUG - Requesting: http://10.0.0.27:8082/project/5a9a62cf-ebda-4ba1-8f24-eb62a05bba8d 2025-10-09 14:08:29,136 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8f5fc5b5-022e-4f09-9505-0dc3a7b174eb 2025-10-09 14:08:29,146 - DEBUG - ==>Verifying data for policy with id: 51a170af-db1c-4f8d-a39d-96ff5d4e12f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-32584545', 'ctest-policy-allow-all-95991652'] 2025-10-09 14:08:29,146 - INFO - VN ctest-vn-65245888 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 14:08:29,147 - DEBUG - Verifying the vn in opserver 2025-10-09 14:08:29,147 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-65245888 virtual network link through opserver 10.0.0.27 2025-10-09 14:08:29,147 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-09 14:08:29,451 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-09 14:08:29,522 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-65245888', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-65245888?flat'} 2025-10-09 14:08:29,522 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-65245888 is found in opserver 2025-10-09 14:08:29,533 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 14:08:29,540 - DEBUG - VRF ids for VN ctest-vn-65245888: {} 2025-10-09 14:08:29,540 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-09 14:08:29,546 - DEBUG - Requesting: http://10.0.0.27:8082/domain/fc5ea74f-f795-4d55-a6d1-f2f95952c4e4 2025-10-09 14:08:29,558 - DEBUG - Requesting: http://10.0.0.27:8082/project/5a9a62cf-ebda-4ba1-8f24-eb62a05bba8d 2025-10-09 14:08:29,635 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7bb27b8a-7223-4838-b1e5-743b219c9049 2025-10-09 14:08:29,649 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7bb27b8a-7223-4838-b1e5-743b219c9049 2025-10-09 14:08:29,661 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a0c45cf0-7a18-440a-af08-cf909e483816 2025-10-09 14:08:29,670 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a0c45cf0-7a18-440a-af08-cf909e483816 2025-10-09 14:08:29,678 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/cc40863f-7b1c-4aa9-81b6-75128aad8c61 2025-10-09 14:08:29,688 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-09 14:08:29,688 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7bb27b8a-7223-4838-b1e5-743b219c9049 2025-10-09 14:08:29,701 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a0c45cf0-7a18-440a-af08-cf909e483816 2025-10-09 14:08:29,721 - INFO - Verified VN network id 12 for VN 7bb27b8a-7223-4838-b1e5-743b219c9049 2025-10-09 14:08:29,721 - INFO - Verifications in API Server for VN ctest-vn-22163341 passed 2025-10-09 14:08:29,721 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7bb27b8a-7223-4838-b1e5-743b219c9049 2025-10-09 14:08:29,733 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a0c45cf0-7a18-440a-af08-cf909e483816 2025-10-09 14:08:29,741 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a0c45cf0-7a18-440a-af08-cf909e483816 2025-10-09 14:08:29,748 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/cc40863f-7b1c-4aa9-81b6-75128aad8c61 2025-10-09 14:08:29,762 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-22163341', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32584545', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8913322447070251064', 'uuid-lslong': '12818779711695786057'}, 'enable': 'true', 'created': '2025-10-09T14:08:27', 'last-modified': '2025-10-09T14:08:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.459269'} 2025-10-09 14:08:29,769 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-09 14:08:29,769 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22163341 passed 2025-10-09 14:08:29,769 - DEBUG - ====Verifying policy data for ctest-vn-22163341 in API_Server ====== 2025-10-09 14:08:29,769 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-09 14:08:29,775 - DEBUG - Requesting: http://10.0.0.27:8082/domain/fc5ea74f-f795-4d55-a6d1-f2f95952c4e4 2025-10-09 14:08:29,786 - DEBUG - Requesting: http://10.0.0.27:8082/project/5a9a62cf-ebda-4ba1-8f24-eb62a05bba8d 2025-10-09 14:08:29,867 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7bb27b8a-7223-4838-b1e5-743b219c9049 2025-10-09 14:08:29,880 - DEBUG - ==>Verifying data for policy with id: 51a170af-db1c-4f8d-a39d-96ff5d4e12f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-32584545', 'ctest-policy-allow-all-95991652'] 2025-10-09 14:08:29,880 - INFO - VN ctest-vn-22163341 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 14:08:29,880 - DEBUG - Verifying the vn in opserver 2025-10-09 14:08:29,880 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-22163341 virtual network link through opserver 10.0.0.27 2025-10-09 14:08:29,880 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-09 14:08:29,896 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-22163341', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-22163341?flat'} 2025-10-09 14:08:29,896 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-22163341 is found in opserver 2025-10-09 14:08:29,907 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 14:08:29,913 - DEBUG - VRF ids for VN ctest-vn-22163341: {} 2025-10-09 14:08:29,988 - DEBUG - Services list from nova: [, , ] 2025-10-09 14:08:31,076 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4262-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4262-1) 2025-10-09 14:08:32,295 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4262-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4262-1) 2025-10-09 14:08:32,295 - INFO - Waiting for VM ctest-TestBasicPolicy-32584545-73799666 to be up.. 2025-10-09 14:08:32,405 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-09 14:08:37,500 - DEBUG - VM is in ACTIVE state now 2025-10-09 14:08:37,500 - INFO - VM name : ctest-TestBasicPolicy-32584545-73799666 2025-10-09 14:08:37,589 - DEBUG - VM ctest-TestBasicPolicy-32584545-73799666 ID is 655a3066-d9e8-4494-bb29-b5b900f4ba60 2025-10-09 14:08:37,611 - DEBUG - VM ctest-TestBasicPolicy-32584545-73799666 launched on Node cn-jenkins-deploy-platform-ansible-os-4262-1 2025-10-09 14:08:37,698 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/655a3066-d9e8-4494-bb29-b5b900f4ba60 2025-10-09 14:08:37,708 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/caa42624-7f9d-433d-ab44-7c7d3782b443 2025-10-09 14:08:40,982 - 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 1022ms') 2025-10-09 14:08:40,982 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32584545-73799666 failed! 2025-10-09 14:08:41,044 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-65245888 is 63.196.205.65 and allocation pool is NOT set 2025-10-09 14:08:43,109 - 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=9.04 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.346 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.346/4.690/9.035/4.344 ms') 2025-10-09 14:08:43,109 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32584545-73799666 passed 2025-10-09 14:08:43,268 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 14:08:43,268 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32584545-73799666, IP 63.196.205.67, Port 22 2025-10-09 14:08:43,438 - DEBUG - VM ctest-TestBasicPolicy-32584545-73799666 is ready for SSH connections 2025-10-09 14:08:43,438 - INFO - Waiting for VM ctest-TestBasicPolicy-32584545-37552187 to be up.. 2025-10-09 14:08:43,527 - DEBUG - VM is in ACTIVE state now 2025-10-09 14:08:43,527 - INFO - VM name : ctest-TestBasicPolicy-32584545-37552187 2025-10-09 14:08:43,614 - DEBUG - VM ctest-TestBasicPolicy-32584545-37552187 ID is 146fe312-644d-49f9-be8b-cb65567dd1ee 2025-10-09 14:08:43,614 - DEBUG - VM ctest-TestBasicPolicy-32584545-37552187 launched on Node cn-jenkins-deploy-platform-ansible-os-4262-1 2025-10-09 14:08:43,693 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/146fe312-644d-49f9-be8b-cb65567dd1ee 2025-10-09 14:08:43,703 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/795bba18-7a7a-4e27-ba0e-e07a26e0c62d 2025-10-09 14:08:44,963 - 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.13 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.92 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.924/3.028/3.133/0.104 ms') 2025-10-09 14:08:44,964 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-32584545-37552187 passed 2025-10-09 14:08:45,128 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 14:08:45,128 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32584545-37552187, IP 125.153.139.195, Port 22 2025-10-09 14:08:45,198 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-09 14:08:45,289 - DEBUG - VM ctest-TestBasicPolicy-32584545-37552187 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-09 14:08:50,290 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 14:08:50,290 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32584545-37552187, IP 125.153.139.195, Port 22 2025-10-09 14:08:50,447 - DEBUG - VM ctest-TestBasicPolicy-32584545-37552187 is ready for SSH connections 2025-10-09 14:08:50,447 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 14:08:50,447 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 125.153.139.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-10-09 14:08:50,447 - DEBUG - ping -s 56 -c 3 -W 1 125.153.139.195 2025-10-09 14:08:54,239 - DEBUG - PING 125.153.139.195 (125.153.139.195): 56 data bytes 64 bytes from 125.153.139.195: seq=0 ttl=63 time=3.698 ms 64 bytes from 125.153.139.195: seq=1 ttl=63 time=0.846 ms 64 bytes from 125.153.139.195: seq=2 ttl=63 time=0.980 ms --- 125.153.139.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.846/1.841/3.698 ms 2025-10-09 14:08:54,239 - INFO - Ping to IP 125.153.139.195 from VM ctest-TestBasicPolicy-32584545-73799666 passed 2025-10-09 14:08:54,452 - DEBUG - Policy Update Response {"network-policy": {"uuid": "51a170af-db1c-4f8d-a39d-96ff5d4e12f0", "href": "http://10.0.0.27:8082/network-policy/51a170af-db1c-4f8d-a39d-96ff5d4e12f0"}} 2025-10-09 14:08:54,452 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 14:08:54,452 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 125.153.139.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-10-09 14:08:54,452 - DEBUG - ping -s 56 -c 3 -W 1 125.153.139.195 2025-10-09 14:08:57,681 - DEBUG - PING 125.153.139.195 (125.153.139.195): 56 data bytes --- 125.153.139.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-09 14:08:57,681 - WARNING - Ping to IP 125.153.139.195 from VM ctest-TestBasicPolicy-32584545-73799666 failed 2025-10-09 14:08:57,681 - INFO - Deleting VM ctest-TestBasicPolicy-32584545-37552187 2025-10-09 14:08:57,759 - INFO - Deleting VM ctest-TestBasicPolicy-32584545-73799666 2025-10-09 14:08:58,170 - INFO - Deleted policy ctest-policy-allow-all-95991652 2025-10-09 14:08:58,170 - INFO - Deleting VN ctest-vn-22163341 2025-10-09 14:08:58,207 - DEBUG - VN 7bb27b8a-7223-4838-b1e5-743b219c9049 still in use: Unable to complete operation on network 7bb27b8a-7223-4838-b1e5-743b219c9049. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4cd94501-817a-4a67-842a-e8e597ea2bf0'] 2025-10-09 14:08:58,207 - WARNING - Deleting VN ctest-vn-22163341 failed..Will retry 2025-10-09 14:09:00,324 - DEBUG - Response for deleting network () 2025-10-09 14:09:00,324 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a0c45cf0-7a18-440a-af08-cf909e483816 2025-10-09 14:09:00,338 - DEBUG - Response Code: 404 2025-10-09 14:09:00,338 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-09 14:09:00,348 - DEBUG - Requesting: http://10.0.0.27:8082/domain/fc5ea74f-f795-4d55-a6d1-f2f95952c4e4 2025-10-09 14:09:00,402 - DEBUG - Requesting: http://10.0.0.27:8082/project/5a9a62cf-ebda-4ba1-8f24-eb62a05bba8d 2025-10-09 14:09:00,482 - INFO - Validated that VN ctest-vn-22163341 is not found in API Server 2025-10-09 14:09:00,496 - DEBUG - VN ctest-vn-22163341 is not present in Agent 10.0.0.27 2025-10-09 14:09:00,496 - INFO - Validated that VN ctest-vn-22163341 is not in any agent 2025-10-09 14:09:00,517 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-22163341 info 2025-10-09 14:09:00,517 - INFO - Deleting VN ctest-vn-65245888 2025-10-09 14:09:00,629 - DEBUG - Response for deleting network () 2025-10-09 14:09:00,629 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8ca0e02a-2f01-47f3-a6f3-526b41e91794 2025-10-09 14:09:00,639 - DEBUG - Response Code: 404 2025-10-09 14:09:00,639 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-09 14:09:00,645 - DEBUG - Requesting: http://10.0.0.27:8082/domain/fc5ea74f-f795-4d55-a6d1-f2f95952c4e4 2025-10-09 14:09:00,704 - DEBUG - Requesting: http://10.0.0.27:8082/project/5a9a62cf-ebda-4ba1-8f24-eb62a05bba8d 2025-10-09 14:09:00,777 - INFO - Validated that VN ctest-vn-65245888 is not found in API Server 2025-10-09 14:09:00,788 - DEBUG - VN ctest-vn-65245888 is not present in Agent 10.0.0.27 2025-10-09 14:09:00,788 - INFO - Validated that VN ctest-vn-65245888 is not in any agent 2025-10-09 14:09:00,803 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-65245888 info 2025-10-09 14:09:01,072 - DEBUG - No XMPP flaps were noticed during the test 2025-10-09 14:09:01,072 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-10-09 14:09:01,072 - INFO - -------------------------------------------------------------------------------- 2025-10-09 14:09:01,801 - INFO - Deleted project: ctest-TestBasicPolicy-32584545, ID : 5a9a62cf-ebda-4ba1-8f24-eb62a05bba8d