2025-08-22 13:34:07,306 - INFO - Domain Default found not creating 2025-08-22 13:34:07,431 - INFO - Project ctest-TestBasicPolicy-25636082 not found, creating it 2025-08-22 13:34:07,863 - INFO - Created Project:ctest-TestBasicPolicy-25636082, ID : abc1ff73-7c0d-47fb-b314-e993de066c03 2025-08-22 13:34:09,165 - INFO - ================================================================================ 2025-08-22 13:34:09,165 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-22 13:34:09,165 - 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-08-22 13:34:09,419 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-08-22 13:34:09,419 - INFO - Initial checks done. Running the testcase now 2025-08-22 13:34:09,420 - INFO - 2025-08-22 13:34:09,959 - DEBUG - Response for create_network : {'network': {'id': '37630eb4-2639-4456-87b9-4bd58b661e1e', 'name': 'ctest-vn-99866217', 'tenant_id': 'abc1ff737c0d47fbb314e993de066c03', 'project_id': 'abc1ff737c0d47fbb314e993de066c03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25636082', 'ctest-vn-99866217'], 'port_security_enabled': True, 'description': ''}} 2025-08-22 13:34:10,221 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd19c0f9f-fb9e-4e1b-9a50-ee12f926bfdc', 'name': '', 'tenant_id': 'abc1ff737c0d47fbb314e993de066c03', 'network_id': '37630eb4-2639-4456-87b9-4bd58b661e1e', 'ip_version': 4, 'cidr': '143.159.110.64/26', 'allocation_pools': [{'start': '143.159.110.66', 'end': '143.159.110.126'}], 'gateway_ip': '143.159.110.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.159.110.66', 'tags': [], 'project_id': 'abc1ff737c0d47fbb314e993de066c03'}} 2025-08-22 13:34:10,240 - INFO - Created VN ctest-vn-99866217 2025-08-22 13:34:10,291 - DEBUG - VN ctest-vn-99866217 UUID is 37630eb4-2639-4456-87b9-4bd58b661e1e 2025-08-22 13:34:10,613 - DEBUG - Response for create_network : {'network': {'id': 'd856ac39-2ea6-41ae-b4eb-47bd3b5a613b', 'name': 'ctest-vn-56614991', 'tenant_id': 'abc1ff737c0d47fbb314e993de066c03', 'project_id': 'abc1ff737c0d47fbb314e993de066c03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25636082', 'ctest-vn-56614991'], 'port_security_enabled': True, 'description': ''}} 2025-08-22 13:34:10,780 - DEBUG - Response for create_subnet : {'subnet': {'id': '43f3c862-d298-44d5-87e4-438a218d49b6', 'name': '', 'tenant_id': 'abc1ff737c0d47fbb314e993de066c03', 'network_id': 'd856ac39-2ea6-41ae-b4eb-47bd3b5a613b', 'ip_version': 4, 'cidr': '194.104.26.128/26', 'allocation_pools': [{'start': '194.104.26.130', 'end': '194.104.26.190'}], 'gateway_ip': '194.104.26.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.104.26.130', 'tags': [], 'project_id': 'abc1ff737c0d47fbb314e993de066c03'}} 2025-08-22 13:34:10,795 - INFO - Created VN ctest-vn-56614991 2025-08-22 13:34:10,847 - DEBUG - VN ctest-vn-56614991 UUID is d856ac39-2ea6-41ae-b4eb-47bd3b5a613b 2025-08-22 13:34:10,995 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-99866217, 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-25636082:ctest-vn-56614991, 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-08-22 13:34:11,306 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37630eb4-2639-4456-87b9-4bd58b661e1e', 'name': 'ctest-vn-99866217', 'tenant_id': 'abc1ff737c0d47fbb314e993de066c03', 'project_id': 'abc1ff737c0d47fbb314e993de066c03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d19c0f9f-fb9e-4e1b-9a50-ee12f926bfdc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25636082', 'ctest-vn-99866217'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25636082', 'ctest-policy-allow-all-55046045']], 'subnet_ipam': [{'subnet_cidr': '143.159.110.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-22 13:34:11,588 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd856ac39-2ea6-41ae-b4eb-47bd3b5a613b', 'name': 'ctest-vn-56614991', 'tenant_id': 'abc1ff737c0d47fbb314e993de066c03', 'project_id': 'abc1ff737c0d47fbb314e993de066c03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['43f3c862-d298-44d5-87e4-438a218d49b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25636082', 'ctest-vn-56614991'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25636082', 'ctest-policy-allow-all-55046045']], 'subnet_ipam': [{'subnet_cidr': '194.104.26.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-22 13:34:11,743 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-22 13:34:12,044 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-22 13:34:12,071 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2dff4d33-b265-4d68-b70d-495dc8dc0f98 2025-08-22 13:34:12,083 - DEBUG - Requesting: http://10.0.0.254:8082/project/abc1ff73-7c0d-47fb-b314-e993de066c03 2025-08-22 13:34:12,163 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/37630eb4-2639-4456-87b9-4bd58b661e1e 2025-08-22 13:34:12,173 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/37630eb4-2639-4456-87b9-4bd58b661e1e 2025-08-22 13:34:12,181 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dee2edca-fb6f-4d42-a7ae-351e412149f1 2025-08-22 13:34:12,188 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dee2edca-fb6f-4d42-a7ae-351e412149f1 2025-08-22 13:34:12,194 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/465416e3-78f1-4f9f-b8a7-7ba32cde877d 2025-08-22 13:34:12,199 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-22 13:34:12,199 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/37630eb4-2639-4456-87b9-4bd58b661e1e 2025-08-22 13:34:12,207 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dee2edca-fb6f-4d42-a7ae-351e412149f1 2025-08-22 13:34:12,218 - INFO - Verified VN network id 12 for VN 37630eb4-2639-4456-87b9-4bd58b661e1e 2025-08-22 13:34:12,218 - INFO - Verifications in API Server for VN ctest-vn-99866217 passed 2025-08-22 13:34:12,218 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/37630eb4-2639-4456-87b9-4bd58b661e1e 2025-08-22 13:34:12,227 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dee2edca-fb6f-4d42-a7ae-351e412149f1 2025-08-22 13:34:12,232 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dee2edca-fb6f-4d42-a7ae-351e412149f1 2025-08-22 13:34:12,237 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/465416e3-78f1-4f9f-b8a7-7ba32cde877d 2025-08-22 13:34:12,247 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-99866217', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25636082', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3991049861678580822', 'uuid-lslong': '9779931446350585374'}, 'enable': 'true', 'created': '2025-08-22T13:34:09', 'last-modified': '2025-08-22T13:34:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974723'} 2025-08-22 13:34:12,253 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-22 13:34:12,253 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99866217 passed 2025-08-22 13:34:12,253 - DEBUG - ====Verifying policy data for ctest-vn-99866217 in API_Server ====== 2025-08-22 13:34:12,253 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-22 13:34:12,257 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2dff4d33-b265-4d68-b70d-495dc8dc0f98 2025-08-22 13:34:12,267 - DEBUG - Requesting: http://10.0.0.254:8082/project/abc1ff73-7c0d-47fb-b314-e993de066c03 2025-08-22 13:34:12,337 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/37630eb4-2639-4456-87b9-4bd58b661e1e 2025-08-22 13:34:12,346 - DEBUG - ==>Verifying data for policy with id: e369fc43-a59c-4a4d-b373-38b48b424d51, fqn: ['default-domain', 'ctest-TestBasicPolicy-25636082', 'ctest-policy-allow-all-55046045'] 2025-08-22 13:34:12,346 - INFO - VN ctest-vn-99866217 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-22 13:34:12,346 - DEBUG - Verifying the vn in opserver 2025-08-22 13:34:12,346 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-99866217 virtual network link through opserver 10.0.0.254 2025-08-22 13:34:12,346 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-22 13:34:12,633 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-22 13:34:12,685 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-99866217', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-99866217?flat'} 2025-08-22 13:34:12,685 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-99866217 is found in opserver 2025-08-22 13:34:12,694 - DEBUG - Do not have enough data to verify VN in agent 2025-08-22 13:34:12,699 - DEBUG - VRF ids for VN ctest-vn-99866217: {} 2025-08-22 13:34:12,699 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-22 13:34:12,704 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2dff4d33-b265-4d68-b70d-495dc8dc0f98 2025-08-22 13:34:12,715 - DEBUG - Requesting: http://10.0.0.254:8082/project/abc1ff73-7c0d-47fb-b314-e993de066c03 2025-08-22 13:34:12,797 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d856ac39-2ea6-41ae-b4eb-47bd3b5a613b 2025-08-22 13:34:12,813 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d856ac39-2ea6-41ae-b4eb-47bd3b5a613b 2025-08-22 13:34:12,823 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d43cd884-f80d-4ba4-991d-9b9541c0a30c 2025-08-22 13:34:12,832 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d43cd884-f80d-4ba4-991d-9b9541c0a30c 2025-08-22 13:34:12,842 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a72475bf-4333-42f8-8b2c-5645d9322731 2025-08-22 13:34:12,851 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-22 13:34:12,851 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d856ac39-2ea6-41ae-b4eb-47bd3b5a613b 2025-08-22 13:34:12,859 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d43cd884-f80d-4ba4-991d-9b9541c0a30c 2025-08-22 13:34:12,870 - INFO - Verified VN network id 13 for VN d856ac39-2ea6-41ae-b4eb-47bd3b5a613b 2025-08-22 13:34:12,871 - INFO - Verifications in API Server for VN ctest-vn-56614991 passed 2025-08-22 13:34:12,871 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d856ac39-2ea6-41ae-b4eb-47bd3b5a613b 2025-08-22 13:34:12,879 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d43cd884-f80d-4ba4-991d-9b9541c0a30c 2025-08-22 13:34:12,884 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d43cd884-f80d-4ba4-991d-9b9541c0a30c 2025-08-22 13:34:12,890 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a72475bf-4333-42f8-8b2c-5645d9322731 2025-08-22 13:34:12,899 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-56614991', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25636082', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15588836521785311662', 'uuid-lslong': '13036592424424202555'}, 'enable': 'true', 'created': '2025-08-22T13:34:10', 'last-modified': '2025-08-22T13:34:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.384667'} 2025-08-22 13:34:12,904 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-22 13:34:12,904 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56614991 passed 2025-08-22 13:34:12,905 - DEBUG - ====Verifying policy data for ctest-vn-56614991 in API_Server ====== 2025-08-22 13:34:12,905 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-22 13:34:12,924 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2dff4d33-b265-4d68-b70d-495dc8dc0f98 2025-08-22 13:34:12,940 - DEBUG - Requesting: http://10.0.0.254:8082/project/abc1ff73-7c0d-47fb-b314-e993de066c03 2025-08-22 13:34:13,010 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d856ac39-2ea6-41ae-b4eb-47bd3b5a613b 2025-08-22 13:34:13,020 - DEBUG - ==>Verifying data for policy with id: e369fc43-a59c-4a4d-b373-38b48b424d51, fqn: ['default-domain', 'ctest-TestBasicPolicy-25636082', 'ctest-policy-allow-all-55046045'] 2025-08-22 13:34:13,020 - INFO - VN ctest-vn-56614991 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-22 13:34:13,020 - DEBUG - Verifying the vn in opserver 2025-08-22 13:34:13,020 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-56614991 virtual network link through opserver 10.0.0.254 2025-08-22 13:34:13,020 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-22 13:34:13,030 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-56614991', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-56614991?flat'} 2025-08-22 13:34:13,030 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-56614991 is found in opserver 2025-08-22 13:34:13,041 - DEBUG - Do not have enough data to verify VN in agent 2025-08-22 13:34:13,046 - DEBUG - VRF ids for VN ctest-vn-56614991: {} 2025-08-22 13:34:13,102 - DEBUG - Services list from nova: [, , ] 2025-08-22 13:34:14,105 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3909-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3909-1) 2025-08-22 13:34:15,260 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3909-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3909-1) 2025-08-22 13:34:15,260 - INFO - Waiting for VM ctest-TestBasicPolicy-25636082-01029379 to be up.. 2025-08-22 13:34:15,345 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-22 13:34:20,420 - DEBUG - VM is in ACTIVE state now 2025-08-22 13:34:20,420 - INFO - VM name : ctest-TestBasicPolicy-25636082-01029379 2025-08-22 13:34:20,491 - DEBUG - VM ctest-TestBasicPolicy-25636082-01029379 ID is 4c0ab4ee-0707-40c5-9be5-44a3422ea860 2025-08-22 13:34:20,510 - DEBUG - VM ctest-TestBasicPolicy-25636082-01029379 launched on Node cn-jenkins-deploy-platform-ansible-os-3909-1. 2025-08-22 13:34:20,593 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/4c0ab4ee-0707-40c5-9be5-44a3422ea860 2025-08-22 13:34:20,605 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/b1f51d93-58cb-4c59-817d-7d09393fcc7b 2025-08-22 13:34:23,874 - 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 1028ms') 2025-08-22 13:34:23,875 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25636082-01029379 failed! 2025-08-22 13:34:23,931 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-99866217 is 143.159.110.65 and allocation pool is NOT set 2025-08-22 13:34:25,989 - 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=2.59 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.387 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.387/1.486/2.586/1.099 ms') 2025-08-22 13:34:25,990 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25636082-01029379 passed 2025-08-22 13:34:26,143 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-22 13:34:26,143 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25636082-01029379, IP 143.159.110.67, Port 22 2025-08-22 13:34:26,295 - DEBUG - VM ctest-TestBasicPolicy-25636082-01029379 is ready for SSH connections 2025-08-22 13:34:26,295 - INFO - Waiting for VM ctest-TestBasicPolicy-25636082-35750326 to be up.. 2025-08-22 13:34:26,359 - DEBUG - VM is in ACTIVE state now 2025-08-22 13:34:26,359 - INFO - VM name : ctest-TestBasicPolicy-25636082-35750326 2025-08-22 13:34:26,433 - DEBUG - VM ctest-TestBasicPolicy-25636082-35750326 ID is d9609835-866b-4281-9330-7e79443a6761 2025-08-22 13:34:26,433 - DEBUG - VM ctest-TestBasicPolicy-25636082-35750326 launched on Node cn-jenkins-deploy-platform-ansible-os-3909-1. 2025-08-22 13:34:26,502 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/d9609835-866b-4281-9330-7e79443a6761 2025-08-22 13:34:26,508 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/ec114338-6f44-4bc7-8654-0a97dad05498 2025-08-22 13:34:27,740 - 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.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.402 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.402/1.524/2.646/1.122 ms') 2025-08-22 13:34:27,740 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-25636082-35750326 passed 2025-08-22 13:34:27,887 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-22 13:34:27,887 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25636082-35750326, IP 194.104.26.131, Port 22 2025-08-22 13:34:28,042 - DEBUG - VM ctest-TestBasicPolicy-25636082-35750326 is ready for SSH connections 2025-08-22 13:34:28,042 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-22 13:34:28,042 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 194.104.26.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-22 13:34:28,042 - DEBUG - ping -s 56 -c 3 -W 1 194.104.26.131 2025-08-22 13:34:31,725 - DEBUG - PING 194.104.26.131 (194.104.26.131): 56 data bytes 64 bytes from 194.104.26.131: seq=0 ttl=63 time=3.161 ms 64 bytes from 194.104.26.131: seq=1 ttl=63 time=0.887 ms 64 bytes from 194.104.26.131: seq=2 ttl=63 time=0.887 ms --- 194.104.26.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.887/1.645/3.161 ms 2025-08-22 13:34:31,725 - INFO - Ping to IP 194.104.26.131 from VM ctest-TestBasicPolicy-25636082-01029379 passed 2025-08-22 13:34:31,898 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e369fc43-a59c-4a4d-b373-38b48b424d51", "href": "http://10.0.0.254:8082/network-policy/e369fc43-a59c-4a4d-b373-38b48b424d51"}} 2025-08-22 13:34:31,899 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-22 13:34:31,899 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 194.104.26.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-22 13:34:31,899 - DEBUG - ping -s 56 -c 3 -W 1 194.104.26.131 2025-08-22 13:34:35,094 - DEBUG - PING 194.104.26.131 (194.104.26.131): 56 data bytes --- 194.104.26.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-22 13:34:35,094 - WARNING - Ping to IP 194.104.26.131 from VM ctest-TestBasicPolicy-25636082-01029379 failed 2025-08-22 13:34:35,094 - INFO - Deleting VM ctest-TestBasicPolicy-25636082-35750326 2025-08-22 13:34:35,164 - INFO - Deleting VM ctest-TestBasicPolicy-25636082-01029379 2025-08-22 13:34:35,571 - INFO - Deleted policy ctest-policy-allow-all-55046045 2025-08-22 13:34:35,571 - INFO - Deleting VN ctest-vn-56614991 2025-08-22 13:34:35,618 - DEBUG - VN d856ac39-2ea6-41ae-b4eb-47bd3b5a613b still in use: Unable to complete operation on network d856ac39-2ea6-41ae-b4eb-47bd3b5a613b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1e11a887-81b1-4a65-9fe4-6dc1d00cbe6f'] 2025-08-22 13:34:35,618 - WARNING - Deleting VN ctest-vn-56614991 failed..Will retry 2025-08-22 13:34:37,738 - DEBUG - Response for deleting network () 2025-08-22 13:34:37,738 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d43cd884-f80d-4ba4-991d-9b9541c0a30c 2025-08-22 13:34:37,744 - DEBUG - Response Code: 404 2025-08-22 13:34:37,744 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-22 13:34:37,749 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2dff4d33-b265-4d68-b70d-495dc8dc0f98 2025-08-22 13:34:37,805 - DEBUG - Requesting: http://10.0.0.254:8082/project/abc1ff73-7c0d-47fb-b314-e993de066c03 2025-08-22 13:34:37,886 - INFO - Validated that VN ctest-vn-56614991 is not found in API Server 2025-08-22 13:34:37,896 - DEBUG - VN ctest-vn-56614991 is not present in Agent 10.0.0.254 2025-08-22 13:34:37,896 - INFO - Validated that VN ctest-vn-56614991 is not in any agent 2025-08-22 13:34:37,909 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-56614991 info 2025-08-22 13:34:37,909 - INFO - Deleting VN ctest-vn-99866217 2025-08-22 13:34:38,021 - DEBUG - Response for deleting network () 2025-08-22 13:34:38,021 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dee2edca-fb6f-4d42-a7ae-351e412149f1 2025-08-22 13:34:38,031 - DEBUG - Response Code: 404 2025-08-22 13:34:38,031 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-22 13:34:38,037 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2dff4d33-b265-4d68-b70d-495dc8dc0f98 2025-08-22 13:34:38,092 - DEBUG - Requesting: http://10.0.0.254:8082/project/abc1ff73-7c0d-47fb-b314-e993de066c03 2025-08-22 13:34:38,169 - INFO - Validated that VN ctest-vn-99866217 is not found in API Server 2025-08-22 13:34:38,179 - DEBUG - VN ctest-vn-99866217 is not present in Agent 10.0.0.254 2025-08-22 13:34:38,179 - INFO - Validated that VN ctest-vn-99866217 is not in any agent 2025-08-22 13:34:38,194 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-99866217 info 2025-08-22 13:34:38,455 - DEBUG - No XMPP flaps were noticed during the test
2025-08-22 13:34:38,455 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-08-22 13:34:38,455 - INFO - -------------------------------------------------------------------------------- 2025-08-22 13:34:39,126 - INFO - Deleted project: ctest-TestBasicPolicy-25636082, ID : abc1ff73-7c0d-47fb-b314-e993de066c03