2024-09-19 02:24:03,527 - INFO - Reading existing Domain with UUID df30a39c-7ce1-425c-8d6f-05f52997b6ef 2024-09-19 02:24:03,542 - INFO - Using existing domain ['admin_domain'](df30a39c-7ce1-425c-8d6f-05f52997b6ef) 2024-09-19 02:24:03,737 - INFO - Project ctest-TestBasicPolicy-52966419 not found, creating it 2024-09-19 02:24:04,258 - INFO - Created Project:ctest-TestBasicPolicy-52966419, ID : 29c421ec-72cc-4381-bec5-f1d2e4fc5e3a 2024-09-19 02:24:05,912 - INFO - ================================================================================ 2024-09-19 02:24:05,912 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-19 02:24:05,913 - 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-19 02:24:06,295 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.0.0.36': '0'}} with 2024-09-19 02:24:06,295 - INFO - Initial checks done. Running the testcase now 2024-09-19 02:24:06,295 - INFO - 2024-09-19 02:24:07,098 - DEBUG - Response for create_network : {'network': {'id': 'd1083ddf-5572-4639-8723-3ecf70583835', 'name': 'ctest-vn-41051667', 'tenant_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'project_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-52966419', 'ctest-vn-41051667'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-19 02:24:07,326 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff76f339-b5e2-4f10-9697-c32015cba7a4', 'name': '', 'tenant_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'network_id': 'd1083ddf-5572-4639-8723-3ecf70583835', 'ip_version': 4, 'cidr': '9.92.117.128/26', 'allocation_pools': [{'start': '9.92.117.130', 'end': '9.92.117.190'}], 'gateway_ip': '9.92.117.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-19T02:24:07.223364', 'updated_at': '2024-09-19T02:24:07.223364', 'dns_server_address': '9.92.117.130', 'tags': [], 'project_id': '29c421ec72cc4381bec5f1d2e4fc5e3a'}} 2024-09-19 02:24:07,392 - INFO - Created VN ctest-vn-41051667 2024-09-19 02:24:07,449 - DEBUG - VN ctest-vn-41051667 UUID is d1083ddf-5572-4639-8723-3ecf70583835 2024-09-19 02:24:07,970 - DEBUG - Response for create_network : {'network': {'id': 'a32a9bff-b20f-464f-b6c8-acfc937c82ff', 'name': 'ctest-vn-79578906', 'tenant_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'project_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-52966419', 'ctest-vn-79578906'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2024-09-19 02:24:08,222 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa90b046-ed68-4eb4-931f-ca84771ad107', 'name': '', 'tenant_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'network_id': 'a32a9bff-b20f-464f-b6c8-acfc937c82ff', 'ip_version': 4, 'cidr': '103.86.227.128/26', 'allocation_pools': [{'start': '103.86.227.130', 'end': '103.86.227.190'}], 'gateway_ip': '103.86.227.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-19T02:24:08.119872', 'updated_at': '2024-09-19T02:24:08.119872', 'dns_server_address': '103.86.227.130', 'tags': [], 'project_id': '29c421ec72cc4381bec5f1d2e4fc5e3a'}} 2024-09-19 02:24:08,287 - INFO - Created VN ctest-vn-79578906 2024-09-19 02:24:08,345 - DEBUG - VN ctest-vn-79578906 UUID is a32a9bff-b20f-464f-b6c8-acfc937c82ff 2024-09-19 02:24:08,570 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-41051667, 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-52966419:ctest-vn-79578906, 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-19 02:24:08,989 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd1083ddf-5572-4639-8723-3ecf70583835', 'name': 'ctest-vn-41051667', 'tenant_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'project_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff76f339-b5e2-4f10-9697-c32015cba7a4'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-52966419', 'ctest-vn-41051667'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-52966419', 'ctest-policy-allow-all-69545195']], 'subnet_ipam': [{'subnet_cidr': '9.92.117.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-19T02:24:07.007947', 'updated_at': '2024-09-19T02:24:07.236785'}} 2024-09-19 02:24:09,401 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a32a9bff-b20f-464f-b6c8-acfc937c82ff', 'name': 'ctest-vn-79578906', 'tenant_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'project_id': '29c421ec72cc4381bec5f1d2e4fc5e3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa90b046-ed68-4eb4-931f-ca84771ad107'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-52966419', 'ctest-vn-79578906'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-52966419', 'ctest-policy-allow-all-69545195']], 'subnet_ipam': [{'subnet_cidr': '103.86.227.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-19T02:24:07.892445', 'updated_at': '2024-09-19T02:24:08.133357'}} 2024-09-19 02:24:09,601 - DEBUG - Requesting: https://10.0.0.36:8082/domains 2024-09-19 02:24:09,950 - DEBUG - Requesting: https://10.0.0.36:8082/domains 2024-09-19 02:24:10,031 - DEBUG - Requesting: https://10.0.0.36:8082/domain/df30a39c-7ce1-425c-8d6f-05f52997b6ef 2024-09-19 02:24:10,094 - DEBUG - Requesting: https://10.0.0.36:8082/project/29c421ec-72cc-4381-bec5-f1d2e4fc5e3a 2024-09-19 02:24:10,203 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/d1083ddf-5572-4639-8723-3ecf70583835 2024-09-19 02:24:10,276 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/d1083ddf-5572-4639-8723-3ecf70583835 2024-09-19 02:24:10,336 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/26bf130b-3ba0-4340-bc38-857e97f6fe71 2024-09-19 02:24:10,391 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/26bf130b-3ba0-4340-bc38-857e97f6fe71 2024-09-19 02:24:10,447 - DEBUG - Requesting: https://10.0.0.36:8082/route-target/bdd80e4b-d380-410c-9acc-1872e1954f84 2024-09-19 02:24:10,502 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-19 02:24:10,502 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/d1083ddf-5572-4639-8723-3ecf70583835 2024-09-19 02:24:10,564 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/26bf130b-3ba0-4340-bc38-857e97f6fe71 2024-09-19 02:24:10,647 - INFO - Verified VN network id 7 for VN d1083ddf-5572-4639-8723-3ecf70583835 2024-09-19 02:24:10,647 - INFO - Verifications in API Server for VN ctest-vn-41051667 passed 2024-09-19 02:24:10,647 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/d1083ddf-5572-4639-8723-3ecf70583835 2024-09-19 02:24:10,715 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/26bf130b-3ba0-4340-bc38-857e97f6fe71 2024-09-19 02:24:10,770 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/26bf130b-3ba0-4340-bc38-857e97f6fe71 2024-09-19 02:24:10,830 - DEBUG - Requesting: https://10.0.0.36:8082/route-target/bdd80e4b-d380-410c-9acc-1872e1954f84 2024-09-19 02:24:10,934 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-41051667', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52966419', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15062356983161177657', 'uuid-lslong': '9737695879969126453'}, 'enable': 'true', 'created': '2024-09-19T02:24:07', 'last-modified': '2024-09-19T02:24:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.974768'} 2024-09-19 02:24:10,987 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-19 02:24:10,987 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41051667 passed 2024-09-19 02:24:10,987 - DEBUG - ====Verifying policy data for ctest-vn-41051667 in API_Server ====== 2024-09-19 02:24:10,987 - DEBUG - Requesting: https://10.0.0.36:8082/domains 2024-09-19 02:24:11,038 - DEBUG - Requesting: https://10.0.0.36:8082/domain/df30a39c-7ce1-425c-8d6f-05f52997b6ef 2024-09-19 02:24:11,099 - DEBUG - Requesting: https://10.0.0.36:8082/project/29c421ec-72cc-4381-bec5-f1d2e4fc5e3a 2024-09-19 02:24:11,191 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/d1083ddf-5572-4639-8723-3ecf70583835 2024-09-19 02:24:11,256 - DEBUG - ==>Verifying data for policy with id: 92c33c42-c098-4256-930a-f7b8aaf7357c, fqn: ['admin_domain', 'ctest-TestBasicPolicy-52966419', 'ctest-policy-allow-all-69545195'] 2024-09-19 02:24:11,256 - INFO - VN ctest-vn-41051667 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-19 02:24:11,256 - DEBUG - Verifying the vn in opserver 2024-09-19 02:24:11,256 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-41051667 virtual network link through opserver 10.0.0.36 2024-09-19 02:24:11,256 - DEBUG - Requesting: https://10.0.0.36:8081/analytics/uves/virtual-networks 2024-09-19 02:24:11,602 - DEBUG - Requesting: https://10.0.0.36:8081/analytics/uves/virtual-networks 2024-09-19 02:24:11,718 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-41051667', 'href': 'https://10.0.0.36:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-41051667?flat'} 2024-09-19 02:24:11,718 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-41051667 is found in opserver 2024-09-19 02:24:11,814 - DEBUG - Do not have enough data to verify VN in agent 2024-09-19 02:24:11,870 - DEBUG - VRF ids for VN ctest-vn-41051667: {} 2024-09-19 02:24:11,870 - DEBUG - Requesting: https://10.0.0.36:8082/domains 2024-09-19 02:24:11,926 - DEBUG - Requesting: https://10.0.0.36:8082/domain/df30a39c-7ce1-425c-8d6f-05f52997b6ef 2024-09-19 02:24:11,987 - DEBUG - Requesting: https://10.0.0.36:8082/project/29c421ec-72cc-4381-bec5-f1d2e4fc5e3a 2024-09-19 02:24:12,079 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/a32a9bff-b20f-464f-b6c8-acfc937c82ff 2024-09-19 02:24:12,140 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/a32a9bff-b20f-464f-b6c8-acfc937c82ff 2024-09-19 02:24:12,199 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/e6612538-ea5c-457d-b818-a498ff9a9c0b 2024-09-19 02:24:12,254 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/e6612538-ea5c-457d-b818-a498ff9a9c0b 2024-09-19 02:24:12,306 - DEBUG - Requesting: https://10.0.0.36:8082/route-target/e12401c9-3d9c-4a15-9ea7-d4416d200f07 2024-09-19 02:24:12,366 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-19 02:24:12,366 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/a32a9bff-b20f-464f-b6c8-acfc937c82ff 2024-09-19 02:24:12,424 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/e6612538-ea5c-457d-b818-a498ff9a9c0b 2024-09-19 02:24:12,494 - INFO - Verified VN network id 8 for VN a32a9bff-b20f-464f-b6c8-acfc937c82ff 2024-09-19 02:24:12,494 - INFO - Verifications in API Server for VN ctest-vn-79578906 passed 2024-09-19 02:24:12,494 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/a32a9bff-b20f-464f-b6c8-acfc937c82ff 2024-09-19 02:24:12,551 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/e6612538-ea5c-457d-b818-a498ff9a9c0b 2024-09-19 02:24:12,611 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/e6612538-ea5c-457d-b818-a498ff9a9c0b 2024-09-19 02:24:12,667 - DEBUG - Requesting: https://10.0.0.36:8082/route-target/e12401c9-3d9c-4a15-9ea7-d4416d200f07 2024-09-19 02:24:12,771 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-79578906', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52966419', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11757381299710412367', 'uuid-lslong': '13170967311051162367'}, 'enable': 'true', 'created': '2024-09-19T02:24:07', 'last-modified': '2024-09-19T02:24:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.443114'} 2024-09-19 02:24:12,823 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-19 02:24:12,823 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79578906 passed 2024-09-19 02:24:12,824 - DEBUG - ====Verifying policy data for ctest-vn-79578906 in API_Server ====== 2024-09-19 02:24:12,824 - DEBUG - Requesting: https://10.0.0.36:8082/domains 2024-09-19 02:24:12,878 - DEBUG - Requesting: https://10.0.0.36:8082/domain/df30a39c-7ce1-425c-8d6f-05f52997b6ef 2024-09-19 02:24:12,939 - DEBUG - Requesting: https://10.0.0.36:8082/project/29c421ec-72cc-4381-bec5-f1d2e4fc5e3a 2024-09-19 02:24:13,036 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-network/a32a9bff-b20f-464f-b6c8-acfc937c82ff 2024-09-19 02:24:13,104 - DEBUG - ==>Verifying data for policy with id: 92c33c42-c098-4256-930a-f7b8aaf7357c, fqn: ['admin_domain', 'ctest-TestBasicPolicy-52966419', 'ctest-policy-allow-all-69545195'] 2024-09-19 02:24:13,104 - INFO - VN ctest-vn-79578906 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-19 02:24:13,104 - DEBUG - Verifying the vn in opserver 2024-09-19 02:24:13,104 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-79578906 virtual network link through opserver 10.0.0.36 2024-09-19 02:24:13,104 - DEBUG - Requesting: https://10.0.0.36:8081/analytics/uves/virtual-networks 2024-09-19 02:24:13,162 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-79578906', 'href': 'https://10.0.0.36:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-79578906?flat'} 2024-09-19 02:24:13,162 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-79578906 is found in opserver 2024-09-19 02:24:13,262 - DEBUG - Do not have enough data to verify VN in agent 2024-09-19 02:24:13,310 - DEBUG - VRF ids for VN ctest-vn-79578906: {} 2024-09-19 02:24:13,371 - DEBUG - Services list from nova: [, , ] 2024-09-19 02:24:14,642 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-428-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-428-1) 2024-09-19 02:24:16,932 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-428-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-428-1) 2024-09-19 02:24:16,932 - INFO - Waiting for VM ctest-TestBasicPolicy-52966419-95325565 to be up.. 2024-09-19 02:24:17,082 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-19 02:24:22,228 - DEBUG - VM is in ACTIVE state now 2024-09-19 02:24:22,228 - INFO - VM name : ctest-TestBasicPolicy-52966419-95325565 2024-09-19 02:24:22,363 - DEBUG - VM ctest-TestBasicPolicy-52966419-95325565 ID is d50b308e-61bf-47f0-b6cc-bae4de069bc5 2024-09-19 02:24:22,397 - DEBUG - VM ctest-TestBasicPolicy-52966419-95325565 launched on Node cn-jenkins-deploy-platform-juju-os-428-1 2024-09-19 02:24:22,549 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-machine/d50b308e-61bf-47f0-b6cc-bae4de069bc5 2024-09-19 02:24:22,606 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-machine-interface/266814dc-849f-43b6-b873-12a8636753dd 2024-09-19 02:24:26,176 - 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 1030ms') 2024-09-19 02:24:26,176 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52966419-95325565 failed! 2024-09-19 02:24:26,237 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-52966419:ctest-vn-41051667 is 9.92.117.129 and allocation pool is NOT set 2024-09-19 02:24:28,322 - 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=3.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.298 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.298/1.713/3.129/1.415 ms') 2024-09-19 02:24:28,322 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52966419-95325565 passed 2024-09-19 02:24:28,485 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:24:28,485 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-52966419-95325565, IP 9.92.117.131, Port 22 2024-09-19 02:24:28,707 - DEBUG - VM ctest-TestBasicPolicy-52966419-95325565 is ready for SSH connections 2024-09-19 02:24:28,707 - INFO - Waiting for VM ctest-TestBasicPolicy-52966419-97388990 to be up.. 2024-09-19 02:24:28,845 - DEBUG - VM is in ACTIVE state now 2024-09-19 02:24:28,845 - INFO - VM name : ctest-TestBasicPolicy-52966419-97388990 2024-09-19 02:24:28,996 - DEBUG - VM ctest-TestBasicPolicy-52966419-97388990 ID is 1e599aa2-8831-4417-a44a-a0869b967cca 2024-09-19 02:24:28,996 - DEBUG - VM ctest-TestBasicPolicy-52966419-97388990 launched on Node cn-jenkins-deploy-platform-juju-os-428-1 2024-09-19 02:24:29,134 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-machine/1e599aa2-8831-4417-a44a-a0869b967cca 2024-09-19 02:24:29,190 - DEBUG - Requesting: https://10.0.0.36:8082/virtual-machine-interface/99d94bb6-f4a2-4d83-aa99-f94e38e39ca3 2024-09-19 02:24:30,655 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=2.84 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.414 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.414/1.625/2.836/1.211 ms') 2024-09-19 02:24:30,656 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-52966419-97388990 passed 2024-09-19 02:24:30,821 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:24:30,821 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-52966419-97388990, IP 103.86.227.131, Port 22 2024-09-19 02:24:31,041 - DEBUG - VM ctest-TestBasicPolicy-52966419-97388990 is ready for SSH connections 2024-09-19 02:24:31,042 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:24:31,042 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 103.86.227.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-09-19 02:24:31,042 - DEBUG - ping -s 56 -c 3 -W 1 103.86.227.131 2024-09-19 02:24:34,766 - DEBUG - PING 103.86.227.131 (103.86.227.131): 56 data bytes 64 bytes from 103.86.227.131: seq=0 ttl=63 time=3.278 ms 64 bytes from 103.86.227.131: seq=1 ttl=63 time=0.814 ms 64 bytes from 103.86.227.131: seq=2 ttl=63 time=0.803 ms --- 103.86.227.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.803/1.631/3.278 ms 2024-09-19 02:24:34,766 - INFO - Ping to IP 103.86.227.131 from VM ctest-TestBasicPolicy-52966419-95325565 passed 2024-09-19 02:24:34,969 - DEBUG - Policy Update Response {"network-policy": {"uuid": "92c33c42-c098-4256-930a-f7b8aaf7357c", "href": "https://10.0.0.36:8082/network-policy/92c33c42-c098-4256-930a-f7b8aaf7357c"}} 2024-09-19 02:24:34,969 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:24:34,969 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 103.86.227.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-09-19 02:24:34,970 - DEBUG - ping -s 56 -c 3 -W 1 103.86.227.131 2024-09-19 02:24:38,191 - DEBUG - PING 103.86.227.131 (103.86.227.131): 56 data bytes --- 103.86.227.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-19 02:24:38,191 - WARNING - Ping to IP 103.86.227.131 from VM ctest-TestBasicPolicy-52966419-95325565 failed 2024-09-19 02:24:38,191 - INFO - Deleting VM ctest-TestBasicPolicy-52966419-97388990 2024-09-19 02:24:38,334 - INFO - Deleting VM ctest-TestBasicPolicy-52966419-95325565 2024-09-19 02:24:39,091 - INFO - Deleted policy ctest-policy-allow-all-69545195 2024-09-19 02:24:39,091 - INFO - Deleting VN ctest-vn-79578906 2024-09-19 02:24:39,229 - DEBUG - VN a32a9bff-b20f-464f-b6c8-acfc937c82ff still in use: Unable to complete operation on network a32a9bff-b20f-464f-b6c8-acfc937c82ff. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7e763ebd-9af8-46c3-9780-986a66bf9299'] 2024-09-19 02:24:39,229 - WARNING - Deleting VN ctest-vn-79578906 failed..Will retry 2024-09-19 02:24:41,404 - DEBUG - Response for deleting network () 2024-09-19 02:24:41,404 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/e6612538-ea5c-457d-b818-a498ff9a9c0b 2024-09-19 02:24:41,457 - DEBUG - Response Code: 404 2024-09-19 02:24:41,458 - DEBUG - Requesting: https://10.0.0.36:8082/domains 2024-09-19 02:24:41,510 - DEBUG - Requesting: https://10.0.0.36:8082/domain/df30a39c-7ce1-425c-8d6f-05f52997b6ef 2024-09-19 02:24:41,572 - DEBUG - Requesting: https://10.0.0.36:8082/project/29c421ec-72cc-4381-bec5-f1d2e4fc5e3a 2024-09-19 02:24:41,659 - INFO - Validated that VN ctest-vn-79578906 is not found in API Server 2024-09-19 02:24:41,762 - DEBUG - VN ctest-vn-79578906 is not present in Agent 10.0.0.36 2024-09-19 02:24:41,762 - INFO - Validated that VN ctest-vn-79578906 is not in any agent 2024-09-19 02:24:41,914 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79578906 info 2024-09-19 02:24:41,914 - INFO - Deleting VN ctest-vn-41051667 2024-09-19 02:24:42,080 - DEBUG - Response for deleting network () 2024-09-19 02:24:42,080 - DEBUG - Requesting: https://10.0.0.36:8082/routing-instance/26bf130b-3ba0-4340-bc38-857e97f6fe71 2024-09-19 02:24:42,137 - DEBUG - Response Code: 404 2024-09-19 02:24:42,138 - DEBUG - Requesting: https://10.0.0.36:8082/domains 2024-09-19 02:24:42,194 - DEBUG - Requesting: https://10.0.0.36:8082/domain/df30a39c-7ce1-425c-8d6f-05f52997b6ef 2024-09-19 02:24:42,255 - DEBUG - Requesting: https://10.0.0.36:8082/project/29c421ec-72cc-4381-bec5-f1d2e4fc5e3a 2024-09-19 02:24:42,339 - INFO - Validated that VN ctest-vn-41051667 is not found in API Server 2024-09-19 02:24:42,442 - DEBUG - VN ctest-vn-41051667 is not present in Agent 10.0.0.36 2024-09-19 02:24:42,442 - INFO - Validated that VN ctest-vn-41051667 is not in any agent 2024-09-19 02:24:42,586 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-41051667 info 2024-09-19 02:24:42,967 - DEBUG - No XMPP flaps were noticed during the test 2024-09-19 02:24:42,967 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2024-09-19 02:24:42,967 - INFO - -------------------------------------------------------------------------------- 2024-09-19 02:24:43,811 - INFO - Deleted project: ctest-TestBasicPolicy-52966419, ID : 29c421ec-72cc-4381-bec5-f1d2e4fc5e3a