2024-10-23 18:07:50,882 - INFO - Domain Default found not creating 2024-10-23 18:07:51,095 - INFO - Project ctest-TestBasicPolicy-08874671 not found, creating it 2024-10-23 18:07:51,796 - INFO - Created Project:ctest-TestBasicPolicy-08874671, ID : 914132cc-2bb9-470b-8deb-0212787fe852 2024-10-23 18:07:53,419 - INFO - ================================================================================ 2024-10-23 18:07:53,419 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-23 18:07:53,420 - 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-23 18:07:53,682 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.6': '0'}} with 2024-10-23 18:07:53,682 - INFO - Initial checks done. Running the testcase now 2024-10-23 18:07:53,682 - INFO - 2024-10-23 18:07:54,348 - DEBUG - Response for create_network : {'network': {'id': '27301014-6b31-4e8d-bb85-b00b7b8f2465', 'name': 'ctest-vn-59896120', 'tenant_id': '914132cc2bb9470b8deb0212787fe852', 'project_id': '914132cc2bb9470b8deb0212787fe852', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08874671', 'ctest-vn-59896120'], 'port_security_enabled': True, 'description': ''}} 2024-10-23 18:07:54,612 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6c08d77-9b6a-453e-9b24-f287b7f7cfa5', 'name': '', 'tenant_id': '914132cc2bb9470b8deb0212787fe852', 'network_id': '27301014-6b31-4e8d-bb85-b00b7b8f2465', 'ip_version': 4, 'cidr': '149.174.214.0/26', 'allocation_pools': [{'start': '149.174.214.2', 'end': '149.174.214.62'}], 'gateway_ip': '149.174.214.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.174.214.2', 'tags': [], 'project_id': '914132cc2bb9470b8deb0212787fe852'}} 2024-10-23 18:07:54,634 - INFO - Created VN ctest-vn-59896120 2024-10-23 18:07:54,694 - DEBUG - VN ctest-vn-59896120 UUID is 27301014-6b31-4e8d-bb85-b00b7b8f2465 2024-10-23 18:07:55,043 - DEBUG - Response for create_network : {'network': {'id': '3aaa3e13-922b-47c0-931f-8de41288ca6c', 'name': 'ctest-vn-85429427', 'tenant_id': '914132cc2bb9470b8deb0212787fe852', 'project_id': '914132cc2bb9470b8deb0212787fe852', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08874671', 'ctest-vn-85429427'], 'port_security_enabled': True, 'description': ''}} 2024-10-23 18:07:55,273 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba14e682-3bca-4f9b-b96e-18daf3b24235', 'name': '', 'tenant_id': '914132cc2bb9470b8deb0212787fe852', 'network_id': '3aaa3e13-922b-47c0-931f-8de41288ca6c', 'ip_version': 4, 'cidr': '144.161.78.0/26', 'allocation_pools': [{'start': '144.161.78.2', 'end': '144.161.78.62'}], 'gateway_ip': '144.161.78.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.161.78.2', 'tags': [], 'project_id': '914132cc2bb9470b8deb0212787fe852'}} 2024-10-23 18:07:55,295 - INFO - Created VN ctest-vn-85429427 2024-10-23 18:07:55,358 - DEBUG - VN ctest-vn-85429427 UUID is 3aaa3e13-922b-47c0-931f-8de41288ca6c 2024-10-23 18:07:55,501 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-59896120, 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-08874671:ctest-vn-85429427, 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-23 18:07:55,901 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '27301014-6b31-4e8d-bb85-b00b7b8f2465', 'name': 'ctest-vn-59896120', 'tenant_id': '914132cc2bb9470b8deb0212787fe852', 'project_id': '914132cc2bb9470b8deb0212787fe852', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c6c08d77-9b6a-453e-9b24-f287b7f7cfa5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08874671', 'ctest-vn-59896120'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08874671', 'ctest-policy-allow-all-15992487']], 'subnet_ipam': [{'subnet_cidr': '149.174.214.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-23 18:07:56,195 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3aaa3e13-922b-47c0-931f-8de41288ca6c', 'name': 'ctest-vn-85429427', 'tenant_id': '914132cc2bb9470b8deb0212787fe852', 'project_id': '914132cc2bb9470b8deb0212787fe852', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ba14e682-3bca-4f9b-b96e-18daf3b24235'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08874671', 'ctest-vn-85429427'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08874671', 'ctest-policy-allow-all-15992487']], 'subnet_ipam': [{'subnet_cidr': '144.161.78.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-23 18:07:56,382 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-10-23 18:07:56,700 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-10-23 18:07:56,744 - DEBUG - Requesting: http://10.0.0.45:8082/domain/563e2a4a-ad82-46b3-aa7a-3322071980c9 2024-10-23 18:07:56,767 - DEBUG - Requesting: http://10.0.0.45:8082/project/914132cc-2bb9-470b-8deb-0212787fe852 2024-10-23 18:07:56,867 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/27301014-6b31-4e8d-bb85-b00b7b8f2465 2024-10-23 18:07:56,885 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/27301014-6b31-4e8d-bb85-b00b7b8f2465 2024-10-23 18:07:56,902 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/72bc4571-f1ba-452c-8521-9c7e154b72d4 2024-10-23 18:07:56,914 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/72bc4571-f1ba-452c-8521-9c7e154b72d4 2024-10-23 18:07:56,926 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/73404013-65b2-4e35-b4ed-94cb7bd3932c 2024-10-23 18:07:56,936 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-23 18:07:56,936 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/27301014-6b31-4e8d-bb85-b00b7b8f2465 2024-10-23 18:07:56,957 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/72bc4571-f1ba-452c-8521-9c7e154b72d4 2024-10-23 18:07:56,984 - INFO - Verified VN network id 7 for VN 27301014-6b31-4e8d-bb85-b00b7b8f2465 2024-10-23 18:07:56,984 - INFO - Verifications in API Server for VN ctest-vn-59896120 passed 2024-10-23 18:07:56,984 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/27301014-6b31-4e8d-bb85-b00b7b8f2465 2024-10-23 18:07:57,005 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/72bc4571-f1ba-452c-8521-9c7e154b72d4 2024-10-23 18:07:57,017 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/72bc4571-f1ba-452c-8521-9c7e154b72d4 2024-10-23 18:07:57,029 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/73404013-65b2-4e35-b4ed-94cb7bd3932c 2024-10-23 18:07:57,049 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-59896120', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08874671', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2823774646245084813', 'uuid-lslong': '13512399820359148645'}, 'enable': 'true', 'created': '2024-10-23T18:07:54', 'last-modified': '2024-10-23T18:07:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.209154'} 2024-10-23 18:07:57,059 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-23 18:07:57,059 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59896120 passed 2024-10-23 18:07:57,059 - DEBUG - ====Verifying policy data for ctest-vn-59896120 in API_Server ====== 2024-10-23 18:07:57,059 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-10-23 18:07:57,071 - DEBUG - Requesting: http://10.0.0.45:8082/domain/563e2a4a-ad82-46b3-aa7a-3322071980c9 2024-10-23 18:07:57,087 - DEBUG - Requesting: http://10.0.0.45:8082/project/914132cc-2bb9-470b-8deb-0212787fe852 2024-10-23 18:07:57,173 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/27301014-6b31-4e8d-bb85-b00b7b8f2465 2024-10-23 18:07:57,191 - DEBUG - ==>Verifying data for policy with id: ff8f61da-de4c-42ad-9302-d188c656fa22, fqn: ['default-domain', 'ctest-TestBasicPolicy-08874671', 'ctest-policy-allow-all-15992487'] 2024-10-23 18:07:57,191 - INFO - VN ctest-vn-59896120 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-23 18:07:57,191 - DEBUG - Verifying the vn in opserver 2024-10-23 18:07:57,191 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-59896120 virtual network link through opserver 10.0.0.45 2024-10-23 18:07:57,192 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2024-10-23 18:07:57,502 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2024-10-23 18:07:57,589 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-59896120', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-59896120?flat'} 2024-10-23 18:07:57,589 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-59896120 is found in opserver 2024-10-23 18:07:57,608 - DEBUG - Do not have enough data to verify VN in agent 2024-10-23 18:07:57,618 - DEBUG - VRF ids for VN ctest-vn-59896120: {} 2024-10-23 18:07:57,618 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-10-23 18:07:57,626 - DEBUG - Requesting: http://10.0.0.45:8082/domain/563e2a4a-ad82-46b3-aa7a-3322071980c9 2024-10-23 18:07:57,644 - DEBUG - Requesting: http://10.0.0.45:8082/project/914132cc-2bb9-470b-8deb-0212787fe852 2024-10-23 18:07:57,735 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/3aaa3e13-922b-47c0-931f-8de41288ca6c 2024-10-23 18:07:57,757 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/3aaa3e13-922b-47c0-931f-8de41288ca6c 2024-10-23 18:07:57,775 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/12bb270f-6d8a-4dc7-9c8a-d84c8619fe6a 2024-10-23 18:07:57,786 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/12bb270f-6d8a-4dc7-9c8a-d84c8619fe6a 2024-10-23 18:07:57,799 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/11708b6e-177a-49f7-8f0c-50eb8f7480f0 2024-10-23 18:07:57,809 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-23 18:07:57,809 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/3aaa3e13-922b-47c0-931f-8de41288ca6c 2024-10-23 18:07:57,829 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/12bb270f-6d8a-4dc7-9c8a-d84c8619fe6a 2024-10-23 18:07:57,860 - INFO - Verified VN network id 8 for VN 3aaa3e13-922b-47c0-931f-8de41288ca6c 2024-10-23 18:07:57,860 - INFO - Verifications in API Server for VN ctest-vn-85429427 passed 2024-10-23 18:07:57,861 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/3aaa3e13-922b-47c0-931f-8de41288ca6c 2024-10-23 18:07:57,885 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/12bb270f-6d8a-4dc7-9c8a-d84c8619fe6a 2024-10-23 18:07:57,901 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/12bb270f-6d8a-4dc7-9c8a-d84c8619fe6a 2024-10-23 18:07:57,915 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/11708b6e-177a-49f7-8f0c-50eb8f7480f0 2024-10-23 18:07:57,935 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-85429427', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08874671', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4227259454018242496', 'uuid-lslong': '10601348058556451436'}, 'enable': 'true', 'created': '2024-10-23T18:07:55', 'last-modified': '2024-10-23T18:07:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.782435'} 2024-10-23 18:07:57,945 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-23 18:07:57,946 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85429427 passed 2024-10-23 18:07:57,947 - DEBUG - ====Verifying policy data for ctest-vn-85429427 in API_Server ====== 2024-10-23 18:07:57,947 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-10-23 18:07:57,955 - DEBUG - Requesting: http://10.0.0.45:8082/domain/563e2a4a-ad82-46b3-aa7a-3322071980c9 2024-10-23 18:07:57,976 - DEBUG - Requesting: http://10.0.0.45:8082/project/914132cc-2bb9-470b-8deb-0212787fe852 2024-10-23 18:07:58,067 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/3aaa3e13-922b-47c0-931f-8de41288ca6c 2024-10-23 18:07:58,084 - DEBUG - ==>Verifying data for policy with id: ff8f61da-de4c-42ad-9302-d188c656fa22, fqn: ['default-domain', 'ctest-TestBasicPolicy-08874671', 'ctest-policy-allow-all-15992487'] 2024-10-23 18:07:58,084 - INFO - VN ctest-vn-85429427 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-23 18:07:58,085 - DEBUG - Verifying the vn in opserver 2024-10-23 18:07:58,085 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-85429427 virtual network link through opserver 10.0.0.45 2024-10-23 18:07:58,085 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2024-10-23 18:07:58,101 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-85429427', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-85429427?flat'} 2024-10-23 18:07:58,101 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-85429427 is found in opserver 2024-10-23 18:07:58,120 - DEBUG - Do not have enough data to verify VN in agent 2024-10-23 18:07:58,130 - DEBUG - VRF ids for VN ctest-vn-85429427: {} 2024-10-23 18:07:58,205 - DEBUG - Services list from nova: [, , ] 2024-10-23 18:07:59,367 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2132-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2132-1) 2024-10-23 18:08:00,783 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2132-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2132-1) 2024-10-23 18:08:00,783 - INFO - Waiting for VM ctest-TestBasicPolicy-08874671-29928278 to be up.. 2024-10-23 18:08:00,889 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-23 18:08:05,999 - DEBUG - VM is in ACTIVE state now 2024-10-23 18:08:05,999 - INFO - VM name : ctest-TestBasicPolicy-08874671-29928278 2024-10-23 18:08:06,097 - DEBUG - VM ctest-TestBasicPolicy-08874671-29928278 ID is 9e208176-8711-49db-97e1-26920aa3b308 2024-10-23 18:08:06,123 - DEBUG - VM ctest-TestBasicPolicy-08874671-29928278 launched on Node cn-jenkins-deploy-platform-ansible-os-2132-1 2024-10-23 18:08:06,222 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/9e208176-8711-49db-97e1-26920aa3b308 2024-10-23 18:08:06,237 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/aaeb6926-6bbc-4529-9d20-8671d15b3eb4 2024-10-23 18:08:09,511 - 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 1009ms') 2024-10-23 18:08:09,512 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08874671-29928278 failed! 2024-10-23 18:08:09,579 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-59896120 is 149.174.214.1 and allocation pool is NOT set 2024-10-23 18:08:11,647 - 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=7.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.03 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 = 1.033/4.330/7.627/3.297 ms') 2024-10-23 18:08:11,648 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08874671-29928278 passed 2024-10-23 18:08:11,810 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 18:08:11,810 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08874671-29928278, IP 149.174.214.3, Port 22 2024-10-23 18:08:11,888 - 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-10-23 18:08:12,027 - DEBUG - VM ctest-TestBasicPolicy-08874671-29928278 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-23 18:08:17,028 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 18:08:17,028 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08874671-29928278, IP 149.174.214.3, Port 22 2024-10-23 18:08:17,198 - DEBUG - VM ctest-TestBasicPolicy-08874671-29928278 is ready for SSH connections 2024-10-23 18:08:17,199 - INFO - Waiting for VM ctest-TestBasicPolicy-08874671-25304347 to be up.. 2024-10-23 18:08:17,286 - DEBUG - VM is in ACTIVE state now 2024-10-23 18:08:17,287 - INFO - VM name : ctest-TestBasicPolicy-08874671-25304347 2024-10-23 18:08:17,372 - DEBUG - VM ctest-TestBasicPolicy-08874671-25304347 ID is 5e159dbb-7e61-4abb-a49f-0e83bec43986 2024-10-23 18:08:17,372 - DEBUG - VM ctest-TestBasicPolicy-08874671-25304347 launched on Node cn-jenkins-deploy-platform-ansible-os-2132-1 2024-10-23 18:08:17,459 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/5e159dbb-7e61-4abb-a49f-0e83bec43986 2024-10-23 18:08:17,472 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/bd2ebe8f-8086-4466-9dad-3ce8428378f2 2024-10-23 18:08:18,742 - 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.86 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.486 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.486/1.672/2.859/1.186 ms') 2024-10-23 18:08:18,742 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-08874671-25304347 passed 2024-10-23 18:08:18,907 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 18:08:18,907 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08874671-25304347, IP 144.161.78.3, Port 22 2024-10-23 18:08:19,080 - DEBUG - VM ctest-TestBasicPolicy-08874671-25304347 is ready for SSH connections 2024-10-23 18:08:19,080 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 18:08:19,080 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.161.78.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2024-10-23 18:08:19,080 - DEBUG - ping -s 56 -c 3 -W 1 144.161.78.3 2024-10-23 18:08:24,111 - DEBUG - PING 144.161.78.3 (144.161.78.3): 56 data bytes 64 bytes from 144.161.78.3: seq=0 ttl=63 time=4.121 ms 64 bytes from 144.161.78.3: seq=1 ttl=63 time=1.560 ms 64 bytes from 144.161.78.3: seq=2 ttl=63 time=0.931 ms --- 144.161.78.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.931/2.204/4.121 ms 2024-10-23 18:08:24,112 - INFO - Ping to IP 144.161.78.3 from VM ctest-TestBasicPolicy-08874671-29928278 passed 2024-10-23 18:08:24,306 - DEBUG - Policy Update Response {"network-policy": {"uuid": "ff8f61da-de4c-42ad-9302-d188c656fa22", "href": "http://10.0.0.45:8082/network-policy/ff8f61da-de4c-42ad-9302-d188c656fa22"}} 2024-10-23 18:08:24,306 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 18:08:24,306 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 144.161.78.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2024-10-23 18:08:24,306 - DEBUG - ping -s 56 -c 3 -W 1 144.161.78.3 2024-10-23 18:08:27,530 - DEBUG - PING 144.161.78.3 (144.161.78.3): 56 data bytes --- 144.161.78.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-23 18:08:27,530 - WARNING - Ping to IP 144.161.78.3 from VM ctest-TestBasicPolicy-08874671-29928278 failed 2024-10-23 18:08:27,530 - INFO - Deleting VM ctest-TestBasicPolicy-08874671-25304347 2024-10-23 18:08:27,620 - INFO - Deleting VM ctest-TestBasicPolicy-08874671-29928278 2024-10-23 18:08:28,127 - INFO - Deleted policy ctest-policy-allow-all-15992487 2024-10-23 18:08:28,127 - INFO - Deleting VN ctest-vn-85429427 2024-10-23 18:08:28,173 - DEBUG - VN 3aaa3e13-922b-47c0-931f-8de41288ca6c still in use: Unable to complete operation on network 3aaa3e13-922b-47c0-931f-8de41288ca6c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-df90cefb-9887-464d-a233-df1a770a361d'] 2024-10-23 18:08:28,173 - WARNING - Deleting VN ctest-vn-85429427 failed..Will retry 2024-10-23 18:08:30,295 - DEBUG - Response for deleting network () 2024-10-23 18:08:30,295 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/12bb270f-6d8a-4dc7-9c8a-d84c8619fe6a 2024-10-23 18:08:30,300 - DEBUG - Response Code: 404 2024-10-23 18:08:30,301 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-10-23 18:08:30,308 - DEBUG - Requesting: http://10.0.0.45:8082/domain/563e2a4a-ad82-46b3-aa7a-3322071980c9 2024-10-23 18:08:30,371 - DEBUG - Requesting: http://10.0.0.45:8082/project/914132cc-2bb9-470b-8deb-0212787fe852 2024-10-23 18:08:30,456 - INFO - Validated that VN ctest-vn-85429427 is not found in API Server 2024-10-23 18:08:30,471 - DEBUG - VN ctest-vn-85429427 is not present in Agent 10.0.0.45 2024-10-23 18:08:30,471 - INFO - Validated that VN ctest-vn-85429427 is not in any agent 2024-10-23 18:08:30,491 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-85429427 info 2024-10-23 18:08:30,491 - INFO - Deleting VN ctest-vn-59896120 2024-10-23 18:08:30,639 - DEBUG - Response for deleting network () 2024-10-23 18:08:30,639 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/72bc4571-f1ba-452c-8521-9c7e154b72d4 2024-10-23 18:08:30,648 - DEBUG - Response Code: 404 2024-10-23 18:08:30,648 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-10-23 18:08:30,661 - DEBUG - Requesting: http://10.0.0.45:8082/domain/563e2a4a-ad82-46b3-aa7a-3322071980c9 2024-10-23 18:08:30,721 - DEBUG - Requesting: http://10.0.0.45:8082/project/914132cc-2bb9-470b-8deb-0212787fe852 2024-10-23 18:08:30,807 - INFO - Validated that VN ctest-vn-59896120 is not found in API Server 2024-10-23 18:08:30,819 - DEBUG - VN ctest-vn-59896120 is not present in Agent 10.0.0.45 2024-10-23 18:08:30,819 - INFO - Validated that VN ctest-vn-59896120 is not in any agent 2024-10-23 18:08:30,839 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59896120 info 2024-10-23 18:08:31,097 - DEBUG - No XMPP flaps were noticed during the test 2024-10-23 18:08:31,097 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38] 2024-10-23 18:08:31,097 - INFO - -------------------------------------------------------------------------------- 2024-10-23 18:08:31,825 - INFO - Deleted project: ctest-TestBasicPolicy-08874671, ID : 914132cc-2bb9-470b-8deb-0212787fe852