2024-10-24 02:41:19,418 - INFO - Domain Default found not creating 2024-10-24 02:41:19,593 - INFO - Project ctest-TestBasicPolicy-96648863 not found, creating it 2024-10-24 02:41:20,056 - INFO - Created Project:ctest-TestBasicPolicy-96648863, ID : 9d275851-f307-436c-bc7f-a87ac317cbb8 2024-10-24 02:41:21,567 - INFO - ================================================================================ 2024-10-24 02:41:21,567 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-24 02:41:21,567 - 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-24 02:41:21,824 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.20': '0'}} with 2024-10-24 02:41:21,825 - INFO - Initial checks done. Running the testcase now 2024-10-24 02:41:21,825 - INFO - 2024-10-24 02:41:22,395 - DEBUG - Response for create_network : {'network': {'id': '24fb8f94-079a-461b-8c68-16f636c53bf2', 'name': 'ctest-vn-43326723', 'tenant_id': '9d275851f307436cbc7fa87ac317cbb8', 'project_id': '9d275851f307436cbc7fa87ac317cbb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96648863', 'ctest-vn-43326723'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 02:41:22,586 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d64a965-cfd1-441c-b931-9c730466b8da', 'name': '', 'tenant_id': '9d275851f307436cbc7fa87ac317cbb8', 'network_id': '24fb8f94-079a-461b-8c68-16f636c53bf2', 'ip_version': 4, 'cidr': '154.174.182.128/26', 'allocation_pools': [{'start': '154.174.182.130', 'end': '154.174.182.190'}], 'gateway_ip': '154.174.182.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.174.182.130', 'tags': [], 'project_id': '9d275851f307436cbc7fa87ac317cbb8'}} 2024-10-24 02:41:22,610 - INFO - Created VN ctest-vn-43326723 2024-10-24 02:41:22,666 - DEBUG - VN ctest-vn-43326723 UUID is 24fb8f94-079a-461b-8c68-16f636c53bf2 2024-10-24 02:41:22,948 - DEBUG - Response for create_network : {'network': {'id': 'ae79a93f-4e83-4727-b1a9-25454a06e869', 'name': 'ctest-vn-31405661', 'tenant_id': '9d275851f307436cbc7fa87ac317cbb8', 'project_id': '9d275851f307436cbc7fa87ac317cbb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96648863', 'ctest-vn-31405661'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 02:41:23,166 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6ee0231-119c-403e-8bea-90a9ba0599b8', 'name': '', 'tenant_id': '9d275851f307436cbc7fa87ac317cbb8', 'network_id': 'ae79a93f-4e83-4727-b1a9-25454a06e869', 'ip_version': 4, 'cidr': '65.188.77.64/26', 'allocation_pools': [{'start': '65.188.77.66', 'end': '65.188.77.126'}], 'gateway_ip': '65.188.77.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.188.77.66', 'tags': [], 'project_id': '9d275851f307436cbc7fa87ac317cbb8'}} 2024-10-24 02:41:23,184 - INFO - Created VN ctest-vn-31405661 2024-10-24 02:41:23,234 - DEBUG - VN ctest-vn-31405661 UUID is ae79a93f-4e83-4727-b1a9-25454a06e869 2024-10-24 02:41:23,349 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-43326723, 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-96648863:ctest-vn-31405661, 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-24 02:41:23,665 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '24fb8f94-079a-461b-8c68-16f636c53bf2', 'name': 'ctest-vn-43326723', 'tenant_id': '9d275851f307436cbc7fa87ac317cbb8', 'project_id': '9d275851f307436cbc7fa87ac317cbb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d64a965-cfd1-441c-b931-9c730466b8da'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96648863', 'ctest-vn-43326723'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96648863', 'ctest-policy-allow-all-30308468']], 'subnet_ipam': [{'subnet_cidr': '154.174.182.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-24 02:41:23,899 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ae79a93f-4e83-4727-b1a9-25454a06e869', 'name': 'ctest-vn-31405661', 'tenant_id': '9d275851f307436cbc7fa87ac317cbb8', 'project_id': '9d275851f307436cbc7fa87ac317cbb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c6ee0231-119c-403e-8bea-90a9ba0599b8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96648863', 'ctest-vn-31405661'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96648863', 'ctest-policy-allow-all-30308468']], 'subnet_ipam': [{'subnet_cidr': '65.188.77.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-24 02:41:24,066 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-24 02:41:24,367 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-24 02:41:24,399 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5764ab9b-8d98-4d0a-820a-591fff8ce6e6 2024-10-24 02:41:24,412 - DEBUG - Requesting: http://10.0.0.40:8082/project/9d275851-f307-436c-bc7f-a87ac317cbb8 2024-10-24 02:41:24,490 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/24fb8f94-079a-461b-8c68-16f636c53bf2 2024-10-24 02:41:24,500 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/24fb8f94-079a-461b-8c68-16f636c53bf2 2024-10-24 02:41:24,509 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/8ac7c4d5-1538-4cff-ae8e-4a2c60ca0227 2024-10-24 02:41:24,516 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/8ac7c4d5-1538-4cff-ae8e-4a2c60ca0227 2024-10-24 02:41:24,524 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/0816a785-caad-4bef-91d5-91a549808982 2024-10-24 02:41:24,532 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-24 02:41:24,532 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/24fb8f94-079a-461b-8c68-16f636c53bf2 2024-10-24 02:41:24,542 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/8ac7c4d5-1538-4cff-ae8e-4a2c60ca0227 2024-10-24 02:41:24,557 - INFO - Verified VN network id 9 for VN 24fb8f94-079a-461b-8c68-16f636c53bf2 2024-10-24 02:41:24,558 - INFO - Verifications in API Server for VN ctest-vn-43326723 passed 2024-10-24 02:41:24,558 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/24fb8f94-079a-461b-8c68-16f636c53bf2 2024-10-24 02:41:24,566 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/8ac7c4d5-1538-4cff-ae8e-4a2c60ca0227 2024-10-24 02:41:24,576 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/8ac7c4d5-1538-4cff-ae8e-4a2c60ca0227 2024-10-24 02:41:24,583 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/0816a785-caad-4bef-91d5-91a549808982 2024-10-24 02:41:24,600 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-43326723', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96648863', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2664881470465263131', 'uuid-lslong': '10117361809624480754'}, 'enable': 'true', 'created': '2024-10-24T02:41:22', 'last-modified': '2024-10-24T02:41:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.960400'} 2024-10-24 02:41:24,606 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-24 02:41:24,606 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43326723 passed 2024-10-24 02:41:24,607 - DEBUG - ====Verifying policy data for ctest-vn-43326723 in API_Server ====== 2024-10-24 02:41:24,607 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-24 02:41:24,630 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5764ab9b-8d98-4d0a-820a-591fff8ce6e6 2024-10-24 02:41:24,687 - DEBUG - Requesting: http://10.0.0.40:8082/project/9d275851-f307-436c-bc7f-a87ac317cbb8 2024-10-24 02:41:24,841 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/24fb8f94-079a-461b-8c68-16f636c53bf2 2024-10-24 02:41:24,862 - DEBUG - ==>Verifying data for policy with id: 5355d1e7-72c6-488d-9feb-e347c03e876a, fqn: ['default-domain', 'ctest-TestBasicPolicy-96648863', 'ctest-policy-allow-all-30308468'] 2024-10-24 02:41:24,862 - INFO - VN ctest-vn-43326723 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-24 02:41:24,862 - DEBUG - Verifying the vn in opserver 2024-10-24 02:41:24,862 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-43326723 virtual network link through opserver 10.0.0.40 2024-10-24 02:41:24,862 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-10-24 02:41:25,196 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-10-24 02:41:25,294 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-43326723', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-43326723?flat'} 2024-10-24 02:41:25,294 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-43326723 is found in opserver 2024-10-24 02:41:25,306 - DEBUG - Do not have enough data to verify VN in agent 2024-10-24 02:41:25,311 - DEBUG - VRF ids for VN ctest-vn-43326723: {} 2024-10-24 02:41:25,311 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-24 02:41:25,331 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5764ab9b-8d98-4d0a-820a-591fff8ce6e6 2024-10-24 02:41:25,359 - DEBUG - Requesting: http://10.0.0.40:8082/project/9d275851-f307-436c-bc7f-a87ac317cbb8 2024-10-24 02:41:25,432 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/ae79a93f-4e83-4727-b1a9-25454a06e869 2024-10-24 02:41:25,455 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/ae79a93f-4e83-4727-b1a9-25454a06e869 2024-10-24 02:41:25,465 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b97864a7-751f-441a-82f4-55f75c6f2b4b 2024-10-24 02:41:25,480 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b97864a7-751f-441a-82f4-55f75c6f2b4b 2024-10-24 02:41:25,488 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/5a29d1d7-13c2-453d-941b-1f9516eca0ca 2024-10-24 02:41:25,495 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-24 02:41:25,495 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/ae79a93f-4e83-4727-b1a9-25454a06e869 2024-10-24 02:41:25,506 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b97864a7-751f-441a-82f4-55f75c6f2b4b 2024-10-24 02:41:25,522 - INFO - Verified VN network id 10 for VN ae79a93f-4e83-4727-b1a9-25454a06e869 2024-10-24 02:41:25,523 - INFO - Verifications in API Server for VN ctest-vn-31405661 passed 2024-10-24 02:41:25,523 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/ae79a93f-4e83-4727-b1a9-25454a06e869 2024-10-24 02:41:25,532 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b97864a7-751f-441a-82f4-55f75c6f2b4b 2024-10-24 02:41:25,539 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b97864a7-751f-441a-82f4-55f75c6f2b4b 2024-10-24 02:41:25,547 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/5a29d1d7-13c2-453d-941b-1f9516eca0ca 2024-10-24 02:41:25,560 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-31405661', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96648863', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12572265924146710311', 'uuid-lslong': '12801804395302283369'}, 'enable': 'true', 'created': '2024-10-24T02:41:22', 'last-modified': '2024-10-24T02:41:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.683235'} 2024-10-24 02:41:25,567 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-24 02:41:25,567 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31405661 passed 2024-10-24 02:41:25,567 - DEBUG - ====Verifying policy data for ctest-vn-31405661 in API_Server ====== 2024-10-24 02:41:25,567 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-24 02:41:25,574 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5764ab9b-8d98-4d0a-820a-591fff8ce6e6 2024-10-24 02:41:25,589 - DEBUG - Requesting: http://10.0.0.40:8082/project/9d275851-f307-436c-bc7f-a87ac317cbb8 2024-10-24 02:41:25,658 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/ae79a93f-4e83-4727-b1a9-25454a06e869 2024-10-24 02:41:25,667 - DEBUG - ==>Verifying data for policy with id: 5355d1e7-72c6-488d-9feb-e347c03e876a, fqn: ['default-domain', 'ctest-TestBasicPolicy-96648863', 'ctest-policy-allow-all-30308468'] 2024-10-24 02:41:25,667 - INFO - VN ctest-vn-31405661 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-24 02:41:25,667 - DEBUG - Verifying the vn in opserver 2024-10-24 02:41:25,667 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-31405661 virtual network link through opserver 10.0.0.40 2024-10-24 02:41:25,667 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-10-24 02:41:25,679 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-31405661', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-31405661?flat'} 2024-10-24 02:41:25,679 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-31405661 is found in opserver 2024-10-24 02:41:25,690 - DEBUG - Do not have enough data to verify VN in agent 2024-10-24 02:41:25,695 - DEBUG - VRF ids for VN ctest-vn-31405661: {} 2024-10-24 02:41:25,759 - DEBUG - Services list from nova: [, , ] 2024-10-24 02:41:26,834 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2136-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2136-1) 2024-10-24 02:41:28,107 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2136-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2136-1) 2024-10-24 02:41:28,107 - INFO - Waiting for VM ctest-TestBasicPolicy-96648863-07303670 to be up.. 2024-10-24 02:41:28,197 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-24 02:41:33,286 - DEBUG - VM is in ACTIVE state now 2024-10-24 02:41:33,286 - INFO - VM name : ctest-TestBasicPolicy-96648863-07303670 2024-10-24 02:41:33,386 - DEBUG - VM ctest-TestBasicPolicy-96648863-07303670 ID is 97fdfaaa-22dc-457b-a1fb-0f458e30f551 2024-10-24 02:41:33,405 - DEBUG - VM ctest-TestBasicPolicy-96648863-07303670 launched on Node cn-jenkins-deploy-platform-ansible-os-2136-1 2024-10-24 02:41:33,488 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/97fdfaaa-22dc-457b-a1fb-0f458e30f551 2024-10-24 02:41:33,498 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/3ff26911-e1c2-499f-9d56-bf8d36f1752b 2024-10-24 02:41:36,787 - 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 1035ms') 2024-10-24 02:41:36,787 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-96648863-07303670 failed! 2024-10-24 02:41:36,846 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-96648863:ctest-vn-43326723 is 154.174.182.129 and allocation pool is NOT set 2024-10-24 02:41:38,906 - 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=3.28 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.776 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.776/2.026/3.276/1.250 ms') 2024-10-24 02:41:38,906 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-96648863-07303670 passed 2024-10-24 02:41:39,058 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 02:41:39,058 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-96648863-07303670, IP 154.174.182.131, Port 22 2024-10-24 02:41:39,230 - DEBUG - VM ctest-TestBasicPolicy-96648863-07303670 is ready for SSH connections 2024-10-24 02:41:39,230 - INFO - Waiting for VM ctest-TestBasicPolicy-96648863-05828524 to be up.. 2024-10-24 02:41:39,319 - DEBUG - VM is in ACTIVE state now 2024-10-24 02:41:39,319 - INFO - VM name : ctest-TestBasicPolicy-96648863-05828524 2024-10-24 02:41:39,401 - DEBUG - VM ctest-TestBasicPolicy-96648863-05828524 ID is 124b291d-4b76-43e2-a770-93ae61cdfbce 2024-10-24 02:41:39,401 - DEBUG - VM ctest-TestBasicPolicy-96648863-05828524 launched on Node cn-jenkins-deploy-platform-ansible-os-2136-1 2024-10-24 02:41:39,478 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/124b291d-4b76-43e2-a770-93ae61cdfbce 2024-10-24 02:41:39,487 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/eb05e712-1962-4f18-bf76-1f5bde2c9526 2024-10-24 02:41:40,732 - 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=3.94 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.53 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 = 2.534/3.238/3.942/0.704 ms') 2024-10-24 02:41:40,732 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-96648863-05828524 passed 2024-10-24 02:41:40,882 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 02:41:40,882 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-96648863-05828524, IP 65.188.77.67, Port 22 2024-10-24 02:41:41,037 - DEBUG - VM ctest-TestBasicPolicy-96648863-05828524 is ready for SSH connections 2024-10-24 02:41:41,037 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 02:41:41,037 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 65.188.77.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-10-24 02:41:41,037 - DEBUG - ping -s 56 -c 3 -W 1 65.188.77.67 2024-10-24 02:41:45,009 - DEBUG - PING 65.188.77.67 (65.188.77.67): 56 data bytes 64 bytes from 65.188.77.67: seq=0 ttl=63 time=4.249 ms 64 bytes from 65.188.77.67: seq=1 ttl=63 time=0.862 ms 64 bytes from 65.188.77.67: seq=2 ttl=63 time=0.868 ms --- 65.188.77.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.862/1.993/4.249 ms 2024-10-24 02:41:45,010 - INFO - Ping to IP 65.188.77.67 from VM ctest-TestBasicPolicy-96648863-07303670 passed 2024-10-24 02:41:45,197 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5355d1e7-72c6-488d-9feb-e347c03e876a", "href": "http://10.0.0.40:8082/network-policy/5355d1e7-72c6-488d-9feb-e347c03e876a"}} 2024-10-24 02:41:45,198 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 02:41:45,198 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 65.188.77.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-10-24 02:41:45,198 - DEBUG - ping -s 56 -c 3 -W 1 65.188.77.67 2024-10-24 02:41:48,404 - DEBUG - PING 65.188.77.67 (65.188.77.67): 56 data bytes 64 bytes from 65.188.77.67: seq=0 ttl=63 time=1.292 ms --- 65.188.77.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.292/1.292/1.292 ms 2024-10-24 02:41:48,405 - WARNING - Ping to IP 65.188.77.67 from VM ctest-TestBasicPolicy-96648863-07303670 failed 2024-10-24 02:41:48,405 - INFO - Deleting VM ctest-TestBasicPolicy-96648863-05828524 2024-10-24 02:41:48,477 - INFO - Deleting VM ctest-TestBasicPolicy-96648863-07303670 2024-10-24 02:41:48,863 - INFO - Deleted policy ctest-policy-allow-all-30308468 2024-10-24 02:41:48,863 - INFO - Deleting VN ctest-vn-31405661 2024-10-24 02:41:48,904 - DEBUG - VN ae79a93f-4e83-4727-b1a9-25454a06e869 still in use: Unable to complete operation on network ae79a93f-4e83-4727-b1a9-25454a06e869. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-920a27c9-4e91-4e61-98d5-6f4da5faa97f'] 2024-10-24 02:41:48,904 - WARNING - Deleting VN ctest-vn-31405661 failed..Will retry 2024-10-24 02:41:51,015 - DEBUG - Response for deleting network () 2024-10-24 02:41:51,015 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b97864a7-751f-441a-82f4-55f75c6f2b4b 2024-10-24 02:41:51,020 - DEBUG - Response Code: 404 2024-10-24 02:41:51,020 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-24 02:41:51,029 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5764ab9b-8d98-4d0a-820a-591fff8ce6e6 2024-10-24 02:41:51,086 - DEBUG - Requesting: http://10.0.0.40:8082/project/9d275851-f307-436c-bc7f-a87ac317cbb8 2024-10-24 02:41:51,158 - INFO - Validated that VN ctest-vn-31405661 is not found in API Server 2024-10-24 02:41:51,169 - DEBUG - VN ctest-vn-31405661 is not present in Agent 10.0.0.40 2024-10-24 02:41:51,169 - INFO - Validated that VN ctest-vn-31405661 is not in any agent 2024-10-24 02:41:51,184 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-31405661 info 2024-10-24 02:41:51,184 - INFO - Deleting VN ctest-vn-43326723 2024-10-24 02:41:51,308 - DEBUG - Response for deleting network () 2024-10-24 02:41:51,308 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/8ac7c4d5-1538-4cff-ae8e-4a2c60ca0227 2024-10-24 02:41:51,315 - DEBUG - Response Code: 404 2024-10-24 02:41:51,315 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-24 02:41:51,321 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5764ab9b-8d98-4d0a-820a-591fff8ce6e6 2024-10-24 02:41:51,374 - DEBUG - Requesting: http://10.0.0.40:8082/project/9d275851-f307-436c-bc7f-a87ac317cbb8 2024-10-24 02:41:51,446 - INFO - Validated that VN ctest-vn-43326723 is not found in API Server 2024-10-24 02:41:51,457 - DEBUG - VN ctest-vn-43326723 is not present in Agent 10.0.0.40 2024-10-24 02:41:51,457 - INFO - Validated that VN ctest-vn-43326723 is not in any agent 2024-10-24 02:41:51,472 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-43326723 info 2024-10-24 02:41:51,739 - DEBUG - No XMPP flaps were noticed during the test
2024-10-24 02:41:51,740 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-10-24 02:41:51,740 - INFO - -------------------------------------------------------------------------------- 2024-10-24 02:41:52,424 - INFO - Deleted project: ctest-TestBasicPolicy-96648863, ID : 9d275851-f307-436c-bc7f-a87ac317cbb8