2024-09-06 16:19:48,584 - INFO - Domain Default found not creating 2024-09-06 16:19:48,742 - INFO - Project ctest-TestBasicPolicy-94077505 not found, creating it 2024-09-06 16:19:49,219 - INFO - Created Project:ctest-TestBasicPolicy-94077505, ID : 3e2244bd-130e-49e7-b45d-dc80daf3edc3 2024-09-06 16:19:50,704 - INFO - ================================================================================ 2024-09-06 16:19:50,704 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-06 16:19:50,705 - 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-06 16:19:50,961 - DEBUG - Nothing to compare xmpp stats {'10.0.0.64': {'10.20.0.23': '0'}} with 2024-09-06 16:19:50,961 - INFO - Initial checks done. Running the testcase now 2024-09-06 16:19:50,961 - INFO - 2024-09-06 16:19:51,513 - DEBUG - Response for create_network : {'network': {'id': '39b9a7c0-6fdf-482b-adbe-6dd32f43e643', 'name': 'ctest-vn-93844877', 'tenant_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'project_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94077505', 'ctest-vn-93844877'], 'port_security_enabled': True, 'description': ''}} 2024-09-06 16:19:51,688 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f496d5b-3213-4908-8916-bf6f8a81cd99', 'name': '', 'tenant_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'network_id': '39b9a7c0-6fdf-482b-adbe-6dd32f43e643', 'ip_version': 4, 'cidr': '77.190.189.0/26', 'allocation_pools': [{'start': '77.190.189.2', 'end': '77.190.189.62'}], 'gateway_ip': '77.190.189.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.190.189.2', 'tags': [], 'project_id': '3e2244bd130e49e7b45ddc80daf3edc3'}} 2024-09-06 16:19:51,708 - INFO - Created VN ctest-vn-93844877 2024-09-06 16:19:51,758 - DEBUG - VN ctest-vn-93844877 UUID is 39b9a7c0-6fdf-482b-adbe-6dd32f43e643 2024-09-06 16:19:52,053 - DEBUG - Response for create_network : {'network': {'id': '7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0', 'name': 'ctest-vn-39982818', 'tenant_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'project_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94077505', 'ctest-vn-39982818'], 'port_security_enabled': True, 'description': ''}} 2024-09-06 16:19:52,230 - DEBUG - Response for create_subnet : {'subnet': {'id': '34751a41-b729-498c-8592-7a3acea7b5b7', 'name': '', 'tenant_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'network_id': '7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0', 'ip_version': 4, 'cidr': '90.61.102.128/26', 'allocation_pools': [{'start': '90.61.102.130', 'end': '90.61.102.190'}], 'gateway_ip': '90.61.102.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.61.102.130', 'tags': [], 'project_id': '3e2244bd130e49e7b45ddc80daf3edc3'}} 2024-09-06 16:19:52,250 - INFO - Created VN ctest-vn-39982818 2024-09-06 16:19:52,302 - DEBUG - VN ctest-vn-39982818 UUID is 7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0 2024-09-06 16:19:52,418 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-93844877, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-39982818, 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-06 16:19:52,728 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '39b9a7c0-6fdf-482b-adbe-6dd32f43e643', 'name': 'ctest-vn-93844877', 'tenant_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'project_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2f496d5b-3213-4908-8916-bf6f8a81cd99'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94077505', 'ctest-vn-93844877'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94077505', 'ctest-policy-allow-all-30861779']], 'subnet_ipam': [{'subnet_cidr': '77.190.189.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-06 16:19:52,975 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0', 'name': 'ctest-vn-39982818', 'tenant_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'project_id': '3e2244bd130e49e7b45ddc80daf3edc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['34751a41-b729-498c-8592-7a3acea7b5b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94077505', 'ctest-vn-39982818'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94077505', 'ctest-policy-allow-all-30861779']], 'subnet_ipam': [{'subnet_cidr': '90.61.102.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-06 16:19:53,146 - DEBUG - Requesting: http://10.0.0.64:8082/domains 2024-09-06 16:19:53,453 - DEBUG - Requesting: http://10.0.0.64:8082/domains 2024-09-06 16:19:53,490 - DEBUG - Requesting: http://10.0.0.64:8082/domain/0967fa99-8dac-4fa2-9822-d82c687f4c19 2024-09-06 16:19:53,504 - DEBUG - Requesting: http://10.0.0.64:8082/project/3e2244bd-130e-49e7-b45d-dc80daf3edc3 2024-09-06 16:19:53,576 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/39b9a7c0-6fdf-482b-adbe-6dd32f43e643 2024-09-06 16:19:53,586 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/39b9a7c0-6fdf-482b-adbe-6dd32f43e643 2024-09-06 16:19:53,595 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/2227f123-afb6-42b2-aa68-5cc94c578ff3 2024-09-06 16:19:53,605 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/2227f123-afb6-42b2-aa68-5cc94c578ff3 2024-09-06 16:19:53,612 - DEBUG - Requesting: http://10.0.0.64:8082/route-target/982c2e24-67e3-418b-9ab5-c4311b6303b6 2024-09-06 16:19:53,620 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-06 16:19:53,620 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/39b9a7c0-6fdf-482b-adbe-6dd32f43e643 2024-09-06 16:19:53,631 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/2227f123-afb6-42b2-aa68-5cc94c578ff3 2024-09-06 16:19:53,644 - INFO - Verified VN network id 8 for VN 39b9a7c0-6fdf-482b-adbe-6dd32f43e643 2024-09-06 16:19:53,644 - INFO - Verifications in API Server for VN ctest-vn-93844877 passed 2024-09-06 16:19:53,644 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/39b9a7c0-6fdf-482b-adbe-6dd32f43e643 2024-09-06 16:19:53,653 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/2227f123-afb6-42b2-aa68-5cc94c578ff3 2024-09-06 16:19:53,660 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/2227f123-afb6-42b2-aa68-5cc94c578ff3 2024-09-06 16:19:53,668 - DEBUG - Requesting: http://10.0.0.64:8082/route-target/982c2e24-67e3-418b-9ab5-c4311b6303b6 2024-09-06 16:19:53,680 - DEBUG - Control-node 10.0.0.64 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-93844877', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94077505', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4159540175805827115', 'uuid-lslong': '12519564767935063619'}, 'enable': 'true', 'created': '2024-09-06T16:19:51', 'last-modified': '2024-09-06T16:19:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.979704'} 2024-09-06 16:19:53,687 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-06 16:19:53,687 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93844877 passed 2024-09-06 16:19:53,687 - DEBUG - ====Verifying policy data for ctest-vn-93844877 in API_Server ====== 2024-09-06 16:19:53,687 - DEBUG - Requesting: http://10.0.0.64:8082/domains 2024-09-06 16:19:53,693 - DEBUG - Requesting: http://10.0.0.64:8082/domain/0967fa99-8dac-4fa2-9822-d82c687f4c19 2024-09-06 16:19:53,707 - DEBUG - Requesting: http://10.0.0.64:8082/project/3e2244bd-130e-49e7-b45d-dc80daf3edc3 2024-09-06 16:19:53,778 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/39b9a7c0-6fdf-482b-adbe-6dd32f43e643 2024-09-06 16:19:53,786 - DEBUG - ==>Verifying data for policy with id: 6b21a157-efb7-4b94-975a-8ff3c12a16b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-94077505', 'ctest-policy-allow-all-30861779'] 2024-09-06 16:19:53,786 - INFO - VN ctest-vn-93844877 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-06 16:19:53,787 - DEBUG - Verifying the vn in opserver 2024-09-06 16:19:53,787 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-93844877 virtual network link through opserver 10.0.0.64 2024-09-06 16:19:53,787 - DEBUG - Requesting: http://10.0.0.64:8081/analytics/uves/virtual-networks 2024-09-06 16:19:54,101 - DEBUG - Requesting: http://10.0.0.64:8081/analytics/uves/virtual-networks 2024-09-06 16:19:54,164 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-93844877', 'href': 'http://10.0.0.64:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-93844877?flat'} 2024-09-06 16:19:54,164 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-93844877 is found in opserver 2024-09-06 16:19:54,176 - DEBUG - Do not have enough data to verify VN in agent 2024-09-06 16:19:54,182 - DEBUG - VRF ids for VN ctest-vn-93844877: {} 2024-09-06 16:19:54,182 - DEBUG - Requesting: http://10.0.0.64:8082/domains 2024-09-06 16:19:54,188 - DEBUG - Requesting: http://10.0.0.64:8082/domain/0967fa99-8dac-4fa2-9822-d82c687f4c19 2024-09-06 16:19:54,200 - DEBUG - Requesting: http://10.0.0.64:8082/project/3e2244bd-130e-49e7-b45d-dc80daf3edc3 2024-09-06 16:19:54,271 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0 2024-09-06 16:19:54,282 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0 2024-09-06 16:19:54,291 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/275d47c3-2add-4697-907f-9d242ea60c48 2024-09-06 16:19:54,299 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/275d47c3-2add-4697-907f-9d242ea60c48 2024-09-06 16:19:54,306 - DEBUG - Requesting: http://10.0.0.64:8082/route-target/a1957218-6ff5-4c62-a5e9-caa0671c6a63 2024-09-06 16:19:54,312 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-06 16:19:54,312 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0 2024-09-06 16:19:54,320 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/275d47c3-2add-4697-907f-9d242ea60c48 2024-09-06 16:19:54,332 - INFO - Verified VN network id 9 for VN 7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0 2024-09-06 16:19:54,333 - INFO - Verifications in API Server for VN ctest-vn-39982818 passed 2024-09-06 16:19:54,333 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0 2024-09-06 16:19:54,341 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/275d47c3-2add-4697-907f-9d242ea60c48 2024-09-06 16:19:54,348 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/275d47c3-2add-4697-907f-9d242ea60c48 2024-09-06 16:19:54,355 - DEBUG - Requesting: http://10.0.0.64:8082/route-target/a1957218-6ff5-4c62-a5e9-caa0671c6a63 2024-09-06 16:19:54,367 - DEBUG - Control-node 10.0.0.64 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-39982818', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94077505', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9017887295183079999', 'uuid-lslong': '12087767713795825584'}, 'enable': 'true', 'created': '2024-09-06T16:19:52', 'last-modified': '2024-09-06T16:19:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.422525'} 2024-09-06 16:19:54,374 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-06 16:19:54,374 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39982818 passed 2024-09-06 16:19:54,374 - DEBUG - ====Verifying policy data for ctest-vn-39982818 in API_Server ====== 2024-09-06 16:19:54,374 - DEBUG - Requesting: http://10.0.0.64:8082/domains 2024-09-06 16:19:54,380 - DEBUG - Requesting: http://10.0.0.64:8082/domain/0967fa99-8dac-4fa2-9822-d82c687f4c19 2024-09-06 16:19:54,392 - DEBUG - Requesting: http://10.0.0.64:8082/project/3e2244bd-130e-49e7-b45d-dc80daf3edc3 2024-09-06 16:19:54,463 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-network/7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0 2024-09-06 16:19:54,471 - DEBUG - ==>Verifying data for policy with id: 6b21a157-efb7-4b94-975a-8ff3c12a16b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-94077505', 'ctest-policy-allow-all-30861779'] 2024-09-06 16:19:54,471 - INFO - VN ctest-vn-39982818 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-06 16:19:54,472 - DEBUG - Verifying the vn in opserver 2024-09-06 16:19:54,472 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-39982818 virtual network link through opserver 10.0.0.64 2024-09-06 16:19:54,472 - DEBUG - Requesting: http://10.0.0.64:8081/analytics/uves/virtual-networks 2024-09-06 16:19:54,483 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-39982818', 'href': 'http://10.0.0.64:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-39982818?flat'} 2024-09-06 16:19:54,483 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-39982818 is found in opserver 2024-09-06 16:19:54,494 - DEBUG - Do not have enough data to verify VN in agent 2024-09-06 16:19:54,499 - DEBUG - VRF ids for VN ctest-vn-39982818: {} 2024-09-06 16:19:54,556 - DEBUG - Services list from nova: [, , ] 2024-09-06 16:19:55,570 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1864-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1864-1) 2024-09-06 16:19:56,850 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1864-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1864-1) 2024-09-06 16:19:56,851 - INFO - Waiting for VM ctest-TestBasicPolicy-94077505-93182877 to be up.. 2024-09-06 16:19:56,930 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-06 16:20:02,028 - DEBUG - VM is in ACTIVE state now 2024-09-06 16:20:02,028 - INFO - VM name : ctest-TestBasicPolicy-94077505-93182877 2024-09-06 16:20:02,120 - DEBUG - VM ctest-TestBasicPolicy-94077505-93182877 ID is 09b264be-e312-420a-88e1-7547b2321a0f 2024-09-06 16:20:02,147 - DEBUG - VM ctest-TestBasicPolicy-94077505-93182877 launched on Node cn-jenkins-deploy-platform-ansible-os-1864-1 2024-09-06 16:20:02,250 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-machine/09b264be-e312-420a-88e1-7547b2321a0f 2024-09-06 16:20:02,263 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-machine-interface/e0afc337-b3d8-4c5d-a918-b7847f81089e 2024-09-06 16:20:05,525 - 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 1023ms') 2024-09-06 16:20:05,525 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94077505-93182877 failed! 2024-09-06 16:20:05,582 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-94077505:ctest-vn-93844877 is 77.190.189.1 and allocation pool is NOT set 2024-09-06 16:20:07,639 - 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=4.50 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.444 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.444/2.472/4.501/2.028 ms') 2024-09-06 16:20:07,639 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94077505-93182877 passed 2024-09-06 16:20:07,790 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 16:20:07,790 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94077505-93182877, IP 77.190.189.3, Port 22 2024-09-06 16:20:07,950 - DEBUG - VM ctest-TestBasicPolicy-94077505-93182877 is ready for SSH connections 2024-09-06 16:20:07,950 - INFO - Waiting for VM ctest-TestBasicPolicy-94077505-93064997 to be up.. 2024-09-06 16:20:08,033 - DEBUG - VM is in ACTIVE state now 2024-09-06 16:20:08,033 - INFO - VM name : ctest-TestBasicPolicy-94077505-93064997 2024-09-06 16:20:08,108 - DEBUG - VM ctest-TestBasicPolicy-94077505-93064997 ID is 16269ea5-ff12-4ada-a3e1-860f64570cca 2024-09-06 16:20:08,109 - DEBUG - VM ctest-TestBasicPolicy-94077505-93064997 launched on Node cn-jenkins-deploy-platform-ansible-os-1864-1 2024-09-06 16:20:08,187 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-machine/16269ea5-ff12-4ada-a3e1-860f64570cca 2024-09-06 16:20:08,196 - DEBUG - Requesting: http://10.0.0.64:8082/virtual-machine-interface/633fe0c8-faa3-437d-aa4c-672593db8c06 2024-09-06 16:20:09,439 - 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.00 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.77 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 = 2.771/3.387/4.004/0.616 ms') 2024-09-06 16:20:09,439 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-94077505-93064997 passed 2024-09-06 16:20:09,586 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 16:20:09,586 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94077505-93064997, IP 90.61.102.131, Port 22 2024-09-06 16:20:09,742 - DEBUG - VM ctest-TestBasicPolicy-94077505-93064997 is ready for SSH connections 2024-09-06 16:20:09,742 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 16:20:09,742 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 90.61.102.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.64, gateway password: c0ntrail123 2024-09-06 16:20:09,742 - DEBUG - ping -s 56 -c 3 -W 1 90.61.102.131 2024-09-06 16:20:13,714 - DEBUG - PING 90.61.102.131 (90.61.102.131): 56 data bytes 64 bytes from 90.61.102.131: seq=0 ttl=63 time=3.700 ms 64 bytes from 90.61.102.131: seq=1 ttl=63 time=0.996 ms 64 bytes from 90.61.102.131: seq=2 ttl=63 time=0.720 ms --- 90.61.102.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.720/1.805/3.700 ms 2024-09-06 16:20:13,714 - INFO - Ping to IP 90.61.102.131 from VM ctest-TestBasicPolicy-94077505-93182877 passed 2024-09-06 16:20:13,902 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6b21a157-efb7-4b94-975a-8ff3c12a16b7", "href": "http://10.0.0.64:8082/network-policy/6b21a157-efb7-4b94-975a-8ff3c12a16b7"}} 2024-09-06 16:20:13,902 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-06 16:20:13,902 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 90.61.102.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.64, gateway password: c0ntrail123 2024-09-06 16:20:13,902 - DEBUG - ping -s 56 -c 3 -W 1 90.61.102.131 2024-09-06 16:20:17,106 - DEBUG - PING 90.61.102.131 (90.61.102.131): 56 data bytes 64 bytes from 90.61.102.131: seq=0 ttl=63 time=1.321 ms --- 90.61.102.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.321/1.321/1.321 ms 2024-09-06 16:20:17,106 - WARNING - Ping to IP 90.61.102.131 from VM ctest-TestBasicPolicy-94077505-93182877 failed 2024-09-06 16:20:17,106 - INFO - Deleting VM ctest-TestBasicPolicy-94077505-93064997 2024-09-06 16:20:17,175 - INFO - Deleting VM ctest-TestBasicPolicy-94077505-93182877 2024-09-06 16:20:17,558 - INFO - Deleted policy ctest-policy-allow-all-30861779 2024-09-06 16:20:17,558 - INFO - Deleting VN ctest-vn-39982818 2024-09-06 16:20:17,599 - DEBUG - VN 7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0 still in use: Unable to complete operation on network 7d25f8b7-55e5-4a3f-a7c0-60b1243c5fb0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f9b3b2af-4562-4c5e-9aa6-0e52369fa2d8'] 2024-09-06 16:20:17,599 - WARNING - Deleting VN ctest-vn-39982818 failed..Will retry 2024-09-06 16:20:19,695 - DEBUG - Response for deleting network () 2024-09-06 16:20:19,696 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/275d47c3-2add-4697-907f-9d242ea60c48 2024-09-06 16:20:19,702 - DEBUG - Response Code: 404 2024-09-06 16:20:19,702 - DEBUG - Requesting: http://10.0.0.64:8082/domains 2024-09-06 16:20:19,710 - DEBUG - Requesting: http://10.0.0.64:8082/domain/0967fa99-8dac-4fa2-9822-d82c687f4c19 2024-09-06 16:20:19,764 - DEBUG - Requesting: http://10.0.0.64:8082/project/3e2244bd-130e-49e7-b45d-dc80daf3edc3 2024-09-06 16:20:19,832 - INFO - Validated that VN ctest-vn-39982818 is not found in API Server 2024-09-06 16:20:19,844 - DEBUG - VN ctest-vn-39982818 is not present in Agent 10.0.0.64 2024-09-06 16:20:19,844 - INFO - Validated that VN ctest-vn-39982818 is not in any agent 2024-09-06 16:20:19,863 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-39982818 info 2024-09-06 16:20:19,863 - INFO - Deleting VN ctest-vn-93844877 2024-09-06 16:20:19,961 - DEBUG - Response for deleting network () 2024-09-06 16:20:19,961 - DEBUG - Requesting: http://10.0.0.64:8082/routing-instance/2227f123-afb6-42b2-aa68-5cc94c578ff3 2024-09-06 16:20:19,967 - DEBUG - Response Code: 404 2024-09-06 16:20:19,967 - DEBUG - Requesting: http://10.0.0.64:8082/domains 2024-09-06 16:20:19,976 - DEBUG - Requesting: http://10.0.0.64:8082/domain/0967fa99-8dac-4fa2-9822-d82c687f4c19 2024-09-06 16:20:20,031 - DEBUG - Requesting: http://10.0.0.64:8082/project/3e2244bd-130e-49e7-b45d-dc80daf3edc3 2024-09-06 16:20:20,102 - INFO - Validated that VN ctest-vn-93844877 is not found in API Server 2024-09-06 16:20:20,115 - DEBUG - VN ctest-vn-93844877 is not present in Agent 10.0.0.64 2024-09-06 16:20:20,115 - INFO - Validated that VN ctest-vn-93844877 is not in any agent 2024-09-06 16:20:20,132 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-93844877 info 2024-09-06 16:20:20,393 - DEBUG - No XMPP flaps were noticed during the test
2024-09-06 16:20:20,393 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-09-06 16:20:20,393 - INFO - -------------------------------------------------------------------------------- 2024-09-06 16:20:21,060 - INFO - Deleted project: ctest-TestBasicPolicy-94077505, ID : 3e2244bd-130e-49e7-b45d-dc80daf3edc3