2025-05-22 15:57:46,798 - INFO - Domain Default found not creating 2025-05-22 15:57:46,948 - INFO - Project ctest-TestBasicPolicy-60438712 not found, creating it 2025-05-22 15:57:47,470 - INFO - Created Project:ctest-TestBasicPolicy-60438712, ID : 07de0475-37c9-47f2-b7f8-c579bdd3eb9c 2025-05-22 15:57:48,885 - INFO - ================================================================================ 2025-05-22 15:57:48,885 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-22 15:57:48,885 - 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-05-22 15:57:49,146 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-05-22 15:57:49,146 - INFO - Initial checks done. Running the testcase now 2025-05-22 15:57:49,146 - INFO - 2025-05-22 15:57:49,736 - DEBUG - Response for create_network : {'network': {'id': '34e68086-ceaf-4a9a-b484-68ce137380bd', 'name': 'ctest-vn-36838225', 'tenant_id': '07de047537c947f2b7f8c579bdd3eb9c', 'project_id': '07de047537c947f2b7f8c579bdd3eb9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60438712', 'ctest-vn-36838225'], 'port_security_enabled': True, 'description': ''}} 2025-05-22 15:57:49,904 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a180759-a64c-4a14-8466-641c77d0690a', 'name': '', 'tenant_id': '07de047537c947f2b7f8c579bdd3eb9c', 'network_id': '34e68086-ceaf-4a9a-b484-68ce137380bd', 'ip_version': 4, 'cidr': '64.18.154.128/26', 'allocation_pools': [{'start': '64.18.154.130', 'end': '64.18.154.190'}], 'gateway_ip': '64.18.154.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.18.154.130', 'tags': [], 'project_id': '07de047537c947f2b7f8c579bdd3eb9c'}} 2025-05-22 15:57:49,925 - INFO - Created VN ctest-vn-36838225 2025-05-22 15:57:49,983 - DEBUG - VN ctest-vn-36838225 UUID is 34e68086-ceaf-4a9a-b484-68ce137380bd 2025-05-22 15:57:50,274 - DEBUG - Response for create_network : {'network': {'id': '64495d10-cc87-4c19-9397-3b52bea7cfa5', 'name': 'ctest-vn-72967035', 'tenant_id': '07de047537c947f2b7f8c579bdd3eb9c', 'project_id': '07de047537c947f2b7f8c579bdd3eb9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60438712', 'ctest-vn-72967035'], 'port_security_enabled': True, 'description': ''}} 2025-05-22 15:57:50,430 - DEBUG - Response for create_subnet : {'subnet': {'id': '81f9141b-faa4-4620-bf6d-927cf993914c', 'name': '', 'tenant_id': '07de047537c947f2b7f8c579bdd3eb9c', 'network_id': '64495d10-cc87-4c19-9397-3b52bea7cfa5', 'ip_version': 4, 'cidr': '157.171.124.192/26', 'allocation_pools': [{'start': '157.171.124.194', 'end': '157.171.124.254'}], 'gateway_ip': '157.171.124.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.171.124.194', 'tags': [], 'project_id': '07de047537c947f2b7f8c579bdd3eb9c'}} 2025-05-22 15:57:50,448 - INFO - Created VN ctest-vn-72967035 2025-05-22 15:57:50,503 - DEBUG - VN ctest-vn-72967035 UUID is 64495d10-cc87-4c19-9397-3b52bea7cfa5 2025-05-22 15:57:50,655 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-36838225, 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-60438712:ctest-vn-72967035, 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-05-22 15:57:50,966 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34e68086-ceaf-4a9a-b484-68ce137380bd', 'name': 'ctest-vn-36838225', 'tenant_id': '07de047537c947f2b7f8c579bdd3eb9c', 'project_id': '07de047537c947f2b7f8c579bdd3eb9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a180759-a64c-4a14-8466-641c77d0690a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60438712', 'ctest-vn-36838225'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60438712', 'ctest-policy-allow-all-27557363']], 'subnet_ipam': [{'subnet_cidr': '64.18.154.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-22 15:57:51,206 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '64495d10-cc87-4c19-9397-3b52bea7cfa5', 'name': 'ctest-vn-72967035', 'tenant_id': '07de047537c947f2b7f8c579bdd3eb9c', 'project_id': '07de047537c947f2b7f8c579bdd3eb9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['81f9141b-faa4-4620-bf6d-927cf993914c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60438712', 'ctest-vn-72967035'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60438712', 'ctest-policy-allow-all-27557363']], 'subnet_ipam': [{'subnet_cidr': '157.171.124.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-22 15:57:51,375 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-22 15:57:51,668 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-22 15:57:51,701 - DEBUG - Requesting: http://10.0.0.50:8082/domain/827cab08-2d80-48e6-a969-89c23bdcf71b 2025-05-22 15:57:51,717 - DEBUG - Requesting: http://10.0.0.50:8082/project/07de0475-37c9-47f2-b7f8-c579bdd3eb9c 2025-05-22 15:57:51,798 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/34e68086-ceaf-4a9a-b484-68ce137380bd 2025-05-22 15:57:51,809 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/34e68086-ceaf-4a9a-b484-68ce137380bd 2025-05-22 15:57:51,818 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c17764ea-5278-4f73-8d71-0e6b2aaf51ae 2025-05-22 15:57:51,826 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c17764ea-5278-4f73-8d71-0e6b2aaf51ae 2025-05-22 15:57:51,832 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/50a54b85-b78c-48b1-bb09-9b517febc29c 2025-05-22 15:57:51,840 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-22 15:57:51,840 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/34e68086-ceaf-4a9a-b484-68ce137380bd 2025-05-22 15:57:51,852 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c17764ea-5278-4f73-8d71-0e6b2aaf51ae 2025-05-22 15:57:51,870 - INFO - Verified VN network id 9 for VN 34e68086-ceaf-4a9a-b484-68ce137380bd 2025-05-22 15:57:51,870 - INFO - Verifications in API Server for VN ctest-vn-36838225 passed 2025-05-22 15:57:51,870 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/34e68086-ceaf-4a9a-b484-68ce137380bd 2025-05-22 15:57:51,882 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c17764ea-5278-4f73-8d71-0e6b2aaf51ae 2025-05-22 15:57:51,889 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c17764ea-5278-4f73-8d71-0e6b2aaf51ae 2025-05-22 15:57:51,895 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/50a54b85-b78c-48b1-bb09-9b517febc29c 2025-05-22 15:57:51,907 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-36838225', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60438712', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3811875451097270938', 'uuid-lslong': '13007636858051723453'}, 'enable': 'true', 'created': '2025-05-22T15:57:49', 'last-modified': '2025-05-22T15:57:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.971425'} 2025-05-22 15:57:51,914 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-22 15:57:51,914 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36838225 passed 2025-05-22 15:57:51,914 - DEBUG - ====Verifying policy data for ctest-vn-36838225 in API_Server ====== 2025-05-22 15:57:51,914 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-22 15:57:51,920 - DEBUG - Requesting: http://10.0.0.50:8082/domain/827cab08-2d80-48e6-a969-89c23bdcf71b 2025-05-22 15:57:51,933 - DEBUG - Requesting: http://10.0.0.50:8082/project/07de0475-37c9-47f2-b7f8-c579bdd3eb9c 2025-05-22 15:57:52,008 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/34e68086-ceaf-4a9a-b484-68ce137380bd 2025-05-22 15:57:52,018 - DEBUG - ==>Verifying data for policy with id: 951416d2-c98c-4acd-a804-310600ff6cc6, fqn: ['default-domain', 'ctest-TestBasicPolicy-60438712', 'ctest-policy-allow-all-27557363'] 2025-05-22 15:57:52,018 - INFO - VN ctest-vn-36838225 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-22 15:57:52,018 - DEBUG - Verifying the vn in opserver 2025-05-22 15:57:52,018 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-36838225 virtual network link through opserver 10.0.0.50 2025-05-22 15:57:52,018 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-22 15:57:52,313 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-22 15:57:52,374 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-36838225', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-36838225?flat'} 2025-05-22 15:57:52,374 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-36838225 is found in opserver 2025-05-22 15:57:52,386 - DEBUG - Do not have enough data to verify VN in agent 2025-05-22 15:57:52,391 - DEBUG - VRF ids for VN ctest-vn-36838225: {} 2025-05-22 15:57:52,391 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-22 15:57:52,396 - DEBUG - Requesting: http://10.0.0.50:8082/domain/827cab08-2d80-48e6-a969-89c23bdcf71b 2025-05-22 15:57:52,409 - DEBUG - Requesting: http://10.0.0.50:8082/project/07de0475-37c9-47f2-b7f8-c579bdd3eb9c 2025-05-22 15:57:52,486 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/64495d10-cc87-4c19-9397-3b52bea7cfa5 2025-05-22 15:57:52,498 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/64495d10-cc87-4c19-9397-3b52bea7cfa5 2025-05-22 15:57:52,507 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/16edf0ee-84c0-4e50-b4ac-103894962300 2025-05-22 15:57:52,514 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/16edf0ee-84c0-4e50-b4ac-103894962300 2025-05-22 15:57:52,521 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7a00da65-59c6-4f6a-95bd-2b66cc2a459e 2025-05-22 15:57:52,527 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-22 15:57:52,528 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/64495d10-cc87-4c19-9397-3b52bea7cfa5 2025-05-22 15:57:52,538 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/16edf0ee-84c0-4e50-b4ac-103894962300 2025-05-22 15:57:52,553 - INFO - Verified VN network id 10 for VN 64495d10-cc87-4c19-9397-3b52bea7cfa5 2025-05-22 15:57:52,553 - INFO - Verifications in API Server for VN ctest-vn-72967035 passed 2025-05-22 15:57:52,553 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/64495d10-cc87-4c19-9397-3b52bea7cfa5 2025-05-22 15:57:52,563 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/16edf0ee-84c0-4e50-b4ac-103894962300 2025-05-22 15:57:52,571 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/16edf0ee-84c0-4e50-b4ac-103894962300 2025-05-22 15:57:52,579 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7a00da65-59c6-4f6a-95bd-2b66cc2a459e 2025-05-22 15:57:52,591 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-72967035', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60438712', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7226409403824950297', 'uuid-lslong': '10635034271630741413'}, 'enable': 'true', 'created': '2025-05-22T15:57:50', 'last-modified': '2025-05-22T15:57:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.405863'} 2025-05-22 15:57:52,597 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-22 15:57:52,597 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72967035 passed 2025-05-22 15:57:52,598 - DEBUG - ====Verifying policy data for ctest-vn-72967035 in API_Server ====== 2025-05-22 15:57:52,598 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-22 15:57:52,603 - DEBUG - Requesting: http://10.0.0.50:8082/domain/827cab08-2d80-48e6-a969-89c23bdcf71b 2025-05-22 15:57:52,615 - DEBUG - Requesting: http://10.0.0.50:8082/project/07de0475-37c9-47f2-b7f8-c579bdd3eb9c 2025-05-22 15:57:52,690 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/64495d10-cc87-4c19-9397-3b52bea7cfa5 2025-05-22 15:57:52,700 - DEBUG - ==>Verifying data for policy with id: 951416d2-c98c-4acd-a804-310600ff6cc6, fqn: ['default-domain', 'ctest-TestBasicPolicy-60438712', 'ctest-policy-allow-all-27557363'] 2025-05-22 15:57:52,700 - INFO - VN ctest-vn-72967035 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-22 15:57:52,700 - DEBUG - Verifying the vn in opserver 2025-05-22 15:57:52,700 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-72967035 virtual network link through opserver 10.0.0.50 2025-05-22 15:57:52,700 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-22 15:57:52,711 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-72967035', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-72967035?flat'} 2025-05-22 15:57:52,711 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-72967035 is found in opserver 2025-05-22 15:57:52,722 - DEBUG - Do not have enough data to verify VN in agent 2025-05-22 15:57:52,728 - DEBUG - VRF ids for VN ctest-vn-72967035: {} 2025-05-22 15:57:52,781 - DEBUG - Services list from nova: [, , ] 2025-05-22 15:57:53,868 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3333-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3333-1) 2025-05-22 15:57:54,995 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3333-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3333-1) 2025-05-22 15:57:54,995 - INFO - Waiting for VM ctest-TestBasicPolicy-60438712-60990650 to be up.. 2025-05-22 15:57:55,081 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-22 15:58:00,239 - DEBUG - VM is in ACTIVE state now 2025-05-22 15:58:00,239 - INFO - VM name : ctest-TestBasicPolicy-60438712-60990650 2025-05-22 15:58:00,488 - DEBUG - VM ctest-TestBasicPolicy-60438712-60990650 ID is dab8f263-656f-46fc-9d82-7ef3136f4139 2025-05-22 15:58:00,517 - DEBUG - VM ctest-TestBasicPolicy-60438712-60990650 launched on Node cn-jenkins-deploy-platform-ansible-os-3333-1 2025-05-22 15:58:00,644 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/dab8f263-656f-46fc-9d82-7ef3136f4139 2025-05-22 15:58:00,665 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/33bc08eb-7c43-4ad9-b066-a6de08d8a5f5 2025-05-22 15:58:03,981 - 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 1018ms') 2025-05-22 15:58:03,981 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60438712-60990650 failed! 2025-05-22 15:58:04,039 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-36838225 is 64.18.154.129 and allocation pool is NOT set 2025-05-22 15:58:06,097 - 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=4.41 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.703 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.703/2.558/4.414/1.855 ms') 2025-05-22 15:58:06,097 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60438712-60990650 passed 2025-05-22 15:58:06,255 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-22 15:58:06,255 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60438712-60990650, IP 64.18.154.131, Port 22 2025-05-22 15:58:06,411 - DEBUG - VM ctest-TestBasicPolicy-60438712-60990650 is ready for SSH connections 2025-05-22 15:58:06,411 - INFO - Waiting for VM ctest-TestBasicPolicy-60438712-41184631 to be up.. 2025-05-22 15:58:06,493 - DEBUG - VM is in ACTIVE state now 2025-05-22 15:58:06,493 - INFO - VM name : ctest-TestBasicPolicy-60438712-41184631 2025-05-22 15:58:06,568 - DEBUG - VM ctest-TestBasicPolicy-60438712-41184631 ID is 08b972d0-ae81-4d17-bde5-7dbe47eb3b20 2025-05-22 15:58:06,569 - DEBUG - VM ctest-TestBasicPolicy-60438712-41184631 launched on Node cn-jenkins-deploy-platform-ansible-os-3333-1 2025-05-22 15:58:06,648 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/08b972d0-ae81-4d17-bde5-7dbe47eb3b20 2025-05-22 15:58:06,660 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/67798248-c321-4794-b681-dae7d4348241 2025-05-22 15:58:07,902 - 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=2.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.414 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.414/1.688/2.963/1.274 ms') 2025-05-22 15:58:07,902 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-60438712-41184631 passed 2025-05-22 15:58:08,051 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-22 15:58:08,051 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60438712-41184631, IP 157.171.124.195, Port 22 2025-05-22 15:58:08,206 - DEBUG - VM ctest-TestBasicPolicy-60438712-41184631 is ready for SSH connections 2025-05-22 15:58:08,207 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-22 15:58:08,207 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 157.171.124.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-05-22 15:58:08,207 - DEBUG - ping -s 56 -c 3 -W 1 157.171.124.195 2025-05-22 15:58:11,879 - DEBUG - PING 157.171.124.195 (157.171.124.195): 56 data bytes 64 bytes from 157.171.124.195: seq=0 ttl=63 time=4.683 ms 64 bytes from 157.171.124.195: seq=1 ttl=63 time=1.213 ms 64 bytes from 157.171.124.195: seq=2 ttl=63 time=0.910 ms --- 157.171.124.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.910/2.268/4.683 ms 2025-05-22 15:58:11,879 - INFO - Ping to IP 157.171.124.195 from VM ctest-TestBasicPolicy-60438712-60990650 passed 2025-05-22 15:58:12,059 - DEBUG - Policy Update Response {"network-policy": {"uuid": "951416d2-c98c-4acd-a804-310600ff6cc6", "href": "http://10.0.0.50:8082/network-policy/951416d2-c98c-4acd-a804-310600ff6cc6"}} 2025-05-22 15:58:12,059 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-22 15:58:12,059 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 157.171.124.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-05-22 15:58:12,059 - DEBUG - ping -s 56 -c 3 -W 1 157.171.124.195 2025-05-22 15:58:15,274 - DEBUG - PING 157.171.124.195 (157.171.124.195): 56 data bytes --- 157.171.124.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-22 15:58:15,274 - WARNING - Ping to IP 157.171.124.195 from VM ctest-TestBasicPolicy-60438712-60990650 failed 2025-05-22 15:58:15,274 - INFO - Deleting VM ctest-TestBasicPolicy-60438712-41184631 2025-05-22 15:58:15,339 - INFO - Deleting VM ctest-TestBasicPolicy-60438712-60990650 2025-05-22 15:58:15,742 - INFO - Deleted policy ctest-policy-allow-all-27557363 2025-05-22 15:58:15,743 - INFO - Deleting VN ctest-vn-72967035 2025-05-22 15:58:15,785 - DEBUG - VN 64495d10-cc87-4c19-9397-3b52bea7cfa5 still in use: Unable to complete operation on network 64495d10-cc87-4c19-9397-3b52bea7cfa5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d1abda82-b7bd-435e-9462-da7c76e3535a'] 2025-05-22 15:58:15,786 - WARNING - Deleting VN ctest-vn-72967035 failed..Will retry 2025-05-22 15:58:17,897 - DEBUG - Response for deleting network () 2025-05-22 15:58:17,898 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/16edf0ee-84c0-4e50-b4ac-103894962300 2025-05-22 15:58:17,906 - DEBUG - Response Code: 404 2025-05-22 15:58:17,906 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-22 15:58:17,913 - DEBUG - Requesting: http://10.0.0.50:8082/domain/827cab08-2d80-48e6-a969-89c23bdcf71b 2025-05-22 15:58:17,966 - DEBUG - Requesting: http://10.0.0.50:8082/project/07de0475-37c9-47f2-b7f8-c579bdd3eb9c 2025-05-22 15:58:18,040 - INFO - Validated that VN ctest-vn-72967035 is not found in API Server 2025-05-22 15:58:18,050 - DEBUG - VN ctest-vn-72967035 is not present in Agent 10.0.0.50 2025-05-22 15:58:18,050 - INFO - Validated that VN ctest-vn-72967035 is not in any agent 2025-05-22 15:58:18,073 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-72967035 info 2025-05-22 15:58:18,073 - INFO - Deleting VN ctest-vn-36838225 2025-05-22 15:58:18,226 - DEBUG - Response for deleting network () 2025-05-22 15:58:18,226 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c17764ea-5278-4f73-8d71-0e6b2aaf51ae 2025-05-22 15:58:18,238 - DEBUG - Response Code: 404 2025-05-22 15:58:18,238 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-22 15:58:18,244 - DEBUG - Requesting: http://10.0.0.50:8082/domain/827cab08-2d80-48e6-a969-89c23bdcf71b 2025-05-22 15:58:18,297 - DEBUG - Requesting: http://10.0.0.50:8082/project/07de0475-37c9-47f2-b7f8-c579bdd3eb9c 2025-05-22 15:58:18,378 - INFO - Validated that VN ctest-vn-36838225 is not found in API Server 2025-05-22 15:58:18,391 - DEBUG - VN ctest-vn-36838225 is not present in Agent 10.0.0.50 2025-05-22 15:58:18,391 - INFO - Validated that VN ctest-vn-36838225 is not in any agent 2025-05-22 15:58:18,408 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-36838225 info 2025-05-22 15:58:18,660 - DEBUG - No XMPP flaps were noticed during the test
2025-05-22 15:58:18,660 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-05-22 15:58:18,660 - INFO - -------------------------------------------------------------------------------- 2025-05-22 15:58:19,328 - INFO - Deleted project: ctest-TestBasicPolicy-60438712, ID : 07de0475-37c9-47f2-b7f8-c579bdd3eb9c