2024-09-03 14:30:16,032 - INFO - Reading existing Domain with UUID 2de1d231-db55-4838-af7f-331e8edb8f37 2024-09-03 14:30:16,048 - INFO - Using existing domain ['admin_domain'](2de1d231-db55-4838-af7f-331e8edb8f37) 2024-09-03 14:30:16,271 - INFO - Project ctest-TestBasicPolicy-93146647 not found, creating it 2024-09-03 14:30:16,799 - INFO - Created Project:ctest-TestBasicPolicy-93146647, ID : 49f46e12-212d-4cf2-9bec-a596ddc8d60f 2024-09-03 14:30:18,670 - INFO - ================================================================================ 2024-09-03 14:30:18,670 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-03 14:30:18,670 - 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-09-03 14:30:19,060 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.0.0.50': '0'}} with 2024-09-03 14:30:19,060 - INFO - Initial checks done. Running the testcase now 2024-09-03 14:30:19,060 - INFO - 2024-09-03 14:30:19,862 - DEBUG - Response for create_network : {'network': {'id': 'ef9c010a-bf25-4dbd-8e53-5f6343380773', 'name': 'ctest-vn-53053538', 'tenant_id': '49f46e12212d4cf29beca596ddc8d60f', 'project_id': '49f46e12212d4cf29beca596ddc8d60f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-93146647', 'ctest-vn-53053538'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-03 14:30:20,128 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e3d8baf5-1f56-4f38-98b6-bc9e12ab7efd', 'name': '', 'tenant_id': '49f46e12212d4cf29beca596ddc8d60f', 'network_id': 'ef9c010a-bf25-4dbd-8e53-5f6343380773', 'ip_version': 4, 'cidr': '113.68.150.0/26', 'allocation_pools': [{'start': '113.68.150.2', 'end': '113.68.150.62'}], 'gateway_ip': '113.68.150.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-03T14:30:20.014425', 'updated_at': '2024-09-03T14:30:20.014425', 'dns_server_address': '113.68.150.2', 'tags': [], 'project_id': '49f46e12212d4cf29beca596ddc8d60f'}} 2024-09-03 14:30:20,196 - INFO - Created VN ctest-vn-53053538 2024-09-03 14:30:20,250 - DEBUG - VN ctest-vn-53053538 UUID is ef9c010a-bf25-4dbd-8e53-5f6343380773 2024-09-03 14:30:20,800 - DEBUG - Response for create_network : {'network': {'id': 'a8b41643-1acb-40b6-bf00-b6e5892c6b32', 'name': 'ctest-vn-53433134', 'tenant_id': '49f46e12212d4cf29beca596ddc8d60f', 'project_id': '49f46e12212d4cf29beca596ddc8d60f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-93146647', 'ctest-vn-53433134'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-03 14:30:21,056 - DEBUG - Response for create_subnet : {'subnet': {'id': '95d8db70-e1c2-48e6-8d5a-f6849150431f', 'name': '', 'tenant_id': '49f46e12212d4cf29beca596ddc8d60f', 'network_id': 'a8b41643-1acb-40b6-bf00-b6e5892c6b32', 'ip_version': 4, 'cidr': '52.49.183.0/26', 'allocation_pools': [{'start': '52.49.183.2', 'end': '52.49.183.62'}], 'gateway_ip': '52.49.183.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-03T14:30:20.945113', 'updated_at': '2024-09-03T14:30:20.945113', 'dns_server_address': '52.49.183.2', 'tags': [], 'project_id': '49f46e12212d4cf29beca596ddc8d60f'}} 2024-09-03 14:30:21,128 - INFO - Created VN ctest-vn-53433134 2024-09-03 14:30:21,183 - DEBUG - VN ctest-vn-53433134 UUID is a8b41643-1acb-40b6-bf00-b6e5892c6b32 2024-09-03 14:30:21,406 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53053538, 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-93146647:ctest-vn-53433134, 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-09-03 14:30:21,831 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ef9c010a-bf25-4dbd-8e53-5f6343380773', 'name': 'ctest-vn-53053538', 'tenant_id': '49f46e12212d4cf29beca596ddc8d60f', 'project_id': '49f46e12212d4cf29beca596ddc8d60f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e3d8baf5-1f56-4f38-98b6-bc9e12ab7efd'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-93146647', 'ctest-vn-53053538'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-93146647', 'ctest-policy-allow-all-87171508']], 'subnet_ipam': [{'subnet_cidr': '113.68.150.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-03T14:30:19.786154', 'updated_at': '2024-09-03T14:30:20.029371'}} 2024-09-03 14:30:22,242 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8b41643-1acb-40b6-bf00-b6e5892c6b32', 'name': 'ctest-vn-53433134', 'tenant_id': '49f46e12212d4cf29beca596ddc8d60f', 'project_id': '49f46e12212d4cf29beca596ddc8d60f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95d8db70-e1c2-48e6-8d5a-f6849150431f'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-93146647', 'ctest-vn-53433134'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-93146647', 'ctest-policy-allow-all-87171508']], 'subnet_ipam': [{'subnet_cidr': '52.49.183.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-03T14:30:20.715033', 'updated_at': '2024-09-03T14:30:20.960950'}} 2024-09-03 14:30:22,442 - DEBUG - Requesting: https://10.0.0.50:8082/domains 2024-09-03 14:30:22,790 - DEBUG - Requesting: https://10.0.0.50:8082/domains 2024-09-03 14:30:22,878 - DEBUG - Requesting: https://10.0.0.50:8082/domain/2de1d231-db55-4838-af7f-331e8edb8f37 2024-09-03 14:30:22,939 - DEBUG - Requesting: https://10.0.0.50:8082/project/49f46e12-212d-4cf2-9bec-a596ddc8d60f 2024-09-03 14:30:23,020 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/ef9c010a-bf25-4dbd-8e53-5f6343380773 2024-09-03 14:30:23,079 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/ef9c010a-bf25-4dbd-8e53-5f6343380773 2024-09-03 14:30:23,136 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/0f3bf1bd-3a87-46ad-a921-3067306031a4 2024-09-03 14:30:23,192 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/0f3bf1bd-3a87-46ad-a921-3067306031a4 2024-09-03 14:30:23,248 - DEBUG - Requesting: https://10.0.0.50:8082/route-target/ec6f939f-5bd7-40ff-bd58-2b00f661ab81 2024-09-03 14:30:23,303 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-03 14:30:23,303 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/ef9c010a-bf25-4dbd-8e53-5f6343380773 2024-09-03 14:30:23,368 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/0f3bf1bd-3a87-46ad-a921-3067306031a4 2024-09-03 14:30:23,433 - INFO - Verified VN network id 7 for VN ef9c010a-bf25-4dbd-8e53-5f6343380773 2024-09-03 14:30:23,433 - INFO - Verifications in API Server for VN ctest-vn-53053538 passed 2024-09-03 14:30:23,433 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/ef9c010a-bf25-4dbd-8e53-5f6343380773 2024-09-03 14:30:23,494 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/0f3bf1bd-3a87-46ad-a921-3067306031a4 2024-09-03 14:30:23,547 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/0f3bf1bd-3a87-46ad-a921-3067306031a4 2024-09-03 14:30:23,603 - DEBUG - Requesting: https://10.0.0.50:8082/route-target/ec6f939f-5bd7-40ff-bd58-2b00f661ab81 2024-09-03 14:30:23,715 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53053538', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93146647', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17265676217099832765', 'uuid-lslong': '10255645656386897779'}, 'enable': 'true', 'created': '2024-09-03T14:30:19', 'last-modified': '2024-09-03T14:30:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.908674'} 2024-09-03 14:30:23,768 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-03 14:30:23,768 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53053538 passed 2024-09-03 14:30:23,768 - DEBUG - ====Verifying policy data for ctest-vn-53053538 in API_Server ====== 2024-09-03 14:30:23,768 - DEBUG - Requesting: https://10.0.0.50:8082/domains 2024-09-03 14:30:23,822 - DEBUG - Requesting: https://10.0.0.50:8082/domain/2de1d231-db55-4838-af7f-331e8edb8f37 2024-09-03 14:30:23,883 - DEBUG - Requesting: https://10.0.0.50:8082/project/49f46e12-212d-4cf2-9bec-a596ddc8d60f 2024-09-03 14:30:23,973 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/ef9c010a-bf25-4dbd-8e53-5f6343380773 2024-09-03 14:30:24,028 - DEBUG - ==>Verifying data for policy with id: 47a229d5-dd26-4f59-96ab-17eb55e262db, fqn: ['admin_domain', 'ctest-TestBasicPolicy-93146647', 'ctest-policy-allow-all-87171508'] 2024-09-03 14:30:24,028 - INFO - VN ctest-vn-53053538 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-03 14:30:24,029 - DEBUG - Verifying the vn in opserver 2024-09-03 14:30:24,029 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53053538 virtual network link through opserver 10.0.0.50 2024-09-03 14:30:24,029 - DEBUG - Requesting: https://10.0.0.50:8081/analytics/uves/virtual-networks 2024-09-03 14:30:24,375 - DEBUG - Requesting: https://10.0.0.50:8081/analytics/uves/virtual-networks 2024-09-03 14:30:24,507 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53053538', 'href': 'https://10.0.0.50:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53053538?flat'} 2024-09-03 14:30:24,507 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53053538 is found in opserver 2024-09-03 14:30:24,611 - DEBUG - Do not have enough data to verify VN in agent 2024-09-03 14:30:24,667 - DEBUG - VRF ids for VN ctest-vn-53053538: {} 2024-09-03 14:30:24,667 - DEBUG - Requesting: https://10.0.0.50:8082/domains 2024-09-03 14:30:24,727 - DEBUG - Requesting: https://10.0.0.50:8082/domain/2de1d231-db55-4838-af7f-331e8edb8f37 2024-09-03 14:30:24,787 - DEBUG - Requesting: https://10.0.0.50:8082/project/49f46e12-212d-4cf2-9bec-a596ddc8d60f 2024-09-03 14:30:24,876 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/a8b41643-1acb-40b6-bf00-b6e5892c6b32 2024-09-03 14:30:24,936 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/a8b41643-1acb-40b6-bf00-b6e5892c6b32 2024-09-03 14:30:24,996 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/95b54e5a-3324-4c56-a62b-be1a09fa023a 2024-09-03 14:30:25,059 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/95b54e5a-3324-4c56-a62b-be1a09fa023a 2024-09-03 14:30:25,115 - DEBUG - Requesting: https://10.0.0.50:8082/route-target/0c34e97e-4d62-474e-87be-bcd407d4ee55 2024-09-03 14:30:25,171 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-03 14:30:25,171 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/a8b41643-1acb-40b6-bf00-b6e5892c6b32 2024-09-03 14:30:25,228 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/95b54e5a-3324-4c56-a62b-be1a09fa023a 2024-09-03 14:30:25,298 - INFO - Verified VN network id 8 for VN a8b41643-1acb-40b6-bf00-b6e5892c6b32 2024-09-03 14:30:25,299 - INFO - Verifications in API Server for VN ctest-vn-53433134 passed 2024-09-03 14:30:25,299 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/a8b41643-1acb-40b6-bf00-b6e5892c6b32 2024-09-03 14:30:25,357 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/95b54e5a-3324-4c56-a62b-be1a09fa023a 2024-09-03 14:30:25,411 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/95b54e5a-3324-4c56-a62b-be1a09fa023a 2024-09-03 14:30:25,468 - DEBUG - Requesting: https://10.0.0.50:8082/route-target/0c34e97e-4d62-474e-87be-bcd407d4ee55 2024-09-03 14:30:25,583 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53433134', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93146647', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12156365771647959222', 'uuid-lslong': '13763201558209391410'}, 'enable': 'true', 'created': '2024-09-03T14:30:20', 'last-modified': '2024-09-03T14:30:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.413964'} 2024-09-03 14:30:25,636 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-03 14:30:25,636 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53433134 passed 2024-09-03 14:30:25,636 - DEBUG - ====Verifying policy data for ctest-vn-53433134 in API_Server ====== 2024-09-03 14:30:25,636 - DEBUG - Requesting: https://10.0.0.50:8082/domains 2024-09-03 14:30:25,694 - DEBUG - Requesting: https://10.0.0.50:8082/domain/2de1d231-db55-4838-af7f-331e8edb8f37 2024-09-03 14:30:25,755 - DEBUG - Requesting: https://10.0.0.50:8082/project/49f46e12-212d-4cf2-9bec-a596ddc8d60f 2024-09-03 14:30:25,845 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/a8b41643-1acb-40b6-bf00-b6e5892c6b32 2024-09-03 14:30:25,904 - DEBUG - ==>Verifying data for policy with id: 47a229d5-dd26-4f59-96ab-17eb55e262db, fqn: ['admin_domain', 'ctest-TestBasicPolicy-93146647', 'ctest-policy-allow-all-87171508'] 2024-09-03 14:30:25,904 - INFO - VN ctest-vn-53433134 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-03 14:30:25,904 - DEBUG - Verifying the vn in opserver 2024-09-03 14:30:25,904 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53433134 virtual network link through opserver 10.0.0.50 2024-09-03 14:30:25,904 - DEBUG - Requesting: https://10.0.0.50:8081/analytics/uves/virtual-networks 2024-09-03 14:30:25,962 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53433134', 'href': 'https://10.0.0.50:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53433134?flat'} 2024-09-03 14:30:25,962 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53433134 is found in opserver 2024-09-03 14:30:26,063 - DEBUG - Do not have enough data to verify VN in agent 2024-09-03 14:30:26,115 - DEBUG - VRF ids for VN ctest-vn-53433134: {} 2024-09-03 14:30:26,182 - DEBUG - Services list from nova: [, , ] 2024-09-03 14:30:27,408 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-400-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-400-1) 2024-09-03 14:30:28,792 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-400-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-400-1) 2024-09-03 14:30:28,792 - INFO - Waiting for VM ctest-TestBasicPolicy-93146647-82985881 to be up.. 2024-09-03 14:30:28,951 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-03 14:30:34,110 - DEBUG - VM is in ACTIVE state now 2024-09-03 14:30:34,111 - INFO - VM name : ctest-TestBasicPolicy-93146647-82985881 2024-09-03 14:30:34,262 - DEBUG - VM ctest-TestBasicPolicy-93146647-82985881 ID is cb61e0e8-b3c2-4e40-858b-3d3e79fb8baf 2024-09-03 14:30:34,288 - DEBUG - VM ctest-TestBasicPolicy-93146647-82985881 launched on Node cn-jenkins-deploy-platform-juju-os-400-1 2024-09-03 14:30:34,447 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-machine/cb61e0e8-b3c2-4e40-858b-3d3e79fb8baf 2024-09-03 14:30:34,507 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-machine-interface/991234e7-65e3-4d62-8ef9-5fc79a8d958a 2024-09-03 14:30:38,014 - 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 1034ms') 2024-09-03 14:30:38,014 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-93146647-82985881 failed! 2024-09-03 14:30:38,074 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53053538 is 113.68.150.1 and allocation pool is NOT set 2024-09-03 14:30:40,171 - 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=16.1 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.482 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.482/8.281/16.081/7.799 ms') 2024-09-03 14:30:40,172 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-93146647-82985881 passed 2024-09-03 14:30:40,326 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 14:30:40,326 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-93146647-82985881, IP 113.68.150.3, Port 22 2024-09-03 14:30:40,412 - 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-09-03 14:30:40,563 - DEBUG - VM ctest-TestBasicPolicy-93146647-82985881 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-03 14:30:45,564 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 14:30:45,564 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-93146647-82985881, IP 113.68.150.3, Port 22 2024-09-03 14:30:45,790 - DEBUG - VM ctest-TestBasicPolicy-93146647-82985881 is ready for SSH connections 2024-09-03 14:30:45,790 - INFO - Waiting for VM ctest-TestBasicPolicy-93146647-00900760 to be up.. 2024-09-03 14:30:45,932 - DEBUG - VM is in ACTIVE state now 2024-09-03 14:30:45,932 - INFO - VM name : ctest-TestBasicPolicy-93146647-00900760 2024-09-03 14:30:46,076 - DEBUG - VM ctest-TestBasicPolicy-93146647-00900760 ID is fd7ffbd7-0c61-4705-97ab-e04b736bbc87 2024-09-03 14:30:46,076 - DEBUG - VM ctest-TestBasicPolicy-93146647-00900760 launched on Node cn-jenkins-deploy-platform-juju-os-400-1 2024-09-03 14:30:46,222 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-machine/fd7ffbd7-0c61-4705-97ab-e04b736bbc87 2024-09-03 14:30:46,279 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-machine-interface/4084e68a-0e0f-4be4-b366-1587dbaa79f2 2024-09-03 14:30:47,731 - 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.28 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.416 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.416/1.846/3.277/1.430 ms') 2024-09-03 14:30:47,731 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-93146647-00900760 passed 2024-09-03 14:30:47,886 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 14:30:47,886 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-93146647-00900760, IP 52.49.183.3, Port 22 2024-09-03 14:30:48,108 - DEBUG - VM ctest-TestBasicPolicy-93146647-00900760 is ready for SSH connections 2024-09-03 14:30:48,108 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 14:30:48,109 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 52.49.183.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2024-09-03 14:30:48,109 - DEBUG - ping -s 56 -c 3 -W 1 52.49.183.3 2024-09-03 14:30:51,829 - DEBUG - PING 52.49.183.3 (52.49.183.3): 56 data bytes 64 bytes from 52.49.183.3: seq=0 ttl=63 time=5.773 ms 64 bytes from 52.49.183.3: seq=1 ttl=63 time=0.958 ms 64 bytes from 52.49.183.3: seq=2 ttl=63 time=1.266 ms --- 52.49.183.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.958/2.665/5.773 ms 2024-09-03 14:30:51,829 - INFO - Ping to IP 52.49.183.3 from VM ctest-TestBasicPolicy-93146647-82985881 passed 2024-09-03 14:30:52,025 - DEBUG - Policy Update Response {"network-policy": {"uuid": "47a229d5-dd26-4f59-96ab-17eb55e262db", "href": "https://10.0.0.50:8082/network-policy/47a229d5-dd26-4f59-96ab-17eb55e262db"}} 2024-09-03 14:30:52,025 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 14:30:52,026 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 52.49.183.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2024-09-03 14:30:52,026 - DEBUG - ping -s 56 -c 3 -W 1 52.49.183.3 2024-09-03 14:30:55,227 - DEBUG - PING 52.49.183.3 (52.49.183.3): 56 data bytes --- 52.49.183.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-03 14:30:55,228 - WARNING - Ping to IP 52.49.183.3 from VM ctest-TestBasicPolicy-93146647-82985881 failed 2024-09-03 14:30:55,228 - INFO - Deleting VM ctest-TestBasicPolicy-93146647-00900760 2024-09-03 14:30:55,333 - INFO - Deleting VM ctest-TestBasicPolicy-93146647-82985881 2024-09-03 14:30:56,159 - INFO - Deleted policy ctest-policy-allow-all-87171508 2024-09-03 14:30:56,160 - INFO - Deleting VN ctest-vn-53433134 2024-09-03 14:30:56,318 - DEBUG - VN a8b41643-1acb-40b6-bf00-b6e5892c6b32 still in use: Unable to complete operation on network a8b41643-1acb-40b6-bf00-b6e5892c6b32. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5d3cb0ca-092e-4578-b876-1c34bd5821cb'] 2024-09-03 14:30:56,318 - WARNING - Deleting VN ctest-vn-53433134 failed..Will retry 2024-09-03 14:30:58,524 - DEBUG - Response for deleting network () 2024-09-03 14:30:58,524 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/95b54e5a-3324-4c56-a62b-be1a09fa023a 2024-09-03 14:30:58,574 - DEBUG - Response Code: 404 2024-09-03 14:30:58,574 - DEBUG - Requesting: https://10.0.0.50:8082/domains 2024-09-03 14:30:58,630 - DEBUG - Requesting: https://10.0.0.50:8082/domain/2de1d231-db55-4838-af7f-331e8edb8f37 2024-09-03 14:30:58,695 - DEBUG - Requesting: https://10.0.0.50:8082/project/49f46e12-212d-4cf2-9bec-a596ddc8d60f 2024-09-03 14:30:58,775 - INFO - Validated that VN ctest-vn-53433134 is not found in API Server 2024-09-03 14:30:58,879 - DEBUG - VN ctest-vn-53433134 is not present in Agent 10.0.0.50 2024-09-03 14:30:58,879 - INFO - Validated that VN ctest-vn-53433134 is not in any agent 2024-09-03 14:30:59,034 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53433134 info 2024-09-03 14:30:59,035 - INFO - Deleting VN ctest-vn-53053538 2024-09-03 14:30:59,329 - DEBUG - Response for deleting network () 2024-09-03 14:30:59,329 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/0f3bf1bd-3a87-46ad-a921-3067306031a4 2024-09-03 14:30:59,386 - DEBUG - Response Code: 404 2024-09-03 14:30:59,386 - DEBUG - Requesting: https://10.0.0.50:8082/domains 2024-09-03 14:30:59,458 - DEBUG - Requesting: https://10.0.0.50:8082/domain/2de1d231-db55-4838-af7f-331e8edb8f37 2024-09-03 14:30:59,579 - DEBUG - Requesting: https://10.0.0.50:8082/project/49f46e12-212d-4cf2-9bec-a596ddc8d60f 2024-09-03 14:30:59,702 - INFO - Validated that VN ctest-vn-53053538 is not found in API Server 2024-09-03 14:30:59,815 - DEBUG - VN ctest-vn-53053538 is not present in Agent 10.0.0.50 2024-09-03 14:30:59,815 - INFO - Validated that VN ctest-vn-53053538 is not in any agent 2024-09-03 14:30:59,970 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53053538 info 2024-09-03 14:31:00,371 - DEBUG - No XMPP flaps were noticed during the test 2024-09-03 14:31:00,371 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:42] 2024-09-03 14:31:00,371 - INFO - -------------------------------------------------------------------------------- 2024-09-03 14:31:01,173 - INFO - Deleted project: ctest-TestBasicPolicy-93146647, ID : 49f46e12-212d-4cf2-9bec-a596ddc8d60f