2024-09-17 09:03:23,625 - INFO - Domain Default found not creating 2024-09-17 09:03:23,793 - INFO - Project ctest-TestBasicPolicy-82350485 not found, creating it 2024-09-17 09:03:24,285 - INFO - Created Project:ctest-TestBasicPolicy-82350485, ID : a95d3067-02e7-4c9c-a2a9-87b029ce8601 2024-09-17 09:03:25,839 - INFO - ================================================================================ 2024-09-17 09:03:25,839 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-17 09:03:25,839 - 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-17 09:03:26,094 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.23': '0'}} with 2024-09-17 09:03:26,094 - INFO - Initial checks done. Running the testcase now 2024-09-17 09:03:26,094 - INFO - 2024-09-17 09:03:26,684 - DEBUG - Response for create_network : {'network': {'id': '334015b6-c139-46b9-afff-bc688498408f', 'name': 'ctest-vn-56679093', 'tenant_id': 'a95d306702e74c9ca2a987b029ce8601', 'project_id': 'a95d306702e74c9ca2a987b029ce8601', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82350485', 'ctest-vn-56679093'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 09:03:26,865 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dabb0255-f0d0-4d59-8628-1f16511431b0', 'name': '', 'tenant_id': 'a95d306702e74c9ca2a987b029ce8601', 'network_id': '334015b6-c139-46b9-afff-bc688498408f', 'ip_version': 4, 'cidr': '17.144.105.0/26', 'allocation_pools': [{'start': '17.144.105.2', 'end': '17.144.105.62'}], 'gateway_ip': '17.144.105.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.144.105.2', 'tags': [], 'project_id': 'a95d306702e74c9ca2a987b029ce8601'}} 2024-09-17 09:03:26,888 - INFO - Created VN ctest-vn-56679093 2024-09-17 09:03:26,952 - DEBUG - VN ctest-vn-56679093 UUID is 334015b6-c139-46b9-afff-bc688498408f 2024-09-17 09:03:27,287 - DEBUG - Response for create_network : {'network': {'id': '0e493638-9d6b-4ed5-8e02-f8ee5993235e', 'name': 'ctest-vn-57710554', 'tenant_id': 'a95d306702e74c9ca2a987b029ce8601', 'project_id': 'a95d306702e74c9ca2a987b029ce8601', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82350485', 'ctest-vn-57710554'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 09:03:27,456 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e75eaaf-42a8-4488-84c0-ec5cbdc2fdcc', 'name': '', 'tenant_id': 'a95d306702e74c9ca2a987b029ce8601', 'network_id': '0e493638-9d6b-4ed5-8e02-f8ee5993235e', 'ip_version': 4, 'cidr': '108.253.232.192/26', 'allocation_pools': [{'start': '108.253.232.194', 'end': '108.253.232.254'}], 'gateway_ip': '108.253.232.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.253.232.194', 'tags': [], 'project_id': 'a95d306702e74c9ca2a987b029ce8601'}} 2024-09-17 09:03:27,476 - INFO - Created VN ctest-vn-57710554 2024-09-17 09:03:27,536 - DEBUG - VN ctest-vn-57710554 UUID is 0e493638-9d6b-4ed5-8e02-f8ee5993235e 2024-09-17 09:03:27,661 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82350485:ctest-vn-56679093, 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-82350485:ctest-vn-57710554, 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-17 09:03:27,984 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '334015b6-c139-46b9-afff-bc688498408f', 'name': 'ctest-vn-56679093', 'tenant_id': 'a95d306702e74c9ca2a987b029ce8601', 'project_id': 'a95d306702e74c9ca2a987b029ce8601', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dabb0255-f0d0-4d59-8628-1f16511431b0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82350485', 'ctest-vn-56679093'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82350485', 'ctest-policy-allow-all-23895012']], 'subnet_ipam': [{'subnet_cidr': '17.144.105.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 09:03:28,227 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0e493638-9d6b-4ed5-8e02-f8ee5993235e', 'name': 'ctest-vn-57710554', 'tenant_id': 'a95d306702e74c9ca2a987b029ce8601', 'project_id': 'a95d306702e74c9ca2a987b029ce8601', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9e75eaaf-42a8-4488-84c0-ec5cbdc2fdcc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82350485', 'ctest-vn-57710554'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82350485', 'ctest-policy-allow-all-23895012']], 'subnet_ipam': [{'subnet_cidr': '108.253.232.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-17 09:03:28,408 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-17 09:03:28,705 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-17 09:03:28,737 - DEBUG - Requesting: http://10.0.0.29:8082/domain/f6595933-b938-47f1-ab5c-4e7ea8e95489 2024-09-17 09:03:28,753 - DEBUG - Requesting: http://10.0.0.29:8082/project/a95d3067-02e7-4c9c-a2a9-87b029ce8601 2024-09-17 09:03:28,834 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/334015b6-c139-46b9-afff-bc688498408f 2024-09-17 09:03:28,850 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/334015b6-c139-46b9-afff-bc688498408f 2024-09-17 09:03:28,864 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/c134553b-8d13-4eb0-8c09-871bdf766082 2024-09-17 09:03:28,873 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/c134553b-8d13-4eb0-8c09-871bdf766082 2024-09-17 09:03:28,881 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/2535057f-0888-4a56-b57f-7d881ff4c065 2024-09-17 09:03:28,888 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 09:03:28,888 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/334015b6-c139-46b9-afff-bc688498408f 2024-09-17 09:03:28,901 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/c134553b-8d13-4eb0-8c09-871bdf766082 2024-09-17 09:03:28,921 - INFO - Verified VN network id 7 for VN 334015b6-c139-46b9-afff-bc688498408f 2024-09-17 09:03:28,922 - INFO - Verifications in API Server for VN ctest-vn-56679093 passed 2024-09-17 09:03:28,922 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/334015b6-c139-46b9-afff-bc688498408f 2024-09-17 09:03:28,936 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/c134553b-8d13-4eb0-8c09-871bdf766082 2024-09-17 09:03:28,945 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/c134553b-8d13-4eb0-8c09-871bdf766082 2024-09-17 09:03:28,955 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/2535057f-0888-4a56-b57f-7d881ff4c065 2024-09-17 09:03:28,970 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82350485:ctest-vn-56679093', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82350485', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3692975569113794233', 'uuid-lslong': '12682062232785797263'}, 'enable': 'true', 'created': '2024-09-17T09:03:26', 'last-modified': '2024-09-17T09:03:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.015070'} 2024-09-17 09:03:28,977 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-17 09:03:28,977 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56679093 passed 2024-09-17 09:03:28,978 - DEBUG - ====Verifying policy data for ctest-vn-56679093 in API_Server ====== 2024-09-17 09:03:28,978 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-17 09:03:28,984 - DEBUG - Requesting: http://10.0.0.29:8082/domain/f6595933-b938-47f1-ab5c-4e7ea8e95489 2024-09-17 09:03:28,998 - DEBUG - Requesting: http://10.0.0.29:8082/project/a95d3067-02e7-4c9c-a2a9-87b029ce8601 2024-09-17 09:03:29,078 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/334015b6-c139-46b9-afff-bc688498408f 2024-09-17 09:03:29,092 - DEBUG - ==>Verifying data for policy with id: 6674983b-0bbe-435b-b6b7-28b3dc96081b, fqn: ['default-domain', 'ctest-TestBasicPolicy-82350485', 'ctest-policy-allow-all-23895012'] 2024-09-17 09:03:29,093 - INFO - VN ctest-vn-56679093 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 09:03:29,093 - DEBUG - Verifying the vn in opserver 2024-09-17 09:03:29,093 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82350485:ctest-vn-56679093 virtual network link through opserver 10.0.0.29 2024-09-17 09:03:29,093 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-09-17 09:03:29,387 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-09-17 09:03:29,451 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82350485:ctest-vn-56679093', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82350485:ctest-vn-56679093?flat'} 2024-09-17 09:03:29,451 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82350485:ctest-vn-56679093 is found in opserver 2024-09-17 09:03:29,463 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 09:03:29,469 - DEBUG - VRF ids for VN ctest-vn-56679093: {} 2024-09-17 09:03:29,469 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-17 09:03:29,476 - DEBUG - Requesting: http://10.0.0.29:8082/domain/f6595933-b938-47f1-ab5c-4e7ea8e95489 2024-09-17 09:03:29,489 - DEBUG - Requesting: http://10.0.0.29:8082/project/a95d3067-02e7-4c9c-a2a9-87b029ce8601 2024-09-17 09:03:29,576 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/0e493638-9d6b-4ed5-8e02-f8ee5993235e 2024-09-17 09:03:29,593 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/0e493638-9d6b-4ed5-8e02-f8ee5993235e 2024-09-17 09:03:29,606 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/3a912f48-5138-44fb-b808-a1eb260ef005 2024-09-17 09:03:29,615 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/3a912f48-5138-44fb-b808-a1eb260ef005 2024-09-17 09:03:29,625 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/0e9acd19-659f-4ae9-9539-05756514b63a 2024-09-17 09:03:29,632 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 09:03:29,632 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/0e493638-9d6b-4ed5-8e02-f8ee5993235e 2024-09-17 09:03:29,646 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/3a912f48-5138-44fb-b808-a1eb260ef005 2024-09-17 09:03:29,668 - INFO - Verified VN network id 8 for VN 0e493638-9d6b-4ed5-8e02-f8ee5993235e 2024-09-17 09:03:29,668 - INFO - Verifications in API Server for VN ctest-vn-57710554 passed 2024-09-17 09:03:29,669 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/0e493638-9d6b-4ed5-8e02-f8ee5993235e 2024-09-17 09:03:29,686 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/3a912f48-5138-44fb-b808-a1eb260ef005 2024-09-17 09:03:29,695 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/3a912f48-5138-44fb-b808-a1eb260ef005 2024-09-17 09:03:29,705 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/0e9acd19-659f-4ae9-9539-05756514b63a 2024-09-17 09:03:29,720 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82350485:ctest-vn-57710554', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82350485', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1029413606617992917', 'uuid-lslong': '10233015005927908190'}, 'enable': 'true', 'created': '2024-09-17T09:03:27', 'last-modified': '2024-09-17T09:03:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.511724'} 2024-09-17 09:03:29,728 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-17 09:03:29,728 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57710554 passed 2024-09-17 09:03:29,728 - DEBUG - ====Verifying policy data for ctest-vn-57710554 in API_Server ====== 2024-09-17 09:03:29,728 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-17 09:03:29,737 - DEBUG - Requesting: http://10.0.0.29:8082/domain/f6595933-b938-47f1-ab5c-4e7ea8e95489 2024-09-17 09:03:29,750 - DEBUG - Requesting: http://10.0.0.29:8082/project/a95d3067-02e7-4c9c-a2a9-87b029ce8601 2024-09-17 09:03:29,839 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/0e493638-9d6b-4ed5-8e02-f8ee5993235e 2024-09-17 09:03:29,854 - DEBUG - ==>Verifying data for policy with id: 6674983b-0bbe-435b-b6b7-28b3dc96081b, fqn: ['default-domain', 'ctest-TestBasicPolicy-82350485', 'ctest-policy-allow-all-23895012'] 2024-09-17 09:03:29,854 - INFO - VN ctest-vn-57710554 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-17 09:03:29,854 - DEBUG - Verifying the vn in opserver 2024-09-17 09:03:29,854 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82350485:ctest-vn-57710554 virtual network link through opserver 10.0.0.29 2024-09-17 09:03:29,854 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-09-17 09:03:29,866 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82350485:ctest-vn-57710554', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82350485:ctest-vn-57710554?flat'} 2024-09-17 09:03:29,866 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82350485:ctest-vn-57710554 is found in opserver 2024-09-17 09:03:29,877 - DEBUG - Do not have enough data to verify VN in agent 2024-09-17 09:03:29,884 - DEBUG - VRF ids for VN ctest-vn-57710554: {} 2024-09-17 09:03:29,941 - DEBUG - Services list from nova: [, , ] 2024-09-17 09:03:30,997 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1956-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1956-1) 2024-09-17 09:03:32,318 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1956-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1956-1) 2024-09-17 09:03:32,318 - INFO - Waiting for VM ctest-TestBasicPolicy-82350485-73630356 to be up.. 2024-09-17 09:03:32,415 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 09:03:37,502 - DEBUG - VM is in ACTIVE state now 2024-09-17 09:03:37,502 - INFO - VM name : ctest-TestBasicPolicy-82350485-73630356 2024-09-17 09:03:37,599 - DEBUG - VM ctest-TestBasicPolicy-82350485-73630356 ID is 35fdbb86-df56-4647-9cb7-80db6a3e4963 2024-09-17 09:03:37,621 - DEBUG - VM ctest-TestBasicPolicy-82350485-73630356 launched on Node cn-jenkins-deploy-platform-ansible-os-1956-1 2024-09-17 09:03:37,713 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/35fdbb86-df56-4647-9cb7-80db6a3e4963 2024-09-17 09:03:37,724 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/42ae8eeb-75c6-41a1-abc8-12356defe9e3 2024-09-17 09:03:40,998 - 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 1015ms') 2024-09-17 09:03:40,998 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82350485-73630356 failed! 2024-09-17 09:03:41,060 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-82350485:ctest-vn-56679093 is 17.144.105.1 and allocation pool is NOT set 2024-09-17 09:03:43,118 - 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=2.95 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.449 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.449/1.698/2.947/1.249 ms') 2024-09-17 09:03:43,118 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82350485-73630356 passed 2024-09-17 09:03:43,284 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:03:43,284 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82350485-73630356, IP 17.144.105.3, Port 22 2024-09-17 09:03:43,453 - DEBUG - VM ctest-TestBasicPolicy-82350485-73630356 is ready for SSH connections 2024-09-17 09:03:43,453 - INFO - Waiting for VM ctest-TestBasicPolicy-82350485-52864970 to be up.. 2024-09-17 09:03:43,543 - DEBUG - VM is in ACTIVE state now 2024-09-17 09:03:43,543 - INFO - VM name : ctest-TestBasicPolicy-82350485-52864970 2024-09-17 09:03:43,631 - DEBUG - VM ctest-TestBasicPolicy-82350485-52864970 ID is 5b5d6dd0-f879-459a-a4b7-e907d5c3f83c 2024-09-17 09:03:43,631 - DEBUG - VM ctest-TestBasicPolicy-82350485-52864970 launched on Node cn-jenkins-deploy-platform-ansible-os-1956-1 2024-09-17 09:03:43,714 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/5b5d6dd0-f879-459a-a4b7-e907d5c3f83c 2024-09-17 09:03:43,725 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/fd76bcb3-9103-4caf-b42e-6e51a2c4bbe9 2024-09-17 09:03:44,978 - 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.79 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.410 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.410/1.599/2.789/1.189 ms') 2024-09-17 09:03:44,978 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-82350485-52864970 passed 2024-09-17 09:03:45,140 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:03:45,140 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82350485-52864970, IP 108.253.232.195, Port 22 2024-09-17 09:03:45,295 - DEBUG - VM ctest-TestBasicPolicy-82350485-52864970 is ready for SSH connections 2024-09-17 09:03:45,296 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:03:45,296 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 108.253.232.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-09-17 09:03:45,296 - DEBUG - ping -s 56 -c 3 -W 1 108.253.232.195 2024-09-17 09:03:48,999 - DEBUG - PING 108.253.232.195 (108.253.232.195): 56 data bytes 64 bytes from 108.253.232.195: seq=0 ttl=63 time=3.482 ms 64 bytes from 108.253.232.195: seq=1 ttl=63 time=0.881 ms 64 bytes from 108.253.232.195: seq=2 ttl=63 time=0.901 ms --- 108.253.232.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.881/1.754/3.482 ms 2024-09-17 09:03:48,999 - INFO - Ping to IP 108.253.232.195 from VM ctest-TestBasicPolicy-82350485-73630356 passed 2024-09-17 09:03:49,191 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6674983b-0bbe-435b-b6b7-28b3dc96081b", "href": "http://10.0.0.29:8082/network-policy/6674983b-0bbe-435b-b6b7-28b3dc96081b"}} 2024-09-17 09:03:49,192 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:03:49,192 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 108.253.232.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-09-17 09:03:49,192 - DEBUG - ping -s 56 -c 3 -W 1 108.253.232.195 2024-09-17 09:03:52,392 - DEBUG - PING 108.253.232.195 (108.253.232.195): 56 data bytes 64 bytes from 108.253.232.195: seq=0 ttl=63 time=1.453 ms --- 108.253.232.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.453/1.453/1.453 ms 2024-09-17 09:03:52,392 - WARNING - Ping to IP 108.253.232.195 from VM ctest-TestBasicPolicy-82350485-73630356 failed 2024-09-17 09:03:52,393 - INFO - Deleting VM ctest-TestBasicPolicy-82350485-52864970 2024-09-17 09:03:52,461 - INFO - Deleting VM ctest-TestBasicPolicy-82350485-73630356 2024-09-17 09:03:52,910 - INFO - Deleted policy ctest-policy-allow-all-23895012 2024-09-17 09:03:52,911 - INFO - Deleting VN ctest-vn-57710554 2024-09-17 09:03:52,950 - DEBUG - VN 0e493638-9d6b-4ed5-8e02-f8ee5993235e still in use: Unable to complete operation on network 0e493638-9d6b-4ed5-8e02-f8ee5993235e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-73bf3df1-ac32-436e-8fed-573d09e0f8fa'] 2024-09-17 09:03:52,950 - WARNING - Deleting VN ctest-vn-57710554 failed..Will retry 2024-09-17 09:03:55,082 - DEBUG - Response for deleting network () 2024-09-17 09:03:55,083 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/3a912f48-5138-44fb-b808-a1eb260ef005 2024-09-17 09:03:55,093 - DEBUG - Response Code: 404 2024-09-17 09:03:55,093 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-17 09:03:55,105 - DEBUG - Requesting: http://10.0.0.29:8082/domain/f6595933-b938-47f1-ab5c-4e7ea8e95489 2024-09-17 09:03:55,162 - DEBUG - Requesting: http://10.0.0.29:8082/project/a95d3067-02e7-4c9c-a2a9-87b029ce8601 2024-09-17 09:03:55,248 - INFO - Validated that VN ctest-vn-57710554 is not found in API Server 2024-09-17 09:03:55,260 - DEBUG - VN ctest-vn-57710554 is not present in Agent 10.0.0.29 2024-09-17 09:03:55,260 - INFO - Validated that VN ctest-vn-57710554 is not in any agent 2024-09-17 09:03:55,277 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57710554 info 2024-09-17 09:03:55,278 - INFO - Deleting VN ctest-vn-56679093 2024-09-17 09:03:55,386 - DEBUG - Response for deleting network () 2024-09-17 09:03:55,386 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/c134553b-8d13-4eb0-8c09-871bdf766082 2024-09-17 09:03:55,394 - DEBUG - Response Code: 404 2024-09-17 09:03:55,394 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-09-17 09:03:55,400 - DEBUG - Requesting: http://10.0.0.29:8082/domain/f6595933-b938-47f1-ab5c-4e7ea8e95489 2024-09-17 09:03:55,454 - DEBUG - Requesting: http://10.0.0.29:8082/project/a95d3067-02e7-4c9c-a2a9-87b029ce8601 2024-09-17 09:03:55,533 - INFO - Validated that VN ctest-vn-56679093 is not found in API Server 2024-09-17 09:03:55,546 - DEBUG - VN ctest-vn-56679093 is not present in Agent 10.0.0.29 2024-09-17 09:03:55,546 - INFO - Validated that VN ctest-vn-56679093 is not in any agent 2024-09-17 09:03:55,561 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-56679093 info 2024-09-17 09:03:55,821 - DEBUG - No XMPP flaps were noticed during the test
2024-09-17 09:03:55,821 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-09-17 09:03:55,821 - INFO - -------------------------------------------------------------------------------- 2024-09-17 09:03:56,554 - INFO - Deleted project: ctest-TestBasicPolicy-82350485, ID : a95d3067-02e7-4c9c-a2a9-87b029ce8601