2025-11-27 02:08:58,559 - INFO - Domain Default found not creating 2025-11-27 02:08:58,732 - INFO - Project ctest-TestBasicPolicy-00596240 not found, creating it 2025-11-27 02:08:59,200 - INFO - Created Project:ctest-TestBasicPolicy-00596240, ID : 953953fc-0261-4d46-8bb8-0e6f24404699 2025-11-27 02:09:00,842 - INFO - ================================================================================ 2025-11-27 02:09:00,842 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-27 02:09:00,842 - 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-11-27 02:09:01,101 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-27 02:09:01,101 - INFO - Initial checks done. Running the testcase now 2025-11-27 02:09:01,101 - INFO - 2025-11-27 02:09:01,710 - DEBUG - Response for create_network : {'network': {'id': 'a37ca289-680e-47d7-803f-7b92d6b1f1fd', 'name': 'ctest-vn-50087783', 'tenant_id': '953953fc02614d468bb80e6f24404699', 'project_id': '953953fc02614d468bb80e6f24404699', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00596240', 'ctest-vn-50087783'], 'port_security_enabled': True, 'description': ''}} 2025-11-27 02:09:01,918 - DEBUG - Response for create_subnet : {'subnet': {'id': '20dea330-6544-438a-aaa0-d1bed493b0dd', 'name': '', 'tenant_id': '953953fc02614d468bb80e6f24404699', 'network_id': 'a37ca289-680e-47d7-803f-7b92d6b1f1fd', 'ip_version': 4, 'cidr': '33.239.44.128/26', 'allocation_pools': [{'start': '33.239.44.130', 'end': '33.239.44.190'}], 'gateway_ip': '33.239.44.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.239.44.130', 'tags': [], 'project_id': '953953fc02614d468bb80e6f24404699'}} 2025-11-27 02:09:01,938 - INFO - Created VN ctest-vn-50087783 2025-11-27 02:09:01,992 - DEBUG - VN ctest-vn-50087783 UUID is a37ca289-680e-47d7-803f-7b92d6b1f1fd 2025-11-27 02:09:02,318 - DEBUG - Response for create_network : {'network': {'id': 'c96eef40-aedd-4565-af4f-32af0bdd0b37', 'name': 'ctest-vn-18823558', 'tenant_id': '953953fc02614d468bb80e6f24404699', 'project_id': '953953fc02614d468bb80e6f24404699', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00596240', 'ctest-vn-18823558'], 'port_security_enabled': True, 'description': ''}} 2025-11-27 02:09:02,542 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca47e0ee-3d15-4aa4-83b0-08566df0c5ae', 'name': '', 'tenant_id': '953953fc02614d468bb80e6f24404699', 'network_id': 'c96eef40-aedd-4565-af4f-32af0bdd0b37', 'ip_version': 4, 'cidr': '101.137.236.64/26', 'allocation_pools': [{'start': '101.137.236.66', 'end': '101.137.236.126'}], 'gateway_ip': '101.137.236.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.137.236.66', 'tags': [], 'project_id': '953953fc02614d468bb80e6f24404699'}} 2025-11-27 02:09:02,561 - INFO - Created VN ctest-vn-18823558 2025-11-27 02:09:02,616 - DEBUG - VN ctest-vn-18823558 UUID is c96eef40-aedd-4565-af4f-32af0bdd0b37 2025-11-27 02:09:02,729 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-50087783, 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-00596240:ctest-vn-18823558, 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-11-27 02:09:03,048 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a37ca289-680e-47d7-803f-7b92d6b1f1fd', 'name': 'ctest-vn-50087783', 'tenant_id': '953953fc02614d468bb80e6f24404699', 'project_id': '953953fc02614d468bb80e6f24404699', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20dea330-6544-438a-aaa0-d1bed493b0dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00596240', 'ctest-vn-50087783'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00596240', 'ctest-policy-allow-all-08183954']], 'subnet_ipam': [{'subnet_cidr': '33.239.44.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-27 02:09:03,335 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c96eef40-aedd-4565-af4f-32af0bdd0b37', 'name': 'ctest-vn-18823558', 'tenant_id': '953953fc02614d468bb80e6f24404699', 'project_id': '953953fc02614d468bb80e6f24404699', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca47e0ee-3d15-4aa4-83b0-08566df0c5ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00596240', 'ctest-vn-18823558'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00596240', 'ctest-policy-allow-all-08183954']], 'subnet_ipam': [{'subnet_cidr': '101.137.236.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-27 02:09:03,484 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-27 02:09:03,819 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-27 02:09:03,855 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4c46a6c9-7e7d-43c8-94b2-74dfcfc418c9 2025-11-27 02:09:03,868 - DEBUG - Requesting: http://10.0.0.22:8082/project/953953fc-0261-4d46-8bb8-0e6f24404699 2025-11-27 02:09:03,945 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a37ca289-680e-47d7-803f-7b92d6b1f1fd 2025-11-27 02:09:03,958 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a37ca289-680e-47d7-803f-7b92d6b1f1fd 2025-11-27 02:09:03,969 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/304e183f-8e05-4217-8d33-6021c6174481 2025-11-27 02:09:03,978 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/304e183f-8e05-4217-8d33-6021c6174481 2025-11-27 02:09:03,985 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a8577ba6-2b35-4bb6-8bd0-edd5f6db5961 2025-11-27 02:09:03,992 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-27 02:09:03,992 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a37ca289-680e-47d7-803f-7b92d6b1f1fd 2025-11-27 02:09:04,002 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/304e183f-8e05-4217-8d33-6021c6174481 2025-11-27 02:09:04,019 - INFO - Verified VN network id 11 for VN a37ca289-680e-47d7-803f-7b92d6b1f1fd 2025-11-27 02:09:04,019 - INFO - Verifications in API Server for VN ctest-vn-50087783 passed 2025-11-27 02:09:04,019 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a37ca289-680e-47d7-803f-7b92d6b1f1fd 2025-11-27 02:09:04,030 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/304e183f-8e05-4217-8d33-6021c6174481 2025-11-27 02:09:04,037 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/304e183f-8e05-4217-8d33-6021c6174481 2025-11-27 02:09:04,046 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a8577ba6-2b35-4bb6-8bd0-edd5f6db5961 2025-11-27 02:09:04,058 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-50087783', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00596240', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11780469436334360535', 'uuid-lslong': '9241240830984974845'}, 'enable': 'true', 'created': '2025-11-27T02:09:01', 'last-modified': '2025-11-27T02:09:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.040403'} 2025-11-27 02:09:04,064 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-27 02:09:04,065 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50087783 passed 2025-11-27 02:09:04,065 - DEBUG - ====Verifying policy data for ctest-vn-50087783 in API_Server ====== 2025-11-27 02:09:04,065 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-27 02:09:04,070 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4c46a6c9-7e7d-43c8-94b2-74dfcfc418c9 2025-11-27 02:09:04,081 - DEBUG - Requesting: http://10.0.0.22:8082/project/953953fc-0261-4d46-8bb8-0e6f24404699 2025-11-27 02:09:04,154 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a37ca289-680e-47d7-803f-7b92d6b1f1fd 2025-11-27 02:09:04,163 - DEBUG - ==>Verifying data for policy with id: b8a01ba5-a884-4513-ad4f-18d504d9fbab, fqn: ['default-domain', 'ctest-TestBasicPolicy-00596240', 'ctest-policy-allow-all-08183954'] 2025-11-27 02:09:04,163 - INFO - VN ctest-vn-50087783 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-27 02:09:04,163 - DEBUG - Verifying the vn in opserver 2025-11-27 02:09:04,164 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-50087783 virtual network link through opserver 10.0.0.22 2025-11-27 02:09:04,164 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-27 02:09:04,497 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-27 02:09:04,560 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-50087783', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-50087783?flat'} 2025-11-27 02:09:04,560 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-50087783 is found in opserver 2025-11-27 02:09:04,571 - DEBUG - Do not have enough data to verify VN in agent 2025-11-27 02:09:04,575 - DEBUG - VRF ids for VN ctest-vn-50087783: {} 2025-11-27 02:09:04,575 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-27 02:09:04,582 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4c46a6c9-7e7d-43c8-94b2-74dfcfc418c9 2025-11-27 02:09:04,594 - DEBUG - Requesting: http://10.0.0.22:8082/project/953953fc-0261-4d46-8bb8-0e6f24404699 2025-11-27 02:09:04,666 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c96eef40-aedd-4565-af4f-32af0bdd0b37 2025-11-27 02:09:04,681 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c96eef40-aedd-4565-af4f-32af0bdd0b37 2025-11-27 02:09:04,690 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4acd38bc-b933-4c4b-99f0-1d4920a1e928 2025-11-27 02:09:04,697 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4acd38bc-b933-4c4b-99f0-1d4920a1e928 2025-11-27 02:09:04,703 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/43fd792f-005b-415d-a473-afc5f14452d3 2025-11-27 02:09:04,710 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-27 02:09:04,710 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c96eef40-aedd-4565-af4f-32af0bdd0b37 2025-11-27 02:09:04,720 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4acd38bc-b933-4c4b-99f0-1d4920a1e928 2025-11-27 02:09:04,734 - INFO - Verified VN network id 12 for VN c96eef40-aedd-4565-af4f-32af0bdd0b37 2025-11-27 02:09:04,734 - INFO - Verifications in API Server for VN ctest-vn-18823558 passed 2025-11-27 02:09:04,734 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c96eef40-aedd-4565-af4f-32af0bdd0b37 2025-11-27 02:09:04,743 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4acd38bc-b933-4c4b-99f0-1d4920a1e928 2025-11-27 02:09:04,749 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4acd38bc-b933-4c4b-99f0-1d4920a1e928 2025-11-27 02:09:04,755 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/43fd792f-005b-415d-a473-afc5f14452d3 2025-11-27 02:09:04,765 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-18823558', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00596240', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14514801710152369509', 'uuid-lslong': '12632371207197231927'}, 'enable': 'true', 'created': '2025-11-27T02:09:02', 'last-modified': '2025-11-27T02:09:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.500044'} 2025-11-27 02:09:04,771 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-27 02:09:04,771 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18823558 passed 2025-11-27 02:09:04,771 - DEBUG - ====Verifying policy data for ctest-vn-18823558 in API_Server ====== 2025-11-27 02:09:04,771 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-27 02:09:04,777 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4c46a6c9-7e7d-43c8-94b2-74dfcfc418c9 2025-11-27 02:09:04,786 - DEBUG - Requesting: http://10.0.0.22:8082/project/953953fc-0261-4d46-8bb8-0e6f24404699 2025-11-27 02:09:04,856 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c96eef40-aedd-4565-af4f-32af0bdd0b37 2025-11-27 02:09:04,866 - DEBUG - ==>Verifying data for policy with id: b8a01ba5-a884-4513-ad4f-18d504d9fbab, fqn: ['default-domain', 'ctest-TestBasicPolicy-00596240', 'ctest-policy-allow-all-08183954'] 2025-11-27 02:09:04,866 - INFO - VN ctest-vn-18823558 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-27 02:09:04,866 - DEBUG - Verifying the vn in opserver 2025-11-27 02:09:04,866 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-18823558 virtual network link through opserver 10.0.0.22 2025-11-27 02:09:04,866 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-27 02:09:04,877 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-18823558', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-18823558?flat'} 2025-11-27 02:09:04,877 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-18823558 is found in opserver 2025-11-27 02:09:04,886 - DEBUG - Do not have enough data to verify VN in agent 2025-11-27 02:09:04,891 - DEBUG - VRF ids for VN ctest-vn-18823558: {} 2025-11-27 02:09:04,959 - DEBUG - Services list from nova: [, , ] 2025-11-27 02:09:06,111 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4817-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4817-1) 2025-11-27 02:09:07,374 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4817-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4817-1) 2025-11-27 02:09:07,374 - INFO - Waiting for VM ctest-TestBasicPolicy-00596240-36182260 to be up.. 2025-11-27 02:09:07,475 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-27 02:09:12,555 - DEBUG - VM is in ACTIVE state now 2025-11-27 02:09:12,555 - INFO - VM name : ctest-TestBasicPolicy-00596240-36182260 2025-11-27 02:09:12,629 - DEBUG - VM ctest-TestBasicPolicy-00596240-36182260 ID is 620040a5-b420-474b-951f-f62a0dc2c4f1 2025-11-27 02:09:12,649 - DEBUG - VM ctest-TestBasicPolicy-00596240-36182260 launched on Node cn-jenkins-deploy-platform-ansible-os-4817-1 2025-11-27 02:09:12,723 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/620040a5-b420-474b-951f-f62a0dc2c4f1 2025-11-27 02:09:12,732 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/341bdc17-9c21-4186-8231-e0e659025b76 2025-11-27 02:09:15,989 - 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 1014ms') 2025-11-27 02:09:15,989 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00596240-36182260 failed! 2025-11-27 02:09:16,044 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-50087783 is 33.239.44.129 and allocation pool is NOT set 2025-11-27 02:09:18,104 - 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=15.8 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.37 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 = 2.365/9.067/15.770/6.702 ms') 2025-11-27 02:09:18,104 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00596240-36182260 passed 2025-11-27 02:09:18,252 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 02:09:18,252 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00596240-36182260, IP 33.239.44.131, Port 22 2025-11-27 02:09:18,307 - 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-11-27 02:09:18,389 - DEBUG - VM ctest-TestBasicPolicy-00596240-36182260 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-27 02:09:23,390 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 02:09:23,390 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00596240-36182260, IP 33.239.44.131, Port 22 2025-11-27 02:09:23,551 - DEBUG - VM ctest-TestBasicPolicy-00596240-36182260 is ready for SSH connections 2025-11-27 02:09:23,551 - INFO - Waiting for VM ctest-TestBasicPolicy-00596240-07606472 to be up.. 2025-11-27 02:09:23,622 - DEBUG - VM is in ACTIVE state now 2025-11-27 02:09:23,622 - INFO - VM name : ctest-TestBasicPolicy-00596240-07606472 2025-11-27 02:09:23,698 - DEBUG - VM ctest-TestBasicPolicy-00596240-07606472 ID is 72e370e6-14a8-4056-a0dd-4b2751ad046e 2025-11-27 02:09:23,698 - DEBUG - VM ctest-TestBasicPolicy-00596240-07606472 launched on Node cn-jenkins-deploy-platform-ansible-os-4817-1 2025-11-27 02:09:23,780 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/72e370e6-14a8-4056-a0dd-4b2751ad046e 2025-11-27 02:09:23,789 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/a4444167-e070-458d-bcca-bf9a3af99f42 2025-11-27 02:09:25,026 - 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=4.28 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.340 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.340/2.310/4.280/1.970 ms') 2025-11-27 02:09:25,026 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-00596240-07606472 passed 2025-11-27 02:09:25,176 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 02:09:25,176 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00596240-07606472, IP 101.137.236.67, Port 22 2025-11-27 02:09:25,331 - DEBUG - VM ctest-TestBasicPolicy-00596240-07606472 is ready for SSH connections 2025-11-27 02:09:25,332 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 02:09:25,332 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 101.137.236.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-11-27 02:09:25,332 - DEBUG - ping -s 56 -c 3 -W 1 101.137.236.67 2025-11-27 02:09:29,439 - DEBUG - PING 101.137.236.67 (101.137.236.67): 56 data bytes 64 bytes from 101.137.236.67: seq=0 ttl=63 time=3.882 ms 64 bytes from 101.137.236.67: seq=1 ttl=63 time=1.064 ms 64 bytes from 101.137.236.67: seq=2 ttl=63 time=0.912 ms --- 101.137.236.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.912/1.952/3.882 ms 2025-11-27 02:09:29,439 - INFO - Ping to IP 101.137.236.67 from VM ctest-TestBasicPolicy-00596240-36182260 passed 2025-11-27 02:09:29,620 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b8a01ba5-a884-4513-ad4f-18d504d9fbab", "href": "http://10.0.0.22:8082/network-policy/b8a01ba5-a884-4513-ad4f-18d504d9fbab"}} 2025-11-27 02:09:29,620 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 02:09:29,620 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 101.137.236.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-11-27 02:09:29,620 - DEBUG - ping -s 56 -c 3 -W 1 101.137.236.67 2025-11-27 02:09:32,853 - DEBUG - PING 101.137.236.67 (101.137.236.67): 56 data bytes --- 101.137.236.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-27 02:09:32,853 - WARNING - Ping to IP 101.137.236.67 from VM ctest-TestBasicPolicy-00596240-36182260 failed 2025-11-27 02:09:32,853 - INFO - Deleting VM ctest-TestBasicPolicy-00596240-07606472 2025-11-27 02:09:32,926 - INFO - Deleting VM ctest-TestBasicPolicy-00596240-36182260 2025-11-27 02:09:33,326 - INFO - Deleted policy ctest-policy-allow-all-08183954 2025-11-27 02:09:33,326 - INFO - Deleting VN ctest-vn-18823558 2025-11-27 02:09:33,373 - DEBUG - VN c96eef40-aedd-4565-af4f-32af0bdd0b37 still in use: Unable to complete operation on network c96eef40-aedd-4565-af4f-32af0bdd0b37. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e30e6e51-3861-437f-a0a3-7b641319adf1'] 2025-11-27 02:09:33,373 - WARNING - Deleting VN ctest-vn-18823558 failed..Will retry 2025-11-27 02:09:35,469 - DEBUG - Response for deleting network () 2025-11-27 02:09:35,470 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4acd38bc-b933-4c4b-99f0-1d4920a1e928 2025-11-27 02:09:35,478 - DEBUG - Response Code: 404 2025-11-27 02:09:35,478 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-27 02:09:35,484 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4c46a6c9-7e7d-43c8-94b2-74dfcfc418c9 2025-11-27 02:09:35,538 - DEBUG - Requesting: http://10.0.0.22:8082/project/953953fc-0261-4d46-8bb8-0e6f24404699 2025-11-27 02:09:35,611 - INFO - Validated that VN ctest-vn-18823558 is not found in API Server 2025-11-27 02:09:35,621 - DEBUG - VN ctest-vn-18823558 is not present in Agent 10.0.0.22 2025-11-27 02:09:35,621 - INFO - Validated that VN ctest-vn-18823558 is not in any agent 2025-11-27 02:09:35,633 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-18823558 info 2025-11-27 02:09:35,633 - INFO - Deleting VN ctest-vn-50087783 2025-11-27 02:09:35,737 - DEBUG - Response for deleting network () 2025-11-27 02:09:35,737 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/304e183f-8e05-4217-8d33-6021c6174481 2025-11-27 02:09:35,742 - DEBUG - Response Code: 404 2025-11-27 02:09:35,743 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-27 02:09:35,747 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4c46a6c9-7e7d-43c8-94b2-74dfcfc418c9 2025-11-27 02:09:35,801 - DEBUG - Requesting: http://10.0.0.22:8082/project/953953fc-0261-4d46-8bb8-0e6f24404699 2025-11-27 02:09:35,872 - INFO - Validated that VN ctest-vn-50087783 is not found in API Server 2025-11-27 02:09:35,883 - DEBUG - VN ctest-vn-50087783 is not present in Agent 10.0.0.22 2025-11-27 02:09:35,883 - INFO - Validated that VN ctest-vn-50087783 is not in any agent 2025-11-27 02:09:35,898 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-50087783 info 2025-11-27 02:09:36,157 - DEBUG - No XMPP flaps were noticed during the test
2025-11-27 02:09:36,157 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-11-27 02:09:36,157 - INFO - -------------------------------------------------------------------------------- 2025-11-27 02:09:36,883 - INFO - Deleted project: ctest-TestBasicPolicy-00596240, ID : 953953fc-0261-4d46-8bb8-0e6f24404699