2025-04-08 20:48:41,236 - INFO - Domain Default found not creating 2025-04-08 20:48:41,388 - INFO - Project ctest-TestBasicPolicy-25598349 not found, creating it 2025-04-08 20:48:41,852 - INFO - Created Project:ctest-TestBasicPolicy-25598349, ID : ef96e5d9-2ab7-4289-bdc8-a71312e82d6a 2025-04-08 20:48:43,340 - INFO - ================================================================================ 2025-04-08 20:48:43,340 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-08 20:48:43,340 - 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-04-08 20:48:43,601 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.18': '0'}} with 2025-04-08 20:48:43,601 - INFO - Initial checks done. Running the testcase now 2025-04-08 20:48:43,601 - INFO - 2025-04-08 20:48:44,165 - DEBUG - Response for create_network : {'network': {'id': 'f4081d52-a2d7-4d88-b497-e84db41778c4', 'name': 'ctest-vn-46717721', 'tenant_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'project_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25598349', 'ctest-vn-46717721'], 'port_security_enabled': True, 'description': ''}} 2025-04-08 20:48:44,345 - DEBUG - Response for create_subnet : {'subnet': {'id': '94875a3f-af3a-4138-a985-aa54da41a066', 'name': '', 'tenant_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'network_id': 'f4081d52-a2d7-4d88-b497-e84db41778c4', 'ip_version': 4, 'cidr': '98.232.152.0/26', 'allocation_pools': [{'start': '98.232.152.2', 'end': '98.232.152.62'}], 'gateway_ip': '98.232.152.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.232.152.2', 'tags': [], 'project_id': 'ef96e5d92ab74289bdc8a71312e82d6a'}} 2025-04-08 20:48:44,362 - INFO - Created VN ctest-vn-46717721 2025-04-08 20:48:44,414 - DEBUG - VN ctest-vn-46717721 UUID is f4081d52-a2d7-4d88-b497-e84db41778c4 2025-04-08 20:48:44,725 - DEBUG - Response for create_network : {'network': {'id': '15057457-2fea-413a-9ea6-606b9e238a1a', 'name': 'ctest-vn-68310575', 'tenant_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'project_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25598349', 'ctest-vn-68310575'], 'port_security_enabled': True, 'description': ''}} 2025-04-08 20:48:44,916 - DEBUG - Response for create_subnet : {'subnet': {'id': '9295c344-b846-4532-9e8a-5fd1cc485613', 'name': '', 'tenant_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'network_id': '15057457-2fea-413a-9ea6-606b9e238a1a', 'ip_version': 4, 'cidr': '220.172.236.192/26', 'allocation_pools': [{'start': '220.172.236.194', 'end': '220.172.236.254'}], 'gateway_ip': '220.172.236.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.172.236.194', 'tags': [], 'project_id': 'ef96e5d92ab74289bdc8a71312e82d6a'}} 2025-04-08 20:48:44,935 - INFO - Created VN ctest-vn-68310575 2025-04-08 20:48:44,986 - DEBUG - VN ctest-vn-68310575 UUID is 15057457-2fea-413a-9ea6-606b9e238a1a 2025-04-08 20:48:45,102 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-46717721, 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-25598349:ctest-vn-68310575, 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-04-08 20:48:45,403 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f4081d52-a2d7-4d88-b497-e84db41778c4', 'name': 'ctest-vn-46717721', 'tenant_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'project_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94875a3f-af3a-4138-a985-aa54da41a066'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25598349', 'ctest-vn-46717721'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25598349', 'ctest-policy-allow-all-14390151']], 'subnet_ipam': [{'subnet_cidr': '98.232.152.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-08 20:48:45,650 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15057457-2fea-413a-9ea6-606b9e238a1a', 'name': 'ctest-vn-68310575', 'tenant_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'project_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9295c344-b846-4532-9e8a-5fd1cc485613'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25598349', 'ctest-vn-68310575'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25598349', 'ctest-policy-allow-all-14390151']], 'subnet_ipam': [{'subnet_cidr': '220.172.236.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-08 20:48:45,822 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2025-04-08 20:48:46,133 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2025-04-08 20:48:46,163 - DEBUG - Requesting: http://10.0.0.36:8082/domain/8b02daee-8a1c-4cc6-b712-d51f4277f3cd 2025-04-08 20:48:46,176 - DEBUG - Requesting: http://10.0.0.36:8082/project/ef96e5d9-2ab7-4289-bdc8-a71312e82d6a 2025-04-08 20:48:46,256 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f4081d52-a2d7-4d88-b497-e84db41778c4 2025-04-08 20:48:46,269 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f4081d52-a2d7-4d88-b497-e84db41778c4 2025-04-08 20:48:46,280 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/7f38216d-97f3-4720-9fd0-0b79f4e9849c 2025-04-08 20:48:46,289 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/7f38216d-97f3-4720-9fd0-0b79f4e9849c 2025-04-08 20:48:46,300 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/b09dd46a-d7d0-4c67-be61-8c3d5bb1b90c 2025-04-08 20:48:46,309 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-08 20:48:46,309 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f4081d52-a2d7-4d88-b497-e84db41778c4 2025-04-08 20:48:46,322 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/7f38216d-97f3-4720-9fd0-0b79f4e9849c 2025-04-08 20:48:46,338 - INFO - Verified VN network id 8 for VN f4081d52-a2d7-4d88-b497-e84db41778c4 2025-04-08 20:48:46,338 - INFO - Verifications in API Server for VN ctest-vn-46717721 passed 2025-04-08 20:48:46,338 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f4081d52-a2d7-4d88-b497-e84db41778c4 2025-04-08 20:48:46,349 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/7f38216d-97f3-4720-9fd0-0b79f4e9849c 2025-04-08 20:48:46,359 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/7f38216d-97f3-4720-9fd0-0b79f4e9849c 2025-04-08 20:48:46,367 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/b09dd46a-d7d0-4c67-be61-8c3d5bb1b90c 2025-04-08 20:48:46,382 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-46717721', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25598349', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17584336985824644488', 'uuid-lslong': '13013125068741900484'}, 'enable': 'true', 'created': '2025-04-08T20:48:44', 'last-modified': '2025-04-08T20:48:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999381'} 2025-04-08 20:48:46,389 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-08 20:48:46,389 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46717721 passed 2025-04-08 20:48:46,389 - DEBUG - ====Verifying policy data for ctest-vn-46717721 in API_Server ====== 2025-04-08 20:48:46,389 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2025-04-08 20:48:46,395 - DEBUG - Requesting: http://10.0.0.36:8082/domain/8b02daee-8a1c-4cc6-b712-d51f4277f3cd 2025-04-08 20:48:46,407 - DEBUG - Requesting: http://10.0.0.36:8082/project/ef96e5d9-2ab7-4289-bdc8-a71312e82d6a 2025-04-08 20:48:46,485 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f4081d52-a2d7-4d88-b497-e84db41778c4 2025-04-08 20:48:46,496 - DEBUG - ==>Verifying data for policy with id: 9f35346c-5d29-4723-9825-3d93fbf3498e, fqn: ['default-domain', 'ctest-TestBasicPolicy-25598349', 'ctest-policy-allow-all-14390151'] 2025-04-08 20:48:46,496 - INFO - VN ctest-vn-46717721 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-08 20:48:46,497 - DEBUG - Verifying the vn in opserver 2025-04-08 20:48:46,497 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-46717721 virtual network link through opserver 10.0.0.36 2025-04-08 20:48:46,497 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2025-04-08 20:48:46,795 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2025-04-08 20:48:46,854 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-46717721', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-46717721?flat'} 2025-04-08 20:48:46,854 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-46717721 is found in opserver 2025-04-08 20:48:46,867 - DEBUG - Do not have enough data to verify VN in agent 2025-04-08 20:48:46,872 - DEBUG - VRF ids for VN ctest-vn-46717721: {} 2025-04-08 20:48:46,872 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2025-04-08 20:48:46,878 - DEBUG - Requesting: http://10.0.0.36:8082/domain/8b02daee-8a1c-4cc6-b712-d51f4277f3cd 2025-04-08 20:48:46,890 - DEBUG - Requesting: http://10.0.0.36:8082/project/ef96e5d9-2ab7-4289-bdc8-a71312e82d6a 2025-04-08 20:48:46,959 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/15057457-2fea-413a-9ea6-606b9e238a1a 2025-04-08 20:48:46,971 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/15057457-2fea-413a-9ea6-606b9e238a1a 2025-04-08 20:48:46,981 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c662a71c-a246-41ea-9da0-080fc9d6265c 2025-04-08 20:48:46,989 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c662a71c-a246-41ea-9da0-080fc9d6265c 2025-04-08 20:48:46,996 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/fe81ab71-1db8-4f7a-93c8-92c63b4147c4 2025-04-08 20:48:47,004 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-08 20:48:47,004 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/15057457-2fea-413a-9ea6-606b9e238a1a 2025-04-08 20:48:47,017 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c662a71c-a246-41ea-9da0-080fc9d6265c 2025-04-08 20:48:47,033 - INFO - Verified VN network id 9 for VN 15057457-2fea-413a-9ea6-606b9e238a1a 2025-04-08 20:48:47,034 - INFO - Verifications in API Server for VN ctest-vn-68310575 passed 2025-04-08 20:48:47,034 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/15057457-2fea-413a-9ea6-606b9e238a1a 2025-04-08 20:48:47,047 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c662a71c-a246-41ea-9da0-080fc9d6265c 2025-04-08 20:48:47,056 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c662a71c-a246-41ea-9da0-080fc9d6265c 2025-04-08 20:48:47,065 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/fe81ab71-1db8-4f7a-93c8-92c63b4147c4 2025-04-08 20:48:47,081 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-68310575', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25598349', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1514744767494897978', 'uuid-lslong': '11431930719457479194'}, 'enable': 'true', 'created': '2025-04-08T20:48:44', 'last-modified': '2025-04-08T20:48:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.458222'} 2025-04-08 20:48:47,088 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-08 20:48:47,088 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68310575 passed 2025-04-08 20:48:47,089 - DEBUG - ====Verifying policy data for ctest-vn-68310575 in API_Server ====== 2025-04-08 20:48:47,089 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2025-04-08 20:48:47,094 - DEBUG - Requesting: http://10.0.0.36:8082/domain/8b02daee-8a1c-4cc6-b712-d51f4277f3cd 2025-04-08 20:48:47,107 - DEBUG - Requesting: http://10.0.0.36:8082/project/ef96e5d9-2ab7-4289-bdc8-a71312e82d6a 2025-04-08 20:48:47,177 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/15057457-2fea-413a-9ea6-606b9e238a1a 2025-04-08 20:48:47,187 - DEBUG - ==>Verifying data for policy with id: 9f35346c-5d29-4723-9825-3d93fbf3498e, fqn: ['default-domain', 'ctest-TestBasicPolicy-25598349', 'ctest-policy-allow-all-14390151'] 2025-04-08 20:48:47,187 - INFO - VN ctest-vn-68310575 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-08 20:48:47,187 - DEBUG - Verifying the vn in opserver 2025-04-08 20:48:47,187 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-68310575 virtual network link through opserver 10.0.0.36 2025-04-08 20:48:47,187 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2025-04-08 20:48:47,197 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-68310575', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-68310575?flat'} 2025-04-08 20:48:47,197 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-68310575 is found in opserver 2025-04-08 20:48:47,208 - DEBUG - Do not have enough data to verify VN in agent 2025-04-08 20:48:47,213 - DEBUG - VRF ids for VN ctest-vn-68310575: {} 2025-04-08 20:48:47,275 - DEBUG - Services list from nova: [, , ] 2025-04-08 20:48:48,418 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3058-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3058-1) 2025-04-08 20:48:49,582 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3058-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3058-1) 2025-04-08 20:48:49,582 - INFO - Waiting for VM ctest-TestBasicPolicy-25598349-15077449 to be up.. 2025-04-08 20:48:49,670 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-08 20:48:54,759 - DEBUG - VM is in ACTIVE state now 2025-04-08 20:48:54,759 - INFO - VM name : ctest-TestBasicPolicy-25598349-15077449 2025-04-08 20:48:54,847 - DEBUG - VM ctest-TestBasicPolicy-25598349-15077449 ID is dd1436db-259c-4a59-8555-3652a015980f 2025-04-08 20:48:54,867 - DEBUG - VM ctest-TestBasicPolicy-25598349-15077449 launched on Node cn-jenkins-deploy-platform-ansible-os-3058-1 2025-04-08 20:48:54,959 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/dd1436db-259c-4a59-8555-3652a015980f 2025-04-08 20:48:54,970 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/1118f78d-a37e-4584-8b7d-6c82959ba1a5 2025-04-08 20:48:58,224 - 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 1002ms') 2025-04-08 20:48:58,224 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25598349-15077449 failed! 2025-04-08 20:48:58,278 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-46717721 is 98.232.152.1 and allocation pool is NOT set 2025-04-08 20:49:00,344 - 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.83 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.30 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 = 1.301/5.064/8.827/3.763 ms') 2025-04-08 20:49:00,344 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25598349-15077449 passed 2025-04-08 20:49:00,506 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 20:49:00,506 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25598349-15077449, IP 98.232.152.3, Port 22 2025-04-08 20:49:00,665 - DEBUG - VM ctest-TestBasicPolicy-25598349-15077449 is ready for SSH connections 2025-04-08 20:49:00,665 - INFO - Waiting for VM ctest-TestBasicPolicy-25598349-11359157 to be up.. 2025-04-08 20:49:00,749 - DEBUG - VM is in ACTIVE state now 2025-04-08 20:49:00,749 - INFO - VM name : ctest-TestBasicPolicy-25598349-11359157 2025-04-08 20:49:00,839 - DEBUG - VM ctest-TestBasicPolicy-25598349-11359157 ID is 5e99bfdc-a088-49ce-af6e-83fee99330d2 2025-04-08 20:49:00,839 - DEBUG - VM ctest-TestBasicPolicy-25598349-11359157 launched on Node cn-jenkins-deploy-platform-ansible-os-3058-1 2025-04-08 20:49:00,915 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/5e99bfdc-a088-49ce-af6e-83fee99330d2 2025-04-08 20:49:00,924 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/5081989b-d51e-4a1a-b695-1dda0ad6a1ea 2025-04-08 20:49:02,168 - 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=5.22 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.548 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.548/2.885/5.222/2.337 ms') 2025-04-08 20:49:02,169 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-25598349-11359157 passed 2025-04-08 20:49:02,322 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 20:49:02,322 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25598349-11359157, IP 220.172.236.195, Port 22 2025-04-08 20:49:02,488 - DEBUG - VM ctest-TestBasicPolicy-25598349-11359157 is ready for SSH connections 2025-04-08 20:49:02,488 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 20:49:02,488 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 220.172.236.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2025-04-08 20:49:02,488 - DEBUG - ping -s 56 -c 3 -W 1 220.172.236.195 2025-04-08 20:49:06,177 - DEBUG - PING 220.172.236.195 (220.172.236.195): 56 data bytes 64 bytes from 220.172.236.195: seq=0 ttl=63 time=3.659 ms 64 bytes from 220.172.236.195: seq=1 ttl=63 time=1.235 ms 64 bytes from 220.172.236.195: seq=2 ttl=63 time=1.401 ms --- 220.172.236.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.235/2.098/3.659 ms 2025-04-08 20:49:06,177 - INFO - Ping to IP 220.172.236.195 from VM ctest-TestBasicPolicy-25598349-15077449 passed 2025-04-08 20:49:06,358 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9f35346c-5d29-4723-9825-3d93fbf3498e", "href": "http://10.0.0.36:8082/network-policy/9f35346c-5d29-4723-9825-3d93fbf3498e"}} 2025-04-08 20:49:06,358 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-08 20:49:06,358 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 220.172.236.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2025-04-08 20:49:06,358 - DEBUG - ping -s 56 -c 3 -W 1 220.172.236.195 2025-04-08 20:49:09,570 - DEBUG - PING 220.172.236.195 (220.172.236.195): 56 data bytes 64 bytes from 220.172.236.195: seq=0 ttl=63 time=1.422 ms --- 220.172.236.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.422/1.422/1.422 ms 2025-04-08 20:49:09,570 - WARNING - Ping to IP 220.172.236.195 from VM ctest-TestBasicPolicy-25598349-15077449 failed 2025-04-08 20:49:09,571 - INFO - Deleting VM ctest-TestBasicPolicy-25598349-11359157 2025-04-08 20:49:09,638 - INFO - Deleting VM ctest-TestBasicPolicy-25598349-15077449 2025-04-08 20:49:10,013 - INFO - Deleted policy ctest-policy-allow-all-14390151 2025-04-08 20:49:10,013 - INFO - Deleting VN ctest-vn-68310575 2025-04-08 20:49:10,053 - DEBUG - VN 15057457-2fea-413a-9ea6-606b9e238a1a still in use: Unable to complete operation on network 15057457-2fea-413a-9ea6-606b9e238a1a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-57fa85d8-315f-4fbf-b7ac-052013b60a29'] 2025-04-08 20:49:10,054 - WARNING - Deleting VN ctest-vn-68310575 failed..Will retry 2025-04-08 20:49:12,167 - DEBUG - Response for deleting network () 2025-04-08 20:49:12,167 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c662a71c-a246-41ea-9da0-080fc9d6265c 2025-04-08 20:49:12,176 - DEBUG - Response Code: 404 2025-04-08 20:49:12,177 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2025-04-08 20:49:12,182 - DEBUG - Requesting: http://10.0.0.36:8082/domain/8b02daee-8a1c-4cc6-b712-d51f4277f3cd 2025-04-08 20:49:12,240 - DEBUG - Requesting: http://10.0.0.36:8082/project/ef96e5d9-2ab7-4289-bdc8-a71312e82d6a 2025-04-08 20:49:12,315 - INFO - Validated that VN ctest-vn-68310575 is not found in API Server 2025-04-08 20:49:12,327 - DEBUG - VN ctest-vn-68310575 is not present in Agent 10.0.0.36 2025-04-08 20:49:12,327 - INFO - Validated that VN ctest-vn-68310575 is not in any agent 2025-04-08 20:49:12,347 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-68310575 info 2025-04-08 20:49:12,348 - INFO - Deleting VN ctest-vn-46717721 2025-04-08 20:49:12,464 - DEBUG - Response for deleting network () 2025-04-08 20:49:12,465 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/7f38216d-97f3-4720-9fd0-0b79f4e9849c 2025-04-08 20:49:12,472 - DEBUG - Response Code: 404 2025-04-08 20:49:12,472 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2025-04-08 20:49:12,479 - DEBUG - Requesting: http://10.0.0.36:8082/domain/8b02daee-8a1c-4cc6-b712-d51f4277f3cd 2025-04-08 20:49:12,536 - DEBUG - Requesting: http://10.0.0.36:8082/project/ef96e5d9-2ab7-4289-bdc8-a71312e82d6a 2025-04-08 20:49:12,615 - INFO - Validated that VN ctest-vn-46717721 is not found in API Server 2025-04-08 20:49:12,626 - DEBUG - VN ctest-vn-46717721 is not present in Agent 10.0.0.36 2025-04-08 20:49:12,627 - INFO - Validated that VN ctest-vn-46717721 is not in any agent 2025-04-08 20:49:12,644 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-46717721 info 2025-04-08 20:49:12,903 - DEBUG - No XMPP flaps were noticed during the test
2025-04-08 20:49:12,903 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-04-08 20:49:12,903 - INFO - -------------------------------------------------------------------------------- 2025-04-08 20:49:13,577 - INFO - Deleted project: ctest-TestBasicPolicy-25598349, ID : ef96e5d9-2ab7-4289-bdc8-a71312e82d6a