2024-10-17 13:43:45,418 - INFO - Reading existing Domain with UUID cfa788e6-8a4a-4759-a522-b9348a350fea 2024-10-17 13:43:45,436 - INFO - Using existing domain ['admin_domain'](cfa788e6-8a4a-4759-a522-b9348a350fea) 2024-10-17 13:43:45,690 - INFO - Project ctest-TestBasicPolicy-01101890 not found, creating it 2024-10-17 13:43:46,297 - INFO - Created Project:ctest-TestBasicPolicy-01101890, ID : 3bd10b5c-ccc2-4ca3-a7c5-6dbf3be437d8 2024-10-17 13:43:48,413 - INFO - ================================================================================ 2024-10-17 13:43:48,413 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-17 13:43:48,414 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2024-10-17 13:43:48,862 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.0.0.12': '0'}} with 2024-10-17 13:43:48,862 - INFO - Initial checks done. Running the testcase now 2024-10-17 13:43:48,862 - INFO - 2024-10-17 13:43:49,782 - DEBUG - Response for create_network : {'network': {'id': '555e7646-843d-4f5d-a766-0a8d86262905', 'name': 'ctest-vn-86097808', 'tenant_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'project_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-01101890', 'ctest-vn-86097808'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-10-17 13:43:50,074 - DEBUG - Response for create_subnet : {'subnet': {'id': '79872fb6-5c8a-4a79-84ad-03a9df3b9460', 'name': '', 'tenant_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'network_id': '555e7646-843d-4f5d-a766-0a8d86262905', 'ip_version': 4, 'cidr': '123.219.89.192/26', 'allocation_pools': [{'start': '123.219.89.194', 'end': '123.219.89.254'}], 'gateway_ip': '123.219.89.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-10-17T13:43:49.930137', 'updated_at': '2024-10-17T13:43:49.930137', 'dns_server_address': '123.219.89.194', 'tags': [], 'project_id': '3bd10b5cccc24ca3a7c56dbf3be437d8'}} 2024-10-17 13:43:50,147 - INFO - Created VN ctest-vn-86097808 2024-10-17 13:43:50,208 - DEBUG - VN ctest-vn-86097808 UUID is 555e7646-843d-4f5d-a766-0a8d86262905 2024-10-17 13:43:50,814 - DEBUG - Response for create_network : {'network': {'id': '3f9efb24-500e-40d8-a70b-bef690c8881f', 'name': 'ctest-vn-25127302', 'tenant_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'project_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-01101890', 'ctest-vn-25127302'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-10-17 13:43:51,131 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd82585bf-26cb-427f-8c08-2431c3d6f9d1', 'name': '', 'tenant_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'network_id': '3f9efb24-500e-40d8-a70b-bef690c8881f', 'ip_version': 4, 'cidr': '206.30.5.192/26', 'allocation_pools': [{'start': '206.30.5.194', 'end': '206.30.5.254'}], 'gateway_ip': '206.30.5.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-10-17T13:43:50.996466', 'updated_at': '2024-10-17T13:43:50.996466', 'dns_server_address': '206.30.5.194', 'tags': [], 'project_id': '3bd10b5cccc24ca3a7c56dbf3be437d8'}} 2024-10-17 13:43:51,207 - INFO - Created VN ctest-vn-25127302 2024-10-17 13:43:51,272 - DEBUG - VN ctest-vn-25127302 UUID is 3f9efb24-500e-40d8-a70b-bef690c8881f 2024-10-17 13:43:51,529 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-86097808, 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-01101890:ctest-vn-25127302, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2024-10-17 13:43:52,029 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '555e7646-843d-4f5d-a766-0a8d86262905', 'name': 'ctest-vn-86097808', 'tenant_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'project_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['79872fb6-5c8a-4a79-84ad-03a9df3b9460'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-01101890', 'ctest-vn-86097808'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-01101890', 'ctest-policy-allow-all-81862548']], 'subnet_ipam': [{'subnet_cidr': '123.219.89.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-10-17T13:43:49.696210', 'updated_at': '2024-10-17T13:43:49.950937'}} 2024-10-17 13:43:52,481 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3f9efb24-500e-40d8-a70b-bef690c8881f', 'name': 'ctest-vn-25127302', 'tenant_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'project_id': '3bd10b5cccc24ca3a7c56dbf3be437d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d82585bf-26cb-427f-8c08-2431c3d6f9d1'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-01101890', 'ctest-vn-25127302'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-01101890', 'ctest-policy-allow-all-81862548']], 'subnet_ipam': [{'subnet_cidr': '206.30.5.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-10-17T13:43:50.709300', 'updated_at': '2024-10-17T13:43:51.012999'}} 2024-10-17 13:43:52,728 - DEBUG - Requesting: https://10.0.0.12:8082/domains 2024-10-17 13:43:53,145 - DEBUG - Requesting: https://10.0.0.12:8082/domains 2024-10-17 13:43:53,241 - DEBUG - Requesting: https://10.0.0.12:8082/domain/cfa788e6-8a4a-4759-a522-b9348a350fea 2024-10-17 13:43:53,325 - DEBUG - Requesting: https://10.0.0.12:8082/project/3bd10b5c-ccc2-4ca3-a7c5-6dbf3be437d8 2024-10-17 13:43:53,438 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/555e7646-843d-4f5d-a766-0a8d86262905 2024-10-17 13:43:53,507 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/555e7646-843d-4f5d-a766-0a8d86262905 2024-10-17 13:43:53,579 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/0d6f0b4a-4e84-4d5b-a06d-83431010450f 2024-10-17 13:43:53,638 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/0d6f0b4a-4e84-4d5b-a06d-83431010450f 2024-10-17 13:43:53,699 - DEBUG - Requesting: https://10.0.0.12:8082/route-target/3b26f441-5889-4643-b69e-b842372d06fe 2024-10-17 13:43:53,761 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-17 13:43:53,761 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/555e7646-843d-4f5d-a766-0a8d86262905 2024-10-17 13:43:53,825 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/0d6f0b4a-4e84-4d5b-a06d-83431010450f 2024-10-17 13:43:53,901 - INFO - Verified VN network id 7 for VN 555e7646-843d-4f5d-a766-0a8d86262905 2024-10-17 13:43:53,902 - INFO - Verifications in API Server for VN ctest-vn-86097808 passed 2024-10-17 13:43:53,902 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/555e7646-843d-4f5d-a766-0a8d86262905 2024-10-17 13:43:53,971 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/0d6f0b4a-4e84-4d5b-a06d-83431010450f 2024-10-17 13:43:54,030 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/0d6f0b4a-4e84-4d5b-a06d-83431010450f 2024-10-17 13:43:54,093 - DEBUG - Requesting: https://10.0.0.12:8082/route-target/3b26f441-5889-4643-b69e-b842372d06fe 2024-10-17 13:43:54,206 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-86097808', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01101890', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6151484186273075037', 'uuid-lslong': '12062340254915766533'}, 'enable': 'true', 'created': '2024-10-17T13:43:49', 'last-modified': '2024-10-17T13:43:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.211953'} 2024-10-17 13:43:54,259 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-17 13:43:54,259 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86097808 passed 2024-10-17 13:43:54,260 - DEBUG - ====Verifying policy data for ctest-vn-86097808 in API_Server ====== 2024-10-17 13:43:54,260 - DEBUG - Requesting: https://10.0.0.12:8082/domains 2024-10-17 13:43:54,313 - DEBUG - Requesting: https://10.0.0.12:8082/domain/cfa788e6-8a4a-4759-a522-b9348a350fea 2024-10-17 13:43:54,385 - DEBUG - Requesting: https://10.0.0.12:8082/project/3bd10b5c-ccc2-4ca3-a7c5-6dbf3be437d8 2024-10-17 13:43:54,498 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/555e7646-843d-4f5d-a766-0a8d86262905 2024-10-17 13:43:54,559 - DEBUG - ==>Verifying data for policy with id: 98b39910-71d1-44da-a87c-551eac2f8f6b, fqn: ['admin_domain', 'ctest-TestBasicPolicy-01101890', 'ctest-policy-allow-all-81862548'] 2024-10-17 13:43:54,559 - INFO - VN ctest-vn-86097808 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-17 13:43:54,559 - DEBUG - Verifying the vn in opserver 2024-10-17 13:43:54,559 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-86097808 virtual network link through opserver 10.0.0.12 2024-10-17 13:43:54,559 - DEBUG - Requesting: https://10.0.0.12:8081/analytics/uves/virtual-networks 2024-10-17 13:43:54,950 - DEBUG - Requesting: https://10.0.0.12:8081/analytics/uves/virtual-networks 2024-10-17 13:43:55,101 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-86097808', 'href': 'https://10.0.0.12:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-86097808?flat'} 2024-10-17 13:43:55,101 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-86097808 is found in opserver 2024-10-17 13:43:55,205 - DEBUG - Do not have enough data to verify VN in agent 2024-10-17 13:43:55,257 - DEBUG - VRF ids for VN ctest-vn-86097808: {} 2024-10-17 13:43:55,257 - DEBUG - Requesting: https://10.0.0.12:8082/domains 2024-10-17 13:43:55,313 - DEBUG - Requesting: https://10.0.0.12:8082/domain/cfa788e6-8a4a-4759-a522-b9348a350fea 2024-10-17 13:43:55,377 - DEBUG - Requesting: https://10.0.0.12:8082/project/3bd10b5c-ccc2-4ca3-a7c5-6dbf3be437d8 2024-10-17 13:43:55,478 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/3f9efb24-500e-40d8-a70b-bef690c8881f 2024-10-17 13:43:55,543 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/3f9efb24-500e-40d8-a70b-bef690c8881f 2024-10-17 13:43:55,611 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/92cc6362-d84f-4938-a96f-45c1260bb438 2024-10-17 13:43:55,670 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/92cc6362-d84f-4938-a96f-45c1260bb438 2024-10-17 13:43:55,730 - DEBUG - Requesting: https://10.0.0.12:8082/route-target/839416de-eb10-4a43-8ce6-52f4f6d1f100 2024-10-17 13:43:55,794 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-17 13:43:55,794 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/3f9efb24-500e-40d8-a70b-bef690c8881f 2024-10-17 13:43:55,860 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/92cc6362-d84f-4938-a96f-45c1260bb438 2024-10-17 13:43:55,935 - INFO - Verified VN network id 8 for VN 3f9efb24-500e-40d8-a70b-bef690c8881f 2024-10-17 13:43:55,935 - INFO - Verifications in API Server for VN ctest-vn-25127302 passed 2024-10-17 13:43:55,935 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/3f9efb24-500e-40d8-a70b-bef690c8881f 2024-10-17 13:43:55,999 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/92cc6362-d84f-4938-a96f-45c1260bb438 2024-10-17 13:43:56,058 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/92cc6362-d84f-4938-a96f-45c1260bb438 2024-10-17 13:43:56,118 - DEBUG - Requesting: https://10.0.0.12:8082/route-target/839416de-eb10-4a43-8ce6-52f4f6d1f100 2024-10-17 13:43:56,234 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-25127302', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01101890', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4584377604090249432', 'uuid-lslong': '12036924395278075935'}, 'enable': 'true', 'created': '2024-10-17T13:43:50', 'last-modified': '2024-10-17T13:43:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.813365'} 2024-10-17 13:43:56,286 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-17 13:43:56,286 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25127302 passed 2024-10-17 13:43:56,286 - DEBUG - ====Verifying policy data for ctest-vn-25127302 in API_Server ====== 2024-10-17 13:43:56,287 - DEBUG - Requesting: https://10.0.0.12:8082/domains 2024-10-17 13:43:56,341 - DEBUG - Requesting: https://10.0.0.12:8082/domain/cfa788e6-8a4a-4759-a522-b9348a350fea 2024-10-17 13:43:56,405 - DEBUG - Requesting: https://10.0.0.12:8082/project/3bd10b5c-ccc2-4ca3-a7c5-6dbf3be437d8 2024-10-17 13:43:56,530 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-network/3f9efb24-500e-40d8-a70b-bef690c8881f 2024-10-17 13:43:56,599 - DEBUG - ==>Verifying data for policy with id: 98b39910-71d1-44da-a87c-551eac2f8f6b, fqn: ['admin_domain', 'ctest-TestBasicPolicy-01101890', 'ctest-policy-allow-all-81862548'] 2024-10-17 13:43:56,599 - INFO - VN ctest-vn-25127302 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-17 13:43:56,599 - DEBUG - Verifying the vn in opserver 2024-10-17 13:43:56,601 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-25127302 virtual network link through opserver 10.0.0.12 2024-10-17 13:43:56,601 - DEBUG - Requesting: https://10.0.0.12:8081/analytics/uves/virtual-networks 2024-10-17 13:43:56,662 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-25127302', 'href': 'https://10.0.0.12:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-25127302?flat'} 2024-10-17 13:43:56,662 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-25127302 is found in opserver 2024-10-17 13:43:56,765 - DEBUG - Do not have enough data to verify VN in agent 2024-10-17 13:43:56,817 - DEBUG - VRF ids for VN ctest-vn-25127302: {} 2024-10-17 13:43:56,902 - DEBUG - Services list from nova: [, , ] 2024-10-17 13:43:58,238 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-438-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-438-1) 2024-10-17 13:44:00,785 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-438-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-438-1) 2024-10-17 13:44:00,785 - INFO - Waiting for VM ctest-TestBasicPolicy-01101890-66448734 to be up.. 2024-10-17 13:44:00,961 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-17 13:44:06,128 - DEBUG - VM is in ACTIVE state now 2024-10-17 13:44:06,128 - INFO - VM name : ctest-TestBasicPolicy-01101890-66448734 2024-10-17 13:44:06,300 - DEBUG - VM ctest-TestBasicPolicy-01101890-66448734 ID is b3ba40f1-012d-480c-ad73-2e6e2b3500c6 2024-10-17 13:44:06,347 - DEBUG - VM ctest-TestBasicPolicy-01101890-66448734 launched on Node cn-jenkins-deploy-platform-juju-os-438-1 2024-10-17 13:44:06,526 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine/b3ba40f1-012d-480c-ad73-2e6e2b3500c6 2024-10-17 13:44:06,585 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine-interface/0f6363e7-f5a6-4013-9f1b-e3eb97c60fbd 2024-10-17 13:44:10,076 - 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 1002ms') 2024-10-17 13:44:10,076 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-01101890-66448734 failed! 2024-10-17 13:44:10,140 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-01101890:ctest-vn-86097808 is 123.219.89.193 and allocation pool is NOT set 2024-10-17 13:44:12,233 - 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=6.68 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.957 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.957/3.818/6.680/2.861 ms') 2024-10-17 13:44:12,233 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-01101890-66448734 passed 2024-10-17 13:44:12,404 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 13:44:12,404 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01101890-66448734, IP 123.219.89.195, Port 22 2024-10-17 13:44:12,501 - 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-10-17 13:44:12,679 - DEBUG - VM ctest-TestBasicPolicy-01101890-66448734 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-17 13:44:17,680 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 13:44:17,681 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01101890-66448734, IP 123.219.89.195, Port 22 2024-10-17 13:44:17,921 - DEBUG - VM ctest-TestBasicPolicy-01101890-66448734 is ready for SSH connections 2024-10-17 13:44:17,921 - INFO - Waiting for VM ctest-TestBasicPolicy-01101890-92989955 to be up.. 2024-10-17 13:44:18,093 - DEBUG - VM is in ACTIVE state now 2024-10-17 13:44:18,093 - INFO - VM name : ctest-TestBasicPolicy-01101890-92989955 2024-10-17 13:44:18,273 - DEBUG - VM ctest-TestBasicPolicy-01101890-92989955 ID is 09b794ee-670c-4923-ba01-3b7b213f170a 2024-10-17 13:44:18,273 - DEBUG - VM ctest-TestBasicPolicy-01101890-92989955 launched on Node cn-jenkins-deploy-platform-juju-os-438-1 2024-10-17 13:44:18,453 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine/09b794ee-670c-4923-ba01-3b7b213f170a 2024-10-17 13:44:18,514 - DEBUG - Requesting: https://10.0.0.12:8082/virtual-machine-interface/9b542da9-6e13-4d9f-82ed-b017840c5181 2024-10-17 13:44:20,030 - 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=4.39 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.660 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.660/2.527/4.394/1.867 ms') 2024-10-17 13:44:20,030 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-01101890-92989955 passed 2024-10-17 13:44:20,208 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 13:44:20,208 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01101890-92989955, IP 206.30.5.195, Port 22 2024-10-17 13:44:20,440 - DEBUG - VM ctest-TestBasicPolicy-01101890-92989955 is ready for SSH connections 2024-10-17 13:44:20,440 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 13:44:20,440 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 206.30.5.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-10-17 13:44:20,440 - DEBUG - ping -s 56 -c 3 -W 1 206.30.5.195 2024-10-17 13:44:24,262 - DEBUG - PING 206.30.5.195 (206.30.5.195): 56 data bytes 64 bytes from 206.30.5.195: seq=0 ttl=63 time=4.268 ms 64 bytes from 206.30.5.195: seq=1 ttl=63 time=1.293 ms 64 bytes from 206.30.5.195: seq=2 ttl=63 time=1.172 ms --- 206.30.5.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.172/2.244/4.268 ms 2024-10-17 13:44:24,262 - INFO - Ping to IP 206.30.5.195 from VM ctest-TestBasicPolicy-01101890-66448734 passed 2024-10-17 13:44:24,492 - DEBUG - Policy Update Response {"network-policy": {"uuid": "98b39910-71d1-44da-a87c-551eac2f8f6b", "href": "https://10.0.0.12:8082/network-policy/98b39910-71d1-44da-a87c-551eac2f8f6b"}} 2024-10-17 13:44:24,492 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-17 13:44:24,492 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 206.30.5.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-10-17 13:44:24,493 - DEBUG - ping -s 56 -c 3 -W 1 206.30.5.195 2024-10-17 13:44:27,737 - DEBUG - PING 206.30.5.195 (206.30.5.195): 56 data bytes 64 bytes from 206.30.5.195: seq=0 ttl=63 time=1.593 ms --- 206.30.5.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.593/1.593/1.593 ms 2024-10-17 13:44:27,738 - WARNING - Ping to IP 206.30.5.195 from VM ctest-TestBasicPolicy-01101890-66448734 failed 2024-10-17 13:44:27,738 - INFO - Deleting VM ctest-TestBasicPolicy-01101890-92989955 2024-10-17 13:44:27,863 - INFO - Deleting VM ctest-TestBasicPolicy-01101890-66448734 2024-10-17 13:44:28,719 - INFO - Deleted policy ctest-policy-allow-all-81862548 2024-10-17 13:44:28,720 - INFO - Deleting VN ctest-vn-25127302 2024-10-17 13:44:28,880 - DEBUG - VN 3f9efb24-500e-40d8-a70b-bef690c8881f still in use: Unable to complete operation on network 3f9efb24-500e-40d8-a70b-bef690c8881f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c7653524-91f4-433d-abec-566cd40c5221'] 2024-10-17 13:44:28,880 - WARNING - Deleting VN ctest-vn-25127302 failed..Will retry 2024-10-17 13:44:31,107 - DEBUG - Response for deleting network () 2024-10-17 13:44:31,107 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/92cc6362-d84f-4938-a96f-45c1260bb438 2024-10-17 13:44:31,164 - DEBUG - Response Code: 404 2024-10-17 13:44:31,164 - DEBUG - Requesting: https://10.0.0.12:8082/domains 2024-10-17 13:44:31,217 - DEBUG - Requesting: https://10.0.0.12:8082/domain/cfa788e6-8a4a-4759-a522-b9348a350fea 2024-10-17 13:44:31,285 - DEBUG - Requesting: https://10.0.0.12:8082/project/3bd10b5c-ccc2-4ca3-a7c5-6dbf3be437d8 2024-10-17 13:44:31,389 - INFO - Validated that VN ctest-vn-25127302 is not found in API Server 2024-10-17 13:44:31,493 - DEBUG - VN ctest-vn-25127302 is not present in Agent 10.0.0.12 2024-10-17 13:44:31,493 - INFO - Validated that VN ctest-vn-25127302 is not in any agent 2024-10-17 13:44:31,650 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25127302 info 2024-10-17 13:44:31,650 - INFO - Deleting VN ctest-vn-86097808 2024-10-17 13:44:31,886 - DEBUG - Response for deleting network () 2024-10-17 13:44:31,886 - DEBUG - Requesting: https://10.0.0.12:8082/routing-instance/0d6f0b4a-4e84-4d5b-a06d-83431010450f 2024-10-17 13:44:31,940 - DEBUG - Response Code: 404 2024-10-17 13:44:31,940 - DEBUG - Requesting: https://10.0.0.12:8082/domains 2024-10-17 13:44:31,993 - DEBUG - Requesting: https://10.0.0.12:8082/domain/cfa788e6-8a4a-4759-a522-b9348a350fea 2024-10-17 13:44:32,053 - DEBUG - Requesting: https://10.0.0.12:8082/project/3bd10b5c-ccc2-4ca3-a7c5-6dbf3be437d8 2024-10-17 13:44:32,150 - INFO - Validated that VN ctest-vn-86097808 is not found in API Server 2024-10-17 13:44:32,257 - DEBUG - VN ctest-vn-86097808 is not present in Agent 10.0.0.12 2024-10-17 13:44:32,257 - INFO - Validated that VN ctest-vn-86097808 is not in any agent 2024-10-17 13:44:32,414 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-86097808 info 2024-10-17 13:44:32,825 - DEBUG - No XMPP flaps were noticed during the test 2024-10-17 13:44:32,826 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:44] 2024-10-17 13:44:32,826 - INFO - -------------------------------------------------------------------------------- 2024-10-17 13:44:33,730 - INFO - Deleted project: ctest-TestBasicPolicy-01101890, ID : 3bd10b5c-ccc2-4ca3-a7c5-6dbf3be437d8