2024-08-29 20:50:38,393 - INFO - Domain Default found not creating 2024-08-29 20:50:38,540 - INFO - Project ctest-TestBasicPolicy-12074024 not found, creating it 2024-08-29 20:50:39,046 - INFO - Created Project:ctest-TestBasicPolicy-12074024, ID : 70ddc347-cdbc-4bad-abfe-27933b7fb18d 2024-08-29 20:50:40,498 - INFO - ================================================================================ 2024-08-29 20:50:40,498 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-29 20:50:40,498 - 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-08-29 20:50:40,758 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.19': '0'}} with 2024-08-29 20:50:40,758 - INFO - Initial checks done. Running the testcase now 2024-08-29 20:50:40,758 - INFO - 2024-08-29 20:50:41,306 - DEBUG - Response for create_network : {'network': {'id': '3370e9a6-950e-42e0-9f97-54cfe6434b60', 'name': 'ctest-vn-45412540', 'tenant_id': '70ddc347cdbc4badabfe27933b7fb18d', 'project_id': '70ddc347cdbc4badabfe27933b7fb18d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12074024', 'ctest-vn-45412540'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 20:50:41,488 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db7b4f2b-8ddb-45c0-8d2e-87285cf918b9', 'name': '', 'tenant_id': '70ddc347cdbc4badabfe27933b7fb18d', 'network_id': '3370e9a6-950e-42e0-9f97-54cfe6434b60', 'ip_version': 4, 'cidr': '88.141.31.0/26', 'allocation_pools': [{'start': '88.141.31.2', 'end': '88.141.31.62'}], 'gateway_ip': '88.141.31.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.141.31.2', 'tags': [], 'project_id': '70ddc347cdbc4badabfe27933b7fb18d'}} 2024-08-29 20:50:41,509 - INFO - Created VN ctest-vn-45412540 2024-08-29 20:50:41,561 - DEBUG - VN ctest-vn-45412540 UUID is 3370e9a6-950e-42e0-9f97-54cfe6434b60 2024-08-29 20:50:41,841 - DEBUG - Response for create_network : {'network': {'id': '20b8f293-2370-47e6-846f-096a7ea551fa', 'name': 'ctest-vn-57906525', 'tenant_id': '70ddc347cdbc4badabfe27933b7fb18d', 'project_id': '70ddc347cdbc4badabfe27933b7fb18d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12074024', 'ctest-vn-57906525'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 20:50:41,998 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ca3c0ca-bf3b-4125-9a52-00b741950016', 'name': '', 'tenant_id': '70ddc347cdbc4badabfe27933b7fb18d', 'network_id': '20b8f293-2370-47e6-846f-096a7ea551fa', 'ip_version': 4, 'cidr': '218.247.61.0/26', 'allocation_pools': [{'start': '218.247.61.2', 'end': '218.247.61.62'}], 'gateway_ip': '218.247.61.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.247.61.2', 'tags': [], 'project_id': '70ddc347cdbc4badabfe27933b7fb18d'}} 2024-08-29 20:50:42,017 - INFO - Created VN ctest-vn-57906525 2024-08-29 20:50:42,069 - DEBUG - VN ctest-vn-57906525 UUID is 20b8f293-2370-47e6-846f-096a7ea551fa 2024-08-29 20:50:42,177 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-45412540, 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-12074024:ctest-vn-57906525, 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-08-29 20:50:42,466 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3370e9a6-950e-42e0-9f97-54cfe6434b60', 'name': 'ctest-vn-45412540', 'tenant_id': '70ddc347cdbc4badabfe27933b7fb18d', 'project_id': '70ddc347cdbc4badabfe27933b7fb18d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db7b4f2b-8ddb-45c0-8d2e-87285cf918b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12074024', 'ctest-vn-45412540'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12074024', 'ctest-policy-allow-all-83858151']], 'subnet_ipam': [{'subnet_cidr': '88.141.31.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-29 20:50:42,710 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '20b8f293-2370-47e6-846f-096a7ea551fa', 'name': 'ctest-vn-57906525', 'tenant_id': '70ddc347cdbc4badabfe27933b7fb18d', 'project_id': '70ddc347cdbc4badabfe27933b7fb18d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9ca3c0ca-bf3b-4125-9a52-00b741950016'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12074024', 'ctest-vn-57906525'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12074024', 'ctest-policy-allow-all-83858151']], 'subnet_ipam': [{'subnet_cidr': '218.247.61.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-29 20:50:42,829 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-08-29 20:50:43,123 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-08-29 20:50:43,155 - DEBUG - Requesting: http://10.0.0.44:8082/domain/edf20fba-2d31-44c9-9c4d-cbe82eab3e91 2024-08-29 20:50:43,168 - DEBUG - Requesting: http://10.0.0.44:8082/project/70ddc347-cdbc-4bad-abfe-27933b7fb18d 2024-08-29 20:50:43,237 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/3370e9a6-950e-42e0-9f97-54cfe6434b60 2024-08-29 20:50:43,247 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/3370e9a6-950e-42e0-9f97-54cfe6434b60 2024-08-29 20:50:43,254 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/615c284c-d1de-40b0-afce-821a6a9a3696 2024-08-29 20:50:43,260 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/615c284c-d1de-40b0-afce-821a6a9a3696 2024-08-29 20:50:43,266 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/02ecc524-5fda-4d28-986a-fc336bba44af 2024-08-29 20:50:43,272 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-29 20:50:43,272 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/3370e9a6-950e-42e0-9f97-54cfe6434b60 2024-08-29 20:50:43,279 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/615c284c-d1de-40b0-afce-821a6a9a3696 2024-08-29 20:50:43,290 - INFO - Verified VN network id 7 for VN 3370e9a6-950e-42e0-9f97-54cfe6434b60 2024-08-29 20:50:43,290 - INFO - Verifications in API Server for VN ctest-vn-45412540 passed 2024-08-29 20:50:43,290 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/3370e9a6-950e-42e0-9f97-54cfe6434b60 2024-08-29 20:50:43,297 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/615c284c-d1de-40b0-afce-821a6a9a3696 2024-08-29 20:50:43,302 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/615c284c-d1de-40b0-afce-821a6a9a3696 2024-08-29 20:50:43,308 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/02ecc524-5fda-4d28-986a-fc336bba44af 2024-08-29 20:50:43,319 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-45412540', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12074024', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3706719395000500960', 'uuid-lslong': '11499753425411984224'}, 'enable': 'true', 'created': '2024-08-29T20:50:41', 'last-modified': '2024-08-29T20:50:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.875239'} 2024-08-29 20:50:43,326 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-29 20:50:43,326 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45412540 passed 2024-08-29 20:50:43,326 - DEBUG - ====Verifying policy data for ctest-vn-45412540 in API_Server ====== 2024-08-29 20:50:43,326 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-08-29 20:50:43,331 - DEBUG - Requesting: http://10.0.0.44:8082/domain/edf20fba-2d31-44c9-9c4d-cbe82eab3e91 2024-08-29 20:50:43,342 - DEBUG - Requesting: http://10.0.0.44:8082/project/70ddc347-cdbc-4bad-abfe-27933b7fb18d 2024-08-29 20:50:43,410 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/3370e9a6-950e-42e0-9f97-54cfe6434b60 2024-08-29 20:50:43,417 - DEBUG - ==>Verifying data for policy with id: 0ef9b941-9f8c-494a-a20f-416e80440bc8, fqn: ['default-domain', 'ctest-TestBasicPolicy-12074024', 'ctest-policy-allow-all-83858151'] 2024-08-29 20:50:43,418 - INFO - VN ctest-vn-45412540 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-29 20:50:43,418 - DEBUG - Verifying the vn in opserver 2024-08-29 20:50:43,418 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-45412540 virtual network link through opserver 10.0.0.44 2024-08-29 20:50:43,418 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-08-29 20:50:43,711 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-08-29 20:50:43,773 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-45412540', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-45412540?flat'} 2024-08-29 20:50:43,773 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-45412540 is found in opserver 2024-08-29 20:50:43,783 - DEBUG - Do not have enough data to verify VN in agent 2024-08-29 20:50:43,788 - DEBUG - VRF ids for VN ctest-vn-45412540: {} 2024-08-29 20:50:43,788 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-08-29 20:50:43,794 - DEBUG - Requesting: http://10.0.0.44:8082/domain/edf20fba-2d31-44c9-9c4d-cbe82eab3e91 2024-08-29 20:50:43,805 - DEBUG - Requesting: http://10.0.0.44:8082/project/70ddc347-cdbc-4bad-abfe-27933b7fb18d 2024-08-29 20:50:43,871 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/20b8f293-2370-47e6-846f-096a7ea551fa 2024-08-29 20:50:43,881 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/20b8f293-2370-47e6-846f-096a7ea551fa 2024-08-29 20:50:43,894 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/93805ef0-96ca-4b3d-8592-b7b7a92f1d86 2024-08-29 20:50:43,906 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/93805ef0-96ca-4b3d-8592-b7b7a92f1d86 2024-08-29 20:50:43,915 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/c68308d8-740e-4f5c-8c2a-a9f054c7544d 2024-08-29 20:50:43,926 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-29 20:50:43,926 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/20b8f293-2370-47e6-846f-096a7ea551fa 2024-08-29 20:50:43,935 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/93805ef0-96ca-4b3d-8592-b7b7a92f1d86 2024-08-29 20:50:43,946 - INFO - Verified VN network id 8 for VN 20b8f293-2370-47e6-846f-096a7ea551fa 2024-08-29 20:50:43,946 - INFO - Verifications in API Server for VN ctest-vn-57906525 passed 2024-08-29 20:50:43,946 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/20b8f293-2370-47e6-846f-096a7ea551fa 2024-08-29 20:50:43,955 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/93805ef0-96ca-4b3d-8592-b7b7a92f1d86 2024-08-29 20:50:43,960 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/93805ef0-96ca-4b3d-8592-b7b7a92f1d86 2024-08-29 20:50:43,967 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/c68308d8-740e-4f5c-8c2a-a9f054c7544d 2024-08-29 20:50:43,982 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-57906525', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12074024', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2357901118697129958', 'uuid-lslong': '9542856488417317370'}, 'enable': 'true', 'created': '2024-08-29T20:50:41', 'last-modified': '2024-08-29T20:50:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.296961'} 2024-08-29 20:50:43,988 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-29 20:50:43,988 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57906525 passed 2024-08-29 20:50:43,988 - DEBUG - ====Verifying policy data for ctest-vn-57906525 in API_Server ====== 2024-08-29 20:50:43,988 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-08-29 20:50:43,993 - DEBUG - Requesting: http://10.0.0.44:8082/domain/edf20fba-2d31-44c9-9c4d-cbe82eab3e91 2024-08-29 20:50:44,006 - DEBUG - Requesting: http://10.0.0.44:8082/project/70ddc347-cdbc-4bad-abfe-27933b7fb18d 2024-08-29 20:50:44,078 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/20b8f293-2370-47e6-846f-096a7ea551fa 2024-08-29 20:50:44,087 - DEBUG - ==>Verifying data for policy with id: 0ef9b941-9f8c-494a-a20f-416e80440bc8, fqn: ['default-domain', 'ctest-TestBasicPolicy-12074024', 'ctest-policy-allow-all-83858151'] 2024-08-29 20:50:44,087 - INFO - VN ctest-vn-57906525 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-29 20:50:44,087 - DEBUG - Verifying the vn in opserver 2024-08-29 20:50:44,087 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-57906525 virtual network link through opserver 10.0.0.44 2024-08-29 20:50:44,087 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-08-29 20:50:44,104 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-57906525', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-57906525?flat'} 2024-08-29 20:50:44,104 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-57906525 is found in opserver 2024-08-29 20:50:44,114 - DEBUG - Do not have enough data to verify VN in agent 2024-08-29 20:50:44,120 - DEBUG - VRF ids for VN ctest-vn-57906525: {} 2024-08-29 20:50:44,171 - DEBUG - Services list from nova: [, , ] 2024-08-29 20:50:45,231 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1817-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1817-1) 2024-08-29 20:50:46,466 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1817-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1817-1) 2024-08-29 20:50:46,466 - INFO - Waiting for VM ctest-TestBasicPolicy-12074024-77313318 to be up.. 2024-08-29 20:50:46,541 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-29 20:50:51,615 - DEBUG - VM is in ACTIVE state now 2024-08-29 20:50:51,615 - INFO - VM name : ctest-TestBasicPolicy-12074024-77313318 2024-08-29 20:50:51,685 - DEBUG - VM ctest-TestBasicPolicy-12074024-77313318 ID is 4fa92d35-f815-4d57-84d4-3be2937a87b3 2024-08-29 20:50:51,702 - DEBUG - VM ctest-TestBasicPolicy-12074024-77313318 launched on Node cn-jenkins-deploy-platform-ansible-os-1817-1 2024-08-29 20:50:51,774 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/4fa92d35-f815-4d57-84d4-3be2937a87b3 2024-08-29 20:50:51,782 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/4c5ed4cf-624a-4278-802b-28847cdec957 2024-08-29 20:50:55,046 - 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 1031ms') 2024-08-29 20:50:55,046 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-12074024-77313318 failed! 2024-08-29 20:50:55,101 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-45412540 is 88.141.31.1 and allocation pool is NOT set 2024-08-29 20:50:57,163 - 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.30 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.388 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.388/1.845/3.302/1.457 ms') 2024-08-29 20:50:57,163 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-12074024-77313318 passed 2024-08-29 20:50:57,313 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 20:50:57,313 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-12074024-77313318, IP 88.141.31.3, Port 22 2024-08-29 20:50:57,468 - DEBUG - VM ctest-TestBasicPolicy-12074024-77313318 is ready for SSH connections 2024-08-29 20:50:57,468 - INFO - Waiting for VM ctest-TestBasicPolicy-12074024-40055303 to be up.. 2024-08-29 20:50:57,541 - DEBUG - VM is in ACTIVE state now 2024-08-29 20:50:57,541 - INFO - VM name : ctest-TestBasicPolicy-12074024-40055303 2024-08-29 20:50:57,611 - DEBUG - VM ctest-TestBasicPolicy-12074024-40055303 ID is 00982891-9701-4fd8-b4e8-012afd9516fe 2024-08-29 20:50:57,611 - DEBUG - VM ctest-TestBasicPolicy-12074024-40055303 launched on Node cn-jenkins-deploy-platform-ansible-os-1817-1 2024-08-29 20:50:57,683 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/00982891-9701-4fd8-b4e8-012afd9516fe 2024-08-29 20:50:57,691 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/4061d33f-d5b2-4e75-91e2-19c0839c6461 2024-08-29 20:50:58,930 - 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.64 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.376 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.376/1.505/2.635/1.129 ms') 2024-08-29 20:50:58,930 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-12074024-40055303 passed 2024-08-29 20:50:59,081 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 20:50:59,081 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-12074024-40055303, IP 218.247.61.3, Port 22 2024-08-29 20:50:59,247 - DEBUG - VM ctest-TestBasicPolicy-12074024-40055303 is ready for SSH connections 2024-08-29 20:50:59,248 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 20:50:59,248 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 218.247.61.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-08-29 20:50:59,248 - DEBUG - ping -s 56 -c 3 -W 1 218.247.61.3 2024-08-29 20:51:03,221 - DEBUG - PING 218.247.61.3 (218.247.61.3): 56 data bytes 64 bytes from 218.247.61.3: seq=0 ttl=63 time=3.357 ms 64 bytes from 218.247.61.3: seq=1 ttl=63 time=0.638 ms 64 bytes from 218.247.61.3: seq=2 ttl=63 time=0.875 ms --- 218.247.61.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.638/1.623/3.357 ms 2024-08-29 20:51:03,221 - INFO - Ping to IP 218.247.61.3 from VM ctest-TestBasicPolicy-12074024-77313318 passed 2024-08-29 20:51:03,396 - DEBUG - Policy Update Response {"network-policy": {"uuid": "0ef9b941-9f8c-494a-a20f-416e80440bc8", "href": "http://10.0.0.44:8082/network-policy/0ef9b941-9f8c-494a-a20f-416e80440bc8"}} 2024-08-29 20:51:03,397 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 20:51:03,397 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 218.247.61.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-08-29 20:51:03,397 - DEBUG - ping -s 56 -c 3 -W 1 218.247.61.3 2024-08-29 20:51:06,611 - DEBUG - PING 218.247.61.3 (218.247.61.3): 56 data bytes --- 218.247.61.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-29 20:51:06,612 - WARNING - Ping to IP 218.247.61.3 from VM ctest-TestBasicPolicy-12074024-77313318 failed 2024-08-29 20:51:06,612 - INFO - Deleting VM ctest-TestBasicPolicy-12074024-40055303 2024-08-29 20:51:06,679 - INFO - Deleting VM ctest-TestBasicPolicy-12074024-77313318 2024-08-29 20:51:10,382 - INFO - Deleted policy ctest-policy-allow-all-83858151 2024-08-29 20:51:10,382 - INFO - Deleting VN ctest-vn-57906525 2024-08-29 20:51:10,422 - DEBUG - VN 20b8f293-2370-47e6-846f-096a7ea551fa still in use: Unable to complete operation on network 20b8f293-2370-47e6-846f-096a7ea551fa. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f5d3b3dc-ea4b-455a-ac45-8bc391b56ff3'] 2024-08-29 20:51:10,422 - WARNING - Deleting VN ctest-vn-57906525 failed..Will retry 2024-08-29 20:51:12,528 - DEBUG - Response for deleting network () 2024-08-29 20:51:12,528 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/93805ef0-96ca-4b3d-8592-b7b7a92f1d86 2024-08-29 20:51:12,534 - DEBUG - Response Code: 404 2024-08-29 20:51:12,534 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-08-29 20:51:12,539 - DEBUG - Requesting: http://10.0.0.44:8082/domain/edf20fba-2d31-44c9-9c4d-cbe82eab3e91 2024-08-29 20:51:12,593 - DEBUG - Requesting: http://10.0.0.44:8082/project/70ddc347-cdbc-4bad-abfe-27933b7fb18d 2024-08-29 20:51:12,664 - INFO - Validated that VN ctest-vn-57906525 is not found in API Server 2024-08-29 20:51:12,675 - DEBUG - VN ctest-vn-57906525 is not present in Agent 10.0.0.44 2024-08-29 20:51:12,675 - INFO - Validated that VN ctest-vn-57906525 is not in any agent 2024-08-29 20:51:12,689 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57906525 info 2024-08-29 20:51:12,689 - INFO - Deleting VN ctest-vn-45412540 2024-08-29 20:51:12,787 - DEBUG - Response for deleting network () 2024-08-29 20:51:12,787 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/615c284c-d1de-40b0-afce-821a6a9a3696 2024-08-29 20:51:12,796 - DEBUG - Response Code: 404 2024-08-29 20:51:12,796 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-08-29 20:51:12,801 - DEBUG - Requesting: http://10.0.0.44:8082/domain/edf20fba-2d31-44c9-9c4d-cbe82eab3e91 2024-08-29 20:51:12,854 - DEBUG - Requesting: http://10.0.0.44:8082/project/70ddc347-cdbc-4bad-abfe-27933b7fb18d 2024-08-29 20:51:12,925 - INFO - Validated that VN ctest-vn-45412540 is not found in API Server 2024-08-29 20:51:12,939 - DEBUG - VN ctest-vn-45412540 is not present in Agent 10.0.0.44 2024-08-29 20:51:12,939 - INFO - Validated that VN ctest-vn-45412540 is not in any agent 2024-08-29 20:51:12,957 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-45412540 info 2024-08-29 20:51:13,210 - DEBUG - No XMPP flaps were noticed during the test
2024-08-29 20:51:13,210 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:33]
2024-08-29 20:51:13,210 - INFO - -------------------------------------------------------------------------------- 2024-08-29 20:51:13,870 - INFO - Deleted project: ctest-TestBasicPolicy-12074024, ID : 70ddc347-cdbc-4bad-abfe-27933b7fb18d