2024-10-28 14:46:57,205 - INFO - Domain Default found not creating 2024-10-28 14:46:57,409 - INFO - Project ctest-TestBasicPolicy-06658238 not found, creating it 2024-10-28 14:46:57,915 - INFO - Created Project:ctest-TestBasicPolicy-06658238, ID : 5ae09dd7-24f3-46a8-9006-a14512b27b6a 2024-10-28 14:46:59,509 - INFO - ================================================================================ 2024-10-28 14:46:59,509 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-28 14:46:59,509 - 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-10-28 14:46:59,767 - DEBUG - Nothing to compare xmpp stats {'10.0.0.61': {'10.20.0.28': '0'}} with 2024-10-28 14:46:59,767 - INFO - Initial checks done. Running the testcase now 2024-10-28 14:46:59,767 - INFO - 2024-10-28 14:47:00,376 - DEBUG - Response for create_network : {'network': {'id': '5e77f536-9432-402f-9c97-eb8e1e751f60', 'name': 'ctest-vn-94495562', 'tenant_id': '5ae09dd724f346a89006a14512b27b6a', 'project_id': '5ae09dd724f346a89006a14512b27b6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06658238', 'ctest-vn-94495562'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 14:47:00,549 - DEBUG - Response for create_subnet : {'subnet': {'id': '09116c8e-87c2-4574-8eac-009148ab1ec5', 'name': '', 'tenant_id': '5ae09dd724f346a89006a14512b27b6a', 'network_id': '5e77f536-9432-402f-9c97-eb8e1e751f60', 'ip_version': 4, 'cidr': '131.168.181.0/26', 'allocation_pools': [{'start': '131.168.181.2', 'end': '131.168.181.62'}], 'gateway_ip': '131.168.181.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.168.181.2', 'tags': [], 'project_id': '5ae09dd724f346a89006a14512b27b6a'}} 2024-10-28 14:47:00,576 - INFO - Created VN ctest-vn-94495562 2024-10-28 14:47:00,634 - DEBUG - VN ctest-vn-94495562 UUID is 5e77f536-9432-402f-9c97-eb8e1e751f60 2024-10-28 14:47:00,971 - DEBUG - Response for create_network : {'network': {'id': 'aa092ade-34ef-4c6f-909c-92df50fee87c', 'name': 'ctest-vn-69657565', 'tenant_id': '5ae09dd724f346a89006a14512b27b6a', 'project_id': '5ae09dd724f346a89006a14512b27b6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06658238', 'ctest-vn-69657565'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 14:47:01,210 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e88832e-28ae-40a2-9b24-622b3d49d54a', 'name': '', 'tenant_id': '5ae09dd724f346a89006a14512b27b6a', 'network_id': 'aa092ade-34ef-4c6f-909c-92df50fee87c', 'ip_version': 4, 'cidr': '20.108.186.0/26', 'allocation_pools': [{'start': '20.108.186.2', 'end': '20.108.186.62'}], 'gateway_ip': '20.108.186.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.108.186.2', 'tags': [], 'project_id': '5ae09dd724f346a89006a14512b27b6a'}} 2024-10-28 14:47:01,232 - INFO - Created VN ctest-vn-69657565 2024-10-28 14:47:01,290 - DEBUG - VN ctest-vn-69657565 UUID is aa092ade-34ef-4c6f-909c-92df50fee87c 2024-10-28 14:47:01,421 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-94495562, 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-06658238:ctest-vn-69657565, 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-10-28 14:47:01,765 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5e77f536-9432-402f-9c97-eb8e1e751f60', 'name': 'ctest-vn-94495562', 'tenant_id': '5ae09dd724f346a89006a14512b27b6a', 'project_id': '5ae09dd724f346a89006a14512b27b6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['09116c8e-87c2-4574-8eac-009148ab1ec5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06658238', 'ctest-vn-94495562'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06658238', 'ctest-policy-allow-all-20989501']], 'subnet_ipam': [{'subnet_cidr': '131.168.181.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 14:47:02,023 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa092ade-34ef-4c6f-909c-92df50fee87c', 'name': 'ctest-vn-69657565', 'tenant_id': '5ae09dd724f346a89006a14512b27b6a', 'project_id': '5ae09dd724f346a89006a14512b27b6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e88832e-28ae-40a2-9b24-622b3d49d54a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06658238', 'ctest-vn-69657565'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06658238', 'ctest-policy-allow-all-20989501']], 'subnet_ipam': [{'subnet_cidr': '20.108.186.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 14:47:02,202 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2024-10-28 14:47:02,512 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2024-10-28 14:47:02,831 - DEBUG - Requesting: http://10.0.0.61:8082/domain/820f944f-8084-4d8a-9bb5-a2482dcb30b2 2024-10-28 14:47:02,857 - DEBUG - Requesting: http://10.0.0.61:8082/project/5ae09dd7-24f3-46a8-9006-a14512b27b6a 2024-10-28 14:47:02,949 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/5e77f536-9432-402f-9c97-eb8e1e751f60 2024-10-28 14:47:02,966 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/5e77f536-9432-402f-9c97-eb8e1e751f60 2024-10-28 14:47:02,982 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/a02a3f6a-d5cc-469d-b525-4e076e76e958 2024-10-28 14:47:02,993 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/a02a3f6a-d5cc-469d-b525-4e076e76e958 2024-10-28 14:47:03,006 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/b35fa277-e2c9-4452-a854-54cb38dcc316 2024-10-28 14:47:03,017 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 14:47:03,017 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/5e77f536-9432-402f-9c97-eb8e1e751f60 2024-10-28 14:47:03,032 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/a02a3f6a-d5cc-469d-b525-4e076e76e958 2024-10-28 14:47:03,056 - INFO - Verified VN network id 8 for VN 5e77f536-9432-402f-9c97-eb8e1e751f60 2024-10-28 14:47:03,057 - INFO - Verifications in API Server for VN ctest-vn-94495562 passed 2024-10-28 14:47:03,057 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/5e77f536-9432-402f-9c97-eb8e1e751f60 2024-10-28 14:47:03,075 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/a02a3f6a-d5cc-469d-b525-4e076e76e958 2024-10-28 14:47:03,085 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/a02a3f6a-d5cc-469d-b525-4e076e76e958 2024-10-28 14:47:03,097 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/b35fa277-e2c9-4452-a854-54cb38dcc316 2024-10-28 14:47:03,116 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-94495562', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06658238', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6807178976557154351', 'uuid-lslong': '11283746387028942688'}, 'enable': 'true', 'created': '2024-10-28T14:47:00', 'last-modified': '2024-10-28T14:47:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.380634'} 2024-10-28 14:47:03,124 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 14:47:03,125 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94495562 passed 2024-10-28 14:47:03,125 - DEBUG - ====Verifying policy data for ctest-vn-94495562 in API_Server ====== 2024-10-28 14:47:03,125 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2024-10-28 14:47:03,135 - DEBUG - Requesting: http://10.0.0.61:8082/domain/820f944f-8084-4d8a-9bb5-a2482dcb30b2 2024-10-28 14:47:03,153 - DEBUG - Requesting: http://10.0.0.61:8082/project/5ae09dd7-24f3-46a8-9006-a14512b27b6a 2024-10-28 14:47:03,243 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/5e77f536-9432-402f-9c97-eb8e1e751f60 2024-10-28 14:47:03,260 - DEBUG - ==>Verifying data for policy with id: 0b929c77-0ba9-45b9-a912-f2a06e55c22d, fqn: ['default-domain', 'ctest-TestBasicPolicy-06658238', 'ctest-policy-allow-all-20989501'] 2024-10-28 14:47:03,260 - INFO - VN ctest-vn-94495562 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 14:47:03,260 - DEBUG - Verifying the vn in opserver 2024-10-28 14:47:03,260 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-94495562 virtual network link through opserver 10.0.0.61 2024-10-28 14:47:03,260 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2024-10-28 14:47:03,573 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2024-10-28 14:47:03,645 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-94495562', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-94495562?flat'} 2024-10-28 14:47:03,645 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-94495562 is found in opserver 2024-10-28 14:47:03,657 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 14:47:03,663 - DEBUG - VRF ids for VN ctest-vn-94495562: {} 2024-10-28 14:47:03,664 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2024-10-28 14:47:03,670 - DEBUG - Requesting: http://10.0.0.61:8082/domain/820f944f-8084-4d8a-9bb5-a2482dcb30b2 2024-10-28 14:47:03,684 - DEBUG - Requesting: http://10.0.0.61:8082/project/5ae09dd7-24f3-46a8-9006-a14512b27b6a 2024-10-28 14:47:03,774 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/aa092ade-34ef-4c6f-909c-92df50fee87c 2024-10-28 14:47:03,792 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/aa092ade-34ef-4c6f-909c-92df50fee87c 2024-10-28 14:47:03,810 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/d26613ab-d9a1-498e-be07-1718a4239ade 2024-10-28 14:47:03,820 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/d26613ab-d9a1-498e-be07-1718a4239ade 2024-10-28 14:47:03,830 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/636e3b01-978e-49b5-9380-c6372c99d23f 2024-10-28 14:47:03,839 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 14:47:03,839 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/aa092ade-34ef-4c6f-909c-92df50fee87c 2024-10-28 14:47:03,855 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/d26613ab-d9a1-498e-be07-1718a4239ade 2024-10-28 14:47:03,878 - INFO - Verified VN network id 9 for VN aa092ade-34ef-4c6f-909c-92df50fee87c 2024-10-28 14:47:03,878 - INFO - Verifications in API Server for VN ctest-vn-69657565 passed 2024-10-28 14:47:03,878 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/aa092ade-34ef-4c6f-909c-92df50fee87c 2024-10-28 14:47:03,896 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/d26613ab-d9a1-498e-be07-1718a4239ade 2024-10-28 14:47:03,906 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/d26613ab-d9a1-498e-be07-1718a4239ade 2024-10-28 14:47:03,917 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/636e3b01-978e-49b5-9380-c6372c99d23f 2024-10-28 14:47:03,932 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-69657565', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06658238', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12252371395097349231', 'uuid-lslong': '10420365125662730364'}, 'enable': 'true', 'created': '2024-10-28T14:47:00', 'last-modified': '2024-10-28T14:47:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.947450'} 2024-10-28 14:47:03,939 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 14:47:03,939 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69657565 passed 2024-10-28 14:47:03,939 - DEBUG - ====Verifying policy data for ctest-vn-69657565 in API_Server ====== 2024-10-28 14:47:03,939 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2024-10-28 14:47:03,946 - DEBUG - Requesting: http://10.0.0.61:8082/domain/820f944f-8084-4d8a-9bb5-a2482dcb30b2 2024-10-28 14:47:03,960 - DEBUG - Requesting: http://10.0.0.61:8082/project/5ae09dd7-24f3-46a8-9006-a14512b27b6a 2024-10-28 14:47:04,042 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/aa092ade-34ef-4c6f-909c-92df50fee87c 2024-10-28 14:47:04,056 - DEBUG - ==>Verifying data for policy with id: 0b929c77-0ba9-45b9-a912-f2a06e55c22d, fqn: ['default-domain', 'ctest-TestBasicPolicy-06658238', 'ctest-policy-allow-all-20989501'] 2024-10-28 14:47:04,057 - INFO - VN ctest-vn-69657565 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 14:47:04,057 - DEBUG - Verifying the vn in opserver 2024-10-28 14:47:04,057 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-69657565 virtual network link through opserver 10.0.0.61 2024-10-28 14:47:04,057 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2024-10-28 14:47:04,070 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-69657565', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-69657565?flat'} 2024-10-28 14:47:04,070 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-69657565 is found in opserver 2024-10-28 14:47:04,082 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 14:47:04,088 - DEBUG - VRF ids for VN ctest-vn-69657565: {} 2024-10-28 14:47:04,153 - DEBUG - Services list from nova: [, , ] 2024-10-28 14:47:05,397 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2164-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2164-1) 2024-10-28 14:47:06,645 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2164-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2164-1) 2024-10-28 14:47:06,646 - INFO - Waiting for VM ctest-TestBasicPolicy-06658238-53446962 to be up.. 2024-10-28 14:47:06,755 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 14:47:11,858 - DEBUG - VM is in ACTIVE state now 2024-10-28 14:47:11,858 - INFO - VM name : ctest-TestBasicPolicy-06658238-53446962 2024-10-28 14:47:11,955 - DEBUG - VM ctest-TestBasicPolicy-06658238-53446962 ID is e1f14147-947d-4afa-bdb4-324b58124cd6 2024-10-28 14:47:11,976 - DEBUG - VM ctest-TestBasicPolicy-06658238-53446962 launched on Node cn-jenkins-deploy-platform-ansible-os-2164-1 2024-10-28 14:47:12,069 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/e1f14147-947d-4afa-bdb4-324b58124cd6 2024-10-28 14:47:12,084 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/54f385a5-4032-438a-84f1-23f0dc5ea7ef 2024-10-28 14:47:15,351 - 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 1007ms') 2024-10-28 14:47:15,352 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-06658238-53446962 failed! 2024-10-28 14:47:15,418 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-06658238:ctest-vn-94495562 is 131.168.181.1 and allocation pool is NOT set 2024-10-28 14:47:17,482 - 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.33 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.64 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.635/5.482/9.330/3.847 ms') 2024-10-28 14:47:17,482 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-06658238-53446962 passed 2024-10-28 14:47:17,642 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 14:47:17,642 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-06658238-53446962, IP 131.168.181.3, Port 22 2024-10-28 14:47:17,797 - DEBUG - VM ctest-TestBasicPolicy-06658238-53446962 is ready for SSH connections 2024-10-28 14:47:17,797 - INFO - Waiting for VM ctest-TestBasicPolicy-06658238-16865076 to be up.. 2024-10-28 14:47:17,909 - DEBUG - VM is in ACTIVE state now 2024-10-28 14:47:17,909 - INFO - VM name : ctest-TestBasicPolicy-06658238-16865076 2024-10-28 14:47:18,006 - DEBUG - VM ctest-TestBasicPolicy-06658238-16865076 ID is eecf5157-ece4-4a23-a950-f59892ed5298 2024-10-28 14:47:18,006 - DEBUG - VM ctest-TestBasicPolicy-06658238-16865076 launched on Node cn-jenkins-deploy-platform-ansible-os-2164-1 2024-10-28 14:47:18,093 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/eecf5157-ece4-4a23-a950-f59892ed5298 2024-10-28 14:47:18,104 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/092d6a8a-97d3-49c7-8dde-e2755023f955 2024-10-28 14:47:19,368 - 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=4.60 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.04 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.044/2.822/4.601/1.778 ms') 2024-10-28 14:47:19,369 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-06658238-16865076 passed 2024-10-28 14:47:19,534 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 14:47:19,534 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-06658238-16865076, IP 20.108.186.3, Port 22 2024-10-28 14:47:19,600 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-10-28 14:47:19,707 - DEBUG - VM ctest-TestBasicPolicy-06658238-16865076 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-28 14:47:24,707 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 14:47:24,707 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-06658238-16865076, IP 20.108.186.3, Port 22 2024-10-28 14:47:24,877 - DEBUG - VM ctest-TestBasicPolicy-06658238-16865076 is ready for SSH connections 2024-10-28 14:47:24,877 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 14:47:24,877 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 20.108.186.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.61, gateway password: c0ntrail123 2024-10-28 14:47:24,877 - DEBUG - ping -s 56 -c 3 -W 1 20.108.186.3 2024-10-28 14:47:28,897 - DEBUG - PING 20.108.186.3 (20.108.186.3): 56 data bytes 64 bytes from 20.108.186.3: seq=0 ttl=63 time=3.974 ms 64 bytes from 20.108.186.3: seq=1 ttl=63 time=1.101 ms 64 bytes from 20.108.186.3: seq=2 ttl=63 time=1.059 ms --- 20.108.186.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.059/2.044/3.974 ms 2024-10-28 14:47:28,897 - INFO - Ping to IP 20.108.186.3 from VM ctest-TestBasicPolicy-06658238-53446962 passed 2024-10-28 14:47:29,106 - DEBUG - Policy Update Response {"network-policy": {"uuid": "0b929c77-0ba9-45b9-a912-f2a06e55c22d", "href": "http://10.0.0.61:8082/network-policy/0b929c77-0ba9-45b9-a912-f2a06e55c22d"}} 2024-10-28 14:47:29,106 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 14:47:29,107 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 20.108.186.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.61, gateway password: c0ntrail123 2024-10-28 14:47:29,107 - DEBUG - ping -s 56 -c 3 -W 1 20.108.186.3 2024-10-28 14:47:32,325 - DEBUG - PING 20.108.186.3 (20.108.186.3): 56 data bytes 64 bytes from 20.108.186.3: seq=0 ttl=63 time=1.646 ms --- 20.108.186.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.646/1.646/1.646 ms 2024-10-28 14:47:32,325 - WARNING - Ping to IP 20.108.186.3 from VM ctest-TestBasicPolicy-06658238-53446962 failed 2024-10-28 14:47:32,325 - INFO - Deleting VM ctest-TestBasicPolicy-06658238-16865076 2024-10-28 14:47:32,408 - INFO - Deleting VM ctest-TestBasicPolicy-06658238-53446962 2024-10-28 14:47:32,910 - INFO - Deleted policy ctest-policy-allow-all-20989501 2024-10-28 14:47:32,910 - INFO - Deleting VN ctest-vn-69657565 2024-10-28 14:47:32,971 - DEBUG - VN aa092ade-34ef-4c6f-909c-92df50fee87c still in use: Unable to complete operation on network aa092ade-34ef-4c6f-909c-92df50fee87c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3908aa6f-28f0-44dd-857d-3a1f9721da91'] 2024-10-28 14:47:32,971 - WARNING - Deleting VN ctest-vn-69657565 failed..Will retry 2024-10-28 14:47:35,113 - DEBUG - Response for deleting network () 2024-10-28 14:47:35,113 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/d26613ab-d9a1-498e-be07-1718a4239ade 2024-10-28 14:47:35,121 - DEBUG - Response Code: 404 2024-10-28 14:47:35,121 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2024-10-28 14:47:35,134 - DEBUG - Requesting: http://10.0.0.61:8082/domain/820f944f-8084-4d8a-9bb5-a2482dcb30b2 2024-10-28 14:47:35,189 - DEBUG - Requesting: http://10.0.0.61:8082/project/5ae09dd7-24f3-46a8-9006-a14512b27b6a 2024-10-28 14:47:35,271 - INFO - Validated that VN ctest-vn-69657565 is not found in API Server 2024-10-28 14:47:35,283 - DEBUG - VN ctest-vn-69657565 is not present in Agent 10.0.0.61 2024-10-28 14:47:35,284 - INFO - Validated that VN ctest-vn-69657565 is not in any agent 2024-10-28 14:47:35,300 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-69657565 info 2024-10-28 14:47:35,300 - INFO - Deleting VN ctest-vn-94495562 2024-10-28 14:47:35,431 - DEBUG - Response for deleting network () 2024-10-28 14:47:35,431 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/a02a3f6a-d5cc-469d-b525-4e076e76e958 2024-10-28 14:47:35,443 - DEBUG - Response Code: 404 2024-10-28 14:47:35,443 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2024-10-28 14:47:35,449 - DEBUG - Requesting: http://10.0.0.61:8082/domain/820f944f-8084-4d8a-9bb5-a2482dcb30b2 2024-10-28 14:47:35,506 - DEBUG - Requesting: http://10.0.0.61:8082/project/5ae09dd7-24f3-46a8-9006-a14512b27b6a 2024-10-28 14:47:35,592 - INFO - Validated that VN ctest-vn-94495562 is not found in API Server 2024-10-28 14:47:35,604 - DEBUG - VN ctest-vn-94495562 is not present in Agent 10.0.0.61 2024-10-28 14:47:35,604 - INFO - Validated that VN ctest-vn-94495562 is not in any agent 2024-10-28 14:47:35,621 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94495562 info 2024-10-28 14:47:35,882 - DEBUG - No XMPP flaps were noticed during the test
2024-10-28 14:47:35,882 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2024-10-28 14:47:35,882 - INFO - -------------------------------------------------------------------------------- 2024-10-28 14:47:36,658 - INFO - Deleted project: ctest-TestBasicPolicy-06658238, ID : 5ae09dd7-24f3-46a8-9006-a14512b27b6a