2025-06-26 19:36:02,424 - INFO - Domain Default found not creating 2025-06-26 19:36:02,605 - INFO - Project ctest-TestBasicPolicy-43015438 not found, creating it 2025-06-26 19:36:03,098 - INFO - Created Project:ctest-TestBasicPolicy-43015438, ID : 702507c8-53be-4c3d-9387-6b9a75cd341e 2025-06-26 19:36:04,772 - INFO - ================================================================================ 2025-06-26 19:36:04,773 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-26 19:36:04,773 - 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-26 19:36:05,064 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-06-26 19:36:05,064 - INFO - Initial checks done. Running the testcase now 2025-06-26 19:36:05,064 - INFO - 2025-06-26 19:36:05,703 - DEBUG - Response for create_network : {'network': {'id': '224f16d8-0b66-4bf9-b6df-c05ae8e4a5ba', 'name': 'ctest-vn-64647681', 'tenant_id': '702507c853be4c3d93876b9a75cd341e', 'project_id': '702507c853be4c3d93876b9a75cd341e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43015438', 'ctest-vn-64647681'], 'port_security_enabled': True, 'description': ''}} 2025-06-26 19:36:05,847 - DEBUG - Response for create_subnet : {'subnet': {'id': '7fb2f674-c2cc-4043-93bd-1c29c58b4e72', 'name': '', 'tenant_id': '702507c853be4c3d93876b9a75cd341e', 'network_id': '224f16d8-0b66-4bf9-b6df-c05ae8e4a5ba', 'ip_version': 4, 'cidr': '104.205.192.0/26', 'allocation_pools': [{'start': '104.205.192.2', 'end': '104.205.192.62'}], 'gateway_ip': '104.205.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.205.192.2', 'tags': [], 'project_id': '702507c853be4c3d93876b9a75cd341e'}} 2025-06-26 19:36:05,869 - INFO - Created VN ctest-vn-64647681 2025-06-26 19:36:05,921 - DEBUG - VN ctest-vn-64647681 UUID is 224f16d8-0b66-4bf9-b6df-c05ae8e4a5ba 2025-06-26 19:36:06,242 - DEBUG - Response for create_network : {'network': {'id': 'cb95f4f9-21d8-4815-be0d-91b6aca16eb4', 'name': 'ctest-vn-79603269', 'tenant_id': '702507c853be4c3d93876b9a75cd341e', 'project_id': '702507c853be4c3d93876b9a75cd341e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43015438', 'ctest-vn-79603269'], 'port_security_enabled': True, 'description': ''}} 2025-06-26 19:36:06,437 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a13f150e-9e34-4495-a0c0-f8ef7c71919e', 'name': '', 'tenant_id': '702507c853be4c3d93876b9a75cd341e', 'network_id': 'cb95f4f9-21d8-4815-be0d-91b6aca16eb4', 'ip_version': 4, 'cidr': '143.132.8.64/26', 'allocation_pools': [{'start': '143.132.8.66', 'end': '143.132.8.126'}], 'gateway_ip': '143.132.8.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.132.8.66', 'tags': [], 'project_id': '702507c853be4c3d93876b9a75cd341e'}} 2025-06-26 19:36:06,456 - INFO - Created VN ctest-vn-79603269 2025-06-26 19:36:06,509 - DEBUG - VN ctest-vn-79603269 UUID is cb95f4f9-21d8-4815-be0d-91b6aca16eb4 2025-06-26 19:36:06,643 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43015438:ctest-vn-64647681, 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-43015438:ctest-vn-79603269, 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-26 19:36:07,011 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '224f16d8-0b66-4bf9-b6df-c05ae8e4a5ba', 'name': 'ctest-vn-64647681', 'tenant_id': '702507c853be4c3d93876b9a75cd341e', 'project_id': '702507c853be4c3d93876b9a75cd341e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7fb2f674-c2cc-4043-93bd-1c29c58b4e72'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43015438', 'ctest-vn-64647681'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43015438', 'ctest-policy-allow-all-39320517']], 'subnet_ipam': [{'subnet_cidr': '104.205.192.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-26 19:36:07,286 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cb95f4f9-21d8-4815-be0d-91b6aca16eb4', 'name': 'ctest-vn-79603269', 'tenant_id': '702507c853be4c3d93876b9a75cd341e', 'project_id': '702507c853be4c3d93876b9a75cd341e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a13f150e-9e34-4495-a0c0-f8ef7c71919e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43015438', 'ctest-vn-79603269'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43015438', 'ctest-policy-allow-all-39320517']], 'subnet_ipam': [{'subnet_cidr': '143.132.8.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-26 19:36:07,465 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-26 19:36:07,766 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-26 19:36:07,802 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dcd0a422-b62d-4879-87ee-ca31aebbb767 2025-06-26 19:36:07,830 - DEBUG - Requesting: http://10.0.0.254:8082/project/702507c8-53be-4c3d-9387-6b9a75cd341e 2025-06-26 19:36:07,914 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/224f16d8-0b66-4bf9-b6df-c05ae8e4a5ba 2025-06-26 19:36:07,930 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/224f16d8-0b66-4bf9-b6df-c05ae8e4a5ba 2025-06-26 19:36:07,944 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/06eda3a3-7658-451a-a625-42fa6d8d9f26 2025-06-26 19:36:07,955 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/06eda3a3-7658-451a-a625-42fa6d8d9f26 2025-06-26 19:36:07,965 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/135fcd8d-ec97-457a-8dbf-c3aed80555af 2025-06-26 19:36:07,975 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-26 19:36:07,975 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/224f16d8-0b66-4bf9-b6df-c05ae8e4a5ba 2025-06-26 19:36:07,988 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/06eda3a3-7658-451a-a625-42fa6d8d9f26 2025-06-26 19:36:08,005 - INFO - Verified VN network id 9 for VN 224f16d8-0b66-4bf9-b6df-c05ae8e4a5ba 2025-06-26 19:36:08,006 - INFO - Verifications in API Server for VN ctest-vn-64647681 passed 2025-06-26 19:36:08,006 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/224f16d8-0b66-4bf9-b6df-c05ae8e4a5ba 2025-06-26 19:36:08,020 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/06eda3a3-7658-451a-a625-42fa6d8d9f26 2025-06-26 19:36:08,029 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/06eda3a3-7658-451a-a625-42fa6d8d9f26 2025-06-26 19:36:08,040 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/135fcd8d-ec97-457a-8dbf-c3aed80555af 2025-06-26 19:36:08,059 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43015438:ctest-vn-64647681', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43015438', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2472219837609692153', 'uuid-lslong': '13177462531396249018'}, 'enable': 'true', 'created': '2025-06-26T19:36:05', 'last-modified': '2025-06-26T19:36:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.094134'} 2025-06-26 19:36:08,066 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-26 19:36:08,066 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64647681 passed 2025-06-26 19:36:08,066 - DEBUG - ====Verifying policy data for ctest-vn-64647681 in API_Server ====== 2025-06-26 19:36:08,066 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-26 19:36:08,073 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dcd0a422-b62d-4879-87ee-ca31aebbb767 2025-06-26 19:36:08,089 - DEBUG - Requesting: http://10.0.0.254:8082/project/702507c8-53be-4c3d-9387-6b9a75cd341e 2025-06-26 19:36:08,171 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/224f16d8-0b66-4bf9-b6df-c05ae8e4a5ba 2025-06-26 19:36:08,183 - DEBUG - ==>Verifying data for policy with id: 38ccb5f6-205b-42fa-879b-69b7042e7bff, fqn: ['default-domain', 'ctest-TestBasicPolicy-43015438', 'ctest-policy-allow-all-39320517'] 2025-06-26 19:36:08,183 - INFO - VN ctest-vn-64647681 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-26 19:36:08,183 - DEBUG - Verifying the vn in opserver 2025-06-26 19:36:08,183 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43015438:ctest-vn-64647681 virtual network link through opserver 10.0.0.254 2025-06-26 19:36:08,183 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-26 19:36:08,490 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-26 19:36:08,567 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43015438:ctest-vn-64647681', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43015438:ctest-vn-64647681?flat'} 2025-06-26 19:36:08,567 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43015438:ctest-vn-64647681 is found in opserver 2025-06-26 19:36:08,581 - DEBUG - Do not have enough data to verify VN in agent 2025-06-26 19:36:08,587 - DEBUG - VRF ids for VN ctest-vn-64647681: {} 2025-06-26 19:36:08,587 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-26 19:36:08,594 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dcd0a422-b62d-4879-87ee-ca31aebbb767 2025-06-26 19:36:08,609 - DEBUG - Requesting: http://10.0.0.254:8082/project/702507c8-53be-4c3d-9387-6b9a75cd341e 2025-06-26 19:36:08,693 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cb95f4f9-21d8-4815-be0d-91b6aca16eb4 2025-06-26 19:36:08,706 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cb95f4f9-21d8-4815-be0d-91b6aca16eb4 2025-06-26 19:36:08,716 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/870705c5-ea97-4fcd-85f3-56176eb6cda5 2025-06-26 19:36:08,724 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/870705c5-ea97-4fcd-85f3-56176eb6cda5 2025-06-26 19:36:08,731 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7a39f24d-cbf0-4f4d-9c30-50c74e29739c 2025-06-26 19:36:08,740 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-26 19:36:08,740 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cb95f4f9-21d8-4815-be0d-91b6aca16eb4 2025-06-26 19:36:08,751 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/870705c5-ea97-4fcd-85f3-56176eb6cda5 2025-06-26 19:36:08,765 - INFO - Verified VN network id 10 for VN cb95f4f9-21d8-4815-be0d-91b6aca16eb4 2025-06-26 19:36:08,765 - INFO - Verifications in API Server for VN ctest-vn-79603269 passed 2025-06-26 19:36:08,765 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cb95f4f9-21d8-4815-be0d-91b6aca16eb4 2025-06-26 19:36:08,838 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/870705c5-ea97-4fcd-85f3-56176eb6cda5 2025-06-26 19:36:08,849 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/870705c5-ea97-4fcd-85f3-56176eb6cda5 2025-06-26 19:36:08,859 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7a39f24d-cbf0-4f4d-9c30-50c74e29739c 2025-06-26 19:36:08,875 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43015438:ctest-vn-79603269', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43015438', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14669900712081115157', 'uuid-lslong': '13694762255669882548'}, 'enable': 'true', 'created': '2025-06-26T19:36:06', 'last-modified': '2025-06-26T19:36:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.604004'} 2025-06-26 19:36:08,882 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-26 19:36:08,882 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79603269 passed 2025-06-26 19:36:08,882 - DEBUG - ====Verifying policy data for ctest-vn-79603269 in API_Server ====== 2025-06-26 19:36:08,883 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-26 19:36:08,889 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dcd0a422-b62d-4879-87ee-ca31aebbb767 2025-06-26 19:36:08,902 - DEBUG - Requesting: http://10.0.0.254:8082/project/702507c8-53be-4c3d-9387-6b9a75cd341e 2025-06-26 19:36:08,982 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cb95f4f9-21d8-4815-be0d-91b6aca16eb4 2025-06-26 19:36:08,993 - DEBUG - ==>Verifying data for policy with id: 38ccb5f6-205b-42fa-879b-69b7042e7bff, fqn: ['default-domain', 'ctest-TestBasicPolicy-43015438', 'ctest-policy-allow-all-39320517'] 2025-06-26 19:36:08,993 - INFO - VN ctest-vn-79603269 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-26 19:36:08,993 - DEBUG - Verifying the vn in opserver 2025-06-26 19:36:08,993 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43015438:ctest-vn-79603269 virtual network link through opserver 10.0.0.254 2025-06-26 19:36:08,993 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-26 19:36:09,005 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43015438:ctest-vn-79603269', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43015438:ctest-vn-79603269?flat'} 2025-06-26 19:36:09,005 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43015438:ctest-vn-79603269 is found in opserver 2025-06-26 19:36:09,019 - DEBUG - Do not have enough data to verify VN in agent 2025-06-26 19:36:09,024 - DEBUG - VRF ids for VN ctest-vn-79603269: {} 2025-06-26 19:36:09,085 - DEBUG - Services list from nova: [, , ] 2025-06-26 19:36:10,216 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3562-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3562-1) 2025-06-26 19:36:11,847 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3562-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3562-1) 2025-06-26 19:36:11,847 - INFO - Waiting for VM ctest-TestBasicPolicy-43015438-94618496 to be up.. 2025-06-26 19:36:11,934 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-26 19:36:17,097 - DEBUG - VM is in ACTIVE state now 2025-06-26 19:36:17,097 - INFO - VM name : ctest-TestBasicPolicy-43015438-94618496 2025-06-26 19:36:17,213 - DEBUG - VM ctest-TestBasicPolicy-43015438-94618496 ID is 115e7be2-31a7-4f5f-acd6-c21e1c3af20a 2025-06-26 19:36:17,238 - DEBUG - VM ctest-TestBasicPolicy-43015438-94618496 launched on Node cn-jenkins-deploy-platform-ansible-os-3562-1 2025-06-26 19:36:17,349 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/115e7be2-31a7-4f5f-acd6-c21e1c3af20a 2025-06-26 19:36:17,362 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/4027b8bd-1fa4-4b57-8819-f70f3d82e13e 2025-06-26 19:36:20,645 - 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 1006ms') 2025-06-26 19:36:20,645 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-43015438-94618496 failed! 2025-06-26 19:36:20,726 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-43015438:ctest-vn-64647681 is 104.205.192.1 and allocation pool is NOT set 2025-06-26 19:36:22,793 - 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.80 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.294 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.294/5.048/9.803/4.754 ms') 2025-06-26 19:36:22,793 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-43015438-94618496 passed 2025-06-26 19:36:22,953 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 19:36:22,953 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-43015438-94618496, IP 104.205.192.3, Port 22 2025-06-26 19:36:23,138 - DEBUG - VM ctest-TestBasicPolicy-43015438-94618496 is ready for SSH connections 2025-06-26 19:36:23,138 - INFO - Waiting for VM ctest-TestBasicPolicy-43015438-22919720 to be up.. 2025-06-26 19:36:23,243 - DEBUG - VM is in ACTIVE state now 2025-06-26 19:36:23,243 - INFO - VM name : ctest-TestBasicPolicy-43015438-22919720 2025-06-26 19:36:23,329 - DEBUG - VM ctest-TestBasicPolicy-43015438-22919720 ID is 9cdbc763-ad84-4e9c-8a6a-1ce2a1bdeee5 2025-06-26 19:36:23,329 - DEBUG - VM ctest-TestBasicPolicy-43015438-22919720 launched on Node cn-jenkins-deploy-platform-ansible-os-3562-1 2025-06-26 19:36:23,415 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/9cdbc763-ad84-4e9c-8a6a-1ce2a1bdeee5 2025-06-26 19:36:23,431 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/7168e3a7-f007-4770-8532-fc03ac15566e 2025-06-26 19:36:24,709 - 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.19 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.983 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.983/2.085/3.188/1.102 ms') 2025-06-26 19:36:24,709 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-43015438-22919720 passed 2025-06-26 19:36:24,885 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 19:36:24,885 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-43015438-22919720, IP 143.132.8.67, Port 22 2025-06-26 19:36:25,053 - DEBUG - VM ctest-TestBasicPolicy-43015438-22919720 is ready for SSH connections 2025-06-26 19:36:25,053 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 19:36:25,053 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 143.132.8.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-26 19:36:25,053 - DEBUG - ping -s 56 -c 3 -W 1 143.132.8.67 2025-06-26 19:36:29,177 - DEBUG - PING 143.132.8.67 (143.132.8.67): 56 data bytes 64 bytes from 143.132.8.67: seq=0 ttl=63 time=3.978 ms 64 bytes from 143.132.8.67: seq=1 ttl=63 time=0.853 ms 64 bytes from 143.132.8.67: seq=2 ttl=63 time=0.905 ms --- 143.132.8.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.853/1.912/3.978 ms 2025-06-26 19:36:29,177 - INFO - Ping to IP 143.132.8.67 from VM ctest-TestBasicPolicy-43015438-94618496 passed 2025-06-26 19:36:29,409 - DEBUG - Policy Update Response {"network-policy": {"uuid": "38ccb5f6-205b-42fa-879b-69b7042e7bff", "href": "http://10.0.0.254:8082/network-policy/38ccb5f6-205b-42fa-879b-69b7042e7bff"}} 2025-06-26 19:36:29,409 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-26 19:36:29,409 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 143.132.8.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-26 19:36:29,409 - DEBUG - ping -s 56 -c 3 -W 1 143.132.8.67 2025-06-26 19:36:32,660 - DEBUG - PING 143.132.8.67 (143.132.8.67): 56 data bytes 64 bytes from 143.132.8.67: seq=0 ttl=63 time=2.024 ms --- 143.132.8.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.024/2.024/2.024 ms 2025-06-26 19:36:32,661 - WARNING - Ping to IP 143.132.8.67 from VM ctest-TestBasicPolicy-43015438-94618496 failed 2025-06-26 19:36:32,661 - INFO - Deleting VM ctest-TestBasicPolicy-43015438-22919720 2025-06-26 19:36:32,732 - INFO - Deleting VM ctest-TestBasicPolicy-43015438-94618496 2025-06-26 19:36:33,145 - INFO - Deleted policy ctest-policy-allow-all-39320517 2025-06-26 19:36:33,145 - INFO - Deleting VN ctest-vn-79603269 2025-06-26 19:36:33,188 - DEBUG - VN cb95f4f9-21d8-4815-be0d-91b6aca16eb4 still in use: Unable to complete operation on network cb95f4f9-21d8-4815-be0d-91b6aca16eb4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-40afee75-2ddf-4aad-b87f-3dde7a573b9e'] 2025-06-26 19:36:33,188 - WARNING - Deleting VN ctest-vn-79603269 failed..Will retry 2025-06-26 19:36:35,347 - DEBUG - Response for deleting network () 2025-06-26 19:36:35,347 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/870705c5-ea97-4fcd-85f3-56176eb6cda5 2025-06-26 19:36:35,353 - DEBUG - Response Code: 404 2025-06-26 19:36:35,353 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-26 19:36:35,362 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dcd0a422-b62d-4879-87ee-ca31aebbb767 2025-06-26 19:36:35,423 - DEBUG - Requesting: http://10.0.0.254:8082/project/702507c8-53be-4c3d-9387-6b9a75cd341e 2025-06-26 19:36:35,541 - INFO - Validated that VN ctest-vn-79603269 is not found in API Server 2025-06-26 19:36:35,557 - DEBUG - VN ctest-vn-79603269 is not present in Agent 10.0.0.254 2025-06-26 19:36:35,557 - INFO - Validated that VN ctest-vn-79603269 is not in any agent 2025-06-26 19:36:35,582 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79603269 info 2025-06-26 19:36:35,582 - INFO - Deleting VN ctest-vn-64647681 2025-06-26 19:36:35,765 - DEBUG - Response for deleting network () 2025-06-26 19:36:35,765 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/06eda3a3-7658-451a-a625-42fa6d8d9f26 2025-06-26 19:36:35,776 - DEBUG - Response Code: 404 2025-06-26 19:36:35,776 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-26 19:36:35,783 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dcd0a422-b62d-4879-87ee-ca31aebbb767 2025-06-26 19:36:35,851 - DEBUG - Requesting: http://10.0.0.254:8082/project/702507c8-53be-4c3d-9387-6b9a75cd341e 2025-06-26 19:36:35,944 - INFO - Validated that VN ctest-vn-64647681 is not found in API Server 2025-06-26 19:36:35,962 - DEBUG - VN ctest-vn-64647681 is not present in Agent 10.0.0.254 2025-06-26 19:36:35,962 - INFO - Validated that VN ctest-vn-64647681 is not in any agent 2025-06-26 19:36:35,989 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-64647681 info 2025-06-26 19:36:36,260 - DEBUG - No XMPP flaps were noticed during the test
2025-06-26 19:36:36,260 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:32]
2025-06-26 19:36:36,260 - INFO - -------------------------------------------------------------------------------- 2025-06-26 19:36:36,953 - INFO - Deleted project: ctest-TestBasicPolicy-43015438, ID : 702507c8-53be-4c3d-9387-6b9a75cd341e