2024-11-13 08:46:22,800 - INFO - Domain Default found not creating 2024-11-13 08:46:22,976 - INFO - Project ctest-TestBasicPolicy-59716791 not found, creating it 2024-11-13 08:46:23,473 - INFO - Created Project:ctest-TestBasicPolicy-59716791, ID : 4ef06351-a5e9-4b03-a177-1049202b7561 2024-11-13 08:46:25,085 - INFO - ================================================================================ 2024-11-13 08:46:25,086 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-13 08:46:25,086 - 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-11-13 08:46:25,355 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.8': '0'}} with 2024-11-13 08:46:25,355 - INFO - Initial checks done. Running the testcase now 2024-11-13 08:46:25,355 - INFO - 2024-11-13 08:46:25,938 - DEBUG - Response for create_network : {'network': {'id': '4d1e1582-1207-4dd0-8657-ebada8d152c3', 'name': 'ctest-vn-16310797', 'tenant_id': '4ef06351a5e94b03a1771049202b7561', 'project_id': '4ef06351a5e94b03a1771049202b7561', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59716791', 'ctest-vn-16310797'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 08:46:26,181 - DEBUG - Response for create_subnet : {'subnet': {'id': '56f2b3c7-cb42-4fd5-8de5-ded55a5c8503', 'name': '', 'tenant_id': '4ef06351a5e94b03a1771049202b7561', 'network_id': '4d1e1582-1207-4dd0-8657-ebada8d152c3', 'ip_version': 4, 'cidr': '19.171.102.0/26', 'allocation_pools': [{'start': '19.171.102.2', 'end': '19.171.102.62'}], 'gateway_ip': '19.171.102.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.171.102.2', 'tags': [], 'project_id': '4ef06351a5e94b03a1771049202b7561'}} 2024-11-13 08:46:26,201 - INFO - Created VN ctest-vn-16310797 2024-11-13 08:46:26,258 - DEBUG - VN ctest-vn-16310797 UUID is 4d1e1582-1207-4dd0-8657-ebada8d152c3 2024-11-13 08:46:26,574 - DEBUG - Response for create_network : {'network': {'id': '63d9c7cc-047f-4690-b7e6-2d2b23eb7845', 'name': 'ctest-vn-63354150', 'tenant_id': '4ef06351a5e94b03a1771049202b7561', 'project_id': '4ef06351a5e94b03a1771049202b7561', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59716791', 'ctest-vn-63354150'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 08:46:26,803 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ce5a6b3-9a21-433f-9c7a-5b168f7c6672', 'name': '', 'tenant_id': '4ef06351a5e94b03a1771049202b7561', 'network_id': '63d9c7cc-047f-4690-b7e6-2d2b23eb7845', 'ip_version': 4, 'cidr': '30.232.34.192/26', 'allocation_pools': [{'start': '30.232.34.194', 'end': '30.232.34.254'}], 'gateway_ip': '30.232.34.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.232.34.194', 'tags': [], 'project_id': '4ef06351a5e94b03a1771049202b7561'}} 2024-11-13 08:46:26,822 - INFO - Created VN ctest-vn-63354150 2024-11-13 08:46:26,878 - DEBUG - VN ctest-vn-63354150 UUID is 63d9c7cc-047f-4690-b7e6-2d2b23eb7845 2024-11-13 08:46:27,009 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-16310797, 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-59716791:ctest-vn-63354150, 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-11-13 08:46:27,329 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d1e1582-1207-4dd0-8657-ebada8d152c3', 'name': 'ctest-vn-16310797', 'tenant_id': '4ef06351a5e94b03a1771049202b7561', 'project_id': '4ef06351a5e94b03a1771049202b7561', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56f2b3c7-cb42-4fd5-8de5-ded55a5c8503'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59716791', 'ctest-vn-16310797'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59716791', 'ctest-policy-allow-all-47517148']], 'subnet_ipam': [{'subnet_cidr': '19.171.102.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-13 08:46:27,562 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '63d9c7cc-047f-4690-b7e6-2d2b23eb7845', 'name': 'ctest-vn-63354150', 'tenant_id': '4ef06351a5e94b03a1771049202b7561', 'project_id': '4ef06351a5e94b03a1771049202b7561', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ce5a6b3-9a21-433f-9c7a-5b168f7c6672'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59716791', 'ctest-vn-63354150'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59716791', 'ctest-policy-allow-all-47517148']], 'subnet_ipam': [{'subnet_cidr': '30.232.34.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-13 08:46:27,714 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-13 08:46:28,027 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-13 08:46:28,059 - DEBUG - Requesting: http://10.0.0.34:8082/domain/38ca7913-33ef-44e1-9db8-1383412b81b2 2024-11-13 08:46:28,073 - DEBUG - Requesting: http://10.0.0.34:8082/project/4ef06351-a5e9-4b03-a177-1049202b7561 2024-11-13 08:46:28,158 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4d1e1582-1207-4dd0-8657-ebada8d152c3 2024-11-13 08:46:28,173 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4d1e1582-1207-4dd0-8657-ebada8d152c3 2024-11-13 08:46:28,186 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/c780144a-f790-4c4f-beb9-8576bcde0f28 2024-11-13 08:46:28,198 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/c780144a-f790-4c4f-beb9-8576bcde0f28 2024-11-13 08:46:28,210 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/39fef879-0255-4468-985e-b898d11e0e3f 2024-11-13 08:46:28,218 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-13 08:46:28,218 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4d1e1582-1207-4dd0-8657-ebada8d152c3 2024-11-13 08:46:28,231 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/c780144a-f790-4c4f-beb9-8576bcde0f28 2024-11-13 08:46:28,251 - INFO - Verified VN network id 9 for VN 4d1e1582-1207-4dd0-8657-ebada8d152c3 2024-11-13 08:46:28,251 - INFO - Verifications in API Server for VN ctest-vn-16310797 passed 2024-11-13 08:46:28,251 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4d1e1582-1207-4dd0-8657-ebada8d152c3 2024-11-13 08:46:28,268 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/c780144a-f790-4c4f-beb9-8576bcde0f28 2024-11-13 08:46:28,277 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/c780144a-f790-4c4f-beb9-8576bcde0f28 2024-11-13 08:46:28,285 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/39fef879-0255-4468-985e-b898d11e0e3f 2024-11-13 08:46:28,298 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-16310797', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59716791', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5556902638614171088', 'uuid-lslong': '9680465055150330563'}, 'enable': 'true', 'created': '2024-11-13T08:46:25', 'last-modified': '2024-11-13T08:46:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.996683'} 2024-11-13 08:46:28,307 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-13 08:46:28,307 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16310797 passed 2024-11-13 08:46:28,307 - DEBUG - ====Verifying policy data for ctest-vn-16310797 in API_Server ====== 2024-11-13 08:46:28,308 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-13 08:46:28,313 - DEBUG - Requesting: http://10.0.0.34:8082/domain/38ca7913-33ef-44e1-9db8-1383412b81b2 2024-11-13 08:46:28,325 - DEBUG - Requesting: http://10.0.0.34:8082/project/4ef06351-a5e9-4b03-a177-1049202b7561 2024-11-13 08:46:28,402 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4d1e1582-1207-4dd0-8657-ebada8d152c3 2024-11-13 08:46:28,414 - DEBUG - ==>Verifying data for policy with id: f56dd2b2-51a1-4959-b9b4-fa24b05f0467, fqn: ['default-domain', 'ctest-TestBasicPolicy-59716791', 'ctest-policy-allow-all-47517148'] 2024-11-13 08:46:28,414 - INFO - VN ctest-vn-16310797 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-13 08:46:28,414 - DEBUG - Verifying the vn in opserver 2024-11-13 08:46:28,414 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-16310797 virtual network link through opserver 10.0.0.34 2024-11-13 08:46:28,415 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-11-13 08:46:28,718 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-11-13 08:46:28,778 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-16310797', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-16310797?flat'} 2024-11-13 08:46:28,778 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-16310797 is found in opserver 2024-11-13 08:46:28,789 - DEBUG - Do not have enough data to verify VN in agent 2024-11-13 08:46:28,795 - DEBUG - VRF ids for VN ctest-vn-16310797: {} 2024-11-13 08:46:28,795 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-13 08:46:28,805 - DEBUG - Requesting: http://10.0.0.34:8082/domain/38ca7913-33ef-44e1-9db8-1383412b81b2 2024-11-13 08:46:28,819 - DEBUG - Requesting: http://10.0.0.34:8082/project/4ef06351-a5e9-4b03-a177-1049202b7561 2024-11-13 08:46:28,901 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/63d9c7cc-047f-4690-b7e6-2d2b23eb7845 2024-11-13 08:46:28,917 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/63d9c7cc-047f-4690-b7e6-2d2b23eb7845 2024-11-13 08:46:28,930 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/fce9e8f1-f0fb-4403-9a2e-79afcd13829a 2024-11-13 08:46:28,939 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/fce9e8f1-f0fb-4403-9a2e-79afcd13829a 2024-11-13 08:46:28,948 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/95d88cd8-6e06-486d-abca-e4ad5770c5b6 2024-11-13 08:46:28,955 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-13 08:46:28,955 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/63d9c7cc-047f-4690-b7e6-2d2b23eb7845 2024-11-13 08:46:28,969 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/fce9e8f1-f0fb-4403-9a2e-79afcd13829a 2024-11-13 08:46:28,989 - INFO - Verified VN network id 10 for VN 63d9c7cc-047f-4690-b7e6-2d2b23eb7845 2024-11-13 08:46:28,990 - INFO - Verifications in API Server for VN ctest-vn-63354150 passed 2024-11-13 08:46:28,990 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/63d9c7cc-047f-4690-b7e6-2d2b23eb7845 2024-11-13 08:46:29,008 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/fce9e8f1-f0fb-4403-9a2e-79afcd13829a 2024-11-13 08:46:29,016 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/fce9e8f1-f0fb-4403-9a2e-79afcd13829a 2024-11-13 08:46:29,024 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/95d88cd8-6e06-486d-abca-e4ad5770c5b6 2024-11-13 08:46:29,036 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-63354150', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59716791', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7195001558763783824', 'uuid-lslong': '13251328616893741125'}, 'enable': 'true', 'created': '2024-11-13T08:46:26', 'last-modified': '2024-11-13T08:46:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.499754'} 2024-11-13 08:46:29,042 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-13 08:46:29,042 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63354150 passed 2024-11-13 08:46:29,042 - DEBUG - ====Verifying policy data for ctest-vn-63354150 in API_Server ====== 2024-11-13 08:46:29,043 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-13 08:46:29,048 - DEBUG - Requesting: http://10.0.0.34:8082/domain/38ca7913-33ef-44e1-9db8-1383412b81b2 2024-11-13 08:46:29,065 - DEBUG - Requesting: http://10.0.0.34:8082/project/4ef06351-a5e9-4b03-a177-1049202b7561 2024-11-13 08:46:29,153 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/63d9c7cc-047f-4690-b7e6-2d2b23eb7845 2024-11-13 08:46:29,173 - DEBUG - ==>Verifying data for policy with id: f56dd2b2-51a1-4959-b9b4-fa24b05f0467, fqn: ['default-domain', 'ctest-TestBasicPolicy-59716791', 'ctest-policy-allow-all-47517148'] 2024-11-13 08:46:29,173 - INFO - VN ctest-vn-63354150 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-13 08:46:29,173 - DEBUG - Verifying the vn in opserver 2024-11-13 08:46:29,173 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-63354150 virtual network link through opserver 10.0.0.34 2024-11-13 08:46:29,173 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-11-13 08:46:29,185 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-63354150', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-63354150?flat'} 2024-11-13 08:46:29,185 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-63354150 is found in opserver 2024-11-13 08:46:29,198 - DEBUG - Do not have enough data to verify VN in agent 2024-11-13 08:46:29,203 - DEBUG - VRF ids for VN ctest-vn-63354150: {} 2024-11-13 08:46:29,266 - DEBUG - Services list from nova: [, , ] 2024-11-13 08:46:30,305 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2278-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2278-1) 2024-11-13 08:46:31,604 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2278-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2278-1) 2024-11-13 08:46:31,604 - INFO - Waiting for VM ctest-TestBasicPolicy-59716791-25080461 to be up.. 2024-11-13 08:46:31,705 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-13 08:46:36,804 - DEBUG - VM is in ACTIVE state now 2024-11-13 08:46:36,804 - INFO - VM name : ctest-TestBasicPolicy-59716791-25080461 2024-11-13 08:46:36,905 - DEBUG - VM ctest-TestBasicPolicy-59716791-25080461 ID is 5d9dbd7c-66b5-4407-ba69-cb66cda5f9d0 2024-11-13 08:46:36,925 - DEBUG - VM ctest-TestBasicPolicy-59716791-25080461 launched on Node cn-jenkins-deploy-platform-ansible-os-2278-1 2024-11-13 08:46:37,019 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/5d9dbd7c-66b5-4407-ba69-cb66cda5f9d0 2024-11-13 08:46:37,030 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/f7b20fe9-221e-4c47-965a-e2c33345b8bb 2024-11-13 08:46:40,289 - 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-11-13 08:46:40,290 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59716791-25080461 failed! 2024-11-13 08:46:40,346 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-16310797 is 19.171.102.1 and allocation pool is NOT set 2024-11-13 08:46:42,408 - 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.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.475 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.475/4.303/8.131/3.828 ms') 2024-11-13 08:46:42,408 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59716791-25080461 passed 2024-11-13 08:46:42,570 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 08:46:42,570 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59716791-25080461, IP 19.171.102.3, Port 22 2024-11-13 08:46:42,725 - DEBUG - VM ctest-TestBasicPolicy-59716791-25080461 is ready for SSH connections 2024-11-13 08:46:42,725 - INFO - Waiting for VM ctest-TestBasicPolicy-59716791-10837821 to be up.. 2024-11-13 08:46:42,814 - DEBUG - VM is in ACTIVE state now 2024-11-13 08:46:42,814 - INFO - VM name : ctest-TestBasicPolicy-59716791-10837821 2024-11-13 08:46:42,896 - DEBUG - VM ctest-TestBasicPolicy-59716791-10837821 ID is dbd1b4a9-bbaa-4be4-b904-faa7e759bc3a 2024-11-13 08:46:42,896 - DEBUG - VM ctest-TestBasicPolicy-59716791-10837821 launched on Node cn-jenkins-deploy-platform-ansible-os-2278-1 2024-11-13 08:46:42,992 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/dbd1b4a9-bbaa-4be4-b904-faa7e759bc3a 2024-11-13 08:46:43,004 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/a2186b19-2e58-4652-9dc1-7f58267bcc52 2024-11-13 08:46:44,261 - 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.80 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.389 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 = 0.389/1.596/2.804/1.207 ms') 2024-11-13 08:46:44,262 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-59716791-10837821 passed 2024-11-13 08:46:44,422 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 08:46:44,422 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59716791-10837821, IP 30.232.34.195, Port 22 2024-11-13 08:46:44,598 - DEBUG - VM ctest-TestBasicPolicy-59716791-10837821 is ready for SSH connections 2024-11-13 08:46:44,598 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 08:46:44,598 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 30.232.34.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-11-13 08:46:44,598 - DEBUG - ping -s 56 -c 3 -W 1 30.232.34.195 2024-11-13 08:46:48,271 - DEBUG - PING 30.232.34.195 (30.232.34.195): 56 data bytes 64 bytes from 30.232.34.195: seq=0 ttl=63 time=5.021 ms 64 bytes from 30.232.34.195: seq=1 ttl=63 time=0.772 ms 64 bytes from 30.232.34.195: seq=2 ttl=63 time=0.851 ms --- 30.232.34.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.772/2.214/5.021 ms 2024-11-13 08:46:48,271 - INFO - Ping to IP 30.232.34.195 from VM ctest-TestBasicPolicy-59716791-25080461 passed 2024-11-13 08:46:48,462 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f56dd2b2-51a1-4959-b9b4-fa24b05f0467", "href": "http://10.0.0.34:8082/network-policy/f56dd2b2-51a1-4959-b9b4-fa24b05f0467"}} 2024-11-13 08:46:48,462 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 08:46:48,463 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 30.232.34.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-11-13 08:46:48,463 - DEBUG - ping -s 56 -c 3 -W 1 30.232.34.195 2024-11-13 08:46:51,661 - DEBUG - PING 30.232.34.195 (30.232.34.195): 56 data bytes 64 bytes from 30.232.34.195: seq=0 ttl=63 time=1.551 ms --- 30.232.34.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.551/1.551/1.551 ms 2024-11-13 08:46:51,661 - WARNING - Ping to IP 30.232.34.195 from VM ctest-TestBasicPolicy-59716791-25080461 failed 2024-11-13 08:46:51,661 - INFO - Deleting VM ctest-TestBasicPolicy-59716791-10837821 2024-11-13 08:46:51,732 - INFO - Deleting VM ctest-TestBasicPolicy-59716791-25080461 2024-11-13 08:46:52,165 - INFO - Deleted policy ctest-policy-allow-all-47517148 2024-11-13 08:46:52,165 - INFO - Deleting VN ctest-vn-63354150 2024-11-13 08:46:52,206 - DEBUG - VN 63d9c7cc-047f-4690-b7e6-2d2b23eb7845 still in use: Unable to complete operation on network 63d9c7cc-047f-4690-b7e6-2d2b23eb7845. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-038ff1a5-00ec-42a9-84f5-db7cf269fbb4'] 2024-11-13 08:46:52,206 - WARNING - Deleting VN ctest-vn-63354150 failed..Will retry 2024-11-13 08:46:54,326 - DEBUG - Response for deleting network () 2024-11-13 08:46:54,326 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/fce9e8f1-f0fb-4403-9a2e-79afcd13829a 2024-11-13 08:46:54,337 - DEBUG - Response Code: 404 2024-11-13 08:46:54,337 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-13 08:46:54,344 - DEBUG - Requesting: http://10.0.0.34:8082/domain/38ca7913-33ef-44e1-9db8-1383412b81b2 2024-11-13 08:46:54,405 - DEBUG - Requesting: http://10.0.0.34:8082/project/4ef06351-a5e9-4b03-a177-1049202b7561 2024-11-13 08:46:54,485 - INFO - Validated that VN ctest-vn-63354150 is not found in API Server 2024-11-13 08:46:54,496 - DEBUG - VN ctest-vn-63354150 is not present in Agent 10.0.0.34 2024-11-13 08:46:54,496 - INFO - Validated that VN ctest-vn-63354150 is not in any agent 2024-11-13 08:46:54,512 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-63354150 info 2024-11-13 08:46:54,512 - INFO - Deleting VN ctest-vn-16310797 2024-11-13 08:46:54,619 - DEBUG - Response for deleting network () 2024-11-13 08:46:54,619 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/c780144a-f790-4c4f-beb9-8576bcde0f28 2024-11-13 08:46:54,626 - DEBUG - Response Code: 404 2024-11-13 08:46:54,626 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-11-13 08:46:54,634 - DEBUG - Requesting: http://10.0.0.34:8082/domain/38ca7913-33ef-44e1-9db8-1383412b81b2 2024-11-13 08:46:54,688 - DEBUG - Requesting: http://10.0.0.34:8082/project/4ef06351-a5e9-4b03-a177-1049202b7561 2024-11-13 08:46:54,768 - INFO - Validated that VN ctest-vn-16310797 is not found in API Server 2024-11-13 08:46:54,779 - DEBUG - VN ctest-vn-16310797 is not present in Agent 10.0.0.34 2024-11-13 08:46:54,779 - INFO - Validated that VN ctest-vn-16310797 is not in any agent 2024-11-13 08:46:54,797 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16310797 info 2024-11-13 08:46:55,052 - DEBUG - No XMPP flaps were noticed during the test
2024-11-13 08:46:55,052 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-11-13 08:46:55,052 - INFO - -------------------------------------------------------------------------------- 2024-11-13 08:46:55,775 - INFO - Deleted project: ctest-TestBasicPolicy-59716791, ID : 4ef06351-a5e9-4b03-a177-1049202b7561