2024-08-29 12:30:33,343 - INFO - Reading existing Domain with UUID 479779d4-bad1-45f9-b27d-e7e2347c0996 2024-08-29 12:30:33,359 - INFO - Using existing domain ['admin_domain'](479779d4-bad1-45f9-b27d-e7e2347c0996) 2024-08-29 12:30:33,637 - INFO - Project ctest-TestBasicPolicy-09932209 not found, creating it 2024-08-29 12:30:34,258 - INFO - Created Project:ctest-TestBasicPolicy-09932209, ID : 4ac1bf45-70ed-4272-8081-2da273a3725f 2024-08-29 12:30:36,473 - INFO - ================================================================================ 2024-08-29 12:30:36,473 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-29 12:30:36,473 - 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-29 12:30:36,886 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.0.0.32': '0'}} with 2024-08-29 12:30:36,886 - INFO - Initial checks done. Running the testcase now 2024-08-29 12:30:36,886 - INFO - 2024-08-29 12:30:37,854 - DEBUG - Response for create_network : {'network': {'id': '5f05fd9d-135c-4e80-998b-eaba8ebebd08', 'name': 'ctest-vn-35730327', 'tenant_id': '4ac1bf4570ed427280812da273a3725f', 'project_id': '4ac1bf4570ed427280812da273a3725f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-09932209', 'ctest-vn-35730327'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-08-29 12:30:38,127 - DEBUG - Response for create_subnet : {'subnet': {'id': '886650b6-c998-414d-81f0-abd668aaea50', 'name': '', 'tenant_id': '4ac1bf4570ed427280812da273a3725f', 'network_id': '5f05fd9d-135c-4e80-998b-eaba8ebebd08', 'ip_version': 4, 'cidr': '176.95.235.0/26', 'allocation_pools': [{'start': '176.95.235.2', 'end': '176.95.235.62'}], 'gateway_ip': '176.95.235.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-08-29T12:30:38.008720', 'updated_at': '2024-08-29T12:30:38.008720', 'dns_server_address': '176.95.235.2', 'tags': [], 'project_id': '4ac1bf4570ed427280812da273a3725f'}} 2024-08-29 12:30:38,198 - INFO - Created VN ctest-vn-35730327 2024-08-29 12:30:38,252 - DEBUG - VN ctest-vn-35730327 UUID is 5f05fd9d-135c-4e80-998b-eaba8ebebd08 2024-08-29 12:30:38,817 - DEBUG - Response for create_network : {'network': {'id': '727c71e0-b2c0-4294-aa22-921eddfb03af', 'name': 'ctest-vn-40935368', 'tenant_id': '4ac1bf4570ed427280812da273a3725f', 'project_id': '4ac1bf4570ed427280812da273a3725f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-09932209', 'ctest-vn-40935368'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-08-29 12:30:39,078 - DEBUG - Response for create_subnet : {'subnet': {'id': '47465d92-de0d-434d-981b-1644551ca038', 'name': '', 'tenant_id': '4ac1bf4570ed427280812da273a3725f', 'network_id': '727c71e0-b2c0-4294-aa22-921eddfb03af', 'ip_version': 4, 'cidr': '91.224.94.192/26', 'allocation_pools': [{'start': '91.224.94.194', 'end': '91.224.94.254'}], 'gateway_ip': '91.224.94.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-08-29T12:30:38.959262', 'updated_at': '2024-08-29T12:30:38.959262', 'dns_server_address': '91.224.94.194', 'tags': [], 'project_id': '4ac1bf4570ed427280812da273a3725f'}} 2024-08-29 12:30:39,151 - INFO - Created VN ctest-vn-40935368 2024-08-29 12:30:39,208 - DEBUG - VN ctest-vn-40935368 UUID is 727c71e0-b2c0-4294-aa22-921eddfb03af 2024-08-29 12:30:39,450 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-09932209:ctest-vn-35730327, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-09932209:ctest-vn-40935368, 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-29 12:30:39,908 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f05fd9d-135c-4e80-998b-eaba8ebebd08', 'name': 'ctest-vn-35730327', 'tenant_id': '4ac1bf4570ed427280812da273a3725f', 'project_id': '4ac1bf4570ed427280812da273a3725f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['886650b6-c998-414d-81f0-abd668aaea50'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-09932209', 'ctest-vn-35730327'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-09932209', 'ctest-policy-allow-all-68220097']], 'subnet_ipam': [{'subnet_cidr': '176.95.235.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-08-29T12:30:37.761024', 'updated_at': '2024-08-29T12:30:38.026389'}} 2024-08-29 12:30:40,308 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '727c71e0-b2c0-4294-aa22-921eddfb03af', 'name': 'ctest-vn-40935368', 'tenant_id': '4ac1bf4570ed427280812da273a3725f', 'project_id': '4ac1bf4570ed427280812da273a3725f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47465d92-de0d-434d-981b-1644551ca038'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-09932209', 'ctest-vn-40935368'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-09932209', 'ctest-policy-allow-all-68220097']], 'subnet_ipam': [{'subnet_cidr': '91.224.94.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-08-29T12:30:38.734295', 'updated_at': '2024-08-29T12:30:38.976862'}} 2024-08-29 12:30:40,492 - DEBUG - Requesting: https://10.0.0.32:8082/domains 2024-08-29 12:30:40,900 - DEBUG - Requesting: https://10.0.0.32:8082/domains 2024-08-29 12:30:41,001 - DEBUG - Requesting: https://10.0.0.32:8082/domain/479779d4-bad1-45f9-b27d-e7e2347c0996 2024-08-29 12:30:41,069 - DEBUG - Requesting: https://10.0.0.32:8082/project/4ac1bf45-70ed-4272-8081-2da273a3725f 2024-08-29 12:30:41,162 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-network/5f05fd9d-135c-4e80-998b-eaba8ebebd08 2024-08-29 12:30:41,223 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-network/5f05fd9d-135c-4e80-998b-eaba8ebebd08 2024-08-29 12:30:41,282 - DEBUG - Requesting: https://10.0.0.32:8082/routing-instance/8b3dff86-233f-4ad7-9b0a-18a2e11d2ac4 2024-08-29 12:30:41,342 - DEBUG - Requesting: https://10.0.0.32:8082/routing-instance/8b3dff86-233f-4ad7-9b0a-18a2e11d2ac4 2024-08-29 12:30:41,397 - DEBUG - Requesting: https://10.0.0.32:8082/route-target/a4096b64-6bfb-4feb-af87-0feecec0c9c0 2024-08-29 12:30:41,457 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-29 12:30:41,458 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-network/5f05fd9d-135c-4e80-998b-eaba8ebebd08 2024-08-29 12:30:41,520 - DEBUG - Requesting: https://10.0.0.32:8082/routing-instance/8b3dff86-233f-4ad7-9b0a-18a2e11d2ac4 2024-08-29 12:30:41,591 - INFO - Verified VN network id 7 for VN 5f05fd9d-135c-4e80-998b-eaba8ebebd08 2024-08-29 12:30:41,591 - INFO - Verifications in API Server for VN ctest-vn-35730327 passed 2024-08-29 12:30:41,591 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-network/5f05fd9d-135c-4e80-998b-eaba8ebebd08 2024-08-29 12:30:41,650 - DEBUG - Requesting: https://10.0.0.32:8082/routing-instance/8b3dff86-233f-4ad7-9b0a-18a2e11d2ac4 2024-08-29 12:30:41,709 - DEBUG - Requesting: https://10.0.0.32:8082/routing-instance/8b3dff86-233f-4ad7-9b0a-18a2e11d2ac4 2024-08-29 12:30:41,775 - DEBUG - Requesting: https://10.0.0.32:8082/route-target/a4096b64-6bfb-4feb-af87-0feecec0c9c0 2024-08-29 12:30:41,890 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-09932209:ctest-vn-35730327', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09932209', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6847157659563216512', 'uuid-lslong': '11064194996545436936'}, 'enable': 'true', 'created': '2024-08-29T12:30:37', 'last-modified': '2024-08-29T12:30:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.015383'} 2024-08-29 12:30:41,946 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-29 12:30:41,946 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35730327 passed 2024-08-29 12:30:41,947 - DEBUG - ====Verifying policy data for ctest-vn-35730327 in API_Server ====== 2024-08-29 12:30:41,947 - DEBUG - Requesting: https://10.0.0.32:8082/domains 2024-08-29 12:30:42,004 - DEBUG - Requesting: https://10.0.0.32:8082/domain/479779d4-bad1-45f9-b27d-e7e2347c0996 2024-08-29 12:30:42,069 - DEBUG - Requesting: https://10.0.0.32:8082/project/4ac1bf45-70ed-4272-8081-2da273a3725f 2024-08-29 12:30:42,154 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-network/5f05fd9d-135c-4e80-998b-eaba8ebebd08 2024-08-29 12:30:42,214 - DEBUG - ==>Verifying data for policy with id: 243cee7e-36b5-4d1f-9fed-5f52fa8496ad, fqn: ['admin_domain', 'ctest-TestBasicPolicy-09932209', 'ctest-policy-allow-all-68220097'] 2024-08-29 12:30:42,214 - INFO - VN ctest-vn-35730327 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-29 12:30:42,215 - DEBUG - Verifying the vn in opserver 2024-08-29 12:30:42,215 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-09932209:ctest-vn-35730327 virtual network link through opserver 10.0.0.32 2024-08-29 12:30:42,215 - DEBUG - Requesting: https://10.0.0.32:8081/analytics/uves/virtual-networks 2024-08-29 12:30:42,607 - DEBUG - Requesting: https://10.0.0.32:8081/analytics/uves/virtual-networks 2024-08-29 12:30:42,769 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-09932209:ctest-vn-35730327', 'href': 'https://10.0.0.32:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-09932209:ctest-vn-35730327?flat'} 2024-08-29 12:30:42,769 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-09932209:ctest-vn-35730327 is found in opserver 2024-08-29 12:30:42,873 - DEBUG - Do not have enough data to verify VN in agent 2024-08-29 12:30:42,925 - DEBUG - VRF ids for VN ctest-vn-35730327: {} 2024-08-29 12:30:42,925 - DEBUG - Requesting: https://10.0.0.32:8082/domains 2024-08-29 12:30:42,980 - DEBUG - Requesting: https://10.0.0.32:8082/domain/479779d4-bad1-45f9-b27d-e7e2347c0996 2024-08-29 12:30:43,045 - DEBUG - Requesting: https://10.0.0.32:8082/project/4ac1bf45-70ed-4272-8081-2da273a3725f 2024-08-29 12:30:43,142 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-network/727c71e0-b2c0-4294-aa22-921eddfb03af 2024-08-29 12:30:43,206 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-network/727c71e0-b2c0-4294-aa22-921eddfb03af 2024-08-29 12:30:43,270 - DEBUG - Requesting: https://10.0.0.32:8082/routing-instance/8ff80a9c-513d-4422-95fe-868796a2d1a0 2024-08-29 12:30:43,329 - DEBUG - Requesting: https://10.0.0.32:8082/routing-instance/8ff80a9c-513d-4422-95fe-868796a2d1a0 2024-08-29 12:30:43,386 - DEBUG - Requesting: https://10.0.0.32:8082/route-target/558a6fc5-8a59-4132-833e-d39402dcafcf 2024-08-29 12:30:43,445 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-29 12:30:43,446 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-network/727c71e0-b2c0-4294-aa22-921eddfb03af 2024-08-29 12:30:43,503 - DEBUG - Requesting: https://10.0.0.32:8082/routing-instance/8ff80a9c-513d-4422-95fe-868796a2d1a0 2024-08-29 12:30:43,576 - INFO - Verified VN network id 8 for VN 727c71e0-b2c0-4294-aa22-921eddfb03af 2024-08-29 12:30:43,576 - INFO - Verifications in API Server for VN ctest-vn-40935368 passed 2024-08-29 12:30:43,576 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-network/727c71e0-b2c0-4294-aa22-921eddfb03af 2024-08-29 12:30:43,638 - DEBUG - Requesting: https://10.0.0.32:8082/routing-instance/8ff80a9c-513d-4422-95fe-868796a2d1a0 2024-08-29 12:30:43,697 - DEBUG - Requesting: https://10.0.0.32:8082/routing-instance/8ff80a9c-513d-4422-95fe-868796a2d1a0 2024-08-29 12:30:43,754 - DEBUG - Requesting: https://10.0.0.32:8082/route-target/558a6fc5-8a59-4132-833e-d39402dcafcf 2024-08-29 12:30:43,865 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-09932209:ctest-vn-40935368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09932209', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8249593827321463444', 'uuid-lslong': '12259521796926800815'}, 'enable': 'true', 'created': '2024-08-29T12:30:38', 'last-modified': '2024-08-29T12:30:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.593640'} 2024-08-29 12:30:43,918 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-29 12:30:43,919 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40935368 passed 2024-08-29 12:30:43,919 - DEBUG - ====Verifying policy data for ctest-vn-40935368 in API_Server ====== 2024-08-29 12:30:43,919 - DEBUG - Requesting: https://10.0.0.32:8082/domains 2024-08-29 12:30:43,977 - DEBUG - Requesting: https://10.0.0.32:8082/domain/479779d4-bad1-45f9-b27d-e7e2347c0996 2024-08-29 12:30:44,041 - DEBUG - Requesting: https://10.0.0.32:8082/project/4ac1bf45-70ed-4272-8081-2da273a3725f 2024-08-29 12:30:44,134 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-network/727c71e0-b2c0-4294-aa22-921eddfb03af 2024-08-29 12:30:44,191 - DEBUG - ==>Verifying data for policy with id: 243cee7e-36b5-4d1f-9fed-5f52fa8496ad, fqn: ['admin_domain', 'ctest-TestBasicPolicy-09932209', 'ctest-policy-allow-all-68220097'] 2024-08-29 12:30:44,192 - INFO - VN ctest-vn-40935368 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-29 12:30:44,192 - DEBUG - Verifying the vn in opserver 2024-08-29 12:30:44,192 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-09932209:ctest-vn-40935368 virtual network link through opserver 10.0.0.32 2024-08-29 12:30:44,192 - DEBUG - Requesting: https://10.0.0.32:8081/analytics/uves/virtual-networks 2024-08-29 12:30:44,253 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-09932209:ctest-vn-40935368', 'href': 'https://10.0.0.32:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-09932209:ctest-vn-40935368?flat'} 2024-08-29 12:30:44,253 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-09932209:ctest-vn-40935368 is found in opserver 2024-08-29 12:30:44,373 - DEBUG - Do not have enough data to verify VN in agent 2024-08-29 12:30:44,428 - DEBUG - VRF ids for VN ctest-vn-40935368: {} 2024-08-29 12:30:44,516 - DEBUG - Services list from nova: [, , ] 2024-08-29 12:30:46,580 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-389-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-389-1) 2024-08-29 12:30:48,127 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-389-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-389-1) 2024-08-29 12:30:48,127 - INFO - Waiting for VM ctest-TestBasicPolicy-09932209-20397130 to be up.. 2024-08-29 12:30:48,331 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-29 12:30:53,496 - DEBUG - VM is in ACTIVE state now 2024-08-29 12:30:53,497 - INFO - VM name : ctest-TestBasicPolicy-09932209-20397130 2024-08-29 12:30:53,678 - DEBUG - VM ctest-TestBasicPolicy-09932209-20397130 ID is 1f43d323-1562-42a5-b733-cd73085a6a80 2024-08-29 12:30:53,710 - DEBUG - VM ctest-TestBasicPolicy-09932209-20397130 launched on Node cn-jenkins-deploy-platform-juju-os-389-1 2024-08-29 12:30:53,890 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-machine/1f43d323-1562-42a5-b733-cd73085a6a80 2024-08-29 12:30:53,949 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-machine-interface/f9d2904e-3c5a-400f-ae2a-24f27d2efdd9 2024-08-29 12:30:57,485 - 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-08-29 12:30:57,485 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09932209-20397130 failed! 2024-08-29 12:30:57,560 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-09932209:ctest-vn-35730327 is 176.95.235.1 and allocation pool is NOT set 2024-08-29 12:31:01,672 - 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=2 ttl=63 time=13.3 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1016ms\r\nrtt min/avg/max/mdev = 13.285/13.285/13.285/0.000 ms') 2024-08-29 12:31:01,672 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09932209-20397130 passed 2024-08-29 12:31:01,840 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 12:31:01,840 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09932209-20397130, IP 176.95.235.3, Port 22 2024-08-29 12:31:01,940 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-08-29 12:31:02,111 - DEBUG - VM ctest-TestBasicPolicy-09932209-20397130 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-29 12:31:07,112 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 12:31:07,112 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09932209-20397130, IP 176.95.235.3, Port 22 2024-08-29 12:31:07,354 - DEBUG - VM ctest-TestBasicPolicy-09932209-20397130 is ready for SSH connections 2024-08-29 12:31:07,354 - INFO - Waiting for VM ctest-TestBasicPolicy-09932209-90406383 to be up.. 2024-08-29 12:31:07,527 - DEBUG - VM is in ACTIVE state now 2024-08-29 12:31:07,528 - INFO - VM name : ctest-TestBasicPolicy-09932209-90406383 2024-08-29 12:31:07,701 - DEBUG - VM ctest-TestBasicPolicy-09932209-90406383 ID is 604e0733-a7c0-4bbf-8958-1bedf6576865 2024-08-29 12:31:07,702 - DEBUG - VM ctest-TestBasicPolicy-09932209-90406383 launched on Node cn-jenkins-deploy-platform-juju-os-389-1 2024-08-29 12:31:07,881 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-machine/604e0733-a7c0-4bbf-8958-1bedf6576865 2024-08-29 12:31:07,941 - DEBUG - Requesting: https://10.0.0.32:8082/virtual-machine-interface/cb13fafd-7dff-4251-8719-ecf8b5c19a82 2024-08-29 12:31:09,432 - 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.58 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.577 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 = 0.577/2.078/3.580/1.501 ms') 2024-08-29 12:31:09,432 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-09932209-90406383 passed 2024-08-29 12:31:09,588 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 12:31:09,588 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09932209-90406383, IP 91.224.94.195, Port 22 2024-08-29 12:31:09,818 - DEBUG - VM ctest-TestBasicPolicy-09932209-90406383 is ready for SSH connections 2024-08-29 12:31:09,818 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 12:31:09,819 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 91.224.94.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-08-29 12:31:09,819 - DEBUG - ping -s 56 -c 3 -W 1 91.224.94.195 2024-08-29 12:31:13,632 - DEBUG - PING 91.224.94.195 (91.224.94.195): 56 data bytes 64 bytes from 91.224.94.195: seq=0 ttl=63 time=4.849 ms 64 bytes from 91.224.94.195: seq=1 ttl=63 time=1.175 ms 64 bytes from 91.224.94.195: seq=2 ttl=63 time=1.790 ms --- 91.224.94.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.175/2.604/4.849 ms 2024-08-29 12:31:13,632 - INFO - Ping to IP 91.224.94.195 from VM ctest-TestBasicPolicy-09932209-20397130 passed 2024-08-29 12:31:13,844 - DEBUG - Policy Update Response {"network-policy": {"uuid": "243cee7e-36b5-4d1f-9fed-5f52fa8496ad", "href": "https://10.0.0.32:8082/network-policy/243cee7e-36b5-4d1f-9fed-5f52fa8496ad"}} 2024-08-29 12:31:13,844 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 12:31:13,844 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 91.224.94.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-08-29 12:31:13,844 - DEBUG - ping -s 56 -c 3 -W 1 91.224.94.195 2024-08-29 12:31:17,106 - DEBUG - PING 91.224.94.195 (91.224.94.195): 56 data bytes 64 bytes from 91.224.94.195: seq=0 ttl=63 time=2.206 ms --- 91.224.94.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.206/2.206/2.206 ms 2024-08-29 12:31:17,106 - WARNING - Ping to IP 91.224.94.195 from VM ctest-TestBasicPolicy-09932209-20397130 failed 2024-08-29 12:31:17,106 - INFO - Deleting VM ctest-TestBasicPolicy-09932209-90406383 2024-08-29 12:31:17,276 - INFO - Deleting VM ctest-TestBasicPolicy-09932209-20397130 2024-08-29 12:31:18,128 - INFO - Deleted policy ctest-policy-allow-all-68220097 2024-08-29 12:31:18,128 - INFO - Deleting VN ctest-vn-40935368 2024-08-29 12:31:18,287 - DEBUG - VN 727c71e0-b2c0-4294-aa22-921eddfb03af still in use: Unable to complete operation on network 727c71e0-b2c0-4294-aa22-921eddfb03af. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-eec93a5b-8e17-4b3e-a8a0-8d2d6798e486'] 2024-08-29 12:31:18,288 - WARNING - Deleting VN ctest-vn-40935368 failed..Will retry 2024-08-29 12:31:20,505 - DEBUG - Response for deleting network () 2024-08-29 12:31:20,505 - DEBUG - Requesting: https://10.0.0.32:8082/routing-instance/8ff80a9c-513d-4422-95fe-868796a2d1a0 2024-08-29 12:31:20,564 - DEBUG - Response Code: 404 2024-08-29 12:31:20,564 - DEBUG - Requesting: https://10.0.0.32:8082/domains 2024-08-29 12:31:20,620 - DEBUG - Requesting: https://10.0.0.32:8082/domain/479779d4-bad1-45f9-b27d-e7e2347c0996 2024-08-29 12:31:20,685 - DEBUG - Requesting: https://10.0.0.32:8082/project/4ac1bf45-70ed-4272-8081-2da273a3725f 2024-08-29 12:31:20,774 - INFO - Validated that VN ctest-vn-40935368 is not found in API Server 2024-08-29 12:31:20,876 - DEBUG - VN ctest-vn-40935368 is not present in Agent 10.0.0.32 2024-08-29 12:31:20,876 - INFO - Validated that VN ctest-vn-40935368 is not in any agent 2024-08-29 12:31:21,041 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-40935368 info 2024-08-29 12:31:21,041 - INFO - Deleting VN ctest-vn-35730327 2024-08-29 12:31:21,295 - DEBUG - Response for deleting network () 2024-08-29 12:31:21,295 - DEBUG - Requesting: https://10.0.0.32:8082/routing-instance/8b3dff86-233f-4ad7-9b0a-18a2e11d2ac4 2024-08-29 12:31:21,356 - DEBUG - Response Code: 404 2024-08-29 12:31:21,357 - DEBUG - Requesting: https://10.0.0.32:8082/domains 2024-08-29 12:31:21,412 - DEBUG - Requesting: https://10.0.0.32:8082/domain/479779d4-bad1-45f9-b27d-e7e2347c0996 2024-08-29 12:31:21,477 - DEBUG - Requesting: https://10.0.0.32:8082/project/4ac1bf45-70ed-4272-8081-2da273a3725f 2024-08-29 12:31:21,563 - INFO - Validated that VN ctest-vn-35730327 is not found in API Server 2024-08-29 12:31:21,669 - DEBUG - VN ctest-vn-35730327 is not present in Agent 10.0.0.32 2024-08-29 12:31:21,669 - INFO - Validated that VN ctest-vn-35730327 is not in any agent 2024-08-29 12:31:21,827 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35730327 info 2024-08-29 12:31:22,241 - DEBUG - No XMPP flaps were noticed during the test 2024-08-29 12:31:22,241 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:46] 2024-08-29 12:31:22,241 - INFO - -------------------------------------------------------------------------------- 2024-08-29 12:31:23,161 - INFO - Deleted project: ctest-TestBasicPolicy-09932209, ID : 4ac1bf45-70ed-4272-8081-2da273a3725f