2025-05-17 14:41:24,823 - INFO - Domain Default found not creating 2025-05-17 14:41:25,091 - INFO - Project ctest-TestBasicPolicy-16380380 not found, creating it 2025-05-17 14:41:25,765 - INFO - Created Project:ctest-TestBasicPolicy-16380380, ID : c39f3664-f084-4a69-ad23-22de87617a10 2025-05-17 14:41:28,036 - INFO - ================================================================================ 2025-05-17 14:41:28,036 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-17 14:41:28,037 - 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-17 14:41:28,352 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-05-17 14:41:28,353 - INFO - Initial checks done. Running the testcase now 2025-05-17 14:41:28,353 - INFO - 2025-05-17 14:41:29,180 - DEBUG - Response for create_network : {'network': {'id': '58f03acf-23f4-4327-b1ad-25db46f2bc53', 'name': 'ctest-vn-03595835', 'tenant_id': 'c39f3664f0844a69ad2322de87617a10', 'project_id': 'c39f3664f0844a69ad2322de87617a10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16380380', 'ctest-vn-03595835'], 'port_security_enabled': True, 'description': ''}} 2025-05-17 14:41:29,356 - DEBUG - Response for create_subnet : {'subnet': {'id': '5604ea5d-b3bd-45d5-a149-f058f49baa19', 'name': '', 'tenant_id': 'c39f3664f0844a69ad2322de87617a10', 'network_id': '58f03acf-23f4-4327-b1ad-25db46f2bc53', 'ip_version': 4, 'cidr': '180.21.139.192/26', 'allocation_pools': [{'start': '180.21.139.194', 'end': '180.21.139.254'}], 'gateway_ip': '180.21.139.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.21.139.194', 'tags': [], 'project_id': 'c39f3664f0844a69ad2322de87617a10'}} 2025-05-17 14:41:29,378 - INFO - Created VN ctest-vn-03595835 2025-05-17 14:41:29,437 - DEBUG - VN ctest-vn-03595835 UUID is 58f03acf-23f4-4327-b1ad-25db46f2bc53 2025-05-17 14:41:29,882 - DEBUG - Response for create_network : {'network': {'id': 'd839e318-435a-4712-a3bb-3e866b3787e8', 'name': 'ctest-vn-07845662', 'tenant_id': 'c39f3664f0844a69ad2322de87617a10', 'project_id': 'c39f3664f0844a69ad2322de87617a10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16380380', 'ctest-vn-07845662'], 'port_security_enabled': True, 'description': ''}} 2025-05-17 14:41:30,111 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c648d29-4b94-4786-bb2b-e7c2fba8e742', 'name': '', 'tenant_id': 'c39f3664f0844a69ad2322de87617a10', 'network_id': 'd839e318-435a-4712-a3bb-3e866b3787e8', 'ip_version': 4, 'cidr': '211.233.72.192/26', 'allocation_pools': [{'start': '211.233.72.194', 'end': '211.233.72.254'}], 'gateway_ip': '211.233.72.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.233.72.194', 'tags': [], 'project_id': 'c39f3664f0844a69ad2322de87617a10'}} 2025-05-17 14:41:30,137 - INFO - Created VN ctest-vn-07845662 2025-05-17 14:41:30,192 - DEBUG - VN ctest-vn-07845662 UUID is d839e318-435a-4712-a3bb-3e866b3787e8 2025-05-17 14:41:30,381 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-03595835, 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-16380380:ctest-vn-07845662, 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-17 14:41:30,816 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58f03acf-23f4-4327-b1ad-25db46f2bc53', 'name': 'ctest-vn-03595835', 'tenant_id': 'c39f3664f0844a69ad2322de87617a10', 'project_id': 'c39f3664f0844a69ad2322de87617a10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5604ea5d-b3bd-45d5-a149-f058f49baa19'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16380380', 'ctest-vn-03595835'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16380380', 'ctest-policy-allow-all-12404068']], 'subnet_ipam': [{'subnet_cidr': '180.21.139.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-17 14:41:31,195 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd839e318-435a-4712-a3bb-3e866b3787e8', 'name': 'ctest-vn-07845662', 'tenant_id': 'c39f3664f0844a69ad2322de87617a10', 'project_id': 'c39f3664f0844a69ad2322de87617a10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c648d29-4b94-4786-bb2b-e7c2fba8e742'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16380380', 'ctest-vn-07845662'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16380380', 'ctest-policy-allow-all-12404068']], 'subnet_ipam': [{'subnet_cidr': '211.233.72.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-17 14:41:31,409 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-17 14:41:31,750 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-17 14:41:31,801 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8d766ad7-d914-4dfb-b8ed-c53ffb0a7ff1 2025-05-17 14:41:31,845 - DEBUG - Requesting: http://10.0.0.38:8082/project/c39f3664-f084-4a69-ad23-22de87617a10 2025-05-17 14:41:31,969 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58f03acf-23f4-4327-b1ad-25db46f2bc53 2025-05-17 14:41:31,993 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58f03acf-23f4-4327-b1ad-25db46f2bc53 2025-05-17 14:41:32,015 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d21bd9ee-fff0-4e9f-8abb-6fa799e9446a 2025-05-17 14:41:32,033 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d21bd9ee-fff0-4e9f-8abb-6fa799e9446a 2025-05-17 14:41:32,049 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3a4cd4cd-c070-4ddf-8e6c-75724bfc0105 2025-05-17 14:41:32,063 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-17 14:41:32,063 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58f03acf-23f4-4327-b1ad-25db46f2bc53 2025-05-17 14:41:32,091 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d21bd9ee-fff0-4e9f-8abb-6fa799e9446a 2025-05-17 14:41:32,131 - INFO - Verified VN network id 7 for VN 58f03acf-23f4-4327-b1ad-25db46f2bc53 2025-05-17 14:41:32,131 - INFO - Verifications in API Server for VN ctest-vn-03595835 passed 2025-05-17 14:41:32,131 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58f03acf-23f4-4327-b1ad-25db46f2bc53 2025-05-17 14:41:32,149 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d21bd9ee-fff0-4e9f-8abb-6fa799e9446a 2025-05-17 14:41:32,162 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d21bd9ee-fff0-4e9f-8abb-6fa799e9446a 2025-05-17 14:41:32,175 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3a4cd4cd-c070-4ddf-8e6c-75724bfc0105 2025-05-17 14:41:32,199 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-03595835', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16380380', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6408686931084067623', 'uuid-lslong': '12802930939402566739'}, 'enable': 'true', 'created': '2025-05-17T14:41:29', 'last-modified': '2025-05-17T14:41:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.438119'} 2025-05-17 14:41:32,213 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-17 14:41:32,213 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03595835 passed 2025-05-17 14:41:32,214 - DEBUG - ====Verifying policy data for ctest-vn-03595835 in API_Server ====== 2025-05-17 14:41:32,214 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-17 14:41:32,223 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8d766ad7-d914-4dfb-b8ed-c53ffb0a7ff1 2025-05-17 14:41:32,241 - DEBUG - Requesting: http://10.0.0.38:8082/project/c39f3664-f084-4a69-ad23-22de87617a10 2025-05-17 14:41:32,341 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58f03acf-23f4-4327-b1ad-25db46f2bc53 2025-05-17 14:41:32,366 - DEBUG - ==>Verifying data for policy with id: 87855f39-c0bc-47ad-9986-52a61e9f299e, fqn: ['default-domain', 'ctest-TestBasicPolicy-16380380', 'ctest-policy-allow-all-12404068'] 2025-05-17 14:41:32,366 - INFO - VN ctest-vn-03595835 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-17 14:41:32,367 - DEBUG - Verifying the vn in opserver 2025-05-17 14:41:32,367 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-03595835 virtual network link through opserver 10.0.0.38 2025-05-17 14:41:32,367 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-05-17 14:41:32,726 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-05-17 14:41:32,865 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-03595835', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-03595835?flat'} 2025-05-17 14:41:32,865 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-03595835 is found in opserver 2025-05-17 14:41:32,905 - DEBUG - Do not have enough data to verify VN in agent 2025-05-17 14:41:32,936 - DEBUG - VRF ids for VN ctest-vn-03595835: {} 2025-05-17 14:41:32,936 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-17 14:41:32,955 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8d766ad7-d914-4dfb-b8ed-c53ffb0a7ff1 2025-05-17 14:41:32,986 - DEBUG - Requesting: http://10.0.0.38:8082/project/c39f3664-f084-4a69-ad23-22de87617a10 2025-05-17 14:41:33,117 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d839e318-435a-4712-a3bb-3e866b3787e8 2025-05-17 14:41:33,150 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d839e318-435a-4712-a3bb-3e866b3787e8 2025-05-17 14:41:33,171 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5abb4df7-9be4-486c-9df9-8cd88f97f2af 2025-05-17 14:41:33,187 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5abb4df7-9be4-486c-9df9-8cd88f97f2af 2025-05-17 14:41:33,203 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/43be55ff-f6de-40d1-95a0-98cbe342ad12 2025-05-17 14:41:33,216 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-17 14:41:33,216 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d839e318-435a-4712-a3bb-3e866b3787e8 2025-05-17 14:41:33,232 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5abb4df7-9be4-486c-9df9-8cd88f97f2af 2025-05-17 14:41:33,263 - INFO - Verified VN network id 8 for VN d839e318-435a-4712-a3bb-3e866b3787e8 2025-05-17 14:41:33,264 - INFO - Verifications in API Server for VN ctest-vn-07845662 passed 2025-05-17 14:41:33,264 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d839e318-435a-4712-a3bb-3e866b3787e8 2025-05-17 14:41:33,278 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5abb4df7-9be4-486c-9df9-8cd88f97f2af 2025-05-17 14:41:33,287 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5abb4df7-9be4-486c-9df9-8cd88f97f2af 2025-05-17 14:41:33,296 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/43be55ff-f6de-40d1-95a0-98cbe342ad12 2025-05-17 14:41:33,317 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-07845662', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16380380', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15580734079213651730', 'uuid-lslong': '11798092395872487400'}, 'enable': 'true', 'created': '2025-05-17T14:41:29', 'last-modified': '2025-05-17T14:41:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.171517'} 2025-05-17 14:41:33,326 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-17 14:41:33,326 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07845662 passed 2025-05-17 14:41:33,327 - DEBUG - ====Verifying policy data for ctest-vn-07845662 in API_Server ====== 2025-05-17 14:41:33,327 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-17 14:41:33,335 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8d766ad7-d914-4dfb-b8ed-c53ffb0a7ff1 2025-05-17 14:41:33,348 - DEBUG - Requesting: http://10.0.0.38:8082/project/c39f3664-f084-4a69-ad23-22de87617a10 2025-05-17 14:41:33,465 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d839e318-435a-4712-a3bb-3e866b3787e8 2025-05-17 14:41:33,485 - DEBUG - ==>Verifying data for policy with id: 87855f39-c0bc-47ad-9986-52a61e9f299e, fqn: ['default-domain', 'ctest-TestBasicPolicy-16380380', 'ctest-policy-allow-all-12404068'] 2025-05-17 14:41:33,485 - INFO - VN ctest-vn-07845662 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-17 14:41:33,485 - DEBUG - Verifying the vn in opserver 2025-05-17 14:41:33,485 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-07845662 virtual network link through opserver 10.0.0.38 2025-05-17 14:41:33,485 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-05-17 14:41:33,511 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-07845662', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-07845662?flat'} 2025-05-17 14:41:33,511 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-07845662 is found in opserver 2025-05-17 14:41:33,542 - DEBUG - Do not have enough data to verify VN in agent 2025-05-17 14:41:33,556 - DEBUG - VRF ids for VN ctest-vn-07845662: {} 2025-05-17 14:41:33,666 - DEBUG - Services list from nova: [, , ] 2025-05-17 14:41:35,079 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3322-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3322-1) 2025-05-17 14:41:36,554 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3322-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3322-1) 2025-05-17 14:41:36,554 - INFO - Waiting for VM ctest-TestBasicPolicy-16380380-56134135 to be up.. 2025-05-17 14:41:36,689 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-17 14:41:41,871 - DEBUG - VM is in ACTIVE state now 2025-05-17 14:41:41,872 - INFO - VM name : ctest-TestBasicPolicy-16380380-56134135 2025-05-17 14:41:42,037 - DEBUG - VM ctest-TestBasicPolicy-16380380-56134135 ID is 88e69ed8-5c0b-4e05-8f18-75759ba5b588 2025-05-17 14:41:42,080 - DEBUG - VM ctest-TestBasicPolicy-16380380-56134135 launched on Node cn-jenkins-deploy-platform-ansible-os-3322-1 2025-05-17 14:41:42,263 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/88e69ed8-5c0b-4e05-8f18-75759ba5b588 2025-05-17 14:41:42,282 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/063b29c0-187c-44bb-8854-856ed5b680a6 2025-05-17 14:41:45,606 - 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 1023ms') 2025-05-17 14:41:45,606 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16380380-56134135 failed! 2025-05-17 14:41:45,673 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-03595835 is 180.21.139.193 and allocation pool is NOT set 2025-05-17 14:41:47,749 - 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=8.22 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.73 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 = 3.730/5.976/8.223/2.246 ms') 2025-05-17 14:41:47,749 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16380380-56134135 passed 2025-05-17 14:41:47,932 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-17 14:41:47,933 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16380380-56134135, IP 180.21.139.195, Port 22 2025-05-17 14:41:48,003 - 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-17 14:41:48,115 - DEBUG - VM ctest-TestBasicPolicy-16380380-56134135 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-17 14:41:53,116 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-17 14:41:53,116 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16380380-56134135, IP 180.21.139.195, Port 22 2025-05-17 14:41:53,313 - DEBUG - VM ctest-TestBasicPolicy-16380380-56134135 is ready for SSH connections 2025-05-17 14:41:53,313 - INFO - Waiting for VM ctest-TestBasicPolicy-16380380-61681392 to be up.. 2025-05-17 14:41:53,508 - DEBUG - VM is in ACTIVE state now 2025-05-17 14:41:53,508 - INFO - VM name : ctest-TestBasicPolicy-16380380-61681392 2025-05-17 14:41:53,705 - DEBUG - VM ctest-TestBasicPolicy-16380380-61681392 ID is 961353d7-3744-46e7-96e2-16635fa572fa 2025-05-17 14:41:53,705 - DEBUG - VM ctest-TestBasicPolicy-16380380-61681392 launched on Node cn-jenkins-deploy-platform-ansible-os-3322-1 2025-05-17 14:41:53,913 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/961353d7-3744-46e7-96e2-16635fa572fa 2025-05-17 14:41:53,932 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/1001e5fb-17dd-45c3-8a5c-e1353e7f8c96 2025-05-17 14:41:55,293 - 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.6 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.909 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.909/5.773/10.638/4.864 ms') 2025-05-17 14:41:55,293 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-16380380-61681392 passed 2025-05-17 14:41:55,489 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-17 14:41:55,490 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16380380-61681392, IP 211.233.72.195, Port 22 2025-05-17 14:41:55,696 - DEBUG - VM ctest-TestBasicPolicy-16380380-61681392 is ready for SSH connections 2025-05-17 14:41:55,696 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-17 14:41:55,696 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.233.72.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-17 14:41:55,697 - DEBUG - ping -s 56 -c 3 -W 1 211.233.72.195 2025-05-17 14:42:00,212 - DEBUG - PING 211.233.72.195 (211.233.72.195): 56 data bytes 64 bytes from 211.233.72.195: seq=0 ttl=63 time=9.232 ms 64 bytes from 211.233.72.195: seq=1 ttl=63 time=1.777 ms 64 bytes from 211.233.72.195: seq=2 ttl=63 time=1.402 ms --- 211.233.72.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.402/4.137/9.232 ms 2025-05-17 14:42:00,212 - INFO - Ping to IP 211.233.72.195 from VM ctest-TestBasicPolicy-16380380-56134135 passed 2025-05-17 14:42:00,420 - DEBUG - Policy Update Response {"network-policy": {"uuid": "87855f39-c0bc-47ad-9986-52a61e9f299e", "href": "http://10.0.0.38:8082/network-policy/87855f39-c0bc-47ad-9986-52a61e9f299e"}} 2025-05-17 14:42:00,420 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-17 14:42:00,421 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.233.72.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-17 14:42:00,421 - DEBUG - ping -s 56 -c 3 -W 1 211.233.72.195 2025-05-17 14:42:03,669 - DEBUG - PING 211.233.72.195 (211.233.72.195): 56 data bytes --- 211.233.72.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-17 14:42:03,670 - WARNING - Ping to IP 211.233.72.195 from VM ctest-TestBasicPolicy-16380380-56134135 failed 2025-05-17 14:42:03,670 - INFO - Deleting VM ctest-TestBasicPolicy-16380380-61681392 2025-05-17 14:42:03,778 - INFO - Deleting VM ctest-TestBasicPolicy-16380380-56134135 2025-05-17 14:42:04,249 - INFO - Deleted policy ctest-policy-allow-all-12404068 2025-05-17 14:42:04,249 - INFO - Deleting VN ctest-vn-07845662 2025-05-17 14:42:04,287 - DEBUG - VN d839e318-435a-4712-a3bb-3e866b3787e8 still in use: Unable to complete operation on network d839e318-435a-4712-a3bb-3e866b3787e8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3f37464e-f12c-41bb-a8e7-4aa5d4d7fd4b'] 2025-05-17 14:42:04,287 - WARNING - Deleting VN ctest-vn-07845662 failed..Will retry 2025-05-17 14:42:06,544 - DEBUG - Response for deleting network () 2025-05-17 14:42:06,545 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5abb4df7-9be4-486c-9df9-8cd88f97f2af 2025-05-17 14:42:06,561 - DEBUG - Response Code: 404 2025-05-17 14:42:06,561 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-17 14:42:06,571 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8d766ad7-d914-4dfb-b8ed-c53ffb0a7ff1 2025-05-17 14:42:06,594 - DEBUG - Requesting: http://10.0.0.38:8082/project/c39f3664-f084-4a69-ad23-22de87617a10 2025-05-17 14:42:06,709 - INFO - Validated that VN ctest-vn-07845662 is not found in API Server 2025-05-17 14:42:06,731 - DEBUG - VN ctest-vn-07845662 is not present in Agent 10.0.0.38 2025-05-17 14:42:06,731 - INFO - Validated that VN ctest-vn-07845662 is not in any agent 2025-05-17 14:42:06,760 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-07845662 info 2025-05-17 14:42:06,761 - INFO - Deleting VN ctest-vn-03595835 2025-05-17 14:42:06,908 - DEBUG - Response for deleting network () 2025-05-17 14:42:06,908 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d21bd9ee-fff0-4e9f-8abb-6fa799e9446a 2025-05-17 14:42:06,913 - DEBUG - Response Code: 404 2025-05-17 14:42:06,913 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-17 14:42:06,920 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8d766ad7-d914-4dfb-b8ed-c53ffb0a7ff1 2025-05-17 14:42:06,982 - DEBUG - Requesting: http://10.0.0.38:8082/project/c39f3664-f084-4a69-ad23-22de87617a10 2025-05-17 14:42:07,094 - INFO - Validated that VN ctest-vn-03595835 is not found in API Server 2025-05-17 14:42:07,113 - DEBUG - VN ctest-vn-03595835 is not present in Agent 10.0.0.38 2025-05-17 14:42:07,113 - INFO - Validated that VN ctest-vn-03595835 is not in any agent 2025-05-17 14:42:07,149 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-03595835 info 2025-05-17 14:42:07,466 - DEBUG - No XMPP flaps were noticed during the test
2025-05-17 14:42:07,466 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39]
2025-05-17 14:42:07,466 - INFO - -------------------------------------------------------------------------------- 2025-05-17 14:42:08,333 - INFO - Deleted project: ctest-TestBasicPolicy-16380380, ID : c39f3664-f084-4a69-ad23-22de87617a10