2024-08-23 08:38:19,210 - INFO - Domain Default found not creating 2024-08-23 08:38:19,387 - INFO - Project ctest-TestBasicPolicy-63442621 not found, creating it 2024-08-23 08:38:20,240 - INFO - Created Project:ctest-TestBasicPolicy-63442621, ID : 0976e2b9-bbd4-4413-9866-97d547230a2e 2024-08-23 08:38:21,823 - INFO - ================================================================================ 2024-08-23 08:38:21,823 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-23 08:38:21,823 - 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-08-23 08:38:22,086 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.25': '0'}} with 2024-08-23 08:38:22,086 - INFO - Initial checks done. Running the testcase now 2024-08-23 08:38:22,086 - INFO - 2024-08-23 08:38:22,679 - DEBUG - Response for create_network : {'network': {'id': '39b23fbc-48c5-42a0-813e-eed8eb53dcf7', 'name': 'ctest-vn-43795198', 'tenant_id': '0976e2b9bbd44413986697d547230a2e', 'project_id': '0976e2b9bbd44413986697d547230a2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63442621', 'ctest-vn-43795198'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 08:38:22,837 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc06c918-be5e-44b3-88f9-a57f7547fd65', 'name': '', 'tenant_id': '0976e2b9bbd44413986697d547230a2e', 'network_id': '39b23fbc-48c5-42a0-813e-eed8eb53dcf7', 'ip_version': 4, 'cidr': '110.161.178.128/26', 'allocation_pools': [{'start': '110.161.178.130', 'end': '110.161.178.190'}], 'gateway_ip': '110.161.178.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.161.178.130', 'tags': [], 'project_id': '0976e2b9bbd44413986697d547230a2e'}} 2024-08-23 08:38:22,857 - INFO - Created VN ctest-vn-43795198 2024-08-23 08:38:22,912 - DEBUG - VN ctest-vn-43795198 UUID is 39b23fbc-48c5-42a0-813e-eed8eb53dcf7 2024-08-23 08:38:23,218 - DEBUG - Response for create_network : {'network': {'id': '14713e8a-bc74-4c32-a2dd-a6834c39cc09', 'name': 'ctest-vn-79909305', 'tenant_id': '0976e2b9bbd44413986697d547230a2e', 'project_id': '0976e2b9bbd44413986697d547230a2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63442621', 'ctest-vn-79909305'], 'port_security_enabled': True, 'description': ''}} 2024-08-23 08:38:23,416 - DEBUG - Response for create_subnet : {'subnet': {'id': '983a5fb1-d077-479b-b6b6-997552b90281', 'name': '', 'tenant_id': '0976e2b9bbd44413986697d547230a2e', 'network_id': '14713e8a-bc74-4c32-a2dd-a6834c39cc09', 'ip_version': 4, 'cidr': '98.248.30.192/26', 'allocation_pools': [{'start': '98.248.30.194', 'end': '98.248.30.254'}], 'gateway_ip': '98.248.30.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.248.30.194', 'tags': [], 'project_id': '0976e2b9bbd44413986697d547230a2e'}} 2024-08-23 08:38:23,437 - INFO - Created VN ctest-vn-79909305 2024-08-23 08:38:23,492 - DEBUG - VN ctest-vn-79909305 UUID is 14713e8a-bc74-4c32-a2dd-a6834c39cc09 2024-08-23 08:38:23,609 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63442621:ctest-vn-43795198, 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-63442621:ctest-vn-79909305, 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-08-23 08:38:23,908 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '39b23fbc-48c5-42a0-813e-eed8eb53dcf7', 'name': 'ctest-vn-43795198', 'tenant_id': '0976e2b9bbd44413986697d547230a2e', 'project_id': '0976e2b9bbd44413986697d547230a2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dc06c918-be5e-44b3-88f9-a57f7547fd65'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63442621', 'ctest-vn-43795198'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63442621', 'ctest-policy-allow-all-26018350']], 'subnet_ipam': [{'subnet_cidr': '110.161.178.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-23 08:38:24,200 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '14713e8a-bc74-4c32-a2dd-a6834c39cc09', 'name': 'ctest-vn-79909305', 'tenant_id': '0976e2b9bbd44413986697d547230a2e', 'project_id': '0976e2b9bbd44413986697d547230a2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['983a5fb1-d077-479b-b6b6-997552b90281'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63442621', 'ctest-vn-79909305'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63442621', 'ctest-policy-allow-all-26018350']], 'subnet_ipam': [{'subnet_cidr': '98.248.30.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-23 08:38:24,356 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-23 08:38:24,659 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-23 08:38:24,696 - DEBUG - Requesting: http://10.0.0.12:8082/domain/4f715ed0-879c-4c7f-8f7a-b55391705480 2024-08-23 08:38:24,714 - DEBUG - Requesting: http://10.0.0.12:8082/project/0976e2b9-bbd4-4413-9866-97d547230a2e 2024-08-23 08:38:24,786 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/39b23fbc-48c5-42a0-813e-eed8eb53dcf7 2024-08-23 08:38:24,797 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/39b23fbc-48c5-42a0-813e-eed8eb53dcf7 2024-08-23 08:38:24,806 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/6f2c9065-052c-4ed9-8a8e-872af5f5540c 2024-08-23 08:38:24,814 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/6f2c9065-052c-4ed9-8a8e-872af5f5540c 2024-08-23 08:38:24,822 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/08b9bafc-83f1-438b-813d-c5349a4208cd 2024-08-23 08:38:24,830 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-23 08:38:24,830 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/39b23fbc-48c5-42a0-813e-eed8eb53dcf7 2024-08-23 08:38:24,839 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/6f2c9065-052c-4ed9-8a8e-872af5f5540c 2024-08-23 08:38:24,853 - INFO - Verified VN network id 8 for VN 39b23fbc-48c5-42a0-813e-eed8eb53dcf7 2024-08-23 08:38:24,853 - INFO - Verifications in API Server for VN ctest-vn-43795198 passed 2024-08-23 08:38:24,853 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/39b23fbc-48c5-42a0-813e-eed8eb53dcf7 2024-08-23 08:38:24,862 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/6f2c9065-052c-4ed9-8a8e-872af5f5540c 2024-08-23 08:38:24,872 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/6f2c9065-052c-4ed9-8a8e-872af5f5540c 2024-08-23 08:38:24,879 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/08b9bafc-83f1-438b-813d-c5349a4208cd 2024-08-23 08:38:24,892 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63442621:ctest-vn-43795198', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63442621', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4157455483923677856', 'uuid-lslong': '9313143694877252855'}, 'enable': 'true', 'created': '2024-08-23T08:38:22', 'last-modified': '2024-08-23T08:38:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.006693'} 2024-08-23 08:38:24,899 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-23 08:38:24,900 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43795198 passed 2024-08-23 08:38:24,900 - DEBUG - ====Verifying policy data for ctest-vn-43795198 in API_Server ====== 2024-08-23 08:38:24,900 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-23 08:38:24,906 - DEBUG - Requesting: http://10.0.0.12:8082/domain/4f715ed0-879c-4c7f-8f7a-b55391705480 2024-08-23 08:38:24,919 - DEBUG - Requesting: http://10.0.0.12:8082/project/0976e2b9-bbd4-4413-9866-97d547230a2e 2024-08-23 08:38:24,991 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/39b23fbc-48c5-42a0-813e-eed8eb53dcf7 2024-08-23 08:38:25,000 - DEBUG - ==>Verifying data for policy with id: 0102194f-7d8f-4014-bcd2-852e83f26f82, fqn: ['default-domain', 'ctest-TestBasicPolicy-63442621', 'ctest-policy-allow-all-26018350'] 2024-08-23 08:38:25,000 - INFO - VN ctest-vn-43795198 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-23 08:38:25,000 - DEBUG - Verifying the vn in opserver 2024-08-23 08:38:25,001 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63442621:ctest-vn-43795198 virtual network link through opserver 10.0.0.12 2024-08-23 08:38:25,001 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-08-23 08:38:25,314 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-08-23 08:38:25,382 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63442621:ctest-vn-43795198', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63442621:ctest-vn-43795198?flat'} 2024-08-23 08:38:25,382 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63442621:ctest-vn-43795198 is found in opserver 2024-08-23 08:38:25,393 - DEBUG - Do not have enough data to verify VN in agent 2024-08-23 08:38:25,399 - DEBUG - VRF ids for VN ctest-vn-43795198: {} 2024-08-23 08:38:25,399 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-23 08:38:25,405 - DEBUG - Requesting: http://10.0.0.12:8082/domain/4f715ed0-879c-4c7f-8f7a-b55391705480 2024-08-23 08:38:25,418 - DEBUG - Requesting: http://10.0.0.12:8082/project/0976e2b9-bbd4-4413-9866-97d547230a2e 2024-08-23 08:38:25,489 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/14713e8a-bc74-4c32-a2dd-a6834c39cc09 2024-08-23 08:38:25,500 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/14713e8a-bc74-4c32-a2dd-a6834c39cc09 2024-08-23 08:38:25,508 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/b6e3642d-0bad-44bc-9fbd-5d8a8fae5628 2024-08-23 08:38:25,516 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/b6e3642d-0bad-44bc-9fbd-5d8a8fae5628 2024-08-23 08:38:25,523 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/5a62ebb8-119b-4bd6-acae-7655efce39aa 2024-08-23 08:38:25,530 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-23 08:38:25,530 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/14713e8a-bc74-4c32-a2dd-a6834c39cc09 2024-08-23 08:38:25,538 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/b6e3642d-0bad-44bc-9fbd-5d8a8fae5628 2024-08-23 08:38:25,554 - INFO - Verified VN network id 9 for VN 14713e8a-bc74-4c32-a2dd-a6834c39cc09 2024-08-23 08:38:25,554 - INFO - Verifications in API Server for VN ctest-vn-79909305 passed 2024-08-23 08:38:25,555 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/14713e8a-bc74-4c32-a2dd-a6834c39cc09 2024-08-23 08:38:25,566 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/b6e3642d-0bad-44bc-9fbd-5d8a8fae5628 2024-08-23 08:38:25,574 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/b6e3642d-0bad-44bc-9fbd-5d8a8fae5628 2024-08-23 08:38:25,582 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/5a62ebb8-119b-4bd6-acae-7655efce39aa 2024-08-23 08:38:25,597 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63442621:ctest-vn-79909305', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63442621', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1473027318715010098', 'uuid-lslong': '11735719286847163401'}, 'enable': 'true', 'created': '2024-08-23T08:38:23', 'last-modified': '2024-08-23T08:38:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.469431'} 2024-08-23 08:38:25,603 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-23 08:38:25,604 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79909305 passed 2024-08-23 08:38:25,604 - DEBUG - ====Verifying policy data for ctest-vn-79909305 in API_Server ====== 2024-08-23 08:38:25,604 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-23 08:38:25,611 - DEBUG - Requesting: http://10.0.0.12:8082/domain/4f715ed0-879c-4c7f-8f7a-b55391705480 2024-08-23 08:38:25,625 - DEBUG - Requesting: http://10.0.0.12:8082/project/0976e2b9-bbd4-4413-9866-97d547230a2e 2024-08-23 08:38:25,698 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/14713e8a-bc74-4c32-a2dd-a6834c39cc09 2024-08-23 08:38:25,707 - DEBUG - ==>Verifying data for policy with id: 0102194f-7d8f-4014-bcd2-852e83f26f82, fqn: ['default-domain', 'ctest-TestBasicPolicy-63442621', 'ctest-policy-allow-all-26018350'] 2024-08-23 08:38:25,707 - INFO - VN ctest-vn-79909305 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-23 08:38:25,707 - DEBUG - Verifying the vn in opserver 2024-08-23 08:38:25,707 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63442621:ctest-vn-79909305 virtual network link through opserver 10.0.0.12 2024-08-23 08:38:25,707 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-08-23 08:38:25,720 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63442621:ctest-vn-79909305', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63442621:ctest-vn-79909305?flat'} 2024-08-23 08:38:25,720 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63442621:ctest-vn-79909305 is found in opserver 2024-08-23 08:38:25,732 - DEBUG - Do not have enough data to verify VN in agent 2024-08-23 08:38:25,737 - DEBUG - VRF ids for VN ctest-vn-79909305: {} 2024-08-23 08:38:25,796 - DEBUG - Services list from nova: [, , ] 2024-08-23 08:38:26,874 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1717-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1717-1) 2024-08-23 08:38:28,251 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1717-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1717-1) 2024-08-23 08:38:28,251 - INFO - Waiting for VM ctest-TestBasicPolicy-63442621-05365055 to be up.. 2024-08-23 08:38:28,358 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-23 08:38:33,460 - DEBUG - VM is in ACTIVE state now 2024-08-23 08:38:33,460 - INFO - VM name : ctest-TestBasicPolicy-63442621-05365055 2024-08-23 08:38:33,563 - DEBUG - VM ctest-TestBasicPolicy-63442621-05365055 ID is a476fd3a-75d7-466e-933e-f3d4f9e84afe 2024-08-23 08:38:33,597 - DEBUG - VM ctest-TestBasicPolicy-63442621-05365055 launched on Node cn-jenkins-deploy-platform-ansible-os-1717-1 2024-08-23 08:38:33,689 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/a476fd3a-75d7-466e-933e-f3d4f9e84afe 2024-08-23 08:38:33,707 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/06655df8-a4e9-4c89-a333-002a9256c12d 2024-08-23 08:38:36,972 - 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-08-23 08:38:36,972 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63442621-05365055 failed! 2024-08-23 08:38:37,028 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-63442621:ctest-vn-43795198 is 110.161.178.129 and allocation pool is NOT set 2024-08-23 08:38:39,087 - 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=7.24 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.754 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 = 0.754/3.994/7.235/3.240 ms') 2024-08-23 08:38:39,087 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63442621-05365055 passed 2024-08-23 08:38:39,244 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 08:38:39,244 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63442621-05365055, IP 110.161.178.131, Port 22 2024-08-23 08:38:39,395 - DEBUG - VM ctest-TestBasicPolicy-63442621-05365055 is ready for SSH connections 2024-08-23 08:38:39,396 - INFO - Waiting for VM ctest-TestBasicPolicy-63442621-91900163 to be up.. 2024-08-23 08:38:39,479 - DEBUG - VM is in ACTIVE state now 2024-08-23 08:38:39,479 - INFO - VM name : ctest-TestBasicPolicy-63442621-91900163 2024-08-23 08:38:39,560 - DEBUG - VM ctest-TestBasicPolicy-63442621-91900163 ID is b02dec48-67be-4432-b57b-fbedebd4c788 2024-08-23 08:38:39,560 - DEBUG - VM ctest-TestBasicPolicy-63442621-91900163 launched on Node cn-jenkins-deploy-platform-ansible-os-1717-1 2024-08-23 08:38:39,641 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/b02dec48-67be-4432-b57b-fbedebd4c788 2024-08-23 08:38:39,650 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/35d5f146-e1ff-4412-a047-0d967795aa8d 2024-08-23 08:38:40,890 - 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.82 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.68 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 = 1.675/3.248/4.821/1.573 ms') 2024-08-23 08:38:40,890 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-63442621-91900163 passed 2024-08-23 08:38:41,040 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 08:38:41,040 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63442621-91900163, IP 98.248.30.195, Port 22 2024-08-23 08:38:41,195 - DEBUG - VM ctest-TestBasicPolicy-63442621-91900163 is ready for SSH connections 2024-08-23 08:38:41,195 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 08:38:41,195 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 98.248.30.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-08-23 08:38:41,195 - DEBUG - ping -s 56 -c 3 -W 1 98.248.30.195 2024-08-23 08:38:45,232 - DEBUG - PING 98.248.30.195 (98.248.30.195): 56 data bytes 64 bytes from 98.248.30.195: seq=0 ttl=63 time=4.185 ms 64 bytes from 98.248.30.195: seq=1 ttl=63 time=0.910 ms 64 bytes from 98.248.30.195: seq=2 ttl=63 time=0.967 ms --- 98.248.30.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.910/2.020/4.185 ms 2024-08-23 08:38:45,232 - INFO - Ping to IP 98.248.30.195 from VM ctest-TestBasicPolicy-63442621-05365055 passed 2024-08-23 08:38:45,412 - DEBUG - Policy Update Response {"network-policy": {"uuid": "0102194f-7d8f-4014-bcd2-852e83f26f82", "href": "http://10.0.0.12:8082/network-policy/0102194f-7d8f-4014-bcd2-852e83f26f82"}} 2024-08-23 08:38:45,412 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-23 08:38:45,412 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 98.248.30.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-08-23 08:38:45,412 - DEBUG - ping -s 56 -c 3 -W 1 98.248.30.195 2024-08-23 08:38:48,635 - DEBUG - PING 98.248.30.195 (98.248.30.195): 56 data bytes 64 bytes from 98.248.30.195: seq=0 ttl=63 time=1.441 ms --- 98.248.30.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.441/1.441/1.441 ms 2024-08-23 08:38:48,635 - WARNING - Ping to IP 98.248.30.195 from VM ctest-TestBasicPolicy-63442621-05365055 failed 2024-08-23 08:38:48,635 - INFO - Deleting VM ctest-TestBasicPolicy-63442621-91900163 2024-08-23 08:38:48,703 - INFO - Deleting VM ctest-TestBasicPolicy-63442621-05365055 2024-08-23 08:38:49,135 - INFO - Deleted policy ctest-policy-allow-all-26018350 2024-08-23 08:38:49,135 - INFO - Deleting VN ctest-vn-79909305 2024-08-23 08:38:49,177 - DEBUG - VN 14713e8a-bc74-4c32-a2dd-a6834c39cc09 still in use: Unable to complete operation on network 14713e8a-bc74-4c32-a2dd-a6834c39cc09. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-51ded493-8d9b-4f12-9c5c-b6f24133fca9'] 2024-08-23 08:38:49,178 - WARNING - Deleting VN ctest-vn-79909305 failed..Will retry 2024-08-23 08:38:51,290 - DEBUG - Response for deleting network () 2024-08-23 08:38:51,290 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/b6e3642d-0bad-44bc-9fbd-5d8a8fae5628 2024-08-23 08:38:51,296 - DEBUG - Response Code: 404 2024-08-23 08:38:51,296 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-23 08:38:51,307 - DEBUG - Requesting: http://10.0.0.12:8082/domain/4f715ed0-879c-4c7f-8f7a-b55391705480 2024-08-23 08:38:51,362 - DEBUG - Requesting: http://10.0.0.12:8082/project/0976e2b9-bbd4-4413-9866-97d547230a2e 2024-08-23 08:38:51,431 - INFO - Validated that VN ctest-vn-79909305 is not found in API Server 2024-08-23 08:38:51,444 - DEBUG - VN ctest-vn-79909305 is not present in Agent 10.0.0.12 2024-08-23 08:38:51,444 - INFO - Validated that VN ctest-vn-79909305 is not in any agent 2024-08-23 08:38:51,462 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79909305 info 2024-08-23 08:38:51,462 - INFO - Deleting VN ctest-vn-43795198 2024-08-23 08:38:51,573 - DEBUG - Response for deleting network () 2024-08-23 08:38:51,573 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/6f2c9065-052c-4ed9-8a8e-872af5f5540c 2024-08-23 08:38:51,582 - DEBUG - Response Code: 404 2024-08-23 08:38:51,582 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-23 08:38:51,588 - DEBUG - Requesting: http://10.0.0.12:8082/domain/4f715ed0-879c-4c7f-8f7a-b55391705480 2024-08-23 08:38:51,646 - DEBUG - Requesting: http://10.0.0.12:8082/project/0976e2b9-bbd4-4413-9866-97d547230a2e 2024-08-23 08:38:51,716 - INFO - Validated that VN ctest-vn-43795198 is not found in API Server 2024-08-23 08:38:51,728 - DEBUG - VN ctest-vn-43795198 is not present in Agent 10.0.0.12 2024-08-23 08:38:51,728 - INFO - Validated that VN ctest-vn-43795198 is not in any agent 2024-08-23 08:38:51,744 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-43795198 info 2024-08-23 08:38:51,998 - DEBUG - No XMPP flaps were noticed during the test
2024-08-23 08:38:51,998 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-08-23 08:38:51,998 - INFO - -------------------------------------------------------------------------------- 2024-08-23 08:38:52,697 - INFO - Deleted project: ctest-TestBasicPolicy-63442621, ID : 0976e2b9-bbd4-4413-9866-97d547230a2e