2025-03-31 11:46:52,585 - INFO - Domain Default found not creating 2025-03-31 11:46:53,054 - INFO - Project ctest-TestBasicPolicy-38870792 not found, creating it 2025-03-31 11:46:53,853 - INFO - Created Project:ctest-TestBasicPolicy-38870792, ID : 36d2f0b0-ccfb-4716-962e-11138f86f441 2025-03-31 11:46:55,349 - INFO - ================================================================================ 2025-03-31 11:46:55,349 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-31 11:46:55,349 - 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-03-31 11:46:55,614 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.23': '0'}} with 2025-03-31 11:46:55,614 - INFO - Initial checks done. Running the testcase now 2025-03-31 11:46:55,614 - INFO - 2025-03-31 11:46:56,199 - DEBUG - Response for create_network : {'network': {'id': '71af37b7-7dbd-44eb-b9ca-88420c2f2796', 'name': 'ctest-vn-98674386', 'tenant_id': '36d2f0b0ccfb4716962e11138f86f441', 'project_id': '36d2f0b0ccfb4716962e11138f86f441', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38870792', 'ctest-vn-98674386'], 'port_security_enabled': True, 'description': ''}} 2025-03-31 11:46:56,371 - DEBUG - Response for create_subnet : {'subnet': {'id': '8cf9a584-4953-402d-95b9-b1e4fba149b5', 'name': '', 'tenant_id': '36d2f0b0ccfb4716962e11138f86f441', 'network_id': '71af37b7-7dbd-44eb-b9ca-88420c2f2796', 'ip_version': 4, 'cidr': '15.227.68.0/26', 'allocation_pools': [{'start': '15.227.68.2', 'end': '15.227.68.62'}], 'gateway_ip': '15.227.68.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.227.68.2', 'tags': [], 'project_id': '36d2f0b0ccfb4716962e11138f86f441'}} 2025-03-31 11:46:56,390 - INFO - Created VN ctest-vn-98674386 2025-03-31 11:46:56,443 - DEBUG - VN ctest-vn-98674386 UUID is 71af37b7-7dbd-44eb-b9ca-88420c2f2796 2025-03-31 11:46:56,769 - DEBUG - Response for create_network : {'network': {'id': '59ec18a9-285b-4f3b-87f1-d7859e362006', 'name': 'ctest-vn-33145758', 'tenant_id': '36d2f0b0ccfb4716962e11138f86f441', 'project_id': '36d2f0b0ccfb4716962e11138f86f441', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38870792', 'ctest-vn-33145758'], 'port_security_enabled': True, 'description': ''}} 2025-03-31 11:46:57,005 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e5c5324-7292-4cb1-a9ec-7f9c1f1e8f2b', 'name': '', 'tenant_id': '36d2f0b0ccfb4716962e11138f86f441', 'network_id': '59ec18a9-285b-4f3b-87f1-d7859e362006', 'ip_version': 4, 'cidr': '155.133.248.0/26', 'allocation_pools': [{'start': '155.133.248.2', 'end': '155.133.248.62'}], 'gateway_ip': '155.133.248.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.133.248.2', 'tags': [], 'project_id': '36d2f0b0ccfb4716962e11138f86f441'}} 2025-03-31 11:46:57,025 - INFO - Created VN ctest-vn-33145758 2025-03-31 11:46:57,079 - DEBUG - VN ctest-vn-33145758 UUID is 59ec18a9-285b-4f3b-87f1-d7859e362006 2025-03-31 11:46:57,204 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-98674386, 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-38870792:ctest-vn-33145758, 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-03-31 11:46:57,523 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '71af37b7-7dbd-44eb-b9ca-88420c2f2796', 'name': 'ctest-vn-98674386', 'tenant_id': '36d2f0b0ccfb4716962e11138f86f441', 'project_id': '36d2f0b0ccfb4716962e11138f86f441', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8cf9a584-4953-402d-95b9-b1e4fba149b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38870792', 'ctest-vn-98674386'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38870792', 'ctest-policy-allow-all-39774245']], 'subnet_ipam': [{'subnet_cidr': '15.227.68.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-31 11:46:57,781 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '59ec18a9-285b-4f3b-87f1-d7859e362006', 'name': 'ctest-vn-33145758', 'tenant_id': '36d2f0b0ccfb4716962e11138f86f441', 'project_id': '36d2f0b0ccfb4716962e11138f86f441', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e5c5324-7292-4cb1-a9ec-7f9c1f1e8f2b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38870792', 'ctest-vn-33145758'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38870792', 'ctest-policy-allow-all-39774245']], 'subnet_ipam': [{'subnet_cidr': '155.133.248.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-31 11:46:57,955 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-31 11:46:58,257 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-31 11:46:58,287 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8064ec9f-a0a9-43e6-bf42-f136e45a9cf1 2025-03-31 11:46:58,300 - DEBUG - Requesting: http://10.0.0.27:8082/project/36d2f0b0-ccfb-4716-962e-11138f86f441 2025-03-31 11:46:58,379 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/71af37b7-7dbd-44eb-b9ca-88420c2f2796 2025-03-31 11:46:58,393 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/71af37b7-7dbd-44eb-b9ca-88420c2f2796 2025-03-31 11:46:58,404 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1183b594-be48-4212-ae3a-8431c3db726c 2025-03-31 11:46:58,412 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1183b594-be48-4212-ae3a-8431c3db726c 2025-03-31 11:46:58,420 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a239c107-893b-4c39-a1c2-13eecc9b5344 2025-03-31 11:46:58,428 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-31 11:46:58,428 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/71af37b7-7dbd-44eb-b9ca-88420c2f2796 2025-03-31 11:46:58,440 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1183b594-be48-4212-ae3a-8431c3db726c 2025-03-31 11:46:58,455 - INFO - Verified VN network id 8 for VN 71af37b7-7dbd-44eb-b9ca-88420c2f2796 2025-03-31 11:46:58,456 - INFO - Verifications in API Server for VN ctest-vn-98674386 passed 2025-03-31 11:46:58,456 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/71af37b7-7dbd-44eb-b9ca-88420c2f2796 2025-03-31 11:46:58,469 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1183b594-be48-4212-ae3a-8431c3db726c 2025-03-31 11:46:58,477 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1183b594-be48-4212-ae3a-8431c3db726c 2025-03-31 11:46:58,484 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a239c107-893b-4c39-a1c2-13eecc9b5344 2025-03-31 11:46:58,497 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-98674386', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38870792', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8191827508438320363', 'uuid-lslong': '13387662659565856662'}, 'enable': 'true', 'created': '2025-03-31T11:46:56', 'last-modified': '2025-03-31T11:46:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.004362'} 2025-03-31 11:46:58,505 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-31 11:46:58,505 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98674386 passed 2025-03-31 11:46:58,505 - DEBUG - ====Verifying policy data for ctest-vn-98674386 in API_Server ====== 2025-03-31 11:46:58,505 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-31 11:46:58,511 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8064ec9f-a0a9-43e6-bf42-f136e45a9cf1 2025-03-31 11:46:58,523 - DEBUG - Requesting: http://10.0.0.27:8082/project/36d2f0b0-ccfb-4716-962e-11138f86f441 2025-03-31 11:46:58,596 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/71af37b7-7dbd-44eb-b9ca-88420c2f2796 2025-03-31 11:46:58,609 - DEBUG - ==>Verifying data for policy with id: bb56b59f-a68b-4bbe-9f21-71bd3dfc6f6c, fqn: ['default-domain', 'ctest-TestBasicPolicy-38870792', 'ctest-policy-allow-all-39774245'] 2025-03-31 11:46:58,609 - INFO - VN ctest-vn-98674386 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-31 11:46:58,609 - DEBUG - Verifying the vn in opserver 2025-03-31 11:46:58,609 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-98674386 virtual network link through opserver 10.0.0.27 2025-03-31 11:46:58,610 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-03-31 11:46:58,904 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-03-31 11:46:58,959 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-98674386', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-98674386?flat'} 2025-03-31 11:46:58,959 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-98674386 is found in opserver 2025-03-31 11:46:58,970 - DEBUG - Do not have enough data to verify VN in agent 2025-03-31 11:46:58,976 - DEBUG - VRF ids for VN ctest-vn-98674386: {} 2025-03-31 11:46:58,976 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-31 11:46:58,982 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8064ec9f-a0a9-43e6-bf42-f136e45a9cf1 2025-03-31 11:46:58,994 - DEBUG - Requesting: http://10.0.0.27:8082/project/36d2f0b0-ccfb-4716-962e-11138f86f441 2025-03-31 11:46:59,067 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/59ec18a9-285b-4f3b-87f1-d7859e362006 2025-03-31 11:46:59,081 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/59ec18a9-285b-4f3b-87f1-d7859e362006 2025-03-31 11:46:59,090 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2ec79ce5-310b-481c-8da8-8e196d44ee96 2025-03-31 11:46:59,099 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2ec79ce5-310b-481c-8da8-8e196d44ee96 2025-03-31 11:46:59,106 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5b41afdf-0a53-40fa-8bdc-f575ccf5ae25 2025-03-31 11:46:59,114 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-31 11:46:59,114 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/59ec18a9-285b-4f3b-87f1-d7859e362006 2025-03-31 11:46:59,124 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2ec79ce5-310b-481c-8da8-8e196d44ee96 2025-03-31 11:46:59,141 - INFO - Verified VN network id 9 for VN 59ec18a9-285b-4f3b-87f1-d7859e362006 2025-03-31 11:46:59,141 - INFO - Verifications in API Server for VN ctest-vn-33145758 passed 2025-03-31 11:46:59,142 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/59ec18a9-285b-4f3b-87f1-d7859e362006 2025-03-31 11:46:59,154 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2ec79ce5-310b-481c-8da8-8e196d44ee96 2025-03-31 11:46:59,161 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2ec79ce5-310b-481c-8da8-8e196d44ee96 2025-03-31 11:46:59,170 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5b41afdf-0a53-40fa-8bdc-f575ccf5ae25 2025-03-31 11:46:59,183 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-33145758', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38870792', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6479581078684913467', 'uuid-lslong': '9795847633392508934'}, 'enable': 'true', 'created': '2025-03-31T11:46:56', 'last-modified': '2025-03-31T11:46:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.437327'} 2025-03-31 11:46:59,190 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-31 11:46:59,190 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33145758 passed 2025-03-31 11:46:59,190 - DEBUG - ====Verifying policy data for ctest-vn-33145758 in API_Server ====== 2025-03-31 11:46:59,190 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-31 11:46:59,197 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8064ec9f-a0a9-43e6-bf42-f136e45a9cf1 2025-03-31 11:46:59,208 - DEBUG - Requesting: http://10.0.0.27:8082/project/36d2f0b0-ccfb-4716-962e-11138f86f441 2025-03-31 11:46:59,283 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/59ec18a9-285b-4f3b-87f1-d7859e362006 2025-03-31 11:46:59,294 - DEBUG - ==>Verifying data for policy with id: bb56b59f-a68b-4bbe-9f21-71bd3dfc6f6c, fqn: ['default-domain', 'ctest-TestBasicPolicy-38870792', 'ctest-policy-allow-all-39774245'] 2025-03-31 11:46:59,294 - INFO - VN ctest-vn-33145758 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-31 11:46:59,294 - DEBUG - Verifying the vn in opserver 2025-03-31 11:46:59,294 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-33145758 virtual network link through opserver 10.0.0.27 2025-03-31 11:46:59,294 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-03-31 11:46:59,307 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-33145758', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-33145758?flat'} 2025-03-31 11:46:59,307 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-33145758 is found in opserver 2025-03-31 11:46:59,320 - DEBUG - Do not have enough data to verify VN in agent 2025-03-31 11:46:59,328 - DEBUG - VRF ids for VN ctest-vn-33145758: {} 2025-03-31 11:46:59,405 - DEBUG - Services list from nova: [, , ] 2025-03-31 11:47:00,444 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3015-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3015-1) 2025-03-31 11:47:01,684 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3015-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3015-1) 2025-03-31 11:47:01,685 - INFO - Waiting for VM ctest-TestBasicPolicy-38870792-84533285 to be up.. 2025-03-31 11:47:01,783 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-31 11:47:06,862 - DEBUG - VM is in ACTIVE state now 2025-03-31 11:47:06,862 - INFO - VM name : ctest-TestBasicPolicy-38870792-84533285 2025-03-31 11:47:06,947 - DEBUG - VM ctest-TestBasicPolicy-38870792-84533285 ID is ed95daab-0c09-45ee-a80b-ad56e335bec1 2025-03-31 11:47:06,967 - DEBUG - VM ctest-TestBasicPolicy-38870792-84533285 launched on Node cn-jenkins-deploy-platform-ansible-os-3015-1 2025-03-31 11:47:07,051 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/ed95daab-0c09-45ee-a80b-ad56e335bec1 2025-03-31 11:47:07,060 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/014d1e9d-198c-4ad5-b425-ea32315e100f 2025-03-31 11:47:10,306 - 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 1003ms') 2025-03-31 11:47:10,307 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38870792-84533285 failed! 2025-03-31 11:47:10,367 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38870792:ctest-vn-98674386 is 15.227.68.1 and allocation pool is NOT set 2025-03-31 11:47:12,426 - 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.20 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.432 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.432/2.317/4.202/1.885 ms') 2025-03-31 11:47:12,426 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38870792-84533285 passed 2025-03-31 11:47:12,587 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 11:47:12,587 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38870792-84533285, IP 15.227.68.3, Port 22 2025-03-31 11:47:12,747 - DEBUG - VM ctest-TestBasicPolicy-38870792-84533285 is ready for SSH connections 2025-03-31 11:47:12,747 - INFO - Waiting for VM ctest-TestBasicPolicy-38870792-26369312 to be up.. 2025-03-31 11:47:12,828 - DEBUG - VM is in ACTIVE state now 2025-03-31 11:47:12,829 - INFO - VM name : ctest-TestBasicPolicy-38870792-26369312 2025-03-31 11:47:12,914 - DEBUG - VM ctest-TestBasicPolicy-38870792-26369312 ID is 88ffc2b9-1ba0-4f3c-91e8-2211c564d573 2025-03-31 11:47:12,914 - DEBUG - VM ctest-TestBasicPolicy-38870792-26369312 launched on Node cn-jenkins-deploy-platform-ansible-os-3015-1 2025-03-31 11:47:12,993 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/88ffc2b9-1ba0-4f3c-91e8-2211c564d573 2025-03-31 11:47:13,004 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/828fc007-3d07-45ba-9da9-e533d6645943 2025-03-31 11:47:14,248 - 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.77 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.382 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.382/1.577/2.773/1.195 ms') 2025-03-31 11:47:14,248 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-38870792-26369312 passed 2025-03-31 11:47:14,399 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 11:47:14,399 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38870792-26369312, IP 155.133.248.3, Port 22 2025-03-31 11:47:14,564 - DEBUG - VM ctest-TestBasicPolicy-38870792-26369312 is ready for SSH connections 2025-03-31 11:47:14,565 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 11:47:14,565 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 155.133.248.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-03-31 11:47:14,565 - DEBUG - ping -s 56 -c 3 -W 1 155.133.248.3 2025-03-31 11:47:18,619 - DEBUG - PING 155.133.248.3 (155.133.248.3): 56 data bytes 64 bytes from 155.133.248.3: seq=0 ttl=63 time=3.475 ms 64 bytes from 155.133.248.3: seq=1 ttl=63 time=1.136 ms 64 bytes from 155.133.248.3: seq=2 ttl=63 time=0.753 ms --- 155.133.248.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.753/1.788/3.475 ms 2025-03-31 11:47:18,619 - INFO - Ping to IP 155.133.248.3 from VM ctest-TestBasicPolicy-38870792-84533285 passed 2025-03-31 11:47:18,795 - DEBUG - Policy Update Response {"network-policy": {"uuid": "bb56b59f-a68b-4bbe-9f21-71bd3dfc6f6c", "href": "http://10.0.0.27:8082/network-policy/bb56b59f-a68b-4bbe-9f21-71bd3dfc6f6c"}} 2025-03-31 11:47:18,795 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-31 11:47:18,795 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 155.133.248.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-03-31 11:47:18,795 - DEBUG - ping -s 56 -c 3 -W 1 155.133.248.3 2025-03-31 11:47:21,992 - DEBUG - PING 155.133.248.3 (155.133.248.3): 56 data bytes 64 bytes from 155.133.248.3: seq=0 ttl=63 time=1.933 ms --- 155.133.248.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.933/1.933/1.933 ms 2025-03-31 11:47:21,993 - WARNING - Ping to IP 155.133.248.3 from VM ctest-TestBasicPolicy-38870792-84533285 failed 2025-03-31 11:47:21,993 - INFO - Deleting VM ctest-TestBasicPolicy-38870792-26369312 2025-03-31 11:47:22,061 - INFO - Deleting VM ctest-TestBasicPolicy-38870792-84533285 2025-03-31 11:47:22,461 - INFO - Deleted policy ctest-policy-allow-all-39774245 2025-03-31 11:47:22,461 - INFO - Deleting VN ctest-vn-33145758 2025-03-31 11:47:22,512 - DEBUG - VN 59ec18a9-285b-4f3b-87f1-d7859e362006 still in use: Unable to complete operation on network 59ec18a9-285b-4f3b-87f1-d7859e362006. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-24839bf5-2e5d-4aa3-abab-296b5f55ea50'] 2025-03-31 11:47:22,512 - WARNING - Deleting VN ctest-vn-33145758 failed..Will retry 2025-03-31 11:47:24,634 - DEBUG - Response for deleting network () 2025-03-31 11:47:24,634 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2ec79ce5-310b-481c-8da8-8e196d44ee96 2025-03-31 11:47:24,641 - DEBUG - Response Code: 404 2025-03-31 11:47:24,641 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-31 11:47:24,648 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8064ec9f-a0a9-43e6-bf42-f136e45a9cf1 2025-03-31 11:47:24,707 - DEBUG - Requesting: http://10.0.0.27:8082/project/36d2f0b0-ccfb-4716-962e-11138f86f441 2025-03-31 11:47:24,786 - INFO - Validated that VN ctest-vn-33145758 is not found in API Server 2025-03-31 11:47:24,803 - DEBUG - VN ctest-vn-33145758 is not present in Agent 10.0.0.27 2025-03-31 11:47:24,803 - INFO - Validated that VN ctest-vn-33145758 is not in any agent 2025-03-31 11:47:24,827 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-33145758 info 2025-03-31 11:47:24,827 - INFO - Deleting VN ctest-vn-98674386 2025-03-31 11:47:24,944 - DEBUG - Response for deleting network () 2025-03-31 11:47:24,944 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1183b594-be48-4212-ae3a-8431c3db726c 2025-03-31 11:47:24,952 - DEBUG - Response Code: 404 2025-03-31 11:47:24,952 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-31 11:47:24,960 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8064ec9f-a0a9-43e6-bf42-f136e45a9cf1 2025-03-31 11:47:25,018 - DEBUG - Requesting: http://10.0.0.27:8082/project/36d2f0b0-ccfb-4716-962e-11138f86f441 2025-03-31 11:47:25,103 - INFO - Validated that VN ctest-vn-98674386 is not found in API Server 2025-03-31 11:47:25,114 - DEBUG - VN ctest-vn-98674386 is not present in Agent 10.0.0.27 2025-03-31 11:47:25,114 - INFO - Validated that VN ctest-vn-98674386 is not in any agent 2025-03-31 11:47:25,130 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-98674386 info 2025-03-31 11:47:25,400 - DEBUG - No XMPP flaps were noticed during the test 2025-03-31 11:47:25,400 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2025-03-31 11:47:25,400 - INFO - -------------------------------------------------------------------------------- 2025-03-31 11:47:26,099 - INFO - Deleted project: ctest-TestBasicPolicy-38870792, ID : 36d2f0b0-ccfb-4716-962e-11138f86f441