2024-08-27 08:35:55,658 - INFO - Domain Default found not creating 2024-08-27 08:35:55,876 - INFO - Project ctest-TestBasicPolicy-02495937 not found, creating it 2024-08-27 08:35:56,347 - INFO - Created Project:ctest-TestBasicPolicy-02495937, ID : a3fb7fe0-7a34-42d6-9d90-3dad7a292fe7 2024-08-27 08:35:57,955 - INFO - ================================================================================ 2024-08-27 08:35:57,956 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-27 08:35:57,956 - 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-27 08:35:58,216 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.20': '0'}} with 2024-08-27 08:35:58,216 - INFO - Initial checks done. Running the testcase now 2024-08-27 08:35:58,216 - INFO - 2024-08-27 08:35:58,801 - DEBUG - Response for create_network : {'network': {'id': '85af797c-da90-4277-87ce-ff5ce135a23c', 'name': 'ctest-vn-78903353', 'tenant_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'project_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02495937', 'ctest-vn-78903353'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 08:35:58,983 - DEBUG - Response for create_subnet : {'subnet': {'id': '9fe7a2c6-c374-404f-aff6-c8804438fadf', 'name': '', 'tenant_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'network_id': '85af797c-da90-4277-87ce-ff5ce135a23c', 'ip_version': 4, 'cidr': '62.166.159.0/26', 'allocation_pools': [{'start': '62.166.159.2', 'end': '62.166.159.62'}], 'gateway_ip': '62.166.159.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.166.159.2', 'tags': [], 'project_id': 'a3fb7fe07a3442d69d903dad7a292fe7'}} 2024-08-27 08:35:59,008 - INFO - Created VN ctest-vn-78903353 2024-08-27 08:35:59,070 - DEBUG - VN ctest-vn-78903353 UUID is 85af797c-da90-4277-87ce-ff5ce135a23c 2024-08-27 08:35:59,461 - DEBUG - Response for create_network : {'network': {'id': '8d9c8183-493e-41ad-9915-f0abc6d75e1e', 'name': 'ctest-vn-98835070', 'tenant_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'project_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02495937', 'ctest-vn-98835070'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 08:35:59,670 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a4de90e8-a309-4f7d-8981-f4c1a07f86b2', 'name': '', 'tenant_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'network_id': '8d9c8183-493e-41ad-9915-f0abc6d75e1e', 'ip_version': 4, 'cidr': '186.33.231.0/26', 'allocation_pools': [{'start': '186.33.231.2', 'end': '186.33.231.62'}], 'gateway_ip': '186.33.231.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.33.231.2', 'tags': [], 'project_id': 'a3fb7fe07a3442d69d903dad7a292fe7'}} 2024-08-27 08:35:59,696 - INFO - Created VN ctest-vn-98835070 2024-08-27 08:35:59,750 - DEBUG - VN ctest-vn-98835070 UUID is 8d9c8183-493e-41ad-9915-f0abc6d75e1e 2024-08-27 08:35:59,881 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-78903353, 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-02495937:ctest-vn-98835070, 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-27 08:36:00,210 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '85af797c-da90-4277-87ce-ff5ce135a23c', 'name': 'ctest-vn-78903353', 'tenant_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'project_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9fe7a2c6-c374-404f-aff6-c8804438fadf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02495937', 'ctest-vn-78903353'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02495937', 'ctest-policy-allow-all-35619930']], 'subnet_ipam': [{'subnet_cidr': '62.166.159.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 08:36:00,470 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d9c8183-493e-41ad-9915-f0abc6d75e1e', 'name': 'ctest-vn-98835070', 'tenant_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'project_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a4de90e8-a309-4f7d-8981-f4c1a07f86b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02495937', 'ctest-vn-98835070'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02495937', 'ctest-policy-allow-all-35619930']], 'subnet_ipam': [{'subnet_cidr': '186.33.231.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 08:36:00,622 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-08-27 08:36:00,927 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-08-27 08:36:00,971 - DEBUG - Requesting: http://10.0.0.27:8082/domain/72718c98-775f-4519-85d1-7e3a502964a7 2024-08-27 08:36:00,989 - DEBUG - Requesting: http://10.0.0.27:8082/project/a3fb7fe0-7a34-42d6-9d90-3dad7a292fe7 2024-08-27 08:36:01,071 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/85af797c-da90-4277-87ce-ff5ce135a23c 2024-08-27 08:36:01,083 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/85af797c-da90-4277-87ce-ff5ce135a23c 2024-08-27 08:36:01,093 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e1cec42c-129c-4677-b8c7-5c4dbb21e636 2024-08-27 08:36:01,101 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e1cec42c-129c-4677-b8c7-5c4dbb21e636 2024-08-27 08:36:01,111 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/4042c9d5-86a9-43b5-af94-11c2a960e9e9 2024-08-27 08:36:01,120 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 08:36:01,120 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/85af797c-da90-4277-87ce-ff5ce135a23c 2024-08-27 08:36:01,131 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e1cec42c-129c-4677-b8c7-5c4dbb21e636 2024-08-27 08:36:01,149 - INFO - Verified VN network id 8 for VN 85af797c-da90-4277-87ce-ff5ce135a23c 2024-08-27 08:36:01,150 - INFO - Verifications in API Server for VN ctest-vn-78903353 passed 2024-08-27 08:36:01,150 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/85af797c-da90-4277-87ce-ff5ce135a23c 2024-08-27 08:36:01,161 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e1cec42c-129c-4677-b8c7-5c4dbb21e636 2024-08-27 08:36:01,171 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e1cec42c-129c-4677-b8c7-5c4dbb21e636 2024-08-27 08:36:01,182 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/4042c9d5-86a9-43b5-af94-11c2a960e9e9 2024-08-27 08:36:01,199 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-78903353', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02495937', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9633051705118573175', 'uuid-lslong': '9786039814703129148'}, 'enable': 'true', 'created': '2024-08-27T08:35:58', 'last-modified': '2024-08-27T08:36:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.016043'} 2024-08-27 08:36:01,207 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 08:36:01,207 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78903353 passed 2024-08-27 08:36:01,208 - DEBUG - ====Verifying policy data for ctest-vn-78903353 in API_Server ====== 2024-08-27 08:36:01,208 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-08-27 08:36:01,216 - DEBUG - Requesting: http://10.0.0.27:8082/domain/72718c98-775f-4519-85d1-7e3a502964a7 2024-08-27 08:36:01,231 - DEBUG - Requesting: http://10.0.0.27:8082/project/a3fb7fe0-7a34-42d6-9d90-3dad7a292fe7 2024-08-27 08:36:01,305 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/85af797c-da90-4277-87ce-ff5ce135a23c 2024-08-27 08:36:01,318 - DEBUG - ==>Verifying data for policy with id: bd7e08af-acfe-4b0a-89b2-ac9a8388dde5, fqn: ['default-domain', 'ctest-TestBasicPolicy-02495937', 'ctest-policy-allow-all-35619930'] 2024-08-27 08:36:01,318 - INFO - VN ctest-vn-78903353 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 08:36:01,318 - DEBUG - Verifying the vn in opserver 2024-08-27 08:36:01,318 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-78903353 virtual network link through opserver 10.0.0.27 2024-08-27 08:36:01,318 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-08-27 08:36:01,634 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-08-27 08:36:01,712 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-78903353', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-78903353?flat'} 2024-08-27 08:36:01,712 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-78903353 is found in opserver 2024-08-27 08:36:01,726 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 08:36:01,734 - DEBUG - VRF ids for VN ctest-vn-78903353: {} 2024-08-27 08:36:01,734 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-08-27 08:36:01,742 - DEBUG - Requesting: http://10.0.0.27:8082/domain/72718c98-775f-4519-85d1-7e3a502964a7 2024-08-27 08:36:01,756 - DEBUG - Requesting: http://10.0.0.27:8082/project/a3fb7fe0-7a34-42d6-9d90-3dad7a292fe7 2024-08-27 08:36:01,826 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8d9c8183-493e-41ad-9915-f0abc6d75e1e 2024-08-27 08:36:01,838 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8d9c8183-493e-41ad-9915-f0abc6d75e1e 2024-08-27 08:36:01,848 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/727ced1a-6c6d-40d5-a644-5b6bebeff8f1 2024-08-27 08:36:01,858 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/727ced1a-6c6d-40d5-a644-5b6bebeff8f1 2024-08-27 08:36:01,869 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b8f6e3c3-b5ef-4778-9024-ebf1e0ac3b81 2024-08-27 08:36:01,878 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 08:36:01,878 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8d9c8183-493e-41ad-9915-f0abc6d75e1e 2024-08-27 08:36:01,889 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/727ced1a-6c6d-40d5-a644-5b6bebeff8f1 2024-08-27 08:36:01,906 - INFO - Verified VN network id 9 for VN 8d9c8183-493e-41ad-9915-f0abc6d75e1e 2024-08-27 08:36:01,906 - INFO - Verifications in API Server for VN ctest-vn-98835070 passed 2024-08-27 08:36:01,906 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8d9c8183-493e-41ad-9915-f0abc6d75e1e 2024-08-27 08:36:01,916 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/727ced1a-6c6d-40d5-a644-5b6bebeff8f1 2024-08-27 08:36:01,925 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/727ced1a-6c6d-40d5-a644-5b6bebeff8f1 2024-08-27 08:36:01,935 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b8f6e3c3-b5ef-4778-9024-ebf1e0ac3b81 2024-08-27 08:36:01,953 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-98835070', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02495937', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10204173256584217005', 'uuid-lslong': '11030987482879974942'}, 'enable': 'true', 'created': '2024-08-27T08:35:59', 'last-modified': '2024-08-27T08:36:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.504842'} 2024-08-27 08:36:01,961 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 08:36:01,961 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98835070 passed 2024-08-27 08:36:01,962 - DEBUG - ====Verifying policy data for ctest-vn-98835070 in API_Server ====== 2024-08-27 08:36:01,962 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-08-27 08:36:01,969 - DEBUG - Requesting: http://10.0.0.27:8082/domain/72718c98-775f-4519-85d1-7e3a502964a7 2024-08-27 08:36:01,984 - DEBUG - Requesting: http://10.0.0.27:8082/project/a3fb7fe0-7a34-42d6-9d90-3dad7a292fe7 2024-08-27 08:36:02,062 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8d9c8183-493e-41ad-9915-f0abc6d75e1e 2024-08-27 08:36:02,072 - DEBUG - ==>Verifying data for policy with id: bd7e08af-acfe-4b0a-89b2-ac9a8388dde5, fqn: ['default-domain', 'ctest-TestBasicPolicy-02495937', 'ctest-policy-allow-all-35619930'] 2024-08-27 08:36:02,072 - INFO - VN ctest-vn-98835070 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 08:36:02,072 - DEBUG - Verifying the vn in opserver 2024-08-27 08:36:02,072 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-98835070 virtual network link through opserver 10.0.0.27 2024-08-27 08:36:02,072 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-08-27 08:36:02,085 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-98835070', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-98835070?flat'} 2024-08-27 08:36:02,086 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-98835070 is found in opserver 2024-08-27 08:36:02,100 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 08:36:02,108 - DEBUG - VRF ids for VN ctest-vn-98835070: {} 2024-08-27 08:36:02,178 - DEBUG - Services list from nova: [, , ] 2024-08-27 08:36:03,362 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1794-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1794-1) 2024-08-27 08:36:04,804 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1794-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1794-1) 2024-08-27 08:36:04,805 - INFO - Waiting for VM ctest-TestBasicPolicy-02495937-85436307 to be up.. 2024-08-27 08:36:04,909 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 08:36:10,008 - DEBUG - VM is in ACTIVE state now 2024-08-27 08:36:10,008 - INFO - VM name : ctest-TestBasicPolicy-02495937-85436307 2024-08-27 08:36:10,105 - DEBUG - VM ctest-TestBasicPolicy-02495937-85436307 ID is cf8960bb-4c9d-45f3-8c1c-ef3e30b0070b 2024-08-27 08:36:10,132 - DEBUG - VM ctest-TestBasicPolicy-02495937-85436307 launched on Node cn-jenkins-deploy-platform-ansible-os-1794-1 2024-08-27 08:36:10,238 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/cf8960bb-4c9d-45f3-8c1c-ef3e30b0070b 2024-08-27 08:36:10,250 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/9fb7e5f2-5201-4b7a-a2ce-7c23ab4e0cf4 2024-08-27 08:36:13,465 - 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 1022ms') 2024-08-27 08:36:13,465 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-02495937-85436307 failed! 2024-08-27 08:36:13,522 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-78903353 is 62.166.159.1 and allocation pool is NOT set 2024-08-27 08:36:15,582 - 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.70 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.464 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.464/4.581/8.699/4.117 ms') 2024-08-27 08:36:15,582 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-02495937-85436307 passed 2024-08-27 08:36:15,738 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 08:36:15,738 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-02495937-85436307, IP 62.166.159.3, Port 22 2024-08-27 08:36:15,897 - DEBUG - VM ctest-TestBasicPolicy-02495937-85436307 is ready for SSH connections 2024-08-27 08:36:15,897 - INFO - Waiting for VM ctest-TestBasicPolicy-02495937-62632219 to be up.. 2024-08-27 08:36:15,987 - DEBUG - VM is in ACTIVE state now 2024-08-27 08:36:15,987 - INFO - VM name : ctest-TestBasicPolicy-02495937-62632219 2024-08-27 08:36:16,079 - DEBUG - VM ctest-TestBasicPolicy-02495937-62632219 ID is 15150c24-9ca6-4ae3-bc76-712778bba9ff 2024-08-27 08:36:16,079 - DEBUG - VM ctest-TestBasicPolicy-02495937-62632219 launched on Node cn-jenkins-deploy-platform-ansible-os-1794-1 2024-08-27 08:36:16,183 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/15150c24-9ca6-4ae3-bc76-712778bba9ff 2024-08-27 08:36:16,193 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/c3878203-3ece-45c6-a65a-deef981280c9 2024-08-27 08:36:17,433 - 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.40 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.548 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.548/1.973/3.398/1.425 ms') 2024-08-27 08:36:17,433 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-02495937-62632219 passed 2024-08-27 08:36:17,586 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 08:36:17,586 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-02495937-62632219, IP 186.33.231.3, Port 22 2024-08-27 08:36:17,742 - DEBUG - VM ctest-TestBasicPolicy-02495937-62632219 is ready for SSH connections 2024-08-27 08:36:17,742 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 08:36:17,742 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 186.33.231.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-08-27 08:36:17,742 - DEBUG - ping -s 56 -c 3 -W 1 186.33.231.3 2024-08-27 08:36:21,802 - DEBUG - PING 186.33.231.3 (186.33.231.3): 56 data bytes 64 bytes from 186.33.231.3: seq=0 ttl=63 time=3.637 ms 64 bytes from 186.33.231.3: seq=1 ttl=63 time=0.993 ms 64 bytes from 186.33.231.3: seq=2 ttl=63 time=1.111 ms --- 186.33.231.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.993/1.913/3.637 ms 2024-08-27 08:36:21,802 - INFO - Ping to IP 186.33.231.3 from VM ctest-TestBasicPolicy-02495937-85436307 passed 2024-08-27 08:36:21,982 - DEBUG - Policy Update Response {"network-policy": {"uuid": "bd7e08af-acfe-4b0a-89b2-ac9a8388dde5", "href": "http://10.0.0.27:8082/network-policy/bd7e08af-acfe-4b0a-89b2-ac9a8388dde5"}} 2024-08-27 08:36:21,982 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 08:36:21,982 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 186.33.231.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-08-27 08:36:21,982 - DEBUG - ping -s 56 -c 3 -W 1 186.33.231.3 2024-08-27 08:36:25,199 - DEBUG - PING 186.33.231.3 (186.33.231.3): 56 data bytes 64 bytes from 186.33.231.3: seq=0 ttl=63 time=1.387 ms --- 186.33.231.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.387/1.387/1.387 ms 2024-08-27 08:36:25,199 - WARNING - Ping to IP 186.33.231.3 from VM ctest-TestBasicPolicy-02495937-85436307 failed 2024-08-27 08:36:25,199 - INFO - Deleting VM ctest-TestBasicPolicy-02495937-62632219 2024-08-27 08:36:25,296 - INFO - Deleting VM ctest-TestBasicPolicy-02495937-85436307 2024-08-27 08:36:25,747 - INFO - Deleted policy ctest-policy-allow-all-35619930 2024-08-27 08:36:25,747 - INFO - Deleting VN ctest-vn-98835070 2024-08-27 08:36:25,793 - DEBUG - VN 8d9c8183-493e-41ad-9915-f0abc6d75e1e still in use: Unable to complete operation on network 8d9c8183-493e-41ad-9915-f0abc6d75e1e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fe53c631-b203-4a45-96eb-bb08443375dd'] 2024-08-27 08:36:25,793 - WARNING - Deleting VN ctest-vn-98835070 failed..Will retry 2024-08-27 08:36:27,930 - DEBUG - Response for deleting network () 2024-08-27 08:36:27,930 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/727ced1a-6c6d-40d5-a644-5b6bebeff8f1 2024-08-27 08:36:27,937 - DEBUG - Response Code: 404 2024-08-27 08:36:27,937 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-08-27 08:36:27,944 - DEBUG - Requesting: http://10.0.0.27:8082/domain/72718c98-775f-4519-85d1-7e3a502964a7 2024-08-27 08:36:28,000 - DEBUG - Requesting: http://10.0.0.27:8082/project/a3fb7fe0-7a34-42d6-9d90-3dad7a292fe7 2024-08-27 08:36:28,083 - INFO - Validated that VN ctest-vn-98835070 is not found in API Server 2024-08-27 08:36:28,095 - DEBUG - VN ctest-vn-98835070 is not present in Agent 10.0.0.27 2024-08-27 08:36:28,095 - INFO - Validated that VN ctest-vn-98835070 is not in any agent 2024-08-27 08:36:28,116 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-98835070 info 2024-08-27 08:36:28,116 - INFO - Deleting VN ctest-vn-78903353 2024-08-27 08:36:28,244 - DEBUG - Response for deleting network () 2024-08-27 08:36:28,244 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e1cec42c-129c-4677-b8c7-5c4dbb21e636 2024-08-27 08:36:28,252 - DEBUG - Response Code: 404 2024-08-27 08:36:28,252 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-08-27 08:36:28,258 - DEBUG - Requesting: http://10.0.0.27:8082/domain/72718c98-775f-4519-85d1-7e3a502964a7 2024-08-27 08:36:28,312 - DEBUG - Requesting: http://10.0.0.27:8082/project/a3fb7fe0-7a34-42d6-9d90-3dad7a292fe7 2024-08-27 08:36:28,386 - INFO - Validated that VN ctest-vn-78903353 is not found in API Server 2024-08-27 08:36:28,398 - DEBUG - VN ctest-vn-78903353 is not present in Agent 10.0.0.27 2024-08-27 08:36:28,398 - INFO - Validated that VN ctest-vn-78903353 is not in any agent 2024-08-27 08:36:28,414 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-78903353 info 2024-08-27 08:36:28,669 - DEBUG - No XMPP flaps were noticed during the test
2024-08-27 08:36:28,669 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-08-27 08:36:28,669 - INFO - -------------------------------------------------------------------------------- 2024-08-27 08:36:29,413 - INFO - Deleted project: ctest-TestBasicPolicy-02495937, ID : a3fb7fe0-7a34-42d6-9d90-3dad7a292fe7