2024-08-30 22:41:43,245 - INFO - Domain Default found not creating 2024-08-30 22:41:43,652 - INFO - Project ctest-TestBasicPolicy-36366581 not found, creating it 2024-08-30 22:41:44,506 - INFO - Created Project:ctest-TestBasicPolicy-36366581, ID : c127e400-3bfd-4bd5-a402-6520197760dd 2024-08-30 22:41:46,677 - INFO - ================================================================================ 2024-08-30 22:41:46,678 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-30 22:41:46,678 - 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-30 22:41:47,019 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.23': '0'}} with 2024-08-30 22:41:47,020 - INFO - Initial checks done. Running the testcase now 2024-08-30 22:41:47,020 - INFO - 2024-08-30 22:41:47,858 - DEBUG - Response for create_network : {'network': {'id': '98aaf73b-2278-4be4-a24c-afb6ade0e096', 'name': 'ctest-vn-78553854', 'tenant_id': 'c127e4003bfd4bd5a4026520197760dd', 'project_id': 'c127e4003bfd4bd5a4026520197760dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36366581', 'ctest-vn-78553854'], 'port_security_enabled': True, 'description': ''}} 2024-08-30 22:41:48,041 - DEBUG - Response for create_subnet : {'subnet': {'id': '2431168f-5684-4e8b-999e-992bce2727f0', 'name': '', 'tenant_id': 'c127e4003bfd4bd5a4026520197760dd', 'network_id': '98aaf73b-2278-4be4-a24c-afb6ade0e096', 'ip_version': 4, 'cidr': '86.34.53.64/26', 'allocation_pools': [{'start': '86.34.53.66', 'end': '86.34.53.126'}], 'gateway_ip': '86.34.53.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.34.53.66', 'tags': [], 'project_id': 'c127e4003bfd4bd5a4026520197760dd'}} 2024-08-30 22:41:48,063 - INFO - Created VN ctest-vn-78553854 2024-08-30 22:41:48,118 - DEBUG - VN ctest-vn-78553854 UUID is 98aaf73b-2278-4be4-a24c-afb6ade0e096 2024-08-30 22:41:48,675 - DEBUG - Response for create_network : {'network': {'id': '4f3ed8d6-3b89-4342-92a2-5258f1a90e67', 'name': 'ctest-vn-73094722', 'tenant_id': 'c127e4003bfd4bd5a4026520197760dd', 'project_id': 'c127e4003bfd4bd5a4026520197760dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36366581', 'ctest-vn-73094722'], 'port_security_enabled': True, 'description': ''}} 2024-08-30 22:41:48,913 - DEBUG - Response for create_subnet : {'subnet': {'id': '12e1f93e-5043-40a2-b300-e56960972133', 'name': '', 'tenant_id': 'c127e4003bfd4bd5a4026520197760dd', 'network_id': '4f3ed8d6-3b89-4342-92a2-5258f1a90e67', 'ip_version': 4, 'cidr': '179.137.150.128/26', 'allocation_pools': [{'start': '179.137.150.130', 'end': '179.137.150.190'}], 'gateway_ip': '179.137.150.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.137.150.130', 'tags': [], 'project_id': 'c127e4003bfd4bd5a4026520197760dd'}} 2024-08-30 22:41:48,936 - INFO - Created VN ctest-vn-73094722 2024-08-30 22:41:48,990 - DEBUG - VN ctest-vn-73094722 UUID is 4f3ed8d6-3b89-4342-92a2-5258f1a90e67 2024-08-30 22:41:49,159 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-78553854, 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-36366581:ctest-vn-73094722, 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-30 22:41:49,569 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '98aaf73b-2278-4be4-a24c-afb6ade0e096', 'name': 'ctest-vn-78553854', 'tenant_id': 'c127e4003bfd4bd5a4026520197760dd', 'project_id': 'c127e4003bfd4bd5a4026520197760dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2431168f-5684-4e8b-999e-992bce2727f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36366581', 'ctest-vn-78553854'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36366581', 'ctest-policy-allow-all-78628892']], 'subnet_ipam': [{'subnet_cidr': '86.34.53.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-30 22:41:49,914 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4f3ed8d6-3b89-4342-92a2-5258f1a90e67', 'name': 'ctest-vn-73094722', 'tenant_id': 'c127e4003bfd4bd5a4026520197760dd', 'project_id': 'c127e4003bfd4bd5a4026520197760dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['12e1f93e-5043-40a2-b300-e56960972133'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36366581', 'ctest-vn-73094722'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36366581', 'ctest-policy-allow-all-78628892']], 'subnet_ipam': [{'subnet_cidr': '179.137.150.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-30 22:41:50,073 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-08-30 22:41:50,442 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-08-30 22:41:50,481 - DEBUG - Requesting: http://10.0.0.34:8082/domain/604f29e2-a343-42a6-a1e5-5f38452423a7 2024-08-30 22:41:50,499 - DEBUG - Requesting: http://10.0.0.34:8082/project/c127e400-3bfd-4bd5-a402-6520197760dd 2024-08-30 22:41:50,596 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/98aaf73b-2278-4be4-a24c-afb6ade0e096 2024-08-30 22:41:50,612 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/98aaf73b-2278-4be4-a24c-afb6ade0e096 2024-08-30 22:41:50,623 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6ae38194-8503-4e57-b578-3d05ec3ed01a 2024-08-30 22:41:50,634 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6ae38194-8503-4e57-b578-3d05ec3ed01a 2024-08-30 22:41:50,641 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/f0a41ebd-8879-4f46-83b7-81369ad52d22 2024-08-30 22:41:50,647 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-30 22:41:50,647 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/98aaf73b-2278-4be4-a24c-afb6ade0e096 2024-08-30 22:41:50,662 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6ae38194-8503-4e57-b578-3d05ec3ed01a 2024-08-30 22:41:50,686 - INFO - Verified VN network id 7 for VN 98aaf73b-2278-4be4-a24c-afb6ade0e096 2024-08-30 22:41:50,686 - INFO - Verifications in API Server for VN ctest-vn-78553854 passed 2024-08-30 22:41:50,686 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/98aaf73b-2278-4be4-a24c-afb6ade0e096 2024-08-30 22:41:50,702 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6ae38194-8503-4e57-b578-3d05ec3ed01a 2024-08-30 22:41:50,716 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6ae38194-8503-4e57-b578-3d05ec3ed01a 2024-08-30 22:41:50,730 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/f0a41ebd-8879-4f46-83b7-81369ad52d22 2024-08-30 22:41:50,758 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-78553854', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36366581', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11000876873159298020', 'uuid-lslong': '11694915531510440086'}, 'enable': 'true', 'created': '2024-08-30T22:41:47', 'last-modified': '2024-08-30T22:41:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.216889'} 2024-08-30 22:41:50,778 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-30 22:41:50,778 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78553854 passed 2024-08-30 22:41:50,779 - DEBUG - ====Verifying policy data for ctest-vn-78553854 in API_Server ====== 2024-08-30 22:41:50,779 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-08-30 22:41:50,794 - DEBUG - Requesting: http://10.0.0.34:8082/domain/604f29e2-a343-42a6-a1e5-5f38452423a7 2024-08-30 22:41:50,829 - DEBUG - Requesting: http://10.0.0.34:8082/project/c127e400-3bfd-4bd5-a402-6520197760dd 2024-08-30 22:41:50,941 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/98aaf73b-2278-4be4-a24c-afb6ade0e096 2024-08-30 22:41:50,959 - DEBUG - ==>Verifying data for policy with id: bb21ea9c-9752-4263-aa35-944d3653d41c, fqn: ['default-domain', 'ctest-TestBasicPolicy-36366581', 'ctest-policy-allow-all-78628892'] 2024-08-30 22:41:50,959 - INFO - VN ctest-vn-78553854 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-30 22:41:50,959 - DEBUG - Verifying the vn in opserver 2024-08-30 22:41:50,959 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-78553854 virtual network link through opserver 10.0.0.34 2024-08-30 22:41:50,960 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-08-30 22:41:51,288 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-08-30 22:41:51,418 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-78553854', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-78553854?flat'} 2024-08-30 22:41:51,418 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-78553854 is found in opserver 2024-08-30 22:41:51,449 - DEBUG - Do not have enough data to verify VN in agent 2024-08-30 22:41:51,466 - DEBUG - VRF ids for VN ctest-vn-78553854: {} 2024-08-30 22:41:51,466 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-08-30 22:41:51,480 - DEBUG - Requesting: http://10.0.0.34:8082/domain/604f29e2-a343-42a6-a1e5-5f38452423a7 2024-08-30 22:41:51,512 - DEBUG - Requesting: http://10.0.0.34:8082/project/c127e400-3bfd-4bd5-a402-6520197760dd 2024-08-30 22:41:51,637 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4f3ed8d6-3b89-4342-92a2-5258f1a90e67 2024-08-30 22:41:51,666 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4f3ed8d6-3b89-4342-92a2-5258f1a90e67 2024-08-30 22:41:51,687 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/a522d933-d1d4-49b2-9599-ec88900b8333 2024-08-30 22:41:51,707 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/a522d933-d1d4-49b2-9599-ec88900b8333 2024-08-30 22:41:51,726 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/d6164391-f9a4-4130-9ae2-a2a0748dde1c 2024-08-30 22:41:51,742 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-30 22:41:51,742 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4f3ed8d6-3b89-4342-92a2-5258f1a90e67 2024-08-30 22:41:51,763 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/a522d933-d1d4-49b2-9599-ec88900b8333 2024-08-30 22:41:51,796 - INFO - Verified VN network id 8 for VN 4f3ed8d6-3b89-4342-92a2-5258f1a90e67 2024-08-30 22:41:51,797 - INFO - Verifications in API Server for VN ctest-vn-73094722 passed 2024-08-30 22:41:51,797 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4f3ed8d6-3b89-4342-92a2-5258f1a90e67 2024-08-30 22:41:51,827 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/a522d933-d1d4-49b2-9599-ec88900b8333 2024-08-30 22:41:51,850 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/a522d933-d1d4-49b2-9599-ec88900b8333 2024-08-30 22:41:51,876 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/d6164391-f9a4-4130-9ae2-a2a0748dde1c 2024-08-30 22:41:51,918 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-73094722', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36366581', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5710239792185819970', 'uuid-lslong': '10566098217729592935'}, 'enable': 'true', 'created': '2024-08-30T22:41:48', 'last-modified': '2024-08-30T22:41:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.056376'} 2024-08-30 22:41:51,940 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-30 22:41:51,940 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73094722 passed 2024-08-30 22:41:51,940 - DEBUG - ====Verifying policy data for ctest-vn-73094722 in API_Server ====== 2024-08-30 22:41:51,941 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-08-30 22:41:51,959 - DEBUG - Requesting: http://10.0.0.34:8082/domain/604f29e2-a343-42a6-a1e5-5f38452423a7 2024-08-30 22:41:52,007 - DEBUG - Requesting: http://10.0.0.34:8082/project/c127e400-3bfd-4bd5-a402-6520197760dd 2024-08-30 22:41:52,079 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4f3ed8d6-3b89-4342-92a2-5258f1a90e67 2024-08-30 22:41:52,098 - DEBUG - ==>Verifying data for policy with id: bb21ea9c-9752-4263-aa35-944d3653d41c, fqn: ['default-domain', 'ctest-TestBasicPolicy-36366581', 'ctest-policy-allow-all-78628892'] 2024-08-30 22:41:52,098 - INFO - VN ctest-vn-73094722 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-30 22:41:52,098 - DEBUG - Verifying the vn in opserver 2024-08-30 22:41:52,098 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-73094722 virtual network link through opserver 10.0.0.34 2024-08-30 22:41:52,098 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2024-08-30 22:41:52,122 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-73094722', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-73094722?flat'} 2024-08-30 22:41:52,123 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-73094722 is found in opserver 2024-08-30 22:41:52,148 - DEBUG - Do not have enough data to verify VN in agent 2024-08-30 22:41:52,164 - DEBUG - VRF ids for VN ctest-vn-73094722: {} 2024-08-30 22:41:52,264 - DEBUG - Services list from nova: [, , ] 2024-08-30 22:41:53,794 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1827-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1827-1) 2024-08-30 22:41:55,544 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1827-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1827-1) 2024-08-30 22:41:55,544 - INFO - Waiting for VM ctest-TestBasicPolicy-36366581-01051114 to be up.. 2024-08-30 22:41:55,658 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-30 22:42:00,857 - DEBUG - VM is in ACTIVE state now 2024-08-30 22:42:00,857 - INFO - VM name : ctest-TestBasicPolicy-36366581-01051114 2024-08-30 22:42:01,001 - DEBUG - VM ctest-TestBasicPolicy-36366581-01051114 ID is d2c0d753-7b72-48f0-90c1-32dd148436f5 2024-08-30 22:42:01,041 - DEBUG - VM ctest-TestBasicPolicy-36366581-01051114 launched on Node cn-jenkins-deploy-platform-ansible-os-1827-1 2024-08-30 22:42:01,237 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/d2c0d753-7b72-48f0-90c1-32dd148436f5 2024-08-30 22:42:01,254 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/a0900291-63b4-4ee1-8175-5b19c6e93ea9 2024-08-30 22:42:04,556 - 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 1011ms') 2024-08-30 22:42:04,556 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-36366581-01051114 failed! 2024-08-30 22:42:04,614 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-78553854 is 86.34.53.65 and allocation pool is NOT set 2024-08-30 22:42:06,688 - 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=11.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.20 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 = 3.197/7.181/11.165/3.984 ms') 2024-08-30 22:42:06,688 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-36366581-01051114 passed 2024-08-30 22:42:06,886 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 22:42:06,887 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-36366581-01051114, IP 86.34.53.67, Port 22 2024-08-30 22:42:06,969 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-08-30 22:42:07,153 - DEBUG - VM ctest-TestBasicPolicy-36366581-01051114 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-30 22:42:12,154 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 22:42:12,155 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-36366581-01051114, IP 86.34.53.67, Port 22 2024-08-30 22:42:12,364 - DEBUG - VM ctest-TestBasicPolicy-36366581-01051114 is ready for SSH connections 2024-08-30 22:42:12,365 - INFO - Waiting for VM ctest-TestBasicPolicy-36366581-72067297 to be up.. 2024-08-30 22:42:12,585 - DEBUG - VM is in ACTIVE state now 2024-08-30 22:42:12,585 - INFO - VM name : ctest-TestBasicPolicy-36366581-72067297 2024-08-30 22:42:12,733 - DEBUG - VM ctest-TestBasicPolicy-36366581-72067297 ID is 077cb47f-1a72-438d-be6a-32aafc2eb0a8 2024-08-30 22:42:12,734 - DEBUG - VM ctest-TestBasicPolicy-36366581-72067297 launched on Node cn-jenkins-deploy-platform-ansible-os-1827-1 2024-08-30 22:42:12,842 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/077cb47f-1a72-438d-be6a-32aafc2eb0a8 2024-08-30 22:42:12,853 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/ba5de852-26fc-40c5-9afb-ab26cf9d1a37 2024-08-30 22:42:14,147 - 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=9.87 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.728 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.728/5.300/9.873/4.572 ms') 2024-08-30 22:42:14,148 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-36366581-72067297 passed 2024-08-30 22:42:14,346 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 22:42:14,346 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-36366581-72067297, IP 179.137.150.131, Port 22 2024-08-30 22:42:14,553 - DEBUG - VM ctest-TestBasicPolicy-36366581-72067297 is ready for SSH connections 2024-08-30 22:42:14,553 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 22:42:14,553 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 179.137.150.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-08-30 22:42:14,554 - DEBUG - ping -s 56 -c 3 -W 1 179.137.150.131 2024-08-30 22:42:19,123 - DEBUG - PING 179.137.150.131 (179.137.150.131): 56 data bytes 64 bytes from 179.137.150.131: seq=0 ttl=63 time=3.576 ms 64 bytes from 179.137.150.131: seq=1 ttl=63 time=2.304 ms 64 bytes from 179.137.150.131: seq=2 ttl=63 time=1.738 ms --- 179.137.150.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.738/2.539/3.576 ms 2024-08-30 22:42:19,124 - INFO - Ping to IP 179.137.150.131 from VM ctest-TestBasicPolicy-36366581-01051114 passed 2024-08-30 22:42:19,389 - DEBUG - Policy Update Response {"network-policy": {"uuid": "bb21ea9c-9752-4263-aa35-944d3653d41c", "href": "http://10.0.0.34:8082/network-policy/bb21ea9c-9752-4263-aa35-944d3653d41c"}} 2024-08-30 22:42:19,390 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-30 22:42:19,390 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 179.137.150.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2024-08-30 22:42:19,390 - DEBUG - ping -s 56 -c 3 -W 1 179.137.150.131 2024-08-30 22:42:22,638 - DEBUG - PING 179.137.150.131 (179.137.150.131): 56 data bytes --- 179.137.150.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-30 22:42:22,639 - WARNING - Ping to IP 179.137.150.131 from VM ctest-TestBasicPolicy-36366581-01051114 failed 2024-08-30 22:42:22,640 - INFO - Deleting VM ctest-TestBasicPolicy-36366581-72067297 2024-08-30 22:42:22,787 - INFO - Deleting VM ctest-TestBasicPolicy-36366581-01051114 2024-08-30 22:42:23,511 - INFO - Deleted policy ctest-policy-allow-all-78628892 2024-08-30 22:42:23,511 - INFO - Deleting VN ctest-vn-73094722 2024-08-30 22:42:23,574 - DEBUG - VN 4f3ed8d6-3b89-4342-92a2-5258f1a90e67 still in use: Unable to complete operation on network 4f3ed8d6-3b89-4342-92a2-5258f1a90e67. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-aaf0c84b-97dd-46b9-a106-69de4d0ddb62'] 2024-08-30 22:42:23,574 - WARNING - Deleting VN ctest-vn-73094722 failed..Will retry 2024-08-30 22:42:25,815 - DEBUG - Response for deleting network () 2024-08-30 22:42:25,815 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/a522d933-d1d4-49b2-9599-ec88900b8333 2024-08-30 22:42:25,834 - DEBUG - Response Code: 404 2024-08-30 22:42:25,835 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-08-30 22:42:25,847 - DEBUG - Requesting: http://10.0.0.34:8082/domain/604f29e2-a343-42a6-a1e5-5f38452423a7 2024-08-30 22:42:25,874 - DEBUG - Requesting: http://10.0.0.34:8082/project/c127e400-3bfd-4bd5-a402-6520197760dd 2024-08-30 22:42:25,985 - INFO - Validated that VN ctest-vn-73094722 is not found in API Server 2024-08-30 22:42:26,011 - DEBUG - VN ctest-vn-73094722 is not present in Agent 10.0.0.34 2024-08-30 22:42:26,011 - INFO - Validated that VN ctest-vn-73094722 is not in any agent 2024-08-30 22:42:26,051 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-73094722 info 2024-08-30 22:42:26,052 - INFO - Deleting VN ctest-vn-78553854 2024-08-30 22:42:26,287 - DEBUG - Response for deleting network () 2024-08-30 22:42:26,287 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6ae38194-8503-4e57-b578-3d05ec3ed01a 2024-08-30 22:42:26,294 - DEBUG - Response Code: 404 2024-08-30 22:42:26,295 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2024-08-30 22:42:26,308 - DEBUG - Requesting: http://10.0.0.34:8082/domain/604f29e2-a343-42a6-a1e5-5f38452423a7 2024-08-30 22:42:26,373 - DEBUG - Requesting: http://10.0.0.34:8082/project/c127e400-3bfd-4bd5-a402-6520197760dd 2024-08-30 22:42:26,491 - INFO - Validated that VN ctest-vn-78553854 is not found in API Server 2024-08-30 22:42:26,529 - DEBUG - VN ctest-vn-78553854 is not present in Agent 10.0.0.34 2024-08-30 22:42:26,529 - INFO - Validated that VN ctest-vn-78553854 is not in any agent 2024-08-30 22:42:26,583 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-78553854 info 2024-08-30 22:42:26,922 - DEBUG - No XMPP flaps were noticed during the test 2024-08-30 22:42:26,922 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:40] 2024-08-30 22:42:26,923 - INFO - -------------------------------------------------------------------------------- 2024-08-30 22:42:27,893 - INFO - Deleted project: ctest-TestBasicPolicy-36366581, ID : c127e400-3bfd-4bd5-a402-6520197760dd