2025-05-08 13:01:23,785 - INFO - Domain Default found not creating 2025-05-08 13:01:24,242 - INFO - Project ctest-TestBasicPolicy-27957291 not found, creating it 2025-05-08 13:01:25,061 - INFO - Created Project:ctest-TestBasicPolicy-27957291, ID : 02ee8b3f-2020-4295-8f4e-3ec779ac71a7 2025-05-08 13:01:27,388 - INFO - ================================================================================ 2025-05-08 13:01:27,388 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-08 13:01:27,388 - 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-08 13:01:27,705 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-05-08 13:01:27,706 - INFO - Initial checks done. Running the testcase now 2025-05-08 13:01:27,706 - INFO - 2025-05-08 13:01:28,471 - DEBUG - Response for create_network : {'network': {'id': 'ffe31355-438f-4aac-906c-c947e2f259db', 'name': 'ctest-vn-12835939', 'tenant_id': '02ee8b3f202042958f4e3ec779ac71a7', 'project_id': '02ee8b3f202042958f4e3ec779ac71a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27957291', 'ctest-vn-12835939'], 'port_security_enabled': True, 'description': ''}} 2025-05-08 13:01:28,679 - DEBUG - Response for create_subnet : {'subnet': {'id': '725185a0-d862-4685-91ad-a2ae6edc7a70', 'name': '', 'tenant_id': '02ee8b3f202042958f4e3ec779ac71a7', 'network_id': 'ffe31355-438f-4aac-906c-c947e2f259db', 'ip_version': 4, 'cidr': '44.69.252.0/26', 'allocation_pools': [{'start': '44.69.252.2', 'end': '44.69.252.62'}], 'gateway_ip': '44.69.252.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.69.252.2', 'tags': [], 'project_id': '02ee8b3f202042958f4e3ec779ac71a7'}} 2025-05-08 13:01:28,701 - INFO - Created VN ctest-vn-12835939 2025-05-08 13:01:28,758 - DEBUG - VN ctest-vn-12835939 UUID is ffe31355-438f-4aac-906c-c947e2f259db 2025-05-08 13:01:29,164 - DEBUG - Response for create_network : {'network': {'id': 'e2a48668-9056-4c6d-b567-af0feb0471f0', 'name': 'ctest-vn-05659247', 'tenant_id': '02ee8b3f202042958f4e3ec779ac71a7', 'project_id': '02ee8b3f202042958f4e3ec779ac71a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27957291', 'ctest-vn-05659247'], 'port_security_enabled': True, 'description': ''}} 2025-05-08 13:01:29,355 - DEBUG - Response for create_subnet : {'subnet': {'id': '93e469a7-8bcb-490e-8592-58b73036d7d3', 'name': '', 'tenant_id': '02ee8b3f202042958f4e3ec779ac71a7', 'network_id': 'e2a48668-9056-4c6d-b567-af0feb0471f0', 'ip_version': 4, 'cidr': '48.152.196.192/26', 'allocation_pools': [{'start': '48.152.196.194', 'end': '48.152.196.254'}], 'gateway_ip': '48.152.196.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.152.196.194', 'tags': [], 'project_id': '02ee8b3f202042958f4e3ec779ac71a7'}} 2025-05-08 13:01:29,377 - INFO - Created VN ctest-vn-05659247 2025-05-08 13:01:29,435 - DEBUG - VN ctest-vn-05659247 UUID is e2a48668-9056-4c6d-b567-af0feb0471f0 2025-05-08 13:01:29,625 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-12835939, 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-27957291:ctest-vn-05659247, 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-08 13:01:30,073 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffe31355-438f-4aac-906c-c947e2f259db', 'name': 'ctest-vn-12835939', 'tenant_id': '02ee8b3f202042958f4e3ec779ac71a7', 'project_id': '02ee8b3f202042958f4e3ec779ac71a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['725185a0-d862-4685-91ad-a2ae6edc7a70'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27957291', 'ctest-vn-12835939'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27957291', 'ctest-policy-allow-all-80248743']], 'subnet_ipam': [{'subnet_cidr': '44.69.252.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-08 13:01:30,425 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e2a48668-9056-4c6d-b567-af0feb0471f0', 'name': 'ctest-vn-05659247', 'tenant_id': '02ee8b3f202042958f4e3ec779ac71a7', 'project_id': '02ee8b3f202042958f4e3ec779ac71a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['93e469a7-8bcb-490e-8592-58b73036d7d3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27957291', 'ctest-vn-05659247'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27957291', 'ctest-policy-allow-all-80248743']], 'subnet_ipam': [{'subnet_cidr': '48.152.196.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-08 13:01:30,626 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-08 13:01:30,947 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-08 13:01:31,002 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6dbd8e98-e16f-47a1-ac74-571ca035b53c 2025-05-08 13:01:31,025 - DEBUG - Requesting: http://10.0.0.254:8082/project/02ee8b3f-2020-4295-8f4e-3ec779ac71a7 2025-05-08 13:01:31,155 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ffe31355-438f-4aac-906c-c947e2f259db 2025-05-08 13:01:31,186 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ffe31355-438f-4aac-906c-c947e2f259db 2025-05-08 13:01:31,204 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/657d8a2d-f3a7-41ee-9b78-7066c228dadd 2025-05-08 13:01:31,219 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/657d8a2d-f3a7-41ee-9b78-7066c228dadd 2025-05-08 13:01:31,244 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ad2ea037-afde-4a6d-a8d1-6da19441de4e 2025-05-08 13:01:31,265 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-08 13:01:31,265 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ffe31355-438f-4aac-906c-c947e2f259db 2025-05-08 13:01:31,287 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/657d8a2d-f3a7-41ee-9b78-7066c228dadd 2025-05-08 13:01:31,339 - INFO - Verified VN network id 8 for VN ffe31355-438f-4aac-906c-c947e2f259db 2025-05-08 13:01:31,340 - INFO - Verifications in API Server for VN ctest-vn-12835939 passed 2025-05-08 13:01:31,340 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ffe31355-438f-4aac-906c-c947e2f259db 2025-05-08 13:01:31,361 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/657d8a2d-f3a7-41ee-9b78-7066c228dadd 2025-05-08 13:01:31,375 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/657d8a2d-f3a7-41ee-9b78-7066c228dadd 2025-05-08 13:01:31,388 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ad2ea037-afde-4a6d-a8d1-6da19441de4e 2025-05-08 13:01:31,413 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-12835939', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27957291', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18438602556311554732', 'uuid-lslong': '10406914149533768155'}, 'enable': 'true', 'created': '2025-05-08T13:01:28', 'last-modified': '2025-05-08T13:01:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.380550'} 2025-05-08 13:01:31,427 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-08 13:01:31,427 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12835939 passed 2025-05-08 13:01:31,427 - DEBUG - ====Verifying policy data for ctest-vn-12835939 in API_Server ====== 2025-05-08 13:01:31,427 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-08 13:01:31,439 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6dbd8e98-e16f-47a1-ac74-571ca035b53c 2025-05-08 13:01:31,469 - DEBUG - Requesting: http://10.0.0.254:8082/project/02ee8b3f-2020-4295-8f4e-3ec779ac71a7 2025-05-08 13:01:31,576 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ffe31355-438f-4aac-906c-c947e2f259db 2025-05-08 13:01:31,588 - DEBUG - ==>Verifying data for policy with id: dfb2ddc8-ee01-4ac2-b5d4-2104eb7cf2d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-27957291', 'ctest-policy-allow-all-80248743'] 2025-05-08 13:01:31,589 - INFO - VN ctest-vn-12835939 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-08 13:01:31,589 - DEBUG - Verifying the vn in opserver 2025-05-08 13:01:31,589 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-12835939 virtual network link through opserver 10.0.0.254 2025-05-08 13:01:31,589 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-08 13:01:31,899 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-08 13:01:31,970 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-12835939', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-12835939?flat'} 2025-05-08 13:01:31,970 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-12835939 is found in opserver 2025-05-08 13:01:31,988 - DEBUG - Do not have enough data to verify VN in agent 2025-05-08 13:01:31,998 - DEBUG - VRF ids for VN ctest-vn-12835939: {} 2025-05-08 13:01:31,998 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-08 13:01:32,008 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6dbd8e98-e16f-47a1-ac74-571ca035b53c 2025-05-08 13:01:32,027 - DEBUG - Requesting: http://10.0.0.254:8082/project/02ee8b3f-2020-4295-8f4e-3ec779ac71a7 2025-05-08 13:01:32,130 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e2a48668-9056-4c6d-b567-af0feb0471f0 2025-05-08 13:01:32,154 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e2a48668-9056-4c6d-b567-af0feb0471f0 2025-05-08 13:01:32,175 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0274ce3d-3ebe-4cd3-9f74-0149235c1d1c 2025-05-08 13:01:32,191 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0274ce3d-3ebe-4cd3-9f74-0149235c1d1c 2025-05-08 13:01:32,206 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/bae5dbc5-d25f-46df-a223-d3ce0528aafa 2025-05-08 13:01:32,221 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-08 13:01:32,221 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e2a48668-9056-4c6d-b567-af0feb0471f0 2025-05-08 13:01:32,243 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0274ce3d-3ebe-4cd3-9f74-0149235c1d1c 2025-05-08 13:01:32,274 - INFO - Verified VN network id 9 for VN e2a48668-9056-4c6d-b567-af0feb0471f0 2025-05-08 13:01:32,274 - INFO - Verifications in API Server for VN ctest-vn-05659247 passed 2025-05-08 13:01:32,274 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e2a48668-9056-4c6d-b567-af0feb0471f0 2025-05-08 13:01:32,292 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0274ce3d-3ebe-4cd3-9f74-0149235c1d1c 2025-05-08 13:01:32,305 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0274ce3d-3ebe-4cd3-9f74-0149235c1d1c 2025-05-08 13:01:32,319 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/bae5dbc5-d25f-46df-a223-d3ce0528aafa 2025-05-08 13:01:32,347 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-05659247', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27957291', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16331325932408556653', 'uuid-lslong': '13071608926368461296'}, 'enable': 'true', 'created': '2025-05-08T13:01:29', 'last-modified': '2025-05-08T13:01:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.986500'} 2025-05-08 13:01:32,364 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-08 13:01:32,364 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05659247 passed 2025-05-08 13:01:32,364 - DEBUG - ====Verifying policy data for ctest-vn-05659247 in API_Server ====== 2025-05-08 13:01:32,365 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-08 13:01:32,375 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6dbd8e98-e16f-47a1-ac74-571ca035b53c 2025-05-08 13:01:32,400 - DEBUG - Requesting: http://10.0.0.254:8082/project/02ee8b3f-2020-4295-8f4e-3ec779ac71a7 2025-05-08 13:01:32,497 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e2a48668-9056-4c6d-b567-af0feb0471f0 2025-05-08 13:01:32,517 - DEBUG - ==>Verifying data for policy with id: dfb2ddc8-ee01-4ac2-b5d4-2104eb7cf2d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-27957291', 'ctest-policy-allow-all-80248743'] 2025-05-08 13:01:32,517 - INFO - VN ctest-vn-05659247 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-08 13:01:32,517 - DEBUG - Verifying the vn in opserver 2025-05-08 13:01:32,517 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-05659247 virtual network link through opserver 10.0.0.254 2025-05-08 13:01:32,518 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-08 13:01:32,538 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-05659247', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-05659247?flat'} 2025-05-08 13:01:32,539 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-05659247 is found in opserver 2025-05-08 13:01:32,551 - DEBUG - Do not have enough data to verify VN in agent 2025-05-08 13:01:32,557 - DEBUG - VRF ids for VN ctest-vn-05659247: {} 2025-05-08 13:01:32,676 - DEBUG - Services list from nova: [, , ] 2025-05-08 13:01:34,100 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3289-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3289-1) 2025-05-08 13:01:35,654 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3289-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3289-1) 2025-05-08 13:01:35,654 - INFO - Waiting for VM ctest-TestBasicPolicy-27957291-96691333 to be up.. 2025-05-08 13:01:35,773 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-08 13:01:40,971 - DEBUG - VM is in ACTIVE state now 2025-05-08 13:01:40,971 - INFO - VM name : ctest-TestBasicPolicy-27957291-96691333 2025-05-08 13:01:41,104 - DEBUG - VM ctest-TestBasicPolicy-27957291-96691333 ID is 628ba681-a146-470c-afa6-c52029b7648f 2025-05-08 13:01:41,141 - DEBUG - VM ctest-TestBasicPolicy-27957291-96691333 launched on Node cn-jenkins-deploy-platform-ansible-os-3289-1 2025-05-08 13:01:41,284 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/628ba681-a146-470c-afa6-c52029b7648f 2025-05-08 13:01:41,304 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/299ff5f3-5b8e-435d-a3be-6aee42469ab4 2025-05-08 13:01:44,608 - 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 1032ms') 2025-05-08 13:01:44,609 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27957291-96691333 failed! 2025-05-08 13:01:44,682 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27957291:ctest-vn-12835939 is 44.69.252.1 and allocation pool is NOT set 2025-05-08 13:01:46,760 - 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=5.89 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.44 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 = 3.442/4.664/5.887/1.222 ms') 2025-05-08 13:01:46,760 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27957291-96691333 passed 2025-05-08 13:01:46,930 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-08 13:01:46,930 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27957291-96691333, IP 44.69.252.3, Port 22 2025-05-08 13:01:47,002 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-05-08 13:01:47,156 - DEBUG - VM ctest-TestBasicPolicy-27957291-96691333 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-08 13:01:52,157 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-08 13:01:52,157 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27957291-96691333, IP 44.69.252.3, Port 22 2025-05-08 13:01:52,339 - DEBUG - VM ctest-TestBasicPolicy-27957291-96691333 is ready for SSH connections 2025-05-08 13:01:52,340 - INFO - Waiting for VM ctest-TestBasicPolicy-27957291-32385898 to be up.. 2025-05-08 13:01:52,514 - DEBUG - VM is in ACTIVE state now 2025-05-08 13:01:52,514 - INFO - VM name : ctest-TestBasicPolicy-27957291-32385898 2025-05-08 13:01:52,672 - DEBUG - VM ctest-TestBasicPolicy-27957291-32385898 ID is d3c35df3-04d5-4840-a1f9-56ef0475252f 2025-05-08 13:01:52,672 - DEBUG - VM ctest-TestBasicPolicy-27957291-32385898 launched on Node cn-jenkins-deploy-platform-ansible-os-3289-1 2025-05-08 13:01:52,786 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/d3c35df3-04d5-4840-a1f9-56ef0475252f 2025-05-08 13:01:52,800 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/c88422aa-0ebf-48b0-8e01-653259c63d8e 2025-05-08 13:01:54,107 - 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=10.3 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.585 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.585/5.433/10.282/4.848 ms') 2025-05-08 13:01:54,108 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-27957291-32385898 passed 2025-05-08 13:01:54,295 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-08 13:01:54,296 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27957291-32385898, IP 48.152.196.195, Port 22 2025-05-08 13:01:54,505 - DEBUG - VM ctest-TestBasicPolicy-27957291-32385898 is ready for SSH connections 2025-05-08 13:01:54,506 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-08 13:01:54,506 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 48.152.196.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-08 13:01:54,506 - DEBUG - ping -s 56 -c 3 -W 1 48.152.196.195 2025-05-08 13:01:58,803 - DEBUG - PING 48.152.196.195 (48.152.196.195): 56 data bytes 64 bytes from 48.152.196.195: seq=0 ttl=63 time=4.649 ms 64 bytes from 48.152.196.195: seq=1 ttl=63 time=1.388 ms 64 bytes from 48.152.196.195: seq=2 ttl=63 time=1.542 ms --- 48.152.196.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.388/2.526/4.649 ms 2025-05-08 13:01:58,804 - INFO - Ping to IP 48.152.196.195 from VM ctest-TestBasicPolicy-27957291-96691333 passed 2025-05-08 13:01:59,030 - DEBUG - Policy Update Response {"network-policy": {"uuid": "dfb2ddc8-ee01-4ac2-b5d4-2104eb7cf2d0", "href": "http://10.0.0.254:8082/network-policy/dfb2ddc8-ee01-4ac2-b5d4-2104eb7cf2d0"}} 2025-05-08 13:01:59,030 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-08 13:01:59,031 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 48.152.196.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-08 13:01:59,031 - DEBUG - ping -s 56 -c 3 -W 1 48.152.196.195 2025-05-08 13:02:02,307 - DEBUG - PING 48.152.196.195 (48.152.196.195): 56 data bytes --- 48.152.196.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-08 13:02:02,307 - WARNING - Ping to IP 48.152.196.195 from VM ctest-TestBasicPolicy-27957291-96691333 failed 2025-05-08 13:02:02,307 - INFO - Deleting VM ctest-TestBasicPolicy-27957291-32385898 2025-05-08 13:02:02,454 - INFO - Deleting VM ctest-TestBasicPolicy-27957291-96691333 2025-05-08 13:02:02,982 - INFO - Deleted policy ctest-policy-allow-all-80248743 2025-05-08 13:02:02,985 - INFO - Deleting VN ctest-vn-05659247 2025-05-08 13:02:03,026 - DEBUG - VN e2a48668-9056-4c6d-b567-af0feb0471f0 still in use: Unable to complete operation on network e2a48668-9056-4c6d-b567-af0feb0471f0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-669185ea-6d92-4739-9d35-c1605251cbad'] 2025-05-08 13:02:03,026 - WARNING - Deleting VN ctest-vn-05659247 failed..Will retry 2025-05-08 13:02:05,245 - DEBUG - Response for deleting network () 2025-05-08 13:02:05,245 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0274ce3d-3ebe-4cd3-9f74-0149235c1d1c 2025-05-08 13:02:05,254 - DEBUG - Response Code: 404 2025-05-08 13:02:05,255 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-08 13:02:05,266 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6dbd8e98-e16f-47a1-ac74-571ca035b53c 2025-05-08 13:02:05,290 - DEBUG - Requesting: http://10.0.0.254:8082/project/02ee8b3f-2020-4295-8f4e-3ec779ac71a7 2025-05-08 13:02:05,378 - INFO - Validated that VN ctest-vn-05659247 is not found in API Server 2025-05-08 13:02:05,395 - DEBUG - VN ctest-vn-05659247 is not present in Agent 10.0.0.254 2025-05-08 13:02:05,396 - INFO - Validated that VN ctest-vn-05659247 is not in any agent 2025-05-08 13:02:05,423 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-05659247 info 2025-05-08 13:02:05,424 - INFO - Deleting VN ctest-vn-12835939 2025-05-08 13:02:05,570 - DEBUG - Response for deleting network () 2025-05-08 13:02:05,570 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/657d8a2d-f3a7-41ee-9b78-7066c228dadd 2025-05-08 13:02:05,578 - DEBUG - Response Code: 404 2025-05-08 13:02:05,579 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-08 13:02:05,586 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6dbd8e98-e16f-47a1-ac74-571ca035b53c 2025-05-08 13:02:05,649 - DEBUG - Requesting: http://10.0.0.254:8082/project/02ee8b3f-2020-4295-8f4e-3ec779ac71a7 2025-05-08 13:02:05,780 - INFO - Validated that VN ctest-vn-12835939 is not found in API Server 2025-05-08 13:02:05,811 - DEBUG - VN ctest-vn-12835939 is not present in Agent 10.0.0.254 2025-05-08 13:02:05,812 - INFO - Validated that VN ctest-vn-12835939 is not in any agent 2025-05-08 13:02:05,867 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-12835939 info 2025-05-08 13:02:06,207 - DEBUG - No XMPP flaps were noticed during the test 2025-05-08 13:02:06,208 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39] 2025-05-08 13:02:06,208 - INFO - -------------------------------------------------------------------------------- 2025-05-08 13:02:07,022 - INFO - Deleted project: ctest-TestBasicPolicy-27957291, ID : 02ee8b3f-2020-4295-8f4e-3ec779ac71a7