2024-08-21 14:43:13,917 - INFO - Domain Default found not creating 2024-08-21 14:43:14,109 - INFO - Project ctest-TestBasicPolicy-38410868 not found, creating it 2024-08-21 14:43:17,915 - INFO - Created Project:ctest-TestBasicPolicy-38410868, ID : d0d5cb1e-a148-42b9-9a59-3ea9a9296913 2024-08-21 14:43:19,400 - INFO - ================================================================================ 2024-08-21 14:43:19,400 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-21 14:43:19,400 - 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-21 14:43:19,662 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.17': '0'}} with 2024-08-21 14:43:19,662 - INFO - Initial checks done. Running the testcase now 2024-08-21 14:43:19,662 - INFO - 2024-08-21 14:43:20,215 - DEBUG - Response for create_network : {'network': {'id': '2d4e844c-ffe5-4eba-8789-3f73df96b856', 'name': 'ctest-vn-50386781', 'tenant_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'project_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38410868', 'ctest-vn-50386781'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 14:43:20,446 - DEBUG - Response for create_subnet : {'subnet': {'id': '7073d9f5-7e69-4324-8c2d-dccfcaaa7487', 'name': '', 'tenant_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'network_id': '2d4e844c-ffe5-4eba-8789-3f73df96b856', 'ip_version': 4, 'cidr': '88.196.53.0/26', 'allocation_pools': [{'start': '88.196.53.2', 'end': '88.196.53.62'}], 'gateway_ip': '88.196.53.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.196.53.2', 'tags': [], 'project_id': 'd0d5cb1ea14842b99a593ea9a9296913'}} 2024-08-21 14:43:20,465 - INFO - Created VN ctest-vn-50386781 2024-08-21 14:43:20,520 - DEBUG - VN ctest-vn-50386781 UUID is 2d4e844c-ffe5-4eba-8789-3f73df96b856 2024-08-21 14:43:20,812 - DEBUG - Response for create_network : {'network': {'id': '112bdbb6-cc0e-4a11-9d36-539c196f1242', 'name': 'ctest-vn-82316247', 'tenant_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'project_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38410868', 'ctest-vn-82316247'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 14:43:21,035 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac173b5b-161d-4e1d-9af4-e4d02f81d461', 'name': '', 'tenant_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'network_id': '112bdbb6-cc0e-4a11-9d36-539c196f1242', 'ip_version': 4, 'cidr': '109.100.3.64/26', 'allocation_pools': [{'start': '109.100.3.66', 'end': '109.100.3.126'}], 'gateway_ip': '109.100.3.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.100.3.66', 'tags': [], 'project_id': 'd0d5cb1ea14842b99a593ea9a9296913'}} 2024-08-21 14:43:21,054 - INFO - Created VN ctest-vn-82316247 2024-08-21 14:43:21,104 - DEBUG - VN ctest-vn-82316247 UUID is 112bdbb6-cc0e-4a11-9d36-539c196f1242 2024-08-21 14:43:21,218 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-50386781, 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-38410868:ctest-vn-82316247, 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-21 14:43:21,511 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d4e844c-ffe5-4eba-8789-3f73df96b856', 'name': 'ctest-vn-50386781', 'tenant_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'project_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7073d9f5-7e69-4324-8c2d-dccfcaaa7487'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38410868', 'ctest-vn-50386781'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38410868', 'ctest-policy-allow-all-51203860']], 'subnet_ipam': [{'subnet_cidr': '88.196.53.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 14:43:24,230 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '112bdbb6-cc0e-4a11-9d36-539c196f1242', 'name': 'ctest-vn-82316247', 'tenant_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'project_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ac173b5b-161d-4e1d-9af4-e4d02f81d461'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38410868', 'ctest-vn-82316247'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38410868', 'ctest-policy-allow-all-51203860']], 'subnet_ipam': [{'subnet_cidr': '109.100.3.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 14:43:24,416 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-21 14:43:24,896 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-21 14:43:24,937 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dbd473-bca2-4061-ad31-ce9fd0c95da1 2024-08-21 14:43:24,952 - DEBUG - Requesting: http://10.0.0.12:8082/project/d0d5cb1e-a148-42b9-9a59-3ea9a9296913 2024-08-21 14:43:25,036 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2d4e844c-ffe5-4eba-8789-3f73df96b856 2024-08-21 14:43:25,047 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2d4e844c-ffe5-4eba-8789-3f73df96b856 2024-08-21 14:43:25,055 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/b41b87f1-e20c-4320-ab24-0fb12915a547 2024-08-21 14:43:25,062 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/b41b87f1-e20c-4320-ab24-0fb12915a547 2024-08-21 14:43:25,069 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/715ef729-60a9-4f7b-be7e-4fd1c1d48543 2024-08-21 14:43:25,078 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 14:43:25,078 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2d4e844c-ffe5-4eba-8789-3f73df96b856 2024-08-21 14:43:25,087 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/b41b87f1-e20c-4320-ab24-0fb12915a547 2024-08-21 14:43:25,099 - INFO - Verified VN network id 7 for VN 2d4e844c-ffe5-4eba-8789-3f73df96b856 2024-08-21 14:43:25,099 - INFO - Verifications in API Server for VN ctest-vn-50386781 passed 2024-08-21 14:43:25,099 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2d4e844c-ffe5-4eba-8789-3f73df96b856 2024-08-21 14:43:25,107 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/b41b87f1-e20c-4320-ab24-0fb12915a547 2024-08-21 14:43:25,114 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/b41b87f1-e20c-4320-ab24-0fb12915a547 2024-08-21 14:43:25,121 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/715ef729-60a9-4f7b-be7e-4fd1c1d48543 2024-08-21 14:43:25,133 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-50386781', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38410868', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3264692246135787194', 'uuid-lslong': '9766407033834616918'}, 'enable': 'true', 'created': '2024-08-21T14:43:20', 'last-modified': '2024-08-21T14:43:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.646021'} 2024-08-21 14:43:25,140 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 14:43:25,140 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50386781 passed 2024-08-21 14:43:25,140 - DEBUG - ====Verifying policy data for ctest-vn-50386781 in API_Server ====== 2024-08-21 14:43:25,141 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-21 14:43:25,147 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dbd473-bca2-4061-ad31-ce9fd0c95da1 2024-08-21 14:43:25,158 - DEBUG - Requesting: http://10.0.0.12:8082/project/d0d5cb1e-a148-42b9-9a59-3ea9a9296913 2024-08-21 14:43:25,229 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2d4e844c-ffe5-4eba-8789-3f73df96b856 2024-08-21 14:43:25,237 - DEBUG - ==>Verifying data for policy with id: f3c0e525-88de-45ab-a1fd-3a162d2d586c, fqn: ['default-domain', 'ctest-TestBasicPolicy-38410868', 'ctest-policy-allow-all-51203860'] 2024-08-21 14:43:25,237 - INFO - VN ctest-vn-50386781 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 14:43:25,238 - DEBUG - Verifying the vn in opserver 2024-08-21 14:43:25,238 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-50386781 virtual network link through opserver 10.0.0.12 2024-08-21 14:43:25,238 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-08-21 14:43:25,542 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-08-21 14:43:25,623 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-50386781', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-50386781?flat'} 2024-08-21 14:43:25,624 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-50386781 is found in opserver 2024-08-21 14:43:25,635 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 14:43:25,640 - DEBUG - VRF ids for VN ctest-vn-50386781: {} 2024-08-21 14:43:25,640 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-21 14:43:25,646 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dbd473-bca2-4061-ad31-ce9fd0c95da1 2024-08-21 14:43:25,661 - DEBUG - Requesting: http://10.0.0.12:8082/project/d0d5cb1e-a148-42b9-9a59-3ea9a9296913 2024-08-21 14:43:25,735 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/112bdbb6-cc0e-4a11-9d36-539c196f1242 2024-08-21 14:43:25,746 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/112bdbb6-cc0e-4a11-9d36-539c196f1242 2024-08-21 14:43:25,755 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a534ffeb-7289-4f73-89d6-5d7829a1e102 2024-08-21 14:43:25,765 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a534ffeb-7289-4f73-89d6-5d7829a1e102 2024-08-21 14:43:25,773 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/870ca3e6-c9f2-4c0b-a888-f90ce9edd625 2024-08-21 14:43:25,780 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 14:43:25,780 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/112bdbb6-cc0e-4a11-9d36-539c196f1242 2024-08-21 14:43:25,789 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a534ffeb-7289-4f73-89d6-5d7829a1e102 2024-08-21 14:43:25,802 - INFO - Verified VN network id 8 for VN 112bdbb6-cc0e-4a11-9d36-539c196f1242 2024-08-21 14:43:25,803 - INFO - Verifications in API Server for VN ctest-vn-82316247 passed 2024-08-21 14:43:25,803 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/112bdbb6-cc0e-4a11-9d36-539c196f1242 2024-08-21 14:43:25,812 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a534ffeb-7289-4f73-89d6-5d7829a1e102 2024-08-21 14:43:25,819 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a534ffeb-7289-4f73-89d6-5d7829a1e102 2024-08-21 14:43:25,827 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/870ca3e6-c9f2-4c0b-a888-f90ce9edd625 2024-08-21 14:43:25,840 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-82316247', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38410868', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1237324100797352465', 'uuid-lslong': '11328333842603774530'}, 'enable': 'true', 'created': '2024-08-21T14:43:20', 'last-modified': '2024-08-21T14:43:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.119939'} 2024-08-21 14:43:25,846 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 14:43:25,846 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82316247 passed 2024-08-21 14:43:25,846 - DEBUG - ====Verifying policy data for ctest-vn-82316247 in API_Server ====== 2024-08-21 14:43:25,846 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-21 14:43:25,852 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dbd473-bca2-4061-ad31-ce9fd0c95da1 2024-08-21 14:43:25,864 - DEBUG - Requesting: http://10.0.0.12:8082/project/d0d5cb1e-a148-42b9-9a59-3ea9a9296913 2024-08-21 14:43:25,941 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/112bdbb6-cc0e-4a11-9d36-539c196f1242 2024-08-21 14:43:25,949 - DEBUG - ==>Verifying data for policy with id: f3c0e525-88de-45ab-a1fd-3a162d2d586c, fqn: ['default-domain', 'ctest-TestBasicPolicy-38410868', 'ctest-policy-allow-all-51203860'] 2024-08-21 14:43:25,949 - INFO - VN ctest-vn-82316247 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 14:43:25,949 - DEBUG - Verifying the vn in opserver 2024-08-21 14:43:25,949 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-82316247 virtual network link through opserver 10.0.0.12 2024-08-21 14:43:25,949 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-08-21 14:43:25,960 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-82316247', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-82316247?flat'} 2024-08-21 14:43:25,960 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-82316247 is found in opserver 2024-08-21 14:43:25,971 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 14:43:25,976 - DEBUG - VRF ids for VN ctest-vn-82316247: {} 2024-08-21 14:43:26,030 - DEBUG - Services list from nova: [, , ] 2024-08-21 14:43:27,039 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1689-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1689-1) 2024-08-21 14:43:28,244 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1689-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1689-1) 2024-08-21 14:43:28,244 - INFO - Waiting for VM ctest-TestBasicPolicy-38410868-10396553 to be up.. 2024-08-21 14:43:28,331 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 14:43:33,429 - DEBUG - VM is in ACTIVE state now 2024-08-21 14:43:33,429 - INFO - VM name : ctest-TestBasicPolicy-38410868-10396553 2024-08-21 14:43:33,512 - DEBUG - VM ctest-TestBasicPolicy-38410868-10396553 ID is 410054f3-c908-4e5a-806b-5fc98c05f70c 2024-08-21 14:43:33,537 - DEBUG - VM ctest-TestBasicPolicy-38410868-10396553 launched on Node cn-jenkins-deploy-platform-ansible-os-1689-1 2024-08-21 14:43:33,665 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/410054f3-c908-4e5a-806b-5fc98c05f70c 2024-08-21 14:43:33,674 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/20d25609-1e86-4d39-a756-6f11f4dc593e 2024-08-21 14:43:36,934 - 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 1013ms') 2024-08-21 14:43:36,934 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38410868-10396553 failed! 2024-08-21 14:43:36,988 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-50386781 is 88.196.53.1 and allocation pool is NOT set 2024-08-21 14:43:41,058 - 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 1011ms') 2024-08-21 14:43:41,058 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38410868-10396553 failed! 2024-08-21 14:43:41,120 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-50386781 is 88.196.53.1 and allocation pool is NOT set 2024-08-21 14:43:45,177 - 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 1003ms') 2024-08-21 14:43:45,177 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38410868-10396553 failed! 2024-08-21 14:43:45,232 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-50386781 is 88.196.53.1 and allocation pool is NOT set 2024-08-21 14:43:47,297 - 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=4.70 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.90 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 = 1.903/3.303/4.703/1.400 ms') 2024-08-21 14:43:47,297 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38410868-10396553 passed 2024-08-21 14:43:47,456 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 14:43:47,456 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38410868-10396553, IP 88.196.53.3, Port 22 2024-08-21 14:43:47,616 - DEBUG - VM ctest-TestBasicPolicy-38410868-10396553 is ready for SSH connections 2024-08-21 14:43:47,616 - INFO - Waiting for VM ctest-TestBasicPolicy-38410868-50582828 to be up.. 2024-08-21 14:43:47,714 - DEBUG - VM is in ACTIVE state now 2024-08-21 14:43:47,714 - INFO - VM name : ctest-TestBasicPolicy-38410868-50582828 2024-08-21 14:43:47,798 - DEBUG - VM ctest-TestBasicPolicy-38410868-50582828 ID is d8a90534-43df-48a8-812b-565c4b56259a 2024-08-21 14:43:47,799 - DEBUG - VM ctest-TestBasicPolicy-38410868-50582828 launched on Node cn-jenkins-deploy-platform-ansible-os-1689-1 2024-08-21 14:43:47,878 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/d8a90534-43df-48a8-812b-565c4b56259a 2024-08-21 14:43:47,887 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/9bd27603-bc62-43ca-980e-36a8f3c0f388 2024-08-21 14:43:49,129 - 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.428 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.428/1.614/2.801/1.186 ms') 2024-08-21 14:43:49,129 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-38410868-50582828 passed 2024-08-21 14:43:49,280 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 14:43:49,280 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38410868-50582828, IP 109.100.3.67, Port 22 2024-08-21 14:43:49,435 - DEBUG - VM ctest-TestBasicPolicy-38410868-50582828 is ready for SSH connections 2024-08-21 14:43:49,435 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 14:43:49,436 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 109.100.3.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-08-21 14:43:49,436 - DEBUG - ping -s 56 -c 3 -W 1 109.100.3.67 2024-08-21 14:43:53,400 - DEBUG - PING 109.100.3.67 (109.100.3.67): 56 data bytes 64 bytes from 109.100.3.67: seq=0 ttl=63 time=3.217 ms 64 bytes from 109.100.3.67: seq=1 ttl=63 time=0.778 ms 64 bytes from 109.100.3.67: seq=2 ttl=63 time=0.760 ms --- 109.100.3.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.760/1.585/3.217 ms 2024-08-21 14:43:53,400 - INFO - Ping to IP 109.100.3.67 from VM ctest-TestBasicPolicy-38410868-10396553 passed 2024-08-21 14:43:53,572 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f3c0e525-88de-45ab-a1fd-3a162d2d586c", "href": "http://10.0.0.12:8082/network-policy/f3c0e525-88de-45ab-a1fd-3a162d2d586c"}} 2024-08-21 14:43:53,572 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 14:43:53,572 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 109.100.3.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-08-21 14:43:53,572 - DEBUG - ping -s 56 -c 3 -W 1 109.100.3.67 2024-08-21 14:43:56,780 - DEBUG - PING 109.100.3.67 (109.100.3.67): 56 data bytes --- 109.100.3.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-21 14:43:56,780 - WARNING - Ping to IP 109.100.3.67 from VM ctest-TestBasicPolicy-38410868-10396553 failed 2024-08-21 14:43:56,781 - INFO - Deleting VM ctest-TestBasicPolicy-38410868-50582828 2024-08-21 14:43:56,848 - INFO - Deleting VM ctest-TestBasicPolicy-38410868-10396553 2024-08-21 14:43:57,290 - INFO - Deleted policy ctest-policy-allow-all-51203860 2024-08-21 14:43:57,290 - INFO - Deleting VN ctest-vn-82316247 2024-08-21 14:43:57,334 - DEBUG - VN 112bdbb6-cc0e-4a11-9d36-539c196f1242 still in use: Unable to complete operation on network 112bdbb6-cc0e-4a11-9d36-539c196f1242. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0eb6a12b-aa8c-404c-968b-bd00defd7bba'] 2024-08-21 14:43:57,335 - WARNING - Deleting VN ctest-vn-82316247 failed..Will retry 2024-08-21 14:43:59,450 - DEBUG - Response for deleting network () 2024-08-21 14:43:59,450 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a534ffeb-7289-4f73-89d6-5d7829a1e102 2024-08-21 14:43:59,459 - DEBUG - Response Code: 404 2024-08-21 14:43:59,459 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-21 14:43:59,467 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dbd473-bca2-4061-ad31-ce9fd0c95da1 2024-08-21 14:43:59,521 - DEBUG - Requesting: http://10.0.0.12:8082/project/d0d5cb1e-a148-42b9-9a59-3ea9a9296913 2024-08-21 14:43:59,599 - INFO - Validated that VN ctest-vn-82316247 is not found in API Server 2024-08-21 14:43:59,612 - DEBUG - VN ctest-vn-82316247 is not present in Agent 10.0.0.12 2024-08-21 14:43:59,612 - INFO - Validated that VN ctest-vn-82316247 is not in any agent 2024-08-21 14:43:59,630 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82316247 info 2024-08-21 14:43:59,630 - INFO - Deleting VN ctest-vn-50386781 2024-08-21 14:43:59,755 - DEBUG - Response for deleting network () 2024-08-21 14:43:59,756 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/b41b87f1-e20c-4320-ab24-0fb12915a547 2024-08-21 14:43:59,766 - DEBUG - Response Code: 404 2024-08-21 14:43:59,766 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-21 14:43:59,772 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dbd473-bca2-4061-ad31-ce9fd0c95da1 2024-08-21 14:43:59,835 - DEBUG - Requesting: http://10.0.0.12:8082/project/d0d5cb1e-a148-42b9-9a59-3ea9a9296913 2024-08-21 14:43:59,925 - INFO - Validated that VN ctest-vn-50386781 is not found in API Server 2024-08-21 14:43:59,944 - DEBUG - VN ctest-vn-50386781 is not present in Agent 10.0.0.12 2024-08-21 14:43:59,944 - INFO - Validated that VN ctest-vn-50386781 is not in any agent 2024-08-21 14:43:59,968 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-50386781 info 2024-08-21 14:44:00,230 - DEBUG - No XMPP flaps were noticed during the test
2024-08-21 14:44:00,230 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:41]
2024-08-21 14:44:00,230 - INFO - -------------------------------------------------------------------------------- 2024-08-21 14:44:00,936 - INFO - Deleted project: ctest-TestBasicPolicy-38410868, ID : d0d5cb1e-a148-42b9-9a59-3ea9a9296913