2025-06-10 12:18:43,600 - INFO - Domain Default found not creating 2025-06-10 12:18:43,759 - INFO - Project ctest-TestBasicPolicy-13875376 not found, creating it 2025-06-10 12:18:44,292 - INFO - Created Project:ctest-TestBasicPolicy-13875376, ID : 1a59d226-217b-41b3-8510-76cea96fe520 2025-06-10 12:18:45,939 - INFO - ================================================================================ 2025-06-10 12:18:45,940 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-10 12:18:45,940 - 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-10 12:18:46,200 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-06-10 12:18:46,200 - INFO - Initial checks done. Running the testcase now 2025-06-10 12:18:46,200 - INFO - 2025-06-10 12:18:46,812 - DEBUG - Response for create_network : {'network': {'id': 'd2998e7e-196b-4140-a7c0-a4d546bb46ee', 'name': 'ctest-vn-67581859', 'tenant_id': '1a59d226217b41b3851076cea96fe520', 'project_id': '1a59d226217b41b3851076cea96fe520', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13875376', 'ctest-vn-67581859'], 'port_security_enabled': True, 'description': ''}} 2025-06-10 12:18:47,037 - DEBUG - Response for create_subnet : {'subnet': {'id': '50ce5eb1-6354-4260-89b5-6dd89b7ade79', 'name': '', 'tenant_id': '1a59d226217b41b3851076cea96fe520', 'network_id': 'd2998e7e-196b-4140-a7c0-a4d546bb46ee', 'ip_version': 4, 'cidr': '163.233.5.0/26', 'allocation_pools': [{'start': '163.233.5.2', 'end': '163.233.5.62'}], 'gateway_ip': '163.233.5.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.233.5.2', 'tags': [], 'project_id': '1a59d226217b41b3851076cea96fe520'}} 2025-06-10 12:18:47,061 - INFO - Created VN ctest-vn-67581859 2025-06-10 12:18:47,117 - DEBUG - VN ctest-vn-67581859 UUID is d2998e7e-196b-4140-a7c0-a4d546bb46ee 2025-06-10 12:18:47,453 - DEBUG - Response for create_network : {'network': {'id': '8fa0deb2-24d1-4633-ace2-d6d77a1fd7bf', 'name': 'ctest-vn-79141320', 'tenant_id': '1a59d226217b41b3851076cea96fe520', 'project_id': '1a59d226217b41b3851076cea96fe520', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13875376', 'ctest-vn-79141320'], 'port_security_enabled': True, 'description': ''}} 2025-06-10 12:18:47,655 - DEBUG - Response for create_subnet : {'subnet': {'id': '31e94865-c6c6-4896-8a06-78217ef36481', 'name': '', 'tenant_id': '1a59d226217b41b3851076cea96fe520', 'network_id': '8fa0deb2-24d1-4633-ace2-d6d77a1fd7bf', 'ip_version': 4, 'cidr': '139.251.29.192/26', 'allocation_pools': [{'start': '139.251.29.194', 'end': '139.251.29.254'}], 'gateway_ip': '139.251.29.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.251.29.194', 'tags': [], 'project_id': '1a59d226217b41b3851076cea96fe520'}} 2025-06-10 12:18:47,675 - INFO - Created VN ctest-vn-79141320 2025-06-10 12:18:47,729 - DEBUG - VN ctest-vn-79141320 UUID is 8fa0deb2-24d1-4633-ace2-d6d77a1fd7bf 2025-06-10 12:18:47,849 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13875376:ctest-vn-67581859, 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-13875376:ctest-vn-79141320, 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-10 12:18:48,176 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd2998e7e-196b-4140-a7c0-a4d546bb46ee', 'name': 'ctest-vn-67581859', 'tenant_id': '1a59d226217b41b3851076cea96fe520', 'project_id': '1a59d226217b41b3851076cea96fe520', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['50ce5eb1-6354-4260-89b5-6dd89b7ade79'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13875376', 'ctest-vn-67581859'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13875376', 'ctest-policy-allow-all-62697427']], 'subnet_ipam': [{'subnet_cidr': '163.233.5.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-10 12:18:48,420 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8fa0deb2-24d1-4633-ace2-d6d77a1fd7bf', 'name': 'ctest-vn-79141320', 'tenant_id': '1a59d226217b41b3851076cea96fe520', 'project_id': '1a59d226217b41b3851076cea96fe520', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['31e94865-c6c6-4896-8a06-78217ef36481'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13875376', 'ctest-vn-79141320'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13875376', 'ctest-policy-allow-all-62697427']], 'subnet_ipam': [{'subnet_cidr': '139.251.29.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-10 12:18:48,585 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-10 12:18:48,953 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-10 12:18:48,985 - DEBUG - Requesting: http://10.0.0.38:8082/domain/32ed8e8d-8da7-4822-905e-61c439a8ba7c 2025-06-10 12:18:49,001 - DEBUG - Requesting: http://10.0.0.38:8082/project/1a59d226-217b-41b3-8510-76cea96fe520 2025-06-10 12:18:49,081 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d2998e7e-196b-4140-a7c0-a4d546bb46ee 2025-06-10 12:18:49,095 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d2998e7e-196b-4140-a7c0-a4d546bb46ee 2025-06-10 12:18:49,106 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a57d84b-6dc2-408a-ae1e-5bf21a286da7 2025-06-10 12:18:49,115 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a57d84b-6dc2-408a-ae1e-5bf21a286da7 2025-06-10 12:18:49,125 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/12487932-3059-4299-bfb5-59f45eb990ea 2025-06-10 12:18:49,133 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-10 12:18:49,133 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d2998e7e-196b-4140-a7c0-a4d546bb46ee 2025-06-10 12:18:49,145 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a57d84b-6dc2-408a-ae1e-5bf21a286da7 2025-06-10 12:18:49,161 - INFO - Verified VN network id 9 for VN d2998e7e-196b-4140-a7c0-a4d546bb46ee 2025-06-10 12:18:49,161 - INFO - Verifications in API Server for VN ctest-vn-67581859 passed 2025-06-10 12:18:49,161 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d2998e7e-196b-4140-a7c0-a4d546bb46ee 2025-06-10 12:18:49,175 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a57d84b-6dc2-408a-ae1e-5bf21a286da7 2025-06-10 12:18:49,184 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a57d84b-6dc2-408a-ae1e-5bf21a286da7 2025-06-10 12:18:49,193 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/12487932-3059-4299-bfb5-59f45eb990ea 2025-06-10 12:18:49,207 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13875376:ctest-vn-67581859', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13875376', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15175317091645079872', 'uuid-lslong': '12087842635784079086'}, 'enable': 'true', 'created': '2025-06-10T12:18:46', 'last-modified': '2025-06-10T12:18:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.070068'} 2025-06-10 12:18:49,214 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-10 12:18:49,215 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67581859 passed 2025-06-10 12:18:49,215 - DEBUG - ====Verifying policy data for ctest-vn-67581859 in API_Server ====== 2025-06-10 12:18:49,215 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-10 12:18:49,221 - DEBUG - Requesting: http://10.0.0.38:8082/domain/32ed8e8d-8da7-4822-905e-61c439a8ba7c 2025-06-10 12:18:49,236 - DEBUG - Requesting: http://10.0.0.38:8082/project/1a59d226-217b-41b3-8510-76cea96fe520 2025-06-10 12:18:49,322 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d2998e7e-196b-4140-a7c0-a4d546bb46ee 2025-06-10 12:18:49,333 - DEBUG - ==>Verifying data for policy with id: 82940efb-c6ab-48ce-9871-2cacd7e87cda, fqn: ['default-domain', 'ctest-TestBasicPolicy-13875376', 'ctest-policy-allow-all-62697427'] 2025-06-10 12:18:49,333 - INFO - VN ctest-vn-67581859 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-10 12:18:49,333 - DEBUG - Verifying the vn in opserver 2025-06-10 12:18:49,333 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13875376:ctest-vn-67581859 virtual network link through opserver 10.0.0.38 2025-06-10 12:18:49,334 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-10 12:18:49,666 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-10 12:18:49,727 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13875376:ctest-vn-67581859', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13875376:ctest-vn-67581859?flat'} 2025-06-10 12:18:49,727 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13875376:ctest-vn-67581859 is found in opserver 2025-06-10 12:18:49,739 - DEBUG - Do not have enough data to verify VN in agent 2025-06-10 12:18:49,744 - DEBUG - VRF ids for VN ctest-vn-67581859: {} 2025-06-10 12:18:49,744 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-10 12:18:49,752 - DEBUG - Requesting: http://10.0.0.38:8082/domain/32ed8e8d-8da7-4822-905e-61c439a8ba7c 2025-06-10 12:18:49,769 - DEBUG - Requesting: http://10.0.0.38:8082/project/1a59d226-217b-41b3-8510-76cea96fe520 2025-06-10 12:18:49,845 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8fa0deb2-24d1-4633-ace2-d6d77a1fd7bf 2025-06-10 12:18:49,859 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8fa0deb2-24d1-4633-ace2-d6d77a1fd7bf 2025-06-10 12:18:49,870 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3d477cfb-241c-4825-87cb-2aaa9510e613 2025-06-10 12:18:49,878 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3d477cfb-241c-4825-87cb-2aaa9510e613 2025-06-10 12:18:49,887 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b787170c-af52-476d-95ee-7cc8ff3ca3a1 2025-06-10 12:18:49,895 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-10 12:18:49,895 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8fa0deb2-24d1-4633-ace2-d6d77a1fd7bf 2025-06-10 12:18:49,907 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3d477cfb-241c-4825-87cb-2aaa9510e613 2025-06-10 12:18:49,925 - INFO - Verified VN network id 10 for VN 8fa0deb2-24d1-4633-ace2-d6d77a1fd7bf 2025-06-10 12:18:49,925 - INFO - Verifications in API Server for VN ctest-vn-79141320 passed 2025-06-10 12:18:49,925 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8fa0deb2-24d1-4633-ace2-d6d77a1fd7bf 2025-06-10 12:18:49,936 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3d477cfb-241c-4825-87cb-2aaa9510e613 2025-06-10 12:18:49,945 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3d477cfb-241c-4825-87cb-2aaa9510e613 2025-06-10 12:18:49,955 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b787170c-af52-476d-95ee-7cc8ff3ca3a1 2025-06-10 12:18:49,971 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13875376:ctest-vn-79141320', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13875376', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10349516800400639539', 'uuid-lslong': '12457755740215433151'}, 'enable': 'true', 'created': '2025-06-10T12:18:47', 'last-modified': '2025-06-10T12:18:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.582845'} 2025-06-10 12:18:49,979 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-10 12:18:49,979 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79141320 passed 2025-06-10 12:18:49,979 - DEBUG - ====Verifying policy data for ctest-vn-79141320 in API_Server ====== 2025-06-10 12:18:49,979 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-10 12:18:49,985 - DEBUG - Requesting: http://10.0.0.38:8082/domain/32ed8e8d-8da7-4822-905e-61c439a8ba7c 2025-06-10 12:18:50,000 - DEBUG - Requesting: http://10.0.0.38:8082/project/1a59d226-217b-41b3-8510-76cea96fe520 2025-06-10 12:18:50,085 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8fa0deb2-24d1-4633-ace2-d6d77a1fd7bf 2025-06-10 12:18:50,099 - DEBUG - ==>Verifying data for policy with id: 82940efb-c6ab-48ce-9871-2cacd7e87cda, fqn: ['default-domain', 'ctest-TestBasicPolicy-13875376', 'ctest-policy-allow-all-62697427'] 2025-06-10 12:18:50,099 - INFO - VN ctest-vn-79141320 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-10 12:18:50,099 - DEBUG - Verifying the vn in opserver 2025-06-10 12:18:50,099 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13875376:ctest-vn-79141320 virtual network link through opserver 10.0.0.38 2025-06-10 12:18:50,099 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-06-10 12:18:50,111 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13875376:ctest-vn-79141320', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13875376:ctest-vn-79141320?flat'} 2025-06-10 12:18:50,111 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13875376:ctest-vn-79141320 is found in opserver 2025-06-10 12:18:50,124 - DEBUG - Do not have enough data to verify VN in agent 2025-06-10 12:18:50,130 - DEBUG - VRF ids for VN ctest-vn-79141320: {} 2025-06-10 12:18:50,201 - DEBUG - Services list from nova: [, , ] 2025-06-10 12:18:51,379 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3431-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3431-1) 2025-06-10 12:18:52,969 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3431-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3431-1) 2025-06-10 12:18:52,970 - INFO - Waiting for VM ctest-TestBasicPolicy-13875376-62434309 to be up.. 2025-06-10 12:18:53,058 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-10 12:18:58,145 - DEBUG - VM is in ACTIVE state now 2025-06-10 12:18:58,145 - INFO - VM name : ctest-TestBasicPolicy-13875376-62434309 2025-06-10 12:18:58,232 - DEBUG - VM ctest-TestBasicPolicy-13875376-62434309 ID is 3c90c64c-c4b7-4e2b-b76d-5300cf9fdf0a 2025-06-10 12:18:58,253 - DEBUG - VM ctest-TestBasicPolicy-13875376-62434309 launched on Node cn-jenkins-deploy-platform-ansible-os-3431-1 2025-06-10 12:18:58,342 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/3c90c64c-c4b7-4e2b-b76d-5300cf9fdf0a 2025-06-10 12:18:58,353 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/b39724b3-ad93-4203-b7b8-eb451ea00714 2025-06-10 12:19:01,627 - 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 1022ms') 2025-06-10 12:19:01,627 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13875376-62434309 failed! 2025-06-10 12:19:01,685 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-13875376:ctest-vn-67581859 is 163.233.5.1 and allocation pool is NOT set 2025-06-10 12:19:03,746 - 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.87 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.06 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 = 1.061/5.463/9.866/4.402 ms') 2025-06-10 12:19:03,746 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13875376-62434309 passed 2025-06-10 12:19:03,917 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 12:19:03,917 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13875376-62434309, IP 163.233.5.3, Port 22 2025-06-10 12:19:03,982 - 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-06-10 12:19:04,068 - DEBUG - VM ctest-TestBasicPolicy-13875376-62434309 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-10 12:19:09,071 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 12:19:09,071 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13875376-62434309, IP 163.233.5.3, Port 22 2025-06-10 12:19:09,232 - DEBUG - VM ctest-TestBasicPolicy-13875376-62434309 is ready for SSH connections 2025-06-10 12:19:09,232 - INFO - Waiting for VM ctest-TestBasicPolicy-13875376-98136652 to be up.. 2025-06-10 12:19:09,317 - DEBUG - VM is in ACTIVE state now 2025-06-10 12:19:09,317 - INFO - VM name : ctest-TestBasicPolicy-13875376-98136652 2025-06-10 12:19:09,403 - DEBUG - VM ctest-TestBasicPolicy-13875376-98136652 ID is c77465a0-6f14-4ea4-a095-2bc3f1a57b4a 2025-06-10 12:19:09,403 - DEBUG - VM ctest-TestBasicPolicy-13875376-98136652 launched on Node cn-jenkins-deploy-platform-ansible-os-3431-1 2025-06-10 12:19:09,485 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/c77465a0-6f14-4ea4-a095-2bc3f1a57b4a 2025-06-10 12:19:09,496 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/4f4dad16-09f4-4707-9358-6934409d19cd 2025-06-10 12:19:10,738 - 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=4.05 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.380 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.380/2.215/4.051/1.835 ms') 2025-06-10 12:19:10,738 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-13875376-98136652 passed 2025-06-10 12:19:10,897 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 12:19:10,897 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13875376-98136652, IP 139.251.29.195, Port 22 2025-06-10 12:19:11,063 - DEBUG - VM ctest-TestBasicPolicy-13875376-98136652 is ready for SSH connections 2025-06-10 12:19:11,063 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 12:19:11,063 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 139.251.29.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-10 12:19:11,063 - DEBUG - ping -s 56 -c 3 -W 1 139.251.29.195 2025-06-10 12:19:15,123 - DEBUG - PING 139.251.29.195 (139.251.29.195): 56 data bytes 64 bytes from 139.251.29.195: seq=0 ttl=63 time=3.705 ms 64 bytes from 139.251.29.195: seq=1 ttl=63 time=1.180 ms 64 bytes from 139.251.29.195: seq=2 ttl=63 time=0.845 ms --- 139.251.29.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.845/1.910/3.705 ms 2025-06-10 12:19:15,124 - INFO - Ping to IP 139.251.29.195 from VM ctest-TestBasicPolicy-13875376-62434309 passed 2025-06-10 12:19:15,305 - DEBUG - Policy Update Response {"network-policy": {"uuid": "82940efb-c6ab-48ce-9871-2cacd7e87cda", "href": "http://10.0.0.38:8082/network-policy/82940efb-c6ab-48ce-9871-2cacd7e87cda"}} 2025-06-10 12:19:15,305 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-10 12:19:15,305 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 139.251.29.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-06-10 12:19:15,305 - DEBUG - ping -s 56 -c 3 -W 1 139.251.29.195 2025-06-10 12:19:18,535 - DEBUG - PING 139.251.29.195 (139.251.29.195): 56 data bytes 64 bytes from 139.251.29.195: seq=0 ttl=63 time=1.578 ms --- 139.251.29.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.578/1.578/1.578 ms 2025-06-10 12:19:18,535 - WARNING - Ping to IP 139.251.29.195 from VM ctest-TestBasicPolicy-13875376-62434309 failed 2025-06-10 12:19:18,535 - INFO - Deleting VM ctest-TestBasicPolicy-13875376-98136652 2025-06-10 12:19:18,616 - INFO - Deleting VM ctest-TestBasicPolicy-13875376-62434309 2025-06-10 12:19:19,053 - INFO - Deleted policy ctest-policy-allow-all-62697427 2025-06-10 12:19:19,053 - INFO - Deleting VN ctest-vn-79141320 2025-06-10 12:19:19,098 - DEBUG - VN 8fa0deb2-24d1-4633-ace2-d6d77a1fd7bf still in use: Unable to complete operation on network 8fa0deb2-24d1-4633-ace2-d6d77a1fd7bf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-66f00a9a-0679-4a73-8696-e1ebc2aebd76'] 2025-06-10 12:19:19,099 - WARNING - Deleting VN ctest-vn-79141320 failed..Will retry 2025-06-10 12:19:21,220 - DEBUG - Response for deleting network () 2025-06-10 12:19:21,220 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3d477cfb-241c-4825-87cb-2aaa9510e613 2025-06-10 12:19:21,229 - DEBUG - Response Code: 404 2025-06-10 12:19:21,230 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-10 12:19:21,236 - DEBUG - Requesting: http://10.0.0.38:8082/domain/32ed8e8d-8da7-4822-905e-61c439a8ba7c 2025-06-10 12:19:21,294 - DEBUG - Requesting: http://10.0.0.38:8082/project/1a59d226-217b-41b3-8510-76cea96fe520 2025-06-10 12:19:21,372 - INFO - Validated that VN ctest-vn-79141320 is not found in API Server 2025-06-10 12:19:21,387 - DEBUG - VN ctest-vn-79141320 is not present in Agent 10.0.0.38 2025-06-10 12:19:21,387 - INFO - Validated that VN ctest-vn-79141320 is not in any agent 2025-06-10 12:19:21,406 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79141320 info 2025-06-10 12:19:21,406 - INFO - Deleting VN ctest-vn-67581859 2025-06-10 12:19:21,527 - DEBUG - Response for deleting network () 2025-06-10 12:19:21,527 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a57d84b-6dc2-408a-ae1e-5bf21a286da7 2025-06-10 12:19:21,535 - DEBUG - Response Code: 404 2025-06-10 12:19:21,535 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-06-10 12:19:21,542 - DEBUG - Requesting: http://10.0.0.38:8082/domain/32ed8e8d-8da7-4822-905e-61c439a8ba7c 2025-06-10 12:19:21,600 - DEBUG - Requesting: http://10.0.0.38:8082/project/1a59d226-217b-41b3-8510-76cea96fe520 2025-06-10 12:19:21,677 - INFO - Validated that VN ctest-vn-67581859 is not found in API Server 2025-06-10 12:19:21,692 - DEBUG - VN ctest-vn-67581859 is not present in Agent 10.0.0.38 2025-06-10 12:19:21,692 - INFO - Validated that VN ctest-vn-67581859 is not in any agent 2025-06-10 12:19:21,712 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-67581859 info 2025-06-10 12:19:21,991 - DEBUG - No XMPP flaps were noticed during the test
2025-06-10 12:19:21,991 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-06-10 12:19:21,991 - INFO - -------------------------------------------------------------------------------- 2025-06-10 12:19:22,722 - INFO - Deleted project: ctest-TestBasicPolicy-13875376, ID : 1a59d226-217b-41b3-8510-76cea96fe520