2025-05-19 02:11:17,458 - INFO - Domain Default found not creating 2025-05-19 02:11:17,605 - INFO - Project ctest-TestBasicPolicy-30603521 not found, creating it 2025-05-19 02:11:18,086 - INFO - Created Project:ctest-TestBasicPolicy-30603521, ID : d496e605-d47c-4d6b-b8e6-92b7caf0971d 2025-05-19 02:11:19,661 - INFO - ================================================================================ 2025-05-19 02:11:19,661 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-19 02:11:19,661 - 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-19 02:11:19,927 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-05-19 02:11:19,927 - INFO - Initial checks done. Running the testcase now 2025-05-19 02:11:19,927 - INFO - 2025-05-19 02:11:20,535 - DEBUG - Response for create_network : {'network': {'id': '662bd9d2-b029-44cf-9900-d7aae38774b1', 'name': 'ctest-vn-86199898', 'tenant_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'project_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30603521', 'ctest-vn-86199898'], 'port_security_enabled': True, 'description': ''}} 2025-05-19 02:11:20,709 - DEBUG - Response for create_subnet : {'subnet': {'id': '74cce54a-4d66-410e-9f14-5bc7f61402e1', 'name': '', 'tenant_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'network_id': '662bd9d2-b029-44cf-9900-d7aae38774b1', 'ip_version': 4, 'cidr': '115.90.151.128/26', 'allocation_pools': [{'start': '115.90.151.130', 'end': '115.90.151.190'}], 'gateway_ip': '115.90.151.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.90.151.130', 'tags': [], 'project_id': 'd496e605d47c4d6bb8e692b7caf0971d'}} 2025-05-19 02:11:20,728 - INFO - Created VN ctest-vn-86199898 2025-05-19 02:11:20,781 - DEBUG - VN ctest-vn-86199898 UUID is 662bd9d2-b029-44cf-9900-d7aae38774b1 2025-05-19 02:11:21,139 - DEBUG - Response for create_network : {'network': {'id': 'c09c17cd-e932-4350-a34a-10cb42b43a60', 'name': 'ctest-vn-98221783', 'tenant_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'project_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30603521', 'ctest-vn-98221783'], 'port_security_enabled': True, 'description': ''}} 2025-05-19 02:11:21,364 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b822c104-8952-42ed-8356-fb153f3dc186', 'name': '', 'tenant_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'network_id': 'c09c17cd-e932-4350-a34a-10cb42b43a60', 'ip_version': 4, 'cidr': '161.126.62.192/26', 'allocation_pools': [{'start': '161.126.62.194', 'end': '161.126.62.254'}], 'gateway_ip': '161.126.62.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.126.62.194', 'tags': [], 'project_id': 'd496e605d47c4d6bb8e692b7caf0971d'}} 2025-05-19 02:11:21,384 - INFO - Created VN ctest-vn-98221783 2025-05-19 02:11:21,437 - DEBUG - VN ctest-vn-98221783 UUID is c09c17cd-e932-4350-a34a-10cb42b43a60 2025-05-19 02:11:21,550 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-86199898, 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-30603521:ctest-vn-98221783, 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-19 02:11:21,838 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '662bd9d2-b029-44cf-9900-d7aae38774b1', 'name': 'ctest-vn-86199898', 'tenant_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'project_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['74cce54a-4d66-410e-9f14-5bc7f61402e1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30603521', 'ctest-vn-86199898'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30603521', 'ctest-policy-allow-all-75935870']], 'subnet_ipam': [{'subnet_cidr': '115.90.151.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-19 02:11:22,037 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c09c17cd-e932-4350-a34a-10cb42b43a60', 'name': 'ctest-vn-98221783', 'tenant_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'project_id': 'd496e605d47c4d6bb8e692b7caf0971d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b822c104-8952-42ed-8356-fb153f3dc186'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30603521', 'ctest-vn-98221783'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30603521', 'ctest-policy-allow-all-75935870']], 'subnet_ipam': [{'subnet_cidr': '161.126.62.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-19 02:11:22,205 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-19 02:11:22,543 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-19 02:11:22,572 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9f4e97e1-2d1e-4113-9162-3a71707934fc 2025-05-19 02:11:22,586 - DEBUG - Requesting: http://10.0.0.254:8082/project/d496e605-d47c-4d6b-b8e6-92b7caf0971d 2025-05-19 02:11:22,665 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/662bd9d2-b029-44cf-9900-d7aae38774b1 2025-05-19 02:11:22,677 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/662bd9d2-b029-44cf-9900-d7aae38774b1 2025-05-19 02:11:22,686 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/783f79ce-8c31-44b1-b2ae-737974045daf 2025-05-19 02:11:22,693 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/783f79ce-8c31-44b1-b2ae-737974045daf 2025-05-19 02:11:22,700 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/393f8f95-3933-45dd-9383-e78c15da3b51 2025-05-19 02:11:22,706 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-19 02:11:22,707 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/662bd9d2-b029-44cf-9900-d7aae38774b1 2025-05-19 02:11:22,716 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/783f79ce-8c31-44b1-b2ae-737974045daf 2025-05-19 02:11:22,730 - INFO - Verified VN network id 8 for VN 662bd9d2-b029-44cf-9900-d7aae38774b1 2025-05-19 02:11:22,730 - INFO - Verifications in API Server for VN ctest-vn-86199898 passed 2025-05-19 02:11:22,731 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/662bd9d2-b029-44cf-9900-d7aae38774b1 2025-05-19 02:11:22,740 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/783f79ce-8c31-44b1-b2ae-737974045daf 2025-05-19 02:11:22,747 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/783f79ce-8c31-44b1-b2ae-737974045daf 2025-05-19 02:11:22,754 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/393f8f95-3933-45dd-9383-e78c15da3b51 2025-05-19 02:11:22,766 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-86199898', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30603521', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7362217514789061839', 'uuid-lslong': '11025049016764691633'}, 'enable': 'true', 'created': '2025-05-19T02:11:20', 'last-modified': '2025-05-19T02:11:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.947404'} 2025-05-19 02:11:22,772 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-19 02:11:22,772 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86199898 passed 2025-05-19 02:11:22,772 - DEBUG - ====Verifying policy data for ctest-vn-86199898 in API_Server ====== 2025-05-19 02:11:22,773 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-19 02:11:22,778 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9f4e97e1-2d1e-4113-9162-3a71707934fc 2025-05-19 02:11:22,790 - DEBUG - Requesting: http://10.0.0.254:8082/project/d496e605-d47c-4d6b-b8e6-92b7caf0971d 2025-05-19 02:11:22,867 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/662bd9d2-b029-44cf-9900-d7aae38774b1 2025-05-19 02:11:22,879 - DEBUG - ==>Verifying data for policy with id: 31152603-3343-4253-a4b9-be993499a03d, fqn: ['default-domain', 'ctest-TestBasicPolicy-30603521', 'ctest-policy-allow-all-75935870'] 2025-05-19 02:11:22,879 - INFO - VN ctest-vn-86199898 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-19 02:11:22,879 - DEBUG - Verifying the vn in opserver 2025-05-19 02:11:22,879 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-86199898 virtual network link through opserver 10.0.0.254 2025-05-19 02:11:22,879 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-19 02:11:23,219 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-19 02:11:23,274 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-86199898', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-86199898?flat'} 2025-05-19 02:11:23,275 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-86199898 is found in opserver 2025-05-19 02:11:23,286 - DEBUG - Do not have enough data to verify VN in agent 2025-05-19 02:11:23,292 - DEBUG - VRF ids for VN ctest-vn-86199898: {} 2025-05-19 02:11:23,292 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-19 02:11:23,297 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9f4e97e1-2d1e-4113-9162-3a71707934fc 2025-05-19 02:11:23,310 - DEBUG - Requesting: http://10.0.0.254:8082/project/d496e605-d47c-4d6b-b8e6-92b7caf0971d 2025-05-19 02:11:23,383 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c09c17cd-e932-4350-a34a-10cb42b43a60 2025-05-19 02:11:23,398 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c09c17cd-e932-4350-a34a-10cb42b43a60 2025-05-19 02:11:23,409 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/847d9528-c3b8-491b-99d3-3e439036ce97 2025-05-19 02:11:23,417 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/847d9528-c3b8-491b-99d3-3e439036ce97 2025-05-19 02:11:23,424 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b8bf3ee6-ddc8-404b-8baf-a30fab88efc9 2025-05-19 02:11:23,432 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-19 02:11:23,432 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c09c17cd-e932-4350-a34a-10cb42b43a60 2025-05-19 02:11:23,443 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/847d9528-c3b8-491b-99d3-3e439036ce97 2025-05-19 02:11:23,458 - INFO - Verified VN network id 9 for VN c09c17cd-e932-4350-a34a-10cb42b43a60 2025-05-19 02:11:23,458 - INFO - Verifications in API Server for VN ctest-vn-98221783 passed 2025-05-19 02:11:23,458 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c09c17cd-e932-4350-a34a-10cb42b43a60 2025-05-19 02:11:23,468 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/847d9528-c3b8-491b-99d3-3e439036ce97 2025-05-19 02:11:23,475 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/847d9528-c3b8-491b-99d3-3e439036ce97 2025-05-19 02:11:23,482 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b8bf3ee6-ddc8-404b-8baf-a30fab88efc9 2025-05-19 02:11:23,494 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-98221783', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30603521', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13878994324797145936', 'uuid-lslong': '11766235441642355296'}, 'enable': 'true', 'created': '2025-05-19T02:11:21', 'last-modified': '2025-05-19T02:11:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.480409'} 2025-05-19 02:11:23,501 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-19 02:11:23,501 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98221783 passed 2025-05-19 02:11:23,501 - DEBUG - ====Verifying policy data for ctest-vn-98221783 in API_Server ====== 2025-05-19 02:11:23,501 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-19 02:11:23,510 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9f4e97e1-2d1e-4113-9162-3a71707934fc 2025-05-19 02:11:23,525 - DEBUG - Requesting: http://10.0.0.254:8082/project/d496e605-d47c-4d6b-b8e6-92b7caf0971d 2025-05-19 02:11:23,600 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c09c17cd-e932-4350-a34a-10cb42b43a60 2025-05-19 02:11:23,613 - DEBUG - ==>Verifying data for policy with id: 31152603-3343-4253-a4b9-be993499a03d, fqn: ['default-domain', 'ctest-TestBasicPolicy-30603521', 'ctest-policy-allow-all-75935870'] 2025-05-19 02:11:23,613 - INFO - VN ctest-vn-98221783 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-19 02:11:23,614 - DEBUG - Verifying the vn in opserver 2025-05-19 02:11:23,614 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-98221783 virtual network link through opserver 10.0.0.254 2025-05-19 02:11:23,614 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-19 02:11:23,627 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-98221783', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-98221783?flat'} 2025-05-19 02:11:23,627 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-98221783 is found in opserver 2025-05-19 02:11:23,638 - DEBUG - Do not have enough data to verify VN in agent 2025-05-19 02:11:23,644 - DEBUG - VRF ids for VN ctest-vn-98221783: {} 2025-05-19 02:11:23,702 - DEBUG - Services list from nova: [, , ] 2025-05-19 02:11:24,792 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3326-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3326-1) 2025-05-19 02:11:26,111 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3326-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3326-1) 2025-05-19 02:11:26,111 - INFO - Waiting for VM ctest-TestBasicPolicy-30603521-41610775 to be up.. 2025-05-19 02:11:26,217 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-19 02:11:31,297 - DEBUG - VM is in ACTIVE state now 2025-05-19 02:11:31,297 - INFO - VM name : ctest-TestBasicPolicy-30603521-41610775 2025-05-19 02:11:31,382 - DEBUG - VM ctest-TestBasicPolicy-30603521-41610775 ID is 07436b41-5123-44f6-b63b-40e3aeb26542 2025-05-19 02:11:31,403 - DEBUG - VM ctest-TestBasicPolicy-30603521-41610775 launched on Node cn-jenkins-deploy-platform-ansible-os-3326-1 2025-05-19 02:11:31,494 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/07436b41-5123-44f6-b63b-40e3aeb26542 2025-05-19 02:11:31,506 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/953d5034-1281-4ce9-ab38-8ef3f2dfc34a 2025-05-19 02:11:34,774 - 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 1014ms') 2025-05-19 02:11:34,774 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-30603521-41610775 failed! 2025-05-19 02:11:34,829 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-30603521:ctest-vn-86199898 is 115.90.151.129 and allocation pool is NOT set 2025-05-19 02:11:36,892 - 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=10.0 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.887 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 = 0.887/5.461/10.036/4.574 ms') 2025-05-19 02:11:36,893 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-30603521-41610775 passed 2025-05-19 02:11:37,045 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-19 02:11:37,045 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-30603521-41610775, IP 115.90.151.131, Port 22 2025-05-19 02:11:37,200 - DEBUG - VM ctest-TestBasicPolicy-30603521-41610775 is ready for SSH connections 2025-05-19 02:11:37,200 - INFO - Waiting for VM ctest-TestBasicPolicy-30603521-02996756 to be up.. 2025-05-19 02:11:37,276 - DEBUG - VM is in ACTIVE state now 2025-05-19 02:11:37,276 - INFO - VM name : ctest-TestBasicPolicy-30603521-02996756 2025-05-19 02:11:37,347 - DEBUG - VM ctest-TestBasicPolicy-30603521-02996756 ID is b15a7666-72c5-438f-a424-d3bfcbbcebb9 2025-05-19 02:11:37,347 - DEBUG - VM ctest-TestBasicPolicy-30603521-02996756 launched on Node cn-jenkins-deploy-platform-ansible-os-3326-1 2025-05-19 02:11:37,425 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/b15a7666-72c5-438f-a424-d3bfcbbcebb9 2025-05-19 02:11:37,433 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/6b7d93f6-aa4e-4185-8bf0-f36f2fe2a361 2025-05-19 02:11:38,675 - 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.66 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.43 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 = 1.426/2.545/3.664/1.119 ms') 2025-05-19 02:11:38,675 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-30603521-02996756 passed 2025-05-19 02:11:38,833 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-19 02:11:38,833 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-30603521-02996756, IP 161.126.62.195, Port 22 2025-05-19 02:11:38,992 - DEBUG - VM ctest-TestBasicPolicy-30603521-02996756 is ready for SSH connections 2025-05-19 02:11:38,993 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-19 02:11:38,993 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 161.126.62.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-19 02:11:38,993 - DEBUG - ping -s 56 -c 3 -W 1 161.126.62.195 2025-05-19 02:11:42,715 - DEBUG - PING 161.126.62.195 (161.126.62.195): 56 data bytes 64 bytes from 161.126.62.195: seq=0 ttl=63 time=4.657 ms 64 bytes from 161.126.62.195: seq=1 ttl=63 time=0.892 ms 64 bytes from 161.126.62.195: seq=2 ttl=63 time=0.879 ms --- 161.126.62.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.879/2.142/4.657 ms 2025-05-19 02:11:42,715 - INFO - Ping to IP 161.126.62.195 from VM ctest-TestBasicPolicy-30603521-41610775 passed 2025-05-19 02:11:42,897 - DEBUG - Policy Update Response {"network-policy": {"uuid": "31152603-3343-4253-a4b9-be993499a03d", "href": "http://10.0.0.254:8082/network-policy/31152603-3343-4253-a4b9-be993499a03d"}} 2025-05-19 02:11:42,897 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-19 02:11:42,897 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 161.126.62.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-19 02:11:42,897 - DEBUG - ping -s 56 -c 3 -W 1 161.126.62.195 2025-05-19 02:11:46,115 - DEBUG - PING 161.126.62.195 (161.126.62.195): 56 data bytes 64 bytes from 161.126.62.195: seq=0 ttl=63 time=1.612 ms --- 161.126.62.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.612/1.612/1.612 ms 2025-05-19 02:11:46,115 - WARNING - Ping to IP 161.126.62.195 from VM ctest-TestBasicPolicy-30603521-41610775 failed 2025-05-19 02:11:46,116 - INFO - Deleting VM ctest-TestBasicPolicy-30603521-02996756 2025-05-19 02:11:46,195 - INFO - Deleting VM ctest-TestBasicPolicy-30603521-41610775 2025-05-19 02:11:46,625 - INFO - Deleted policy ctest-policy-allow-all-75935870 2025-05-19 02:11:46,625 - INFO - Deleting VN ctest-vn-98221783 2025-05-19 02:11:46,679 - DEBUG - VN c09c17cd-e932-4350-a34a-10cb42b43a60 still in use: Unable to complete operation on network c09c17cd-e932-4350-a34a-10cb42b43a60. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a9207a6f-1044-4faf-a0a8-b8e5a10f6002'] 2025-05-19 02:11:46,679 - WARNING - Deleting VN ctest-vn-98221783 failed..Will retry 2025-05-19 02:11:48,799 - DEBUG - Response for deleting network () 2025-05-19 02:11:48,799 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/847d9528-c3b8-491b-99d3-3e439036ce97 2025-05-19 02:11:48,806 - DEBUG - Response Code: 404 2025-05-19 02:11:48,806 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-19 02:11:48,812 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9f4e97e1-2d1e-4113-9162-3a71707934fc 2025-05-19 02:11:48,867 - DEBUG - Requesting: http://10.0.0.254:8082/project/d496e605-d47c-4d6b-b8e6-92b7caf0971d 2025-05-19 02:11:48,944 - INFO - Validated that VN ctest-vn-98221783 is not found in API Server 2025-05-19 02:11:48,957 - DEBUG - VN ctest-vn-98221783 is not present in Agent 10.0.0.254 2025-05-19 02:11:48,957 - INFO - Validated that VN ctest-vn-98221783 is not in any agent 2025-05-19 02:11:48,973 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-98221783 info 2025-05-19 02:11:48,973 - INFO - Deleting VN ctest-vn-86199898 2025-05-19 02:11:49,075 - DEBUG - Response for deleting network () 2025-05-19 02:11:49,075 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/783f79ce-8c31-44b1-b2ae-737974045daf 2025-05-19 02:11:49,081 - DEBUG - Response Code: 404 2025-05-19 02:11:49,081 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-19 02:11:49,091 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9f4e97e1-2d1e-4113-9162-3a71707934fc 2025-05-19 02:11:49,149 - DEBUG - Requesting: http://10.0.0.254:8082/project/d496e605-d47c-4d6b-b8e6-92b7caf0971d 2025-05-19 02:11:49,226 - INFO - Validated that VN ctest-vn-86199898 is not found in API Server 2025-05-19 02:11:49,242 - DEBUG - VN ctest-vn-86199898 is not present in Agent 10.0.0.254 2025-05-19 02:11:49,242 - INFO - Validated that VN ctest-vn-86199898 is not in any agent 2025-05-19 02:11:49,259 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-86199898 info 2025-05-19 02:11:49,515 - DEBUG - No XMPP flaps were noticed during the test 2025-05-19 02:11:49,516 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2025-05-19 02:11:49,516 - INFO - -------------------------------------------------------------------------------- 2025-05-19 02:11:50,261 - INFO - Deleted project: ctest-TestBasicPolicy-30603521, ID : d496e605-d47c-4d6b-b8e6-92b7caf0971d