2025-03-24 18:16:52,830 - INFO - Domain Default found not creating 2025-03-24 18:16:53,004 - INFO - Project ctest-TestBasicPolicy-70749698 not found, creating it 2025-03-24 18:16:53,492 - INFO - Created Project:ctest-TestBasicPolicy-70749698, ID : 0a931f29-e32a-4cd3-85a3-cbd52e54ff24 2025-03-24 18:16:55,006 - INFO - ================================================================================ 2025-03-24 18:16:55,007 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-24 18:16:55,007 - 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 2025-03-24 18:16:55,264 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.6': '0'}} with 2025-03-24 18:16:55,264 - INFO - Initial checks done. Running the testcase now 2025-03-24 18:16:55,264 - INFO - 2025-03-24 18:16:55,852 - DEBUG - Response for create_network : {'network': {'id': 'db5968d9-42bc-4234-a7ff-8229f08e3bec', 'name': 'ctest-vn-54147953', 'tenant_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'project_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70749698', 'ctest-vn-54147953'], 'port_security_enabled': True, 'description': ''}} 2025-03-24 18:16:56,089 - DEBUG - Response for create_subnet : {'subnet': {'id': '612b01cb-ad76-4869-a969-ecacc7b6e008', 'name': '', 'tenant_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'network_id': 'db5968d9-42bc-4234-a7ff-8229f08e3bec', 'ip_version': 4, 'cidr': '220.122.64.64/26', 'allocation_pools': [{'start': '220.122.64.66', 'end': '220.122.64.126'}], 'gateway_ip': '220.122.64.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.122.64.66', 'tags': [], 'project_id': '0a931f29e32a4cd385a3cbd52e54ff24'}} 2025-03-24 18:16:56,109 - INFO - Created VN ctest-vn-54147953 2025-03-24 18:16:56,163 - DEBUG - VN ctest-vn-54147953 UUID is db5968d9-42bc-4234-a7ff-8229f08e3bec 2025-03-24 18:16:56,488 - DEBUG - Response for create_network : {'network': {'id': 'a63d145a-384b-4e25-a3f3-68b63be84396', 'name': 'ctest-vn-67542814', 'tenant_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'project_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70749698', 'ctest-vn-67542814'], 'port_security_enabled': True, 'description': ''}} 2025-03-24 18:16:56,658 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd46f2ba5-277e-424a-abe8-c331eb55ae1f', 'name': '', 'tenant_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'network_id': 'a63d145a-384b-4e25-a3f3-68b63be84396', 'ip_version': 4, 'cidr': '180.163.174.64/26', 'allocation_pools': [{'start': '180.163.174.66', 'end': '180.163.174.126'}], 'gateway_ip': '180.163.174.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.163.174.66', 'tags': [], 'project_id': '0a931f29e32a4cd385a3cbd52e54ff24'}} 2025-03-24 18:16:56,676 - INFO - Created VN ctest-vn-67542814 2025-03-24 18:16:56,730 - DEBUG - VN ctest-vn-67542814 UUID is a63d145a-384b-4e25-a3f3-68b63be84396 2025-03-24 18:16:56,855 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-54147953, 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-70749698:ctest-vn-67542814, 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] 2025-03-24 18:16:57,151 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db5968d9-42bc-4234-a7ff-8229f08e3bec', 'name': 'ctest-vn-54147953', 'tenant_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'project_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['612b01cb-ad76-4869-a969-ecacc7b6e008'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70749698', 'ctest-vn-54147953'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70749698', 'ctest-policy-allow-all-44128596']], 'subnet_ipam': [{'subnet_cidr': '220.122.64.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-24 18:16:57,386 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a63d145a-384b-4e25-a3f3-68b63be84396', 'name': 'ctest-vn-67542814', 'tenant_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'project_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d46f2ba5-277e-424a-abe8-c331eb55ae1f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70749698', 'ctest-vn-67542814'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70749698', 'ctest-policy-allow-all-44128596']], 'subnet_ipam': [{'subnet_cidr': '180.163.174.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-24 18:16:57,554 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-03-24 18:16:57,862 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-03-24 18:16:57,894 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1bdac2b4-b991-4585-bef6-c4af35e49476 2025-03-24 18:16:57,915 - DEBUG - Requesting: http://10.0.0.50:8082/project/0a931f29-e32a-4cd3-85a3-cbd52e54ff24 2025-03-24 18:16:58,006 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/db5968d9-42bc-4234-a7ff-8229f08e3bec 2025-03-24 18:16:58,019 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/db5968d9-42bc-4234-a7ff-8229f08e3bec 2025-03-24 18:16:58,031 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e62bc5c3-d4fa-4d20-bf8a-377885f4832f 2025-03-24 18:16:58,042 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e62bc5c3-d4fa-4d20-bf8a-377885f4832f 2025-03-24 18:16:58,052 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b7ebbf7b-a247-44fe-917e-f4fd0dd84734 2025-03-24 18:16:58,059 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-24 18:16:58,060 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/db5968d9-42bc-4234-a7ff-8229f08e3bec 2025-03-24 18:16:58,071 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e62bc5c3-d4fa-4d20-bf8a-377885f4832f 2025-03-24 18:16:58,088 - INFO - Verified VN network id 7 for VN db5968d9-42bc-4234-a7ff-8229f08e3bec 2025-03-24 18:16:58,088 - INFO - Verifications in API Server for VN ctest-vn-54147953 passed 2025-03-24 18:16:58,088 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/db5968d9-42bc-4234-a7ff-8229f08e3bec 2025-03-24 18:16:58,099 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e62bc5c3-d4fa-4d20-bf8a-377885f4832f 2025-03-24 18:16:58,107 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e62bc5c3-d4fa-4d20-bf8a-377885f4832f 2025-03-24 18:16:58,115 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b7ebbf7b-a247-44fe-917e-f4fd0dd84734 2025-03-24 18:16:58,129 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-54147953', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70749698', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15805779649570292276', 'uuid-lslong': '12105537440036305900'}, 'enable': 'true', 'created': '2025-03-24T18:16:55', 'last-modified': '2025-03-24T18:16:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.995331'} 2025-03-24 18:16:58,138 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-24 18:16:58,139 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54147953 passed 2025-03-24 18:16:58,139 - DEBUG - ====Verifying policy data for ctest-vn-54147953 in API_Server ====== 2025-03-24 18:16:58,139 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-03-24 18:16:58,145 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1bdac2b4-b991-4585-bef6-c4af35e49476 2025-03-24 18:16:58,158 - DEBUG - Requesting: http://10.0.0.50:8082/project/0a931f29-e32a-4cd3-85a3-cbd52e54ff24 2025-03-24 18:16:58,236 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/db5968d9-42bc-4234-a7ff-8229f08e3bec 2025-03-24 18:16:58,248 - DEBUG - ==>Verifying data for policy with id: 8567ae3d-0f4f-4ba9-9173-51545ea3d9a9, fqn: ['default-domain', 'ctest-TestBasicPolicy-70749698', 'ctest-policy-allow-all-44128596'] 2025-03-24 18:16:58,248 - INFO - VN ctest-vn-54147953 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-24 18:16:58,249 - DEBUG - Verifying the vn in opserver 2025-03-24 18:16:58,249 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-54147953 virtual network link through opserver 10.0.0.50 2025-03-24 18:16:58,249 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-03-24 18:16:58,549 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-03-24 18:16:58,613 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-54147953', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-54147953?flat'} 2025-03-24 18:16:58,613 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-54147953 is found in opserver 2025-03-24 18:16:58,624 - DEBUG - Do not have enough data to verify VN in agent 2025-03-24 18:16:58,631 - DEBUG - VRF ids for VN ctest-vn-54147953: {} 2025-03-24 18:16:58,631 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-03-24 18:16:58,637 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1bdac2b4-b991-4585-bef6-c4af35e49476 2025-03-24 18:16:58,649 - DEBUG - Requesting: http://10.0.0.50:8082/project/0a931f29-e32a-4cd3-85a3-cbd52e54ff24 2025-03-24 18:16:58,726 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a63d145a-384b-4e25-a3f3-68b63be84396 2025-03-24 18:16:58,741 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a63d145a-384b-4e25-a3f3-68b63be84396 2025-03-24 18:16:58,754 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eb23c784-8302-4092-a014-d0da03c1e3bf 2025-03-24 18:16:58,764 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eb23c784-8302-4092-a014-d0da03c1e3bf 2025-03-24 18:16:58,774 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/98a64ee3-fccf-40b9-a65f-c9f94d1aa837 2025-03-24 18:16:58,784 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-24 18:16:58,784 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a63d145a-384b-4e25-a3f3-68b63be84396 2025-03-24 18:16:58,796 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eb23c784-8302-4092-a014-d0da03c1e3bf 2025-03-24 18:16:58,812 - INFO - Verified VN network id 8 for VN a63d145a-384b-4e25-a3f3-68b63be84396 2025-03-24 18:16:58,813 - INFO - Verifications in API Server for VN ctest-vn-67542814 passed 2025-03-24 18:16:58,813 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a63d145a-384b-4e25-a3f3-68b63be84396 2025-03-24 18:16:58,824 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eb23c784-8302-4092-a014-d0da03c1e3bf 2025-03-24 18:16:58,833 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eb23c784-8302-4092-a014-d0da03c1e3bf 2025-03-24 18:16:58,841 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/98a64ee3-fccf-40b9-a65f-c9f94d1aa837 2025-03-24 18:16:58,864 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-67542814', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70749698', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11978752961599458853', 'uuid-lslong': '11813901379421356950'}, 'enable': 'true', 'created': '2025-03-24T18:16:56', 'last-modified': '2025-03-24T18:16:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.500971'} 2025-03-24 18:16:58,877 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-24 18:16:58,877 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67542814 passed 2025-03-24 18:16:58,878 - DEBUG - ====Verifying policy data for ctest-vn-67542814 in API_Server ====== 2025-03-24 18:16:58,878 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-03-24 18:16:58,884 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1bdac2b4-b991-4585-bef6-c4af35e49476 2025-03-24 18:16:58,897 - DEBUG - Requesting: http://10.0.0.50:8082/project/0a931f29-e32a-4cd3-85a3-cbd52e54ff24 2025-03-24 18:16:58,973 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a63d145a-384b-4e25-a3f3-68b63be84396 2025-03-24 18:16:58,983 - DEBUG - ==>Verifying data for policy with id: 8567ae3d-0f4f-4ba9-9173-51545ea3d9a9, fqn: ['default-domain', 'ctest-TestBasicPolicy-70749698', 'ctest-policy-allow-all-44128596'] 2025-03-24 18:16:58,983 - INFO - VN ctest-vn-67542814 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-24 18:16:58,983 - DEBUG - Verifying the vn in opserver 2025-03-24 18:16:58,983 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-67542814 virtual network link through opserver 10.0.0.50 2025-03-24 18:16:58,983 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-03-24 18:16:58,996 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-67542814', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-67542814?flat'} 2025-03-24 18:16:58,996 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-67542814 is found in opserver 2025-03-24 18:16:59,006 - DEBUG - Do not have enough data to verify VN in agent 2025-03-24 18:16:59,013 - DEBUG - VRF ids for VN ctest-vn-67542814: {} 2025-03-24 18:16:59,080 - DEBUG - Services list from nova: [, , ] 2025-03-24 18:17:00,309 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2944-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2944-1) 2025-03-24 18:17:01,581 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2944-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2944-1) 2025-03-24 18:17:01,582 - INFO - Waiting for VM ctest-TestBasicPolicy-70749698-50919312 to be up.. 2025-03-24 18:17:01,676 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-24 18:17:06,762 - DEBUG - VM is in ACTIVE state now 2025-03-24 18:17:06,762 - INFO - VM name : ctest-TestBasicPolicy-70749698-50919312 2025-03-24 18:17:06,845 - DEBUG - VM ctest-TestBasicPolicy-70749698-50919312 ID is fb3ea94f-c83c-4018-bde8-8c006992c6c1 2025-03-24 18:17:06,865 - DEBUG - VM ctest-TestBasicPolicy-70749698-50919312 launched on Node cn-jenkins-deploy-platform-ansible-os-2944-1 2025-03-24 18:17:06,951 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/fb3ea94f-c83c-4018-bde8-8c006992c6c1 2025-03-24 18:17:06,961 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/818caa23-3b43-4090-881a-5a617d3c1a6b 2025-03-24 18:17:10,205 - 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 1032ms') 2025-03-24 18:17:10,205 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70749698-50919312 failed! 2025-03-24 18:17:10,266 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-54147953 is 220.122.64.65 and allocation pool is NOT set 2025-03-24 18:17:12,330 - 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=8.39 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.865 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.865/4.628/8.391/3.763 ms') 2025-03-24 18:17:12,330 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70749698-50919312 passed 2025-03-24 18:17:12,491 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 18:17:12,491 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70749698-50919312, IP 220.122.64.67, Port 22 2025-03-24 18:17:12,562 - 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': ''} 2025-03-24 18:17:12,650 - DEBUG - VM ctest-TestBasicPolicy-70749698-50919312 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-24 18:17:17,650 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 18:17:17,651 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70749698-50919312, IP 220.122.64.67, Port 22 2025-03-24 18:17:17,806 - DEBUG - VM ctest-TestBasicPolicy-70749698-50919312 is ready for SSH connections 2025-03-24 18:17:17,806 - INFO - Waiting for VM ctest-TestBasicPolicy-70749698-51874175 to be up.. 2025-03-24 18:17:17,890 - DEBUG - VM is in ACTIVE state now 2025-03-24 18:17:17,890 - INFO - VM name : ctest-TestBasicPolicy-70749698-51874175 2025-03-24 18:17:17,975 - DEBUG - VM ctest-TestBasicPolicy-70749698-51874175 ID is a1a92177-1bf9-4b1a-804f-86cfa04c4c6b 2025-03-24 18:17:17,975 - DEBUG - VM ctest-TestBasicPolicy-70749698-51874175 launched on Node cn-jenkins-deploy-platform-ansible-os-2944-1 2025-03-24 18:17:18,069 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/a1a92177-1bf9-4b1a-804f-86cfa04c4c6b 2025-03-24 18:17:18,079 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/3f4e914c-ba5d-4068-b34e-2a111b4e052e 2025-03-24 18:17:19,331 - 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=3.00 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.388 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.388/1.695/3.003/1.307 ms') 2025-03-24 18:17:19,331 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-70749698-51874175 passed 2025-03-24 18:17:19,486 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 18:17:19,487 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70749698-51874175, IP 180.163.174.67, Port 22 2025-03-24 18:17:19,642 - DEBUG - VM ctest-TestBasicPolicy-70749698-51874175 is ready for SSH connections 2025-03-24 18:17:19,642 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 18:17:19,642 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 180.163.174.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-03-24 18:17:19,642 - DEBUG - ping -s 56 -c 3 -W 1 180.163.174.67 2025-03-24 18:17:23,368 - DEBUG - PING 180.163.174.67 (180.163.174.67): 56 data bytes 64 bytes from 180.163.174.67: seq=0 ttl=63 time=3.357 ms 64 bytes from 180.163.174.67: seq=1 ttl=63 time=1.018 ms 64 bytes from 180.163.174.67: seq=2 ttl=63 time=0.917 ms --- 180.163.174.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.917/1.764/3.357 ms 2025-03-24 18:17:23,368 - INFO - Ping to IP 180.163.174.67 from VM ctest-TestBasicPolicy-70749698-50919312 passed 2025-03-24 18:17:23,554 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8567ae3d-0f4f-4ba9-9173-51545ea3d9a9", "href": "http://10.0.0.50:8082/network-policy/8567ae3d-0f4f-4ba9-9173-51545ea3d9a9"}} 2025-03-24 18:17:23,554 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-24 18:17:23,554 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 180.163.174.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-03-24 18:17:23,555 - DEBUG - ping -s 56 -c 3 -W 1 180.163.174.67 2025-03-24 18:17:26,773 - DEBUG - PING 180.163.174.67 (180.163.174.67): 56 data bytes 64 bytes from 180.163.174.67: seq=0 ttl=63 time=1.539 ms --- 180.163.174.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.539/1.539/1.539 ms 2025-03-24 18:17:26,773 - WARNING - Ping to IP 180.163.174.67 from VM ctest-TestBasicPolicy-70749698-50919312 failed 2025-03-24 18:17:26,773 - INFO - Deleting VM ctest-TestBasicPolicy-70749698-51874175 2025-03-24 18:17:26,853 - INFO - Deleting VM ctest-TestBasicPolicy-70749698-50919312 2025-03-24 18:17:27,265 - INFO - Deleted policy ctest-policy-allow-all-44128596 2025-03-24 18:17:27,266 - INFO - Deleting VN ctest-vn-67542814 2025-03-24 18:17:27,304 - DEBUG - VN a63d145a-384b-4e25-a3f3-68b63be84396 still in use: Unable to complete operation on network a63d145a-384b-4e25-a3f3-68b63be84396. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6e22b8f7-498f-4bda-bc0d-e1374e4e881b'] 2025-03-24 18:17:27,304 - WARNING - Deleting VN ctest-vn-67542814 failed..Will retry 2025-03-24 18:17:29,428 - DEBUG - Response for deleting network () 2025-03-24 18:17:29,428 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eb23c784-8302-4092-a014-d0da03c1e3bf 2025-03-24 18:17:29,438 - DEBUG - Response Code: 404 2025-03-24 18:17:29,438 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-03-24 18:17:29,446 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1bdac2b4-b991-4585-bef6-c4af35e49476 2025-03-24 18:17:29,501 - DEBUG - Requesting: http://10.0.0.50:8082/project/0a931f29-e32a-4cd3-85a3-cbd52e54ff24 2025-03-24 18:17:29,583 - INFO - Validated that VN ctest-vn-67542814 is not found in API Server 2025-03-24 18:17:29,595 - DEBUG - VN ctest-vn-67542814 is not present in Agent 10.0.0.50 2025-03-24 18:17:29,595 - INFO - Validated that VN ctest-vn-67542814 is not in any agent 2025-03-24 18:17:29,613 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-67542814 info 2025-03-24 18:17:29,613 - INFO - Deleting VN ctest-vn-54147953 2025-03-24 18:17:29,724 - DEBUG - Response for deleting network () 2025-03-24 18:17:29,724 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e62bc5c3-d4fa-4d20-bf8a-377885f4832f 2025-03-24 18:17:29,731 - DEBUG - Response Code: 404 2025-03-24 18:17:29,731 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-03-24 18:17:29,738 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1bdac2b4-b991-4585-bef6-c4af35e49476 2025-03-24 18:17:29,792 - DEBUG - Requesting: http://10.0.0.50:8082/project/0a931f29-e32a-4cd3-85a3-cbd52e54ff24 2025-03-24 18:17:29,866 - INFO - Validated that VN ctest-vn-54147953 is not found in API Server 2025-03-24 18:17:29,879 - DEBUG - VN ctest-vn-54147953 is not present in Agent 10.0.0.50 2025-03-24 18:17:29,880 - INFO - Validated that VN ctest-vn-54147953 is not in any agent 2025-03-24 18:17:29,895 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54147953 info 2025-03-24 18:17:30,148 - DEBUG - No XMPP flaps were noticed during the test
2025-03-24 18:17:30,148 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-03-24 18:17:30,148 - INFO - -------------------------------------------------------------------------------- 2025-03-24 18:17:30,849 - INFO - Deleted project: ctest-TestBasicPolicy-70749698, ID : 0a931f29-e32a-4cd3-85a3-cbd52e54ff24