2024-10-29 16:36:13,843 - INFO - Domain Default found not creating 2024-10-29 16:36:14,003 - INFO - Project ctest-TestBasicPolicy-40275173 not found, creating it 2024-10-29 16:36:14,526 - INFO - Created Project:ctest-TestBasicPolicy-40275173, ID : 044b59b0-597c-499f-896d-e956e287edb9 2024-10-29 16:36:16,052 - INFO - ================================================================================ 2024-10-29 16:36:16,053 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-29 16:36:16,053 - 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-29 16:36:16,308 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.22': '0'}} with 2024-10-29 16:36:16,308 - INFO - Initial checks done. Running the testcase now 2024-10-29 16:36:16,308 - INFO - 2024-10-29 16:36:16,943 - DEBUG - Response for create_network : {'network': {'id': '2dcb07cb-4cb8-4be7-9d2c-77856bc0307d', 'name': 'ctest-vn-04704788', 'tenant_id': '044b59b0597c499f896de956e287edb9', 'project_id': '044b59b0597c499f896de956e287edb9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40275173', 'ctest-vn-04704788'], 'port_security_enabled': True, 'description': ''}} 2024-10-29 16:36:17,203 - DEBUG - Response for create_subnet : {'subnet': {'id': '25cbcc3d-db3f-4f23-bccd-1503d61e7215', 'name': '', 'tenant_id': '044b59b0597c499f896de956e287edb9', 'network_id': '2dcb07cb-4cb8-4be7-9d2c-77856bc0307d', 'ip_version': 4, 'cidr': '205.162.152.0/26', 'allocation_pools': [{'start': '205.162.152.2', 'end': '205.162.152.62'}], 'gateway_ip': '205.162.152.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.162.152.2', 'tags': [], 'project_id': '044b59b0597c499f896de956e287edb9'}} 2024-10-29 16:36:17,226 - INFO - Created VN ctest-vn-04704788 2024-10-29 16:36:17,286 - DEBUG - VN ctest-vn-04704788 UUID is 2dcb07cb-4cb8-4be7-9d2c-77856bc0307d 2024-10-29 16:36:17,623 - DEBUG - Response for create_network : {'network': {'id': '4c7adc47-b8c5-47a6-ae37-33a377a30d82', 'name': 'ctest-vn-47822188', 'tenant_id': '044b59b0597c499f896de956e287edb9', 'project_id': '044b59b0597c499f896de956e287edb9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40275173', 'ctest-vn-47822188'], 'port_security_enabled': True, 'description': ''}} 2024-10-29 16:36:17,849 - DEBUG - Response for create_subnet : {'subnet': {'id': 'df2ce24c-c447-40d7-a263-2d4feef83548', 'name': '', 'tenant_id': '044b59b0597c499f896de956e287edb9', 'network_id': '4c7adc47-b8c5-47a6-ae37-33a377a30d82', 'ip_version': 4, 'cidr': '197.159.134.192/26', 'allocation_pools': [{'start': '197.159.134.194', 'end': '197.159.134.254'}], 'gateway_ip': '197.159.134.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.159.134.194', 'tags': [], 'project_id': '044b59b0597c499f896de956e287edb9'}} 2024-10-29 16:36:17,868 - INFO - Created VN ctest-vn-47822188 2024-10-29 16:36:17,925 - DEBUG - VN ctest-vn-47822188 UUID is 4c7adc47-b8c5-47a6-ae37-33a377a30d82 2024-10-29 16:36:18,077 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-04704788, 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-40275173:ctest-vn-47822188, 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-29 16:36:18,413 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2dcb07cb-4cb8-4be7-9d2c-77856bc0307d', 'name': 'ctest-vn-04704788', 'tenant_id': '044b59b0597c499f896de956e287edb9', 'project_id': '044b59b0597c499f896de956e287edb9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['25cbcc3d-db3f-4f23-bccd-1503d61e7215'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40275173', 'ctest-vn-04704788'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40275173', 'ctest-policy-allow-all-09119477']], 'subnet_ipam': [{'subnet_cidr': '205.162.152.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-29 16:36:18,671 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c7adc47-b8c5-47a6-ae37-33a377a30d82', 'name': 'ctest-vn-47822188', 'tenant_id': '044b59b0597c499f896de956e287edb9', 'project_id': '044b59b0597c499f896de956e287edb9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['df2ce24c-c447-40d7-a263-2d4feef83548'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40275173', 'ctest-vn-47822188'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40275173', 'ctest-policy-allow-all-09119477']], 'subnet_ipam': [{'subnet_cidr': '197.159.134.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-29 16:36:18,829 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-29 16:36:19,130 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-29 16:36:19,171 - DEBUG - Requesting: http://10.0.0.40:8082/domain/655009fb-1f37-42f2-884e-d0ad9c499aa5 2024-10-29 16:36:19,189 - DEBUG - Requesting: http://10.0.0.40:8082/project/044b59b0-597c-499f-896d-e956e287edb9 2024-10-29 16:36:19,279 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/2dcb07cb-4cb8-4be7-9d2c-77856bc0307d 2024-10-29 16:36:19,297 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/2dcb07cb-4cb8-4be7-9d2c-77856bc0307d 2024-10-29 16:36:19,313 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c781384e-c1dd-4e38-bd38-8dcecb198054 2024-10-29 16:36:19,324 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c781384e-c1dd-4e38-bd38-8dcecb198054 2024-10-29 16:36:19,334 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/f99894c5-d3a4-4514-a3e9-658267cff178 2024-10-29 16:36:19,344 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-29 16:36:19,344 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/2dcb07cb-4cb8-4be7-9d2c-77856bc0307d 2024-10-29 16:36:19,363 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c781384e-c1dd-4e38-bd38-8dcecb198054 2024-10-29 16:36:19,389 - INFO - Verified VN network id 8 for VN 2dcb07cb-4cb8-4be7-9d2c-77856bc0307d 2024-10-29 16:36:19,389 - INFO - Verifications in API Server for VN ctest-vn-04704788 passed 2024-10-29 16:36:19,389 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/2dcb07cb-4cb8-4be7-9d2c-77856bc0307d 2024-10-29 16:36:19,408 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c781384e-c1dd-4e38-bd38-8dcecb198054 2024-10-29 16:36:19,419 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c781384e-c1dd-4e38-bd38-8dcecb198054 2024-10-29 16:36:19,431 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/f99894c5-d3a4-4514-a3e9-658267cff178 2024-10-29 16:36:19,446 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-04704788', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40275173', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3299739721725922279', 'uuid-lslong': '11325558577852067965'}, 'enable': 'true', 'created': '2024-10-29T16:36:16', 'last-modified': '2024-10-29T16:36:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.066106'} 2024-10-29 16:36:19,453 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-29 16:36:19,454 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04704788 passed 2024-10-29 16:36:19,454 - DEBUG - ====Verifying policy data for ctest-vn-04704788 in API_Server ====== 2024-10-29 16:36:19,454 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-29 16:36:19,462 - DEBUG - Requesting: http://10.0.0.40:8082/domain/655009fb-1f37-42f2-884e-d0ad9c499aa5 2024-10-29 16:36:19,478 - DEBUG - Requesting: http://10.0.0.40:8082/project/044b59b0-597c-499f-896d-e956e287edb9 2024-10-29 16:36:19,567 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/2dcb07cb-4cb8-4be7-9d2c-77856bc0307d 2024-10-29 16:36:19,586 - DEBUG - ==>Verifying data for policy with id: 5883d28b-aa8d-4046-b718-12ed2f39c82f, fqn: ['default-domain', 'ctest-TestBasicPolicy-40275173', 'ctest-policy-allow-all-09119477'] 2024-10-29 16:36:19,586 - INFO - VN ctest-vn-04704788 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-29 16:36:19,586 - DEBUG - Verifying the vn in opserver 2024-10-29 16:36:19,586 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-04704788 virtual network link through opserver 10.0.0.40 2024-10-29 16:36:19,587 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-10-29 16:36:19,890 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-10-29 16:36:19,963 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-04704788', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-04704788?flat'} 2024-10-29 16:36:19,963 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-04704788 is found in opserver 2024-10-29 16:36:19,975 - DEBUG - Do not have enough data to verify VN in agent 2024-10-29 16:36:19,981 - DEBUG - VRF ids for VN ctest-vn-04704788: {} 2024-10-29 16:36:19,981 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-29 16:36:19,989 - DEBUG - Requesting: http://10.0.0.40:8082/domain/655009fb-1f37-42f2-884e-d0ad9c499aa5 2024-10-29 16:36:20,005 - DEBUG - Requesting: http://10.0.0.40:8082/project/044b59b0-597c-499f-896d-e956e287edb9 2024-10-29 16:36:20,090 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/4c7adc47-b8c5-47a6-ae37-33a377a30d82 2024-10-29 16:36:20,108 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/4c7adc47-b8c5-47a6-ae37-33a377a30d82 2024-10-29 16:36:20,123 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/a98998b7-f356-43df-b5f2-7be65ad304c9 2024-10-29 16:36:20,132 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/a98998b7-f356-43df-b5f2-7be65ad304c9 2024-10-29 16:36:20,140 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/86691618-44d0-4d2d-b43b-8397ae161ce6 2024-10-29 16:36:20,148 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-29 16:36:20,148 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/4c7adc47-b8c5-47a6-ae37-33a377a30d82 2024-10-29 16:36:20,164 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/a98998b7-f356-43df-b5f2-7be65ad304c9 2024-10-29 16:36:20,186 - INFO - Verified VN network id 9 for VN 4c7adc47-b8c5-47a6-ae37-33a377a30d82 2024-10-29 16:36:20,186 - INFO - Verifications in API Server for VN ctest-vn-47822188 passed 2024-10-29 16:36:20,186 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/4c7adc47-b8c5-47a6-ae37-33a377a30d82 2024-10-29 16:36:20,201 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/a98998b7-f356-43df-b5f2-7be65ad304c9 2024-10-29 16:36:20,211 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/a98998b7-f356-43df-b5f2-7be65ad304c9 2024-10-29 16:36:20,222 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/86691618-44d0-4d2d-b43b-8397ae161ce6 2024-10-29 16:36:20,238 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-47822188', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40275173', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5510959294641948582', 'uuid-lslong': '12553559263498407298'}, 'enable': 'true', 'created': '2024-10-29T16:36:17', 'last-modified': '2024-10-29T16:36:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.599181'} 2024-10-29 16:36:20,245 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-29 16:36:20,245 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47822188 passed 2024-10-29 16:36:20,246 - DEBUG - ====Verifying policy data for ctest-vn-47822188 in API_Server ====== 2024-10-29 16:36:20,246 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-29 16:36:20,255 - DEBUG - Requesting: http://10.0.0.40:8082/domain/655009fb-1f37-42f2-884e-d0ad9c499aa5 2024-10-29 16:36:20,272 - DEBUG - Requesting: http://10.0.0.40:8082/project/044b59b0-597c-499f-896d-e956e287edb9 2024-10-29 16:36:20,362 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/4c7adc47-b8c5-47a6-ae37-33a377a30d82 2024-10-29 16:36:20,381 - DEBUG - ==>Verifying data for policy with id: 5883d28b-aa8d-4046-b718-12ed2f39c82f, fqn: ['default-domain', 'ctest-TestBasicPolicy-40275173', 'ctest-policy-allow-all-09119477'] 2024-10-29 16:36:20,381 - INFO - VN ctest-vn-47822188 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-29 16:36:20,381 - DEBUG - Verifying the vn in opserver 2024-10-29 16:36:20,381 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-47822188 virtual network link through opserver 10.0.0.40 2024-10-29 16:36:20,381 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-10-29 16:36:20,393 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-47822188', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-47822188?flat'} 2024-10-29 16:36:20,393 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-47822188 is found in opserver 2024-10-29 16:36:20,407 - DEBUG - Do not have enough data to verify VN in agent 2024-10-29 16:36:20,413 - DEBUG - VRF ids for VN ctest-vn-47822188: {} 2024-10-29 16:36:20,475 - DEBUG - Services list from nova: [, , ] 2024-10-29 16:36:21,558 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2177-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2177-1) 2024-10-29 16:36:22,906 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2177-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2177-1) 2024-10-29 16:36:22,906 - INFO - Waiting for VM ctest-TestBasicPolicy-40275173-95961246 to be up.. 2024-10-29 16:36:23,002 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-29 16:36:28,093 - DEBUG - VM is in ACTIVE state now 2024-10-29 16:36:28,094 - INFO - VM name : ctest-TestBasicPolicy-40275173-95961246 2024-10-29 16:36:28,202 - DEBUG - VM ctest-TestBasicPolicy-40275173-95961246 ID is 974e2637-c61b-41af-863a-581c3ff2d886 2024-10-29 16:36:28,222 - DEBUG - VM ctest-TestBasicPolicy-40275173-95961246 launched on Node cn-jenkins-deploy-platform-ansible-os-2177-1 2024-10-29 16:36:28,311 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/974e2637-c61b-41af-863a-581c3ff2d886 2024-10-29 16:36:28,323 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/08e3e137-84e5-4262-bab2-4fed4b87bc3a 2024-10-29 16:36:31,599 - 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 1027ms') 2024-10-29 16:36:31,599 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40275173-95961246 failed! 2024-10-29 16:36:31,661 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-04704788 is 205.162.152.1 and allocation pool is NOT set 2024-10-29 16:36:33,727 - 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.75 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.473 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.473/2.612/4.752/2.139 ms') 2024-10-29 16:36:33,728 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-40275173-95961246 passed 2024-10-29 16:36:33,886 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 16:36:33,886 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40275173-95961246, IP 205.162.152.3, Port 22 2024-10-29 16:36:34,049 - DEBUG - VM ctest-TestBasicPolicy-40275173-95961246 is ready for SSH connections 2024-10-29 16:36:34,049 - INFO - Waiting for VM ctest-TestBasicPolicy-40275173-91884631 to be up.. 2024-10-29 16:36:34,135 - DEBUG - VM is in ACTIVE state now 2024-10-29 16:36:34,136 - INFO - VM name : ctest-TestBasicPolicy-40275173-91884631 2024-10-29 16:36:34,220 - DEBUG - VM ctest-TestBasicPolicy-40275173-91884631 ID is f85e9278-53c9-4319-a867-ca322ae8c2eb 2024-10-29 16:36:34,220 - DEBUG - VM ctest-TestBasicPolicy-40275173-91884631 launched on Node cn-jenkins-deploy-platform-ansible-os-2177-1 2024-10-29 16:36:34,305 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/f85e9278-53c9-4319-a867-ca322ae8c2eb 2024-10-29 16:36:34,316 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/628f800e-7597-4912-a205-2a9455c457ba 2024-10-29 16:36:35,579 - 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.85 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.534 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.534/1.690/2.846/1.156 ms') 2024-10-29 16:36:35,579 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-40275173-91884631 passed 2024-10-29 16:36:35,746 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 16:36:35,746 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-40275173-91884631, IP 197.159.134.195, Port 22 2024-10-29 16:36:35,910 - DEBUG - VM ctest-TestBasicPolicy-40275173-91884631 is ready for SSH connections 2024-10-29 16:36:35,910 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 16:36:35,910 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 197.159.134.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-10-29 16:36:35,910 - DEBUG - ping -s 56 -c 3 -W 1 197.159.134.195 2024-10-29 16:36:39,585 - DEBUG - PING 197.159.134.195 (197.159.134.195): 56 data bytes 64 bytes from 197.159.134.195: seq=0 ttl=63 time=4.213 ms 64 bytes from 197.159.134.195: seq=1 ttl=63 time=1.005 ms 64 bytes from 197.159.134.195: seq=2 ttl=63 time=1.445 ms --- 197.159.134.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.005/2.221/4.213 ms 2024-10-29 16:36:39,585 - INFO - Ping to IP 197.159.134.195 from VM ctest-TestBasicPolicy-40275173-95961246 passed 2024-10-29 16:36:39,781 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5883d28b-aa8d-4046-b718-12ed2f39c82f", "href": "http://10.0.0.40:8082/network-policy/5883d28b-aa8d-4046-b718-12ed2f39c82f"}} 2024-10-29 16:36:39,781 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 16:36:39,782 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 197.159.134.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-10-29 16:36:39,782 - DEBUG - ping -s 56 -c 3 -W 1 197.159.134.195 2024-10-29 16:36:42,976 - DEBUG - PING 197.159.134.195 (197.159.134.195): 56 data bytes 64 bytes from 197.159.134.195: seq=0 ttl=63 time=1.510 ms --- 197.159.134.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.510/1.510/1.510 ms 2024-10-29 16:36:42,976 - WARNING - Ping to IP 197.159.134.195 from VM ctest-TestBasicPolicy-40275173-95961246 failed 2024-10-29 16:36:42,976 - INFO - Deleting VM ctest-TestBasicPolicy-40275173-91884631 2024-10-29 16:36:43,044 - INFO - Deleting VM ctest-TestBasicPolicy-40275173-95961246 2024-10-29 16:36:43,475 - INFO - Deleted policy ctest-policy-allow-all-09119477 2024-10-29 16:36:43,476 - INFO - Deleting VN ctest-vn-47822188 2024-10-29 16:36:43,516 - DEBUG - VN 4c7adc47-b8c5-47a6-ae37-33a377a30d82 still in use: Unable to complete operation on network 4c7adc47-b8c5-47a6-ae37-33a377a30d82. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-84df4fd2-c0d8-4f4b-bcbb-e7c82de140f4'] 2024-10-29 16:36:43,516 - WARNING - Deleting VN ctest-vn-47822188 failed..Will retry 2024-10-29 16:36:45,641 - DEBUG - Response for deleting network () 2024-10-29 16:36:45,641 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/a98998b7-f356-43df-b5f2-7be65ad304c9 2024-10-29 16:36:45,651 - DEBUG - Response Code: 404 2024-10-29 16:36:45,651 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-29 16:36:45,660 - DEBUG - Requesting: http://10.0.0.40:8082/domain/655009fb-1f37-42f2-884e-d0ad9c499aa5 2024-10-29 16:36:45,717 - DEBUG - Requesting: http://10.0.0.40:8082/project/044b59b0-597c-499f-896d-e956e287edb9 2024-10-29 16:36:45,810 - INFO - Validated that VN ctest-vn-47822188 is not found in API Server 2024-10-29 16:36:45,823 - DEBUG - VN ctest-vn-47822188 is not present in Agent 10.0.0.40 2024-10-29 16:36:45,823 - INFO - Validated that VN ctest-vn-47822188 is not in any agent 2024-10-29 16:36:45,845 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-47822188 info 2024-10-29 16:36:45,845 - INFO - Deleting VN ctest-vn-04704788 2024-10-29 16:36:45,969 - DEBUG - Response for deleting network () 2024-10-29 16:36:45,969 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c781384e-c1dd-4e38-bd38-8dcecb198054 2024-10-29 16:36:45,976 - DEBUG - Response Code: 404 2024-10-29 16:36:45,976 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-29 16:36:45,984 - DEBUG - Requesting: http://10.0.0.40:8082/domain/655009fb-1f37-42f2-884e-d0ad9c499aa5 2024-10-29 16:36:46,040 - DEBUG - Requesting: http://10.0.0.40:8082/project/044b59b0-597c-499f-896d-e956e287edb9 2024-10-29 16:36:46,122 - INFO - Validated that VN ctest-vn-04704788 is not found in API Server 2024-10-29 16:36:46,133 - DEBUG - VN ctest-vn-04704788 is not present in Agent 10.0.0.40 2024-10-29 16:36:46,133 - INFO - Validated that VN ctest-vn-04704788 is not in any agent 2024-10-29 16:36:46,148 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-04704788 info 2024-10-29 16:36:46,404 - DEBUG - No XMPP flaps were noticed during the test 2024-10-29 16:36:46,404 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-10-29 16:36:46,405 - INFO - -------------------------------------------------------------------------------- 2024-10-29 16:36:47,145 - INFO - Deleted project: ctest-TestBasicPolicy-40275173, ID : 044b59b0-597c-499f-896d-e956e287edb9