2025-03-27 13:16:23,841 - INFO - Domain Default found not creating 2025-03-27 13:16:23,988 - INFO - Project ctest-TestBasicPolicy-90148846 not found, creating it 2025-03-27 13:16:24,449 - INFO - Created Project:ctest-TestBasicPolicy-90148846, ID : f40ed970-d1b0-4b1e-b84a-31ba907796a0 2025-03-27 13:16:25,850 - INFO - ================================================================================ 2025-03-27 13:16:25,850 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-27 13:16:25,850 - 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-27 13:16:26,103 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.8': '0'}} with 2025-03-27 13:16:26,103 - INFO - Initial checks done. Running the testcase now 2025-03-27 13:16:26,104 - INFO - 2025-03-27 13:16:26,654 - DEBUG - Response for create_network : {'network': {'id': '2125fa7a-216c-4155-a5d0-394e4501ecbf', 'name': 'ctest-vn-27884422', 'tenant_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'project_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90148846', 'ctest-vn-27884422'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 13:16:26,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '38ee76a2-4312-4b73-ab5f-aed7b0ffe506', 'name': '', 'tenant_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'network_id': '2125fa7a-216c-4155-a5d0-394e4501ecbf', 'ip_version': 4, 'cidr': '87.207.206.192/26', 'allocation_pools': [{'start': '87.207.206.194', 'end': '87.207.206.254'}], 'gateway_ip': '87.207.206.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.207.206.194', 'tags': [], 'project_id': 'f40ed970d1b04b1eb84a31ba907796a0'}} 2025-03-27 13:16:26,839 - INFO - Created VN ctest-vn-27884422 2025-03-27 13:16:26,893 - DEBUG - VN ctest-vn-27884422 UUID is 2125fa7a-216c-4155-a5d0-394e4501ecbf 2025-03-27 13:16:27,207 - DEBUG - Response for create_network : {'network': {'id': 'e19f9b4b-8355-49b0-b8df-432472d20a45', 'name': 'ctest-vn-35556211', 'tenant_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'project_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90148846', 'ctest-vn-35556211'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 13:16:27,417 - DEBUG - Response for create_subnet : {'subnet': {'id': '19034df7-6c1c-4235-bbd3-768b0a5b46ca', 'name': '', 'tenant_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'network_id': 'e19f9b4b-8355-49b0-b8df-432472d20a45', 'ip_version': 4, 'cidr': '199.180.116.128/26', 'allocation_pools': [{'start': '199.180.116.130', 'end': '199.180.116.190'}], 'gateway_ip': '199.180.116.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.180.116.130', 'tags': [], 'project_id': 'f40ed970d1b04b1eb84a31ba907796a0'}} 2025-03-27 13:16:27,435 - INFO - Created VN ctest-vn-35556211 2025-03-27 13:16:27,489 - DEBUG - VN ctest-vn-35556211 UUID is e19f9b4b-8355-49b0-b8df-432472d20a45 2025-03-27 13:16:27,605 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-27884422, 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-90148846:ctest-vn-35556211, 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-27 13:16:27,915 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2125fa7a-216c-4155-a5d0-394e4501ecbf', 'name': 'ctest-vn-27884422', 'tenant_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'project_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['38ee76a2-4312-4b73-ab5f-aed7b0ffe506'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90148846', 'ctest-vn-27884422'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90148846', 'ctest-policy-allow-all-78521858']], 'subnet_ipam': [{'subnet_cidr': '87.207.206.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 13:16:28,142 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e19f9b4b-8355-49b0-b8df-432472d20a45', 'name': 'ctest-vn-35556211', 'tenant_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'project_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['19034df7-6c1c-4235-bbd3-768b0a5b46ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90148846', 'ctest-vn-35556211'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90148846', 'ctest-policy-allow-all-78521858']], 'subnet_ipam': [{'subnet_cidr': '199.180.116.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 13:16:28,301 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-03-27 13:16:28,595 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-03-27 13:16:28,623 - DEBUG - Requesting: http://10.0.0.35:8082/domain/340bd53e-3c6c-4d4e-acc9-9c27013336a5 2025-03-27 13:16:28,638 - DEBUG - Requesting: http://10.0.0.35:8082/project/f40ed970-d1b0-4b1e-b84a-31ba907796a0 2025-03-27 13:16:28,720 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2125fa7a-216c-4155-a5d0-394e4501ecbf 2025-03-27 13:16:28,733 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2125fa7a-216c-4155-a5d0-394e4501ecbf 2025-03-27 13:16:28,743 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b997bc4d-865c-43b0-a6ac-ffb140111cfe 2025-03-27 13:16:28,751 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b997bc4d-865c-43b0-a6ac-ffb140111cfe 2025-03-27 13:16:28,758 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/fccd35f3-d8ab-4b94-a099-4b9b5d0d438a 2025-03-27 13:16:28,765 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 13:16:28,765 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2125fa7a-216c-4155-a5d0-394e4501ecbf 2025-03-27 13:16:28,775 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b997bc4d-865c-43b0-a6ac-ffb140111cfe 2025-03-27 13:16:28,791 - INFO - Verified VN network id 8 for VN 2125fa7a-216c-4155-a5d0-394e4501ecbf 2025-03-27 13:16:28,791 - INFO - Verifications in API Server for VN ctest-vn-27884422 passed 2025-03-27 13:16:28,791 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2125fa7a-216c-4155-a5d0-394e4501ecbf 2025-03-27 13:16:28,801 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b997bc4d-865c-43b0-a6ac-ffb140111cfe 2025-03-27 13:16:28,809 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b997bc4d-865c-43b0-a6ac-ffb140111cfe 2025-03-27 13:16:28,815 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/fccd35f3-d8ab-4b94-a099-4b9b5d0d438a 2025-03-27 13:16:28,827 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-27884422', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90148846', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2388590579843613013', 'uuid-lslong': '11948112819741912255'}, 'enable': 'true', 'created': '2025-03-27T13:16:26', 'last-modified': '2025-03-27T13:16:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943662'} 2025-03-27 13:16:28,834 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 13:16:28,834 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27884422 passed 2025-03-27 13:16:28,834 - DEBUG - ====Verifying policy data for ctest-vn-27884422 in API_Server ====== 2025-03-27 13:16:28,834 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-03-27 13:16:28,840 - DEBUG - Requesting: http://10.0.0.35:8082/domain/340bd53e-3c6c-4d4e-acc9-9c27013336a5 2025-03-27 13:16:28,852 - DEBUG - Requesting: http://10.0.0.35:8082/project/f40ed970-d1b0-4b1e-b84a-31ba907796a0 2025-03-27 13:16:28,925 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2125fa7a-216c-4155-a5d0-394e4501ecbf 2025-03-27 13:16:28,935 - DEBUG - ==>Verifying data for policy with id: 262dfd9b-9f0c-459b-94ab-8917df02e711, fqn: ['default-domain', 'ctest-TestBasicPolicy-90148846', 'ctest-policy-allow-all-78521858'] 2025-03-27 13:16:28,935 - INFO - VN ctest-vn-27884422 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 13:16:28,935 - DEBUG - Verifying the vn in opserver 2025-03-27 13:16:28,935 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-27884422 virtual network link through opserver 10.0.0.35 2025-03-27 13:16:28,935 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2025-03-27 13:16:29,227 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2025-03-27 13:16:29,286 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-27884422', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-27884422?flat'} 2025-03-27 13:16:29,286 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-27884422 is found in opserver 2025-03-27 13:16:29,297 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 13:16:29,302 - DEBUG - VRF ids for VN ctest-vn-27884422: {} 2025-03-27 13:16:29,302 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-03-27 13:16:29,307 - DEBUG - Requesting: http://10.0.0.35:8082/domain/340bd53e-3c6c-4d4e-acc9-9c27013336a5 2025-03-27 13:16:29,318 - DEBUG - Requesting: http://10.0.0.35:8082/project/f40ed970-d1b0-4b1e-b84a-31ba907796a0 2025-03-27 13:16:29,387 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e19f9b4b-8355-49b0-b8df-432472d20a45 2025-03-27 13:16:29,399 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e19f9b4b-8355-49b0-b8df-432472d20a45 2025-03-27 13:16:29,409 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/5b45b299-1d54-4159-aed1-f8ab2ed03c43 2025-03-27 13:16:29,416 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/5b45b299-1d54-4159-aed1-f8ab2ed03c43 2025-03-27 13:16:29,423 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/553bb556-11d0-43fb-8c9f-0ebb653d7420 2025-03-27 13:16:29,428 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 13:16:29,428 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e19f9b4b-8355-49b0-b8df-432472d20a45 2025-03-27 13:16:29,437 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/5b45b299-1d54-4159-aed1-f8ab2ed03c43 2025-03-27 13:16:29,449 - INFO - Verified VN network id 9 for VN e19f9b4b-8355-49b0-b8df-432472d20a45 2025-03-27 13:16:29,449 - INFO - Verifications in API Server for VN ctest-vn-35556211 passed 2025-03-27 13:16:29,449 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e19f9b4b-8355-49b0-b8df-432472d20a45 2025-03-27 13:16:29,457 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/5b45b299-1d54-4159-aed1-f8ab2ed03c43 2025-03-27 13:16:29,464 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/5b45b299-1d54-4159-aed1-f8ab2ed03c43 2025-03-27 13:16:29,469 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/553bb556-11d0-43fb-8c9f-0ebb653d7420 2025-03-27 13:16:29,480 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-35556211', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90148846', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16257883928459037104', 'uuid-lslong': '13321440046609467973'}, 'enable': 'true', 'created': '2025-03-27T13:16:27', 'last-modified': '2025-03-27T13:16:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.353369'} 2025-03-27 13:16:29,486 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 13:16:29,486 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35556211 passed 2025-03-27 13:16:29,486 - DEBUG - ====Verifying policy data for ctest-vn-35556211 in API_Server ====== 2025-03-27 13:16:29,486 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-03-27 13:16:29,492 - DEBUG - Requesting: http://10.0.0.35:8082/domain/340bd53e-3c6c-4d4e-acc9-9c27013336a5 2025-03-27 13:16:29,503 - DEBUG - Requesting: http://10.0.0.35:8082/project/f40ed970-d1b0-4b1e-b84a-31ba907796a0 2025-03-27 13:16:29,576 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e19f9b4b-8355-49b0-b8df-432472d20a45 2025-03-27 13:16:29,585 - DEBUG - ==>Verifying data for policy with id: 262dfd9b-9f0c-459b-94ab-8917df02e711, fqn: ['default-domain', 'ctest-TestBasicPolicy-90148846', 'ctest-policy-allow-all-78521858'] 2025-03-27 13:16:29,586 - INFO - VN ctest-vn-35556211 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 13:16:29,586 - DEBUG - Verifying the vn in opserver 2025-03-27 13:16:29,586 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-35556211 virtual network link through opserver 10.0.0.35 2025-03-27 13:16:29,586 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2025-03-27 13:16:29,596 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-35556211', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-35556211?flat'} 2025-03-27 13:16:29,596 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-35556211 is found in opserver 2025-03-27 13:16:29,607 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 13:16:29,612 - DEBUG - VRF ids for VN ctest-vn-35556211: {} 2025-03-27 13:16:29,675 - DEBUG - Services list from nova: [, , ] 2025-03-27 13:16:30,703 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2970-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2970-1) 2025-03-27 13:16:31,964 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2970-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2970-1) 2025-03-27 13:16:31,965 - INFO - Waiting for VM ctest-TestBasicPolicy-90148846-00677408 to be up.. 2025-03-27 13:16:32,060 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-27 13:16:37,141 - DEBUG - VM is in ACTIVE state now 2025-03-27 13:16:37,141 - INFO - VM name : ctest-TestBasicPolicy-90148846-00677408 2025-03-27 13:16:37,221 - DEBUG - VM ctest-TestBasicPolicy-90148846-00677408 ID is e533c722-703d-4341-9060-c5ae79627c65 2025-03-27 13:16:37,241 - DEBUG - VM ctest-TestBasicPolicy-90148846-00677408 launched on Node cn-jenkins-deploy-platform-ansible-os-2970-1 2025-03-27 13:16:37,319 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/e533c722-703d-4341-9060-c5ae79627c65 2025-03-27 13:16:37,328 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/620f421a-8df8-43e1-8992-2a0ff946a670 2025-03-27 13:16:40,591 - 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 1019ms') 2025-03-27 13:16:40,591 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-90148846-00677408 failed! 2025-03-27 13:16:40,649 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-27884422 is 87.207.206.193 and allocation pool is NOT set 2025-03-27 13:16:42,719 - 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.52 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.28 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.280/4.899/8.518/3.619 ms') 2025-03-27 13:16:42,719 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-90148846-00677408 passed 2025-03-27 13:16:42,873 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 13:16:42,873 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90148846-00677408, IP 87.207.206.195, Port 22 2025-03-27 13:16:42,939 - 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-27 13:16:43,017 - DEBUG - VM ctest-TestBasicPolicy-90148846-00677408 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-27 13:16:48,017 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 13:16:48,017 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90148846-00677408, IP 87.207.206.195, Port 22 2025-03-27 13:16:48,173 - DEBUG - VM ctest-TestBasicPolicy-90148846-00677408 is ready for SSH connections 2025-03-27 13:16:48,173 - INFO - Waiting for VM ctest-TestBasicPolicy-90148846-15775583 to be up.. 2025-03-27 13:16:48,253 - DEBUG - VM is in ACTIVE state now 2025-03-27 13:16:48,253 - INFO - VM name : ctest-TestBasicPolicy-90148846-15775583 2025-03-27 13:16:48,327 - DEBUG - VM ctest-TestBasicPolicy-90148846-15775583 ID is 2e74499a-97ab-4344-a0e7-02ed10a10136 2025-03-27 13:16:48,328 - DEBUG - VM ctest-TestBasicPolicy-90148846-15775583 launched on Node cn-jenkins-deploy-platform-ansible-os-2970-1 2025-03-27 13:16:48,403 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/2e74499a-97ab-4344-a0e7-02ed10a10136 2025-03-27 13:16:48,413 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/96a1b61d-1a96-402b-9dde-95435d47f023 2025-03-27 13:16:49,653 - 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.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.361 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.361/1.519/2.678/1.158 ms') 2025-03-27 13:16:49,653 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-90148846-15775583 passed 2025-03-27 13:16:49,805 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 13:16:49,805 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90148846-15775583, IP 199.180.116.131, Port 22 2025-03-27 13:16:49,961 - DEBUG - VM ctest-TestBasicPolicy-90148846-15775583 is ready for SSH connections 2025-03-27 13:16:49,961 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 13:16:49,962 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 199.180.116.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2025-03-27 13:16:49,962 - DEBUG - ping -s 56 -c 3 -W 1 199.180.116.131 2025-03-27 13:16:53,706 - DEBUG - PING 199.180.116.131 (199.180.116.131): 56 data bytes 64 bytes from 199.180.116.131: seq=0 ttl=63 time=4.791 ms 64 bytes from 199.180.116.131: seq=1 ttl=63 time=0.887 ms 64 bytes from 199.180.116.131: seq=2 ttl=63 time=0.802 ms --- 199.180.116.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.802/2.160/4.791 ms 2025-03-27 13:16:53,706 - INFO - Ping to IP 199.180.116.131 from VM ctest-TestBasicPolicy-90148846-00677408 passed 2025-03-27 13:16:53,889 - DEBUG - Policy Update Response {"network-policy": {"uuid": "262dfd9b-9f0c-459b-94ab-8917df02e711", "href": "http://10.0.0.35:8082/network-policy/262dfd9b-9f0c-459b-94ab-8917df02e711"}} 2025-03-27 13:16:53,889 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 13:16:53,889 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 199.180.116.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2025-03-27 13:16:53,890 - DEBUG - ping -s 56 -c 3 -W 1 199.180.116.131 2025-03-27 13:16:57,097 - DEBUG - PING 199.180.116.131 (199.180.116.131): 56 data bytes 64 bytes from 199.180.116.131: seq=0 ttl=63 time=1.507 ms --- 199.180.116.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.507/1.507/1.507 ms 2025-03-27 13:16:57,097 - WARNING - Ping to IP 199.180.116.131 from VM ctest-TestBasicPolicy-90148846-00677408 failed 2025-03-27 13:16:57,097 - INFO - Deleting VM ctest-TestBasicPolicy-90148846-15775583 2025-03-27 13:16:57,163 - INFO - Deleting VM ctest-TestBasicPolicy-90148846-00677408 2025-03-27 13:16:57,571 - INFO - Deleted policy ctest-policy-allow-all-78521858 2025-03-27 13:16:57,572 - INFO - Deleting VN ctest-vn-35556211 2025-03-27 13:16:57,606 - DEBUG - VN e19f9b4b-8355-49b0-b8df-432472d20a45 still in use: Unable to complete operation on network e19f9b4b-8355-49b0-b8df-432472d20a45. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-02ac1303-af7c-4d37-a68a-ffb4c7aec775'] 2025-03-27 13:16:57,606 - WARNING - Deleting VN ctest-vn-35556211 failed..Will retry 2025-03-27 13:16:59,711 - DEBUG - Response for deleting network () 2025-03-27 13:16:59,712 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/5b45b299-1d54-4159-aed1-f8ab2ed03c43 2025-03-27 13:16:59,722 - DEBUG - Response Code: 404 2025-03-27 13:16:59,722 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-03-27 13:16:59,728 - DEBUG - Requesting: http://10.0.0.35:8082/domain/340bd53e-3c6c-4d4e-acc9-9c27013336a5 2025-03-27 13:16:59,783 - DEBUG - Requesting: http://10.0.0.35:8082/project/f40ed970-d1b0-4b1e-b84a-31ba907796a0 2025-03-27 13:16:59,857 - INFO - Validated that VN ctest-vn-35556211 is not found in API Server 2025-03-27 13:16:59,868 - DEBUG - VN ctest-vn-35556211 is not present in Agent 10.0.0.35 2025-03-27 13:16:59,868 - INFO - Validated that VN ctest-vn-35556211 is not in any agent 2025-03-27 13:16:59,883 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35556211 info 2025-03-27 13:16:59,883 - INFO - Deleting VN ctest-vn-27884422 2025-03-27 13:16:59,982 - DEBUG - Response for deleting network () 2025-03-27 13:16:59,982 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b997bc4d-865c-43b0-a6ac-ffb140111cfe 2025-03-27 13:16:59,989 - DEBUG - Response Code: 404 2025-03-27 13:16:59,989 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-03-27 13:16:59,994 - DEBUG - Requesting: http://10.0.0.35:8082/domain/340bd53e-3c6c-4d4e-acc9-9c27013336a5 2025-03-27 13:17:00,051 - DEBUG - Requesting: http://10.0.0.35:8082/project/f40ed970-d1b0-4b1e-b84a-31ba907796a0 2025-03-27 13:17:00,123 - INFO - Validated that VN ctest-vn-27884422 is not found in API Server 2025-03-27 13:17:00,134 - DEBUG - VN ctest-vn-27884422 is not present in Agent 10.0.0.35 2025-03-27 13:17:00,134 - INFO - Validated that VN ctest-vn-27884422 is not in any agent 2025-03-27 13:17:00,149 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-27884422 info 2025-03-27 13:17:00,410 - DEBUG - No XMPP flaps were noticed during the test
2025-03-27 13:17:00,410 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-03-27 13:17:00,411 - INFO - -------------------------------------------------------------------------------- 2025-03-27 13:17:01,087 - INFO - Deleted project: ctest-TestBasicPolicy-90148846, ID : f40ed970-d1b0-4b1e-b84a-31ba907796a0