2024-09-11 09:54:06,649 - INFO - Domain Default found not creating 2024-09-11 09:54:06,804 - INFO - Project ctest-TestBasicPolicy-45005617 not found, creating it 2024-09-11 09:54:07,250 - INFO - Created Project:ctest-TestBasicPolicy-45005617, ID : 97c4abb0-c596-4021-b520-2a32b258d6cf 2024-09-11 09:54:08,751 - INFO - ================================================================================ 2024-09-11 09:54:08,751 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-11 09:54:08,751 - 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 2024-09-11 09:54:09,004 - DEBUG - Nothing to compare xmpp stats {'10.0.0.53': {'10.20.0.6': '0'}} with 2024-09-11 09:54:09,005 - INFO - Initial checks done. Running the testcase now 2024-09-11 09:54:09,005 - INFO - 2024-09-11 09:54:09,569 - DEBUG - Response for create_network : {'network': {'id': 'ddf95635-1736-45f4-9d99-6e32c610ad51', 'name': 'ctest-vn-08105750', 'tenant_id': '97c4abb0c5964021b5202a32b258d6cf', 'project_id': '97c4abb0c5964021b5202a32b258d6cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45005617', 'ctest-vn-08105750'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 09:54:09,762 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f907e04-4ea6-4057-b324-834f4f5f07fc', 'name': '', 'tenant_id': '97c4abb0c5964021b5202a32b258d6cf', 'network_id': 'ddf95635-1736-45f4-9d99-6e32c610ad51', 'ip_version': 4, 'cidr': '168.209.2.64/26', 'allocation_pools': [{'start': '168.209.2.66', 'end': '168.209.2.126'}], 'gateway_ip': '168.209.2.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.209.2.66', 'tags': [], 'project_id': '97c4abb0c5964021b5202a32b258d6cf'}} 2024-09-11 09:54:09,783 - INFO - Created VN ctest-vn-08105750 2024-09-11 09:54:09,839 - DEBUG - VN ctest-vn-08105750 UUID is ddf95635-1736-45f4-9d99-6e32c610ad51 2024-09-11 09:54:10,151 - DEBUG - Response for create_network : {'network': {'id': '2c69ed94-edf3-4ff0-9282-5fafe0b9ec16', 'name': 'ctest-vn-32797391', 'tenant_id': '97c4abb0c5964021b5202a32b258d6cf', 'project_id': '97c4abb0c5964021b5202a32b258d6cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45005617', 'ctest-vn-32797391'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 09:54:10,327 - DEBUG - Response for create_subnet : {'subnet': {'id': '3621c861-c120-45bd-a80d-a1c2e0346274', 'name': '', 'tenant_id': '97c4abb0c5964021b5202a32b258d6cf', 'network_id': '2c69ed94-edf3-4ff0-9282-5fafe0b9ec16', 'ip_version': 4, 'cidr': '3.135.224.0/26', 'allocation_pools': [{'start': '3.135.224.2', 'end': '3.135.224.62'}], 'gateway_ip': '3.135.224.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.135.224.2', 'tags': [], 'project_id': '97c4abb0c5964021b5202a32b258d6cf'}} 2024-09-11 09:54:10,347 - INFO - Created VN ctest-vn-32797391 2024-09-11 09:54:10,399 - DEBUG - VN ctest-vn-32797391 UUID is 2c69ed94-edf3-4ff0-9282-5fafe0b9ec16 2024-09-11 09:54:10,519 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-08105750, 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-45005617:ctest-vn-32797391, 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] 2024-09-11 09:54:10,823 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ddf95635-1736-45f4-9d99-6e32c610ad51', 'name': 'ctest-vn-08105750', 'tenant_id': '97c4abb0c5964021b5202a32b258d6cf', 'project_id': '97c4abb0c5964021b5202a32b258d6cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f907e04-4ea6-4057-b324-834f4f5f07fc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45005617', 'ctest-vn-08105750'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45005617', 'ctest-policy-allow-all-07110015']], 'subnet_ipam': [{'subnet_cidr': '168.209.2.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-11 09:54:11,095 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c69ed94-edf3-4ff0-9282-5fafe0b9ec16', 'name': 'ctest-vn-32797391', 'tenant_id': '97c4abb0c5964021b5202a32b258d6cf', 'project_id': '97c4abb0c5964021b5202a32b258d6cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3621c861-c120-45bd-a80d-a1c2e0346274'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45005617', 'ctest-vn-32797391'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45005617', 'ctest-policy-allow-all-07110015']], 'subnet_ipam': [{'subnet_cidr': '3.135.224.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-11 09:54:11,243 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2024-09-11 09:54:11,541 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2024-09-11 09:54:11,572 - DEBUG - Requesting: http://10.0.0.53:8082/domain/d0b96564-9239-4b13-abae-add278b9a749 2024-09-11 09:54:11,589 - DEBUG - Requesting: http://10.0.0.53:8082/project/97c4abb0-c596-4021-b520-2a32b258d6cf 2024-09-11 09:54:11,667 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ddf95635-1736-45f4-9d99-6e32c610ad51 2024-09-11 09:54:11,678 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ddf95635-1736-45f4-9d99-6e32c610ad51 2024-09-11 09:54:11,685 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/ed91e5cd-fd37-438d-8814-7b9afc053fb2 2024-09-11 09:54:11,692 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/ed91e5cd-fd37-438d-8814-7b9afc053fb2 2024-09-11 09:54:11,700 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/e7ccfd51-bddc-413d-b805-82f8e5b2ebfa 2024-09-11 09:54:11,706 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-11 09:54:11,706 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ddf95635-1736-45f4-9d99-6e32c610ad51 2024-09-11 09:54:11,714 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/ed91e5cd-fd37-438d-8814-7b9afc053fb2 2024-09-11 09:54:11,725 - INFO - Verified VN network id 8 for VN ddf95635-1736-45f4-9d99-6e32c610ad51 2024-09-11 09:54:11,725 - INFO - Verifications in API Server for VN ctest-vn-08105750 passed 2024-09-11 09:54:11,725 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ddf95635-1736-45f4-9d99-6e32c610ad51 2024-09-11 09:54:11,733 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/ed91e5cd-fd37-438d-8814-7b9afc053fb2 2024-09-11 09:54:11,740 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/ed91e5cd-fd37-438d-8814-7b9afc053fb2 2024-09-11 09:54:11,747 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/e7ccfd51-bddc-413d-b805-82f8e5b2ebfa 2024-09-11 09:54:11,760 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-08105750', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45005617', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15994910337605715444', 'uuid-lslong': '11356229099741818193'}, 'enable': 'true', 'created': '2024-09-11T09:54:09', 'last-modified': '2024-09-11T09:54:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963836'} 2024-09-11 09:54:11,769 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-11 09:54:11,769 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08105750 passed 2024-09-11 09:54:11,769 - DEBUG - ====Verifying policy data for ctest-vn-08105750 in API_Server ====== 2024-09-11 09:54:11,769 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2024-09-11 09:54:11,776 - DEBUG - Requesting: http://10.0.0.53:8082/domain/d0b96564-9239-4b13-abae-add278b9a749 2024-09-11 09:54:11,787 - DEBUG - Requesting: http://10.0.0.53:8082/project/97c4abb0-c596-4021-b520-2a32b258d6cf 2024-09-11 09:54:11,853 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ddf95635-1736-45f4-9d99-6e32c610ad51 2024-09-11 09:54:11,861 - DEBUG - ==>Verifying data for policy with id: 342246e3-9523-4c76-953c-b5d8682c81c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-45005617', 'ctest-policy-allow-all-07110015'] 2024-09-11 09:54:11,861 - INFO - VN ctest-vn-08105750 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-11 09:54:11,861 - DEBUG - Verifying the vn in opserver 2024-09-11 09:54:11,861 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-08105750 virtual network link through opserver 10.0.0.53 2024-09-11 09:54:11,861 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks 2024-09-11 09:54:12,153 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks 2024-09-11 09:54:12,214 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-08105750', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-08105750?flat'} 2024-09-11 09:54:12,214 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-08105750 is found in opserver 2024-09-11 09:54:12,225 - DEBUG - Do not have enough data to verify VN in agent 2024-09-11 09:54:12,230 - DEBUG - VRF ids for VN ctest-vn-08105750: {} 2024-09-11 09:54:12,230 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2024-09-11 09:54:12,236 - DEBUG - Requesting: http://10.0.0.53:8082/domain/d0b96564-9239-4b13-abae-add278b9a749 2024-09-11 09:54:12,247 - DEBUG - Requesting: http://10.0.0.53:8082/project/97c4abb0-c596-4021-b520-2a32b258d6cf 2024-09-11 09:54:12,317 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2c69ed94-edf3-4ff0-9282-5fafe0b9ec16 2024-09-11 09:54:12,327 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2c69ed94-edf3-4ff0-9282-5fafe0b9ec16 2024-09-11 09:54:12,335 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/50f90618-18ce-4f15-9871-6c65c5c5f10b 2024-09-11 09:54:12,343 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/50f90618-18ce-4f15-9871-6c65c5c5f10b 2024-09-11 09:54:12,349 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/3bd9a4b8-4bff-4579-bffe-f85ed0c641ea 2024-09-11 09:54:12,355 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-11 09:54:12,355 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2c69ed94-edf3-4ff0-9282-5fafe0b9ec16 2024-09-11 09:54:12,363 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/50f90618-18ce-4f15-9871-6c65c5c5f10b 2024-09-11 09:54:12,374 - INFO - Verified VN network id 9 for VN 2c69ed94-edf3-4ff0-9282-5fafe0b9ec16 2024-09-11 09:54:12,375 - INFO - Verifications in API Server for VN ctest-vn-32797391 passed 2024-09-11 09:54:12,375 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2c69ed94-edf3-4ff0-9282-5fafe0b9ec16 2024-09-11 09:54:12,383 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/50f90618-18ce-4f15-9871-6c65c5c5f10b 2024-09-11 09:54:12,389 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/50f90618-18ce-4f15-9871-6c65c5c5f10b 2024-09-11 09:54:12,396 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/3bd9a4b8-4bff-4579-bffe-f85ed0c641ea 2024-09-11 09:54:12,407 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-32797391', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45005617', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3200350234126536688', 'uuid-lslong': '10557105685504060438'}, 'enable': 'true', 'created': '2024-09-11T09:54:10', 'last-modified': '2024-09-11T09:54:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.382748'} 2024-09-11 09:54:12,414 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-11 09:54:12,414 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32797391 passed 2024-09-11 09:54:12,414 - DEBUG - ====Verifying policy data for ctest-vn-32797391 in API_Server ====== 2024-09-11 09:54:12,414 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2024-09-11 09:54:12,420 - DEBUG - Requesting: http://10.0.0.53:8082/domain/d0b96564-9239-4b13-abae-add278b9a749 2024-09-11 09:54:12,432 - DEBUG - Requesting: http://10.0.0.53:8082/project/97c4abb0-c596-4021-b520-2a32b258d6cf 2024-09-11 09:54:12,501 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2c69ed94-edf3-4ff0-9282-5fafe0b9ec16 2024-09-11 09:54:12,509 - DEBUG - ==>Verifying data for policy with id: 342246e3-9523-4c76-953c-b5d8682c81c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-45005617', 'ctest-policy-allow-all-07110015'] 2024-09-11 09:54:12,509 - INFO - VN ctest-vn-32797391 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-11 09:54:12,509 - DEBUG - Verifying the vn in opserver 2024-09-11 09:54:12,509 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-32797391 virtual network link through opserver 10.0.0.53 2024-09-11 09:54:12,509 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks 2024-09-11 09:54:12,520 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-32797391', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-32797391?flat'} 2024-09-11 09:54:12,520 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-32797391 is found in opserver 2024-09-11 09:54:12,531 - DEBUG - Do not have enough data to verify VN in agent 2024-09-11 09:54:12,536 - DEBUG - VRF ids for VN ctest-vn-32797391: {} 2024-09-11 09:54:12,589 - DEBUG - Services list from nova: [, , ] 2024-09-11 09:54:13,633 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1892-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1892-1) 2024-09-11 09:54:14,865 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1892-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1892-1) 2024-09-11 09:54:14,865 - INFO - Waiting for VM ctest-TestBasicPolicy-45005617-48242985 to be up.. 2024-09-11 09:54:14,962 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-11 09:54:20,041 - DEBUG - VM is in ACTIVE state now 2024-09-11 09:54:20,041 - INFO - VM name : ctest-TestBasicPolicy-45005617-48242985 2024-09-11 09:54:20,121 - DEBUG - VM ctest-TestBasicPolicy-45005617-48242985 ID is f210889d-a1d8-425d-80f7-369df1936bda 2024-09-11 09:54:20,139 - DEBUG - VM ctest-TestBasicPolicy-45005617-48242985 launched on Node cn-jenkins-deploy-platform-ansible-os-1892-1 2024-09-11 09:54:20,224 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine/f210889d-a1d8-425d-80f7-369df1936bda 2024-09-11 09:54:20,235 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine-interface/ef7d3cc8-5201-4870-a95f-6f0c5dad1ff6 2024-09-11 09:54:23,492 - 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 1019ms') 2024-09-11 09:54:23,492 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45005617-48242985 failed! 2024-09-11 09:54:23,547 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-08105750 is 168.209.2.65 and allocation pool is NOT set 2024-09-11 09:54:25,603 - 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=4.45 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.04 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 = 2.040/3.243/4.446/1.203 ms') 2024-09-11 09:54:25,603 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-45005617-48242985 passed 2024-09-11 09:54:25,751 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 09:54:25,751 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45005617-48242985, IP 168.209.2.67, Port 22 2024-09-11 09:54:25,917 - DEBUG - VM ctest-TestBasicPolicy-45005617-48242985 is ready for SSH connections 2024-09-11 09:54:25,917 - INFO - Waiting for VM ctest-TestBasicPolicy-45005617-38133874 to be up.. 2024-09-11 09:54:25,999 - DEBUG - VM is in ACTIVE state now 2024-09-11 09:54:25,999 - INFO - VM name : ctest-TestBasicPolicy-45005617-38133874 2024-09-11 09:54:26,074 - DEBUG - VM ctest-TestBasicPolicy-45005617-38133874 ID is ef95cf43-0ef0-4aac-b79a-d7c14e3edb33 2024-09-11 09:54:26,074 - DEBUG - VM ctest-TestBasicPolicy-45005617-38133874 launched on Node cn-jenkins-deploy-platform-ansible-os-1892-1 2024-09-11 09:54:26,151 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine/ef95cf43-0ef0-4aac-b79a-d7c14e3edb33 2024-09-11 09:54:26,161 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine-interface/579f90ae-b405-4cb2-a96b-8f7d961ce0dc 2024-09-11 09:54:27,395 - 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=2.77 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.598 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.598/1.681/2.765/1.083 ms') 2024-09-11 09:54:27,395 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-45005617-38133874 passed 2024-09-11 09:54:27,547 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 09:54:27,547 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-45005617-38133874, IP 3.135.224.3, Port 22 2024-09-11 09:54:27,702 - DEBUG - VM ctest-TestBasicPolicy-45005617-38133874 is ready for SSH connections 2024-09-11 09:54:27,702 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 09:54:27,702 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 3.135.224.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.53, gateway password: c0ntrail123 2024-09-11 09:54:27,702 - DEBUG - ping -s 56 -c 3 -W 1 3.135.224.3 2024-09-11 09:54:31,697 - DEBUG - PING 3.135.224.3 (3.135.224.3): 56 data bytes 64 bytes from 3.135.224.3: seq=0 ttl=63 time=3.625 ms 64 bytes from 3.135.224.3: seq=1 ttl=63 time=0.724 ms 64 bytes from 3.135.224.3: seq=2 ttl=63 time=0.815 ms --- 3.135.224.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.724/1.721/3.625 ms 2024-09-11 09:54:31,697 - INFO - Ping to IP 3.135.224.3 from VM ctest-TestBasicPolicy-45005617-48242985 passed 2024-09-11 09:54:31,886 - DEBUG - Policy Update Response {"network-policy": {"uuid": "342246e3-9523-4c76-953c-b5d8682c81c7", "href": "http://10.0.0.53:8082/network-policy/342246e3-9523-4c76-953c-b5d8682c81c7"}} 2024-09-11 09:54:31,887 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 09:54:31,887 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 3.135.224.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.53, gateway password: c0ntrail123 2024-09-11 09:54:31,887 - DEBUG - ping -s 56 -c 3 -W 1 3.135.224.3 2024-09-11 09:54:35,141 - DEBUG - PING 3.135.224.3 (3.135.224.3): 56 data bytes 64 bytes from 3.135.224.3: seq=0 ttl=63 time=1.615 ms --- 3.135.224.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.615/1.615/1.615 ms 2024-09-11 09:54:35,142 - WARNING - Ping to IP 3.135.224.3 from VM ctest-TestBasicPolicy-45005617-48242985 failed 2024-09-11 09:54:35,142 - INFO - Deleting VM ctest-TestBasicPolicy-45005617-38133874 2024-09-11 09:54:35,206 - INFO - Deleting VM ctest-TestBasicPolicy-45005617-48242985 2024-09-11 09:54:35,601 - INFO - Deleted policy ctest-policy-allow-all-07110015 2024-09-11 09:54:35,601 - INFO - Deleting VN ctest-vn-32797391 2024-09-11 09:54:35,652 - DEBUG - VN 2c69ed94-edf3-4ff0-9282-5fafe0b9ec16 still in use: Unable to complete operation on network 2c69ed94-edf3-4ff0-9282-5fafe0b9ec16. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-30e61746-f83f-482a-a464-a9a118b866bf'] 2024-09-11 09:54:35,652 - WARNING - Deleting VN ctest-vn-32797391 failed..Will retry 2024-09-11 09:54:37,753 - DEBUG - Response for deleting network () 2024-09-11 09:54:37,754 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/50f90618-18ce-4f15-9871-6c65c5c5f10b 2024-09-11 09:54:37,759 - DEBUG - Response Code: 404 2024-09-11 09:54:37,759 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2024-09-11 09:54:37,769 - DEBUG - Requesting: http://10.0.0.53:8082/domain/d0b96564-9239-4b13-abae-add278b9a749 2024-09-11 09:54:37,824 - DEBUG - Requesting: http://10.0.0.53:8082/project/97c4abb0-c596-4021-b520-2a32b258d6cf 2024-09-11 09:54:37,892 - INFO - Validated that VN ctest-vn-32797391 is not found in API Server 2024-09-11 09:54:37,903 - DEBUG - VN ctest-vn-32797391 is not present in Agent 10.0.0.53 2024-09-11 09:54:37,903 - INFO - Validated that VN ctest-vn-32797391 is not in any agent 2024-09-11 09:54:37,919 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-32797391 info 2024-09-11 09:54:37,919 - INFO - Deleting VN ctest-vn-08105750 2024-09-11 09:54:38,034 - DEBUG - Response for deleting network () 2024-09-11 09:54:38,034 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/ed91e5cd-fd37-438d-8814-7b9afc053fb2 2024-09-11 09:54:38,039 - DEBUG - Response Code: 404 2024-09-11 09:54:38,039 - DEBUG - Requesting: http://10.0.0.53:8082/domains 2024-09-11 09:54:38,044 - DEBUG - Requesting: http://10.0.0.53:8082/domain/d0b96564-9239-4b13-abae-add278b9a749 2024-09-11 09:54:38,100 - DEBUG - Requesting: http://10.0.0.53:8082/project/97c4abb0-c596-4021-b520-2a32b258d6cf 2024-09-11 09:54:38,171 - INFO - Validated that VN ctest-vn-08105750 is not found in API Server 2024-09-11 09:54:38,182 - DEBUG - VN ctest-vn-08105750 is not present in Agent 10.0.0.53 2024-09-11 09:54:38,182 - INFO - Validated that VN ctest-vn-08105750 is not in any agent 2024-09-11 09:54:38,198 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-08105750 info 2024-09-11 09:54:38,452 - DEBUG - No XMPP flaps were noticed during the test 2024-09-11 09:54:38,453 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-09-11 09:54:38,453 - INFO - -------------------------------------------------------------------------------- 2024-09-11 09:54:39,127 - INFO - Deleted project: ctest-TestBasicPolicy-45005617, ID : 97c4abb0-c596-4021-b520-2a32b258d6cf