2025-07-31 12:09:27,893 - INFO - Domain Default found not creating 2025-07-31 12:09:28,053 - INFO - Project ctest-TestBasicPolicy-93189399 not found, creating it 2025-07-31 12:09:28,545 - INFO - Created Project:ctest-TestBasicPolicy-93189399, ID : c761b926-32ad-407c-90fd-ed578eb010da 2025-07-31 12:09:29,999 - INFO - ================================================================================ 2025-07-31 12:09:29,999 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-31 12:09:29,999 - 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-07-31 12:09:30,264 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-07-31 12:09:30,264 - INFO - Initial checks done. Running the testcase now 2025-07-31 12:09:30,264 - INFO - 2025-07-31 12:09:30,880 - DEBUG - Response for create_network : {'network': {'id': '3bd92f82-6e82-446f-8f7f-275971a05768', 'name': 'ctest-vn-97983468', 'tenant_id': 'c761b92632ad407c90fded578eb010da', 'project_id': 'c761b92632ad407c90fded578eb010da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93189399', 'ctest-vn-97983468'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 12:09:31,067 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cee9230d-e5a4-4576-83bb-bee2001dbea3', 'name': '', 'tenant_id': 'c761b92632ad407c90fded578eb010da', 'network_id': '3bd92f82-6e82-446f-8f7f-275971a05768', 'ip_version': 4, 'cidr': '84.165.122.0/26', 'allocation_pools': [{'start': '84.165.122.2', 'end': '84.165.122.62'}], 'gateway_ip': '84.165.122.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.165.122.2', 'tags': [], 'project_id': 'c761b92632ad407c90fded578eb010da'}} 2025-07-31 12:09:31,098 - INFO - Created VN ctest-vn-97983468 2025-07-31 12:09:31,159 - DEBUG - VN ctest-vn-97983468 UUID is 3bd92f82-6e82-446f-8f7f-275971a05768 2025-07-31 12:09:31,508 - DEBUG - Response for create_network : {'network': {'id': '24e9cccc-7ef1-4b34-85ea-8f3435837352', 'name': 'ctest-vn-32560263', 'tenant_id': 'c761b92632ad407c90fded578eb010da', 'project_id': 'c761b92632ad407c90fded578eb010da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93189399', 'ctest-vn-32560263'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 12:09:31,713 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0f3f15b-8041-444f-82c0-e140d65a2138', 'name': '', 'tenant_id': 'c761b92632ad407c90fded578eb010da', 'network_id': '24e9cccc-7ef1-4b34-85ea-8f3435837352', 'ip_version': 4, 'cidr': '67.173.242.0/26', 'allocation_pools': [{'start': '67.173.242.2', 'end': '67.173.242.62'}], 'gateway_ip': '67.173.242.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.173.242.2', 'tags': [], 'project_id': 'c761b92632ad407c90fded578eb010da'}} 2025-07-31 12:09:31,733 - INFO - Created VN ctest-vn-32560263 2025-07-31 12:09:31,787 - DEBUG - VN ctest-vn-32560263 UUID is 24e9cccc-7ef1-4b34-85ea-8f3435837352 2025-07-31 12:09:31,907 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-97983468, 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-93189399:ctest-vn-32560263, 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-07-31 12:09:32,224 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3bd92f82-6e82-446f-8f7f-275971a05768', 'name': 'ctest-vn-97983468', 'tenant_id': 'c761b92632ad407c90fded578eb010da', 'project_id': 'c761b92632ad407c90fded578eb010da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cee9230d-e5a4-4576-83bb-bee2001dbea3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93189399', 'ctest-vn-97983468'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93189399', 'ctest-policy-allow-all-69492018']], 'subnet_ipam': [{'subnet_cidr': '84.165.122.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-31 12:09:32,474 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '24e9cccc-7ef1-4b34-85ea-8f3435837352', 'name': 'ctest-vn-32560263', 'tenant_id': 'c761b92632ad407c90fded578eb010da', 'project_id': 'c761b92632ad407c90fded578eb010da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0f3f15b-8041-444f-82c0-e140d65a2138'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93189399', 'ctest-vn-32560263'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93189399', 'ctest-policy-allow-all-69492018']], 'subnet_ipam': [{'subnet_cidr': '67.173.242.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-31 12:09:32,655 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-31 12:09:32,953 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-31 12:09:32,989 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d870d1ce-14e5-4aec-8ebe-d4f66da6f67c 2025-07-31 12:09:33,005 - DEBUG - Requesting: http://10.0.0.65:8082/project/c761b926-32ad-407c-90fd-ed578eb010da 2025-07-31 12:09:33,083 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3bd92f82-6e82-446f-8f7f-275971a05768 2025-07-31 12:09:33,100 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3bd92f82-6e82-446f-8f7f-275971a05768 2025-07-31 12:09:33,114 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/de2d6389-82e6-4ad2-b3bb-bcb82bd7ba99 2025-07-31 12:09:33,125 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/de2d6389-82e6-4ad2-b3bb-bcb82bd7ba99 2025-07-31 12:09:33,134 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/d56ac0e1-0bbf-4743-b362-9b1fba026a47 2025-07-31 12:09:33,142 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 12:09:33,142 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3bd92f82-6e82-446f-8f7f-275971a05768 2025-07-31 12:09:33,153 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/de2d6389-82e6-4ad2-b3bb-bcb82bd7ba99 2025-07-31 12:09:33,169 - INFO - Verified VN network id 11 for VN 3bd92f82-6e82-446f-8f7f-275971a05768 2025-07-31 12:09:33,169 - INFO - Verifications in API Server for VN ctest-vn-97983468 passed 2025-07-31 12:09:33,169 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3bd92f82-6e82-446f-8f7f-275971a05768 2025-07-31 12:09:33,180 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/de2d6389-82e6-4ad2-b3bb-bcb82bd7ba99 2025-07-31 12:09:33,190 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/de2d6389-82e6-4ad2-b3bb-bcb82bd7ba99 2025-07-31 12:09:33,199 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/d56ac0e1-0bbf-4743-b362-9b1fba026a47 2025-07-31 12:09:33,220 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-97983468', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93189399', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4312530355430245487', 'uuid-lslong': '10340026534577854312'}, 'enable': 'true', 'created': '2025-07-31T12:09:30', 'last-modified': '2025-07-31T12:09:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.025963'} 2025-07-31 12:09:33,228 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 12:09:33,228 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97983468 passed 2025-07-31 12:09:33,228 - DEBUG - ====Verifying policy data for ctest-vn-97983468 in API_Server ====== 2025-07-31 12:09:33,228 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-31 12:09:33,235 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d870d1ce-14e5-4aec-8ebe-d4f66da6f67c 2025-07-31 12:09:33,251 - DEBUG - Requesting: http://10.0.0.65:8082/project/c761b926-32ad-407c-90fd-ed578eb010da 2025-07-31 12:09:33,327 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3bd92f82-6e82-446f-8f7f-275971a05768 2025-07-31 12:09:33,338 - DEBUG - ==>Verifying data for policy with id: 4f52b28d-5ea3-4a99-9133-89de192e585b, fqn: ['default-domain', 'ctest-TestBasicPolicy-93189399', 'ctest-policy-allow-all-69492018'] 2025-07-31 12:09:33,338 - INFO - VN ctest-vn-97983468 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-31 12:09:33,338 - DEBUG - Verifying the vn in opserver 2025-07-31 12:09:33,338 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-97983468 virtual network link through opserver 10.0.0.65 2025-07-31 12:09:33,338 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-07-31 12:09:33,635 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-07-31 12:09:33,696 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-97983468', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-97983468?flat'} 2025-07-31 12:09:33,696 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-97983468 is found in opserver 2025-07-31 12:09:33,710 - DEBUG - Do not have enough data to verify VN in agent 2025-07-31 12:09:33,716 - DEBUG - VRF ids for VN ctest-vn-97983468: {} 2025-07-31 12:09:33,716 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-31 12:09:33,723 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d870d1ce-14e5-4aec-8ebe-d4f66da6f67c 2025-07-31 12:09:33,736 - DEBUG - Requesting: http://10.0.0.65:8082/project/c761b926-32ad-407c-90fd-ed578eb010da 2025-07-31 12:09:33,813 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/24e9cccc-7ef1-4b34-85ea-8f3435837352 2025-07-31 12:09:33,827 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/24e9cccc-7ef1-4b34-85ea-8f3435837352 2025-07-31 12:09:33,838 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/702b59a4-2702-4b7a-83d5-10e0e4d001e7 2025-07-31 12:09:33,846 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/702b59a4-2702-4b7a-83d5-10e0e4d001e7 2025-07-31 12:09:33,854 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/539f0223-d388-4a1a-8689-c739807ee52b 2025-07-31 12:09:33,862 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-31 12:09:33,862 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/24e9cccc-7ef1-4b34-85ea-8f3435837352 2025-07-31 12:09:33,873 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/702b59a4-2702-4b7a-83d5-10e0e4d001e7 2025-07-31 12:09:33,894 - INFO - Verified VN network id 12 for VN 24e9cccc-7ef1-4b34-85ea-8f3435837352 2025-07-31 12:09:33,894 - INFO - Verifications in API Server for VN ctest-vn-32560263 passed 2025-07-31 12:09:33,894 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/24e9cccc-7ef1-4b34-85ea-8f3435837352 2025-07-31 12:09:33,906 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/702b59a4-2702-4b7a-83d5-10e0e4d001e7 2025-07-31 12:09:33,914 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/702b59a4-2702-4b7a-83d5-10e0e4d001e7 2025-07-31 12:09:33,922 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/539f0223-d388-4a1a-8689-c739807ee52b 2025-07-31 12:09:33,935 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-32560263', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93189399', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2659882233614125876', 'uuid-lslong': '9649682605993587538'}, 'enable': 'true', 'created': '2025-07-31T12:09:31', 'last-modified': '2025-07-31T12:09:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.486685'} 2025-07-31 12:09:33,942 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-31 12:09:33,943 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32560263 passed 2025-07-31 12:09:33,943 - DEBUG - ====Verifying policy data for ctest-vn-32560263 in API_Server ====== 2025-07-31 12:09:33,943 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-31 12:09:33,949 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d870d1ce-14e5-4aec-8ebe-d4f66da6f67c 2025-07-31 12:09:33,963 - DEBUG - Requesting: http://10.0.0.65:8082/project/c761b926-32ad-407c-90fd-ed578eb010da 2025-07-31 12:09:34,037 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/24e9cccc-7ef1-4b34-85ea-8f3435837352 2025-07-31 12:09:34,049 - DEBUG - ==>Verifying data for policy with id: 4f52b28d-5ea3-4a99-9133-89de192e585b, fqn: ['default-domain', 'ctest-TestBasicPolicy-93189399', 'ctest-policy-allow-all-69492018'] 2025-07-31 12:09:34,049 - INFO - VN ctest-vn-32560263 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-31 12:09:34,049 - DEBUG - Verifying the vn in opserver 2025-07-31 12:09:34,049 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-32560263 virtual network link through opserver 10.0.0.65 2025-07-31 12:09:34,049 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-07-31 12:09:34,069 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-32560263', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-32560263?flat'} 2025-07-31 12:09:34,069 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-32560263 is found in opserver 2025-07-31 12:09:34,083 - DEBUG - Do not have enough data to verify VN in agent 2025-07-31 12:09:34,090 - DEBUG - VRF ids for VN ctest-vn-32560263: {} 2025-07-31 12:09:34,155 - DEBUG - Services list from nova: [, , ] 2025-07-31 12:09:35,217 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3734-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3734-1) 2025-07-31 12:09:36,481 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3734-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3734-1) 2025-07-31 12:09:36,482 - INFO - Waiting for VM ctest-TestBasicPolicy-93189399-62740289 to be up.. 2025-07-31 12:09:36,578 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-31 12:09:41,661 - DEBUG - VM is in ACTIVE state now 2025-07-31 12:09:41,661 - INFO - VM name : ctest-TestBasicPolicy-93189399-62740289 2025-07-31 12:09:41,735 - DEBUG - VM ctest-TestBasicPolicy-93189399-62740289 ID is 502487f3-326b-4fcd-8bb0-210ae0fe0cec 2025-07-31 12:09:41,755 - DEBUG - VM ctest-TestBasicPolicy-93189399-62740289 launched on Node cn-jenkins-deploy-platform-ansible-os-3734-1 2025-07-31 12:09:41,829 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/502487f3-326b-4fcd-8bb0-210ae0fe0cec 2025-07-31 12:09:41,839 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/00f33897-06c8-4772-b802-16fc3ae576ed 2025-07-31 12:09:45,105 - 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 1027ms') 2025-07-31 12:09:45,105 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-93189399-62740289 failed! 2025-07-31 12:09:45,159 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-93189399:ctest-vn-97983468 is 84.165.122.1 and allocation pool is NOT set 2025-07-31 12:09:47,230 - 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.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.47 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.465/5.549/9.634/4.084 ms') 2025-07-31 12:09:47,230 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-93189399-62740289 passed 2025-07-31 12:09:47,387 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 12:09:47,387 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-93189399-62740289, IP 84.165.122.3, Port 22 2025-07-31 12:09:47,453 - 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-07-31 12:09:47,533 - DEBUG - VM ctest-TestBasicPolicy-93189399-62740289 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-31 12:09:52,534 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 12:09:52,534 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-93189399-62740289, IP 84.165.122.3, Port 22 2025-07-31 12:09:52,691 - DEBUG - VM ctest-TestBasicPolicy-93189399-62740289 is ready for SSH connections 2025-07-31 12:09:52,691 - INFO - Waiting for VM ctest-TestBasicPolicy-93189399-45240076 to be up.. 2025-07-31 12:09:52,876 - DEBUG - VM is in ACTIVE state now 2025-07-31 12:09:52,876 - INFO - VM name : ctest-TestBasicPolicy-93189399-45240076 2025-07-31 12:09:52,952 - DEBUG - VM ctest-TestBasicPolicy-93189399-45240076 ID is 1e865d74-0a8a-4097-ab89-7dd540473e9a 2025-07-31 12:09:52,952 - DEBUG - VM ctest-TestBasicPolicy-93189399-45240076 launched on Node cn-jenkins-deploy-platform-ansible-os-3734-1 2025-07-31 12:09:53,032 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/1e865d74-0a8a-4097-ab89-7dd540473e9a 2025-07-31 12:09:53,041 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/ffce2722-941d-40af-94ac-53b7c5992201 2025-07-31 12:09:54,289 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.18 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.415 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.415/1.798/3.182/1.383 ms') 2025-07-31 12:09:54,289 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-93189399-45240076 passed 2025-07-31 12:09:54,443 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 12:09:54,443 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-93189399-45240076, IP 67.173.242.3, Port 22 2025-07-31 12:09:54,608 - DEBUG - VM ctest-TestBasicPolicy-93189399-45240076 is ready for SSH connections 2025-07-31 12:09:54,609 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 12:09:54,609 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 67.173.242.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-07-31 12:09:54,609 - DEBUG - ping -s 56 -c 3 -W 1 67.173.242.3 2025-07-31 12:09:58,641 - DEBUG - PING 67.173.242.3 (67.173.242.3): 56 data bytes 64 bytes from 67.173.242.3: seq=0 ttl=63 time=3.363 ms 64 bytes from 67.173.242.3: seq=1 ttl=63 time=0.896 ms 64 bytes from 67.173.242.3: seq=2 ttl=63 time=1.092 ms --- 67.173.242.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.896/1.783/3.363 ms 2025-07-31 12:09:58,641 - INFO - Ping to IP 67.173.242.3 from VM ctest-TestBasicPolicy-93189399-62740289 passed 2025-07-31 12:09:58,819 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4f52b28d-5ea3-4a99-9133-89de192e585b", "href": "http://10.0.0.65:8082/network-policy/4f52b28d-5ea3-4a99-9133-89de192e585b"}} 2025-07-31 12:09:58,819 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 12:09:58,819 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 67.173.242.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-07-31 12:09:58,819 - DEBUG - ping -s 56 -c 3 -W 1 67.173.242.3 2025-07-31 12:10:02,031 - DEBUG - PING 67.173.242.3 (67.173.242.3): 56 data bytes --- 67.173.242.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-07-31 12:10:02,031 - WARNING - Ping to IP 67.173.242.3 from VM ctest-TestBasicPolicy-93189399-62740289 failed 2025-07-31 12:10:02,031 - INFO - Deleting VM ctest-TestBasicPolicy-93189399-45240076 2025-07-31 12:10:02,116 - INFO - Deleting VM ctest-TestBasicPolicy-93189399-62740289 2025-07-31 12:10:02,568 - INFO - Deleted policy ctest-policy-allow-all-69492018 2025-07-31 12:10:02,568 - INFO - Deleting VN ctest-vn-32560263 2025-07-31 12:10:02,609 - DEBUG - VN 24e9cccc-7ef1-4b34-85ea-8f3435837352 still in use: Unable to complete operation on network 24e9cccc-7ef1-4b34-85ea-8f3435837352. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cd6af4c9-c691-4f05-9537-1ebc6a453369'] 2025-07-31 12:10:02,610 - WARNING - Deleting VN ctest-vn-32560263 failed..Will retry 2025-07-31 12:10:04,732 - DEBUG - Response for deleting network () 2025-07-31 12:10:04,733 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/702b59a4-2702-4b7a-83d5-10e0e4d001e7 2025-07-31 12:10:04,741 - DEBUG - Response Code: 404 2025-07-31 12:10:04,742 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-31 12:10:04,748 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d870d1ce-14e5-4aec-8ebe-d4f66da6f67c 2025-07-31 12:10:04,805 - DEBUG - Requesting: http://10.0.0.65:8082/project/c761b926-32ad-407c-90fd-ed578eb010da 2025-07-31 12:10:04,887 - INFO - Validated that VN ctest-vn-32560263 is not found in API Server 2025-07-31 12:10:04,899 - DEBUG - VN ctest-vn-32560263 is not present in Agent 10.0.0.65 2025-07-31 12:10:04,899 - INFO - Validated that VN ctest-vn-32560263 is not in any agent 2025-07-31 12:10:04,916 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-32560263 info 2025-07-31 12:10:04,916 - INFO - Deleting VN ctest-vn-97983468 2025-07-31 12:10:05,034 - DEBUG - Response for deleting network () 2025-07-31 12:10:05,034 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/de2d6389-82e6-4ad2-b3bb-bcb82bd7ba99 2025-07-31 12:10:05,043 - DEBUG - Response Code: 404 2025-07-31 12:10:05,044 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-31 12:10:05,049 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d870d1ce-14e5-4aec-8ebe-d4f66da6f67c 2025-07-31 12:10:05,105 - DEBUG - Requesting: http://10.0.0.65:8082/project/c761b926-32ad-407c-90fd-ed578eb010da 2025-07-31 12:10:05,209 - INFO - Validated that VN ctest-vn-97983468 is not found in API Server 2025-07-31 12:10:05,222 - DEBUG - VN ctest-vn-97983468 is not present in Agent 10.0.0.65 2025-07-31 12:10:05,222 - INFO - Validated that VN ctest-vn-97983468 is not in any agent 2025-07-31 12:10:05,239 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97983468 info 2025-07-31 12:10:05,502 - DEBUG - No XMPP flaps were noticed during the test
2025-07-31 12:10:05,502 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-07-31 12:10:05,502 - INFO - -------------------------------------------------------------------------------- 2025-07-31 12:10:06,188 - INFO - Deleted project: ctest-TestBasicPolicy-93189399, ID : c761b926-32ad-407c-90fd-ed578eb010da