2025-10-23 23:38:57,247 - INFO - Domain Default found not creating 2025-10-23 23:38:57,466 - INFO - Project ctest-TestBasicPolicy-78690951 not found, creating it 2025-10-23 23:38:58,005 - INFO - Created Project:ctest-TestBasicPolicy-78690951, ID : 871f1340-4217-4ff7-82e9-0a20d9dd6636 2025-10-23 23:38:59,683 - INFO - ================================================================================ 2025-10-23 23:38:59,683 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-23 23:38:59,683 - 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-10-23 23:38:59,957 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2025-10-23 23:38:59,957 - INFO - Initial checks done. Running the testcase now 2025-10-23 23:38:59,957 - INFO - 2025-10-23 23:39:00,646 - DEBUG - Response for create_network : {'network': {'id': '0c20a485-7061-4761-bf64-8db6f7183462', 'name': 'ctest-vn-79876935', 'tenant_id': '871f134042174ff782e90a20d9dd6636', 'project_id': '871f134042174ff782e90a20d9dd6636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78690951', 'ctest-vn-79876935'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 23:39:00,881 - DEBUG - Response for create_subnet : {'subnet': {'id': '4bfb3f5a-c437-4af8-b09c-64116261fb5a', 'name': '', 'tenant_id': '871f134042174ff782e90a20d9dd6636', 'network_id': '0c20a485-7061-4761-bf64-8db6f7183462', 'ip_version': 4, 'cidr': '70.19.224.64/26', 'allocation_pools': [{'start': '70.19.224.66', 'end': '70.19.224.126'}], 'gateway_ip': '70.19.224.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.19.224.66', 'tags': [], 'project_id': '871f134042174ff782e90a20d9dd6636'}} 2025-10-23 23:39:00,918 - INFO - Created VN ctest-vn-79876935 2025-10-23 23:39:00,976 - DEBUG - VN ctest-vn-79876935 UUID is 0c20a485-7061-4761-bf64-8db6f7183462 2025-10-23 23:39:01,392 - DEBUG - Response for create_network : {'network': {'id': '79ef802a-d024-4580-bf6d-fefdc75d0f2c', 'name': 'ctest-vn-84865068', 'tenant_id': '871f134042174ff782e90a20d9dd6636', 'project_id': '871f134042174ff782e90a20d9dd6636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78690951', 'ctest-vn-84865068'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 23:39:01,596 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f73e661-4adf-4340-bb08-51ac0dede874', 'name': '', 'tenant_id': '871f134042174ff782e90a20d9dd6636', 'network_id': '79ef802a-d024-4580-bf6d-fefdc75d0f2c', 'ip_version': 4, 'cidr': '81.176.0.128/26', 'allocation_pools': [{'start': '81.176.0.130', 'end': '81.176.0.190'}], 'gateway_ip': '81.176.0.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.176.0.130', 'tags': [], 'project_id': '871f134042174ff782e90a20d9dd6636'}} 2025-10-23 23:39:01,621 - INFO - Created VN ctest-vn-84865068 2025-10-23 23:39:01,680 - DEBUG - VN ctest-vn-84865068 UUID is 79ef802a-d024-4580-bf6d-fefdc75d0f2c 2025-10-23 23:39:01,814 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78690951:ctest-vn-79876935, 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-78690951:ctest-vn-84865068, 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-10-23 23:39:02,170 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c20a485-7061-4761-bf64-8db6f7183462', 'name': 'ctest-vn-79876935', 'tenant_id': '871f134042174ff782e90a20d9dd6636', 'project_id': '871f134042174ff782e90a20d9dd6636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4bfb3f5a-c437-4af8-b09c-64116261fb5a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78690951', 'ctest-vn-79876935'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78690951', 'ctest-policy-allow-all-97698858']], 'subnet_ipam': [{'subnet_cidr': '70.19.224.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 23:39:02,494 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '79ef802a-d024-4580-bf6d-fefdc75d0f2c', 'name': 'ctest-vn-84865068', 'tenant_id': '871f134042174ff782e90a20d9dd6636', 'project_id': '871f134042174ff782e90a20d9dd6636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7f73e661-4adf-4340-bb08-51ac0dede874'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78690951', 'ctest-vn-84865068'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78690951', 'ctest-policy-allow-all-97698858']], 'subnet_ipam': [{'subnet_cidr': '81.176.0.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 23:39:02,668 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-23 23:39:03,013 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-23 23:39:03,057 - DEBUG - Requesting: http://10.0.0.242:8082/domain/77dd79fe-b044-42a3-ad4e-5d7d587905ed 2025-10-23 23:39:03,076 - DEBUG - Requesting: http://10.0.0.242:8082/project/871f1340-4217-4ff7-82e9-0a20d9dd6636 2025-10-23 23:39:03,164 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0c20a485-7061-4761-bf64-8db6f7183462 2025-10-23 23:39:03,181 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0c20a485-7061-4761-bf64-8db6f7183462 2025-10-23 23:39:03,195 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/beafe3f5-606b-4aab-aee7-6bc17c80bfaf 2025-10-23 23:39:03,206 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/beafe3f5-606b-4aab-aee7-6bc17c80bfaf 2025-10-23 23:39:03,216 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/15f121c3-599c-4f37-a7a4-1863bac86530 2025-10-23 23:39:03,226 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 23:39:03,226 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0c20a485-7061-4761-bf64-8db6f7183462 2025-10-23 23:39:03,240 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/beafe3f5-606b-4aab-aee7-6bc17c80bfaf 2025-10-23 23:39:03,265 - INFO - Verified VN network id 11 for VN 0c20a485-7061-4761-bf64-8db6f7183462 2025-10-23 23:39:03,265 - INFO - Verifications in API Server for VN ctest-vn-79876935 passed 2025-10-23 23:39:03,265 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0c20a485-7061-4761-bf64-8db6f7183462 2025-10-23 23:39:03,279 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/beafe3f5-606b-4aab-aee7-6bc17c80bfaf 2025-10-23 23:39:03,290 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/beafe3f5-606b-4aab-aee7-6bc17c80bfaf 2025-10-23 23:39:03,300 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/15f121c3-599c-4f37-a7a4-1863bac86530 2025-10-23 23:39:03,314 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78690951:ctest-vn-79876935', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78690951', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '873879220732905313', 'uuid-lslong': '13791303775884424290'}, 'enable': 'true', 'created': '2025-10-23T23:39:00', 'last-modified': '2025-10-23T23:39:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.174181'} 2025-10-23 23:39:03,322 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 23:39:03,322 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79876935 passed 2025-10-23 23:39:03,322 - DEBUG - ====Verifying policy data for ctest-vn-79876935 in API_Server ====== 2025-10-23 23:39:03,322 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-23 23:39:03,330 - DEBUG - Requesting: http://10.0.0.242:8082/domain/77dd79fe-b044-42a3-ad4e-5d7d587905ed 2025-10-23 23:39:03,347 - DEBUG - Requesting: http://10.0.0.242:8082/project/871f1340-4217-4ff7-82e9-0a20d9dd6636 2025-10-23 23:39:03,432 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0c20a485-7061-4761-bf64-8db6f7183462 2025-10-23 23:39:03,446 - DEBUG - ==>Verifying data for policy with id: fac0cd36-4ae7-4047-9e59-a4d35f5f816b, fqn: ['default-domain', 'ctest-TestBasicPolicy-78690951', 'ctest-policy-allow-all-97698858'] 2025-10-23 23:39:03,446 - INFO - VN ctest-vn-79876935 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 23:39:03,446 - DEBUG - Verifying the vn in opserver 2025-10-23 23:39:03,446 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78690951:ctest-vn-79876935 virtual network link through opserver 10.0.0.242 2025-10-23 23:39:03,446 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-23 23:39:03,786 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-23 23:39:03,866 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78690951:ctest-vn-79876935', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78690951:ctest-vn-79876935?flat'} 2025-10-23 23:39:03,866 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78690951:ctest-vn-79876935 is found in opserver 2025-10-23 23:39:03,877 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 23:39:03,884 - DEBUG - VRF ids for VN ctest-vn-79876935: {} 2025-10-23 23:39:03,884 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-23 23:39:03,891 - DEBUG - Requesting: http://10.0.0.242:8082/domain/77dd79fe-b044-42a3-ad4e-5d7d587905ed 2025-10-23 23:39:03,906 - DEBUG - Requesting: http://10.0.0.242:8082/project/871f1340-4217-4ff7-82e9-0a20d9dd6636 2025-10-23 23:39:03,986 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/79ef802a-d024-4580-bf6d-fefdc75d0f2c 2025-10-23 23:39:04,002 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/79ef802a-d024-4580-bf6d-fefdc75d0f2c 2025-10-23 23:39:04,014 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ef619ec2-b3ad-4f0d-9db4-3e611f0d391e 2025-10-23 23:39:04,023 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ef619ec2-b3ad-4f0d-9db4-3e611f0d391e 2025-10-23 23:39:04,033 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/21310a85-5368-46e6-a21f-71ea8f24cb88 2025-10-23 23:39:04,042 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-23 23:39:04,042 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/79ef802a-d024-4580-bf6d-fefdc75d0f2c 2025-10-23 23:39:04,053 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ef619ec2-b3ad-4f0d-9db4-3e611f0d391e 2025-10-23 23:39:04,071 - INFO - Verified VN network id 12 for VN 79ef802a-d024-4580-bf6d-fefdc75d0f2c 2025-10-23 23:39:04,071 - INFO - Verifications in API Server for VN ctest-vn-84865068 passed 2025-10-23 23:39:04,071 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/79ef802a-d024-4580-bf6d-fefdc75d0f2c 2025-10-23 23:39:04,085 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ef619ec2-b3ad-4f0d-9db4-3e611f0d391e 2025-10-23 23:39:04,096 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ef619ec2-b3ad-4f0d-9db4-3e611f0d391e 2025-10-23 23:39:04,107 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/21310a85-5368-46e6-a21f-71ea8f24cb88 2025-10-23 23:39:04,122 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78690951:ctest-vn-84865068', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78690951', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8786382319392146816', 'uuid-lslong': '13793961599630642988'}, 'enable': 'true', 'created': '2025-10-23T23:39:01', 'last-modified': '2025-10-23T23:39:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.708932'} 2025-10-23 23:39:04,131 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-23 23:39:04,131 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84865068 passed 2025-10-23 23:39:04,132 - DEBUG - ====Verifying policy data for ctest-vn-84865068 in API_Server ====== 2025-10-23 23:39:04,132 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-23 23:39:04,140 - DEBUG - Requesting: http://10.0.0.242:8082/domain/77dd79fe-b044-42a3-ad4e-5d7d587905ed 2025-10-23 23:39:04,157 - DEBUG - Requesting: http://10.0.0.242:8082/project/871f1340-4217-4ff7-82e9-0a20d9dd6636 2025-10-23 23:39:04,246 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/79ef802a-d024-4580-bf6d-fefdc75d0f2c 2025-10-23 23:39:04,261 - DEBUG - ==>Verifying data for policy with id: fac0cd36-4ae7-4047-9e59-a4d35f5f816b, fqn: ['default-domain', 'ctest-TestBasicPolicy-78690951', 'ctest-policy-allow-all-97698858'] 2025-10-23 23:39:04,261 - INFO - VN ctest-vn-84865068 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 23:39:04,261 - DEBUG - Verifying the vn in opserver 2025-10-23 23:39:04,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78690951:ctest-vn-84865068 virtual network link through opserver 10.0.0.242 2025-10-23 23:39:04,261 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-23 23:39:04,277 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78690951:ctest-vn-84865068', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78690951:ctest-vn-84865068?flat'} 2025-10-23 23:39:04,277 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78690951:ctest-vn-84865068 is found in opserver 2025-10-23 23:39:04,294 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 23:39:04,301 - DEBUG - VRF ids for VN ctest-vn-84865068: {} 2025-10-23 23:39:04,387 - DEBUG - Services list from nova: [, , ] 2025-10-23 23:39:05,660 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4471-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4471-1) 2025-10-23 23:39:07,082 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4471-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4471-1) 2025-10-23 23:39:07,082 - INFO - Waiting for VM ctest-TestBasicPolicy-78690951-31442206 to be up.. 2025-10-23 23:39:07,198 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-23 23:39:12,289 - DEBUG - VM is in ACTIVE state now 2025-10-23 23:39:12,289 - INFO - VM name : ctest-TestBasicPolicy-78690951-31442206 2025-10-23 23:39:12,386 - DEBUG - VM ctest-TestBasicPolicy-78690951-31442206 ID is 89376c31-61c8-4bfe-9567-f64f5c0e8e9b 2025-10-23 23:39:12,416 - DEBUG - VM ctest-TestBasicPolicy-78690951-31442206 launched on Node cn-jenkins-deploy-platform-ansible-os-4471-1 2025-10-23 23:39:12,509 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/89376c31-61c8-4bfe-9567-f64f5c0e8e9b 2025-10-23 23:39:12,520 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/a836fc3a-5a16-45a7-877f-218487d8dcdf 2025-10-23 23:39:15,779 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1011ms') 2025-10-23 23:39:15,780 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-78690951-31442206 failed! 2025-10-23 23:39:15,836 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-78690951:ctest-vn-79876935 is 70.19.224.65 and allocation pool is NOT set 2025-10-23 23:39:17,908 - 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=5.78 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.70 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 = 1.699/3.740/5.782/2.041 ms') 2025-10-23 23:39:17,908 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-78690951-31442206 passed 2025-10-23 23:39:18,064 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 23:39:18,064 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-78690951-31442206, IP 70.19.224.67, Port 22 2025-10-23 23:39:18,130 - 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-10-23 23:39:18,247 - DEBUG - VM ctest-TestBasicPolicy-78690951-31442206 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-23 23:39:23,248 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 23:39:23,248 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-78690951-31442206, IP 70.19.224.67, Port 22 2025-10-23 23:39:23,418 - DEBUG - VM ctest-TestBasicPolicy-78690951-31442206 is ready for SSH connections 2025-10-23 23:39:23,418 - INFO - Waiting for VM ctest-TestBasicPolicy-78690951-97946958 to be up.. 2025-10-23 23:39:23,557 - DEBUG - VM is in ACTIVE state now 2025-10-23 23:39:23,557 - INFO - VM name : ctest-TestBasicPolicy-78690951-97946958 2025-10-23 23:39:23,716 - DEBUG - VM ctest-TestBasicPolicy-78690951-97946958 ID is 53d082c5-f99a-41f8-8766-37a29daca869 2025-10-23 23:39:23,716 - DEBUG - VM ctest-TestBasicPolicy-78690951-97946958 launched on Node cn-jenkins-deploy-platform-ansible-os-4471-1 2025-10-23 23:39:23,848 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/53d082c5-f99a-41f8-8766-37a29daca869 2025-10-23 23:39:23,863 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/8d96f4ea-9c96-47d3-910b-903de0cceffc 2025-10-23 23:39:25,119 - 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.04 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.701 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.701/2.370/4.040/1.669 ms') 2025-10-23 23:39:25,119 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-78690951-97946958 passed 2025-10-23 23:39:25,280 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 23:39:25,280 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-78690951-97946958, IP 81.176.0.131, Port 22 2025-10-23 23:39:25,450 - DEBUG - VM ctest-TestBasicPolicy-78690951-97946958 is ready for SSH connections 2025-10-23 23:39:25,450 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 23:39:25,450 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.176.0.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-10-23 23:39:25,450 - DEBUG - ping -s 56 -c 3 -W 1 81.176.0.131 2025-10-23 23:39:29,695 - DEBUG - PING 81.176.0.131 (81.176.0.131): 56 data bytes 64 bytes from 81.176.0.131: seq=0 ttl=63 time=4.303 ms 64 bytes from 81.176.0.131: seq=1 ttl=63 time=0.915 ms 64 bytes from 81.176.0.131: seq=2 ttl=63 time=1.189 ms --- 81.176.0.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.915/2.135/4.303 ms 2025-10-23 23:39:29,695 - INFO - Ping to IP 81.176.0.131 from VM ctest-TestBasicPolicy-78690951-31442206 passed 2025-10-23 23:39:29,895 - DEBUG - Policy Update Response {"network-policy": {"uuid": "fac0cd36-4ae7-4047-9e59-a4d35f5f816b", "href": "http://10.0.0.242:8082/network-policy/fac0cd36-4ae7-4047-9e59-a4d35f5f816b"}} 2025-10-23 23:39:29,896 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 23:39:29,896 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.176.0.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-10-23 23:39:29,896 - DEBUG - ping -s 56 -c 3 -W 1 81.176.0.131 2025-10-23 23:39:33,152 - DEBUG - PING 81.176.0.131 (81.176.0.131): 56 data bytes --- 81.176.0.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-23 23:39:33,153 - WARNING - Ping to IP 81.176.0.131 from VM ctest-TestBasicPolicy-78690951-31442206 failed 2025-10-23 23:39:33,153 - INFO - Deleting VM ctest-TestBasicPolicy-78690951-97946958 2025-10-23 23:39:33,238 - INFO - Deleting VM ctest-TestBasicPolicy-78690951-31442206 2025-10-23 23:39:33,719 - INFO - Deleted policy ctest-policy-allow-all-97698858 2025-10-23 23:39:33,719 - INFO - Deleting VN ctest-vn-84865068 2025-10-23 23:39:33,768 - DEBUG - VN 79ef802a-d024-4580-bf6d-fefdc75d0f2c still in use: Unable to complete operation on network 79ef802a-d024-4580-bf6d-fefdc75d0f2c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f8c6d4c5-ba47-43b2-9df0-f59b46ce3dc3'] 2025-10-23 23:39:33,768 - WARNING - Deleting VN ctest-vn-84865068 failed..Will retry 2025-10-23 23:39:35,905 - DEBUG - Response for deleting network () 2025-10-23 23:39:35,906 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ef619ec2-b3ad-4f0d-9db4-3e611f0d391e 2025-10-23 23:39:35,918 - DEBUG - Response Code: 404 2025-10-23 23:39:35,918 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-23 23:39:35,926 - DEBUG - Requesting: http://10.0.0.242:8082/domain/77dd79fe-b044-42a3-ad4e-5d7d587905ed 2025-10-23 23:39:35,986 - DEBUG - Requesting: http://10.0.0.242:8082/project/871f1340-4217-4ff7-82e9-0a20d9dd6636 2025-10-23 23:39:36,061 - INFO - Validated that VN ctest-vn-84865068 is not found in API Server 2025-10-23 23:39:36,073 - DEBUG - VN ctest-vn-84865068 is not present in Agent 10.0.0.242 2025-10-23 23:39:36,073 - INFO - Validated that VN ctest-vn-84865068 is not in any agent 2025-10-23 23:39:36,087 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-84865068 info 2025-10-23 23:39:36,087 - INFO - Deleting VN ctest-vn-79876935 2025-10-23 23:39:36,207 - DEBUG - Response for deleting network () 2025-10-23 23:39:36,208 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/beafe3f5-606b-4aab-aee7-6bc17c80bfaf 2025-10-23 23:39:36,216 - DEBUG - Response Code: 404 2025-10-23 23:39:36,217 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-23 23:39:36,224 - DEBUG - Requesting: http://10.0.0.242:8082/domain/77dd79fe-b044-42a3-ad4e-5d7d587905ed 2025-10-23 23:39:36,277 - DEBUG - Requesting: http://10.0.0.242:8082/project/871f1340-4217-4ff7-82e9-0a20d9dd6636 2025-10-23 23:39:36,352 - INFO - Validated that VN ctest-vn-79876935 is not found in API Server 2025-10-23 23:39:36,363 - DEBUG - VN ctest-vn-79876935 is not present in Agent 10.0.0.242 2025-10-23 23:39:36,363 - INFO - Validated that VN ctest-vn-79876935 is not in any agent 2025-10-23 23:39:36,384 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79876935 info 2025-10-23 23:39:36,641 - DEBUG - No XMPP flaps were noticed during the test
2025-10-23 23:39:36,641 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2025-10-23 23:39:36,641 - INFO - -------------------------------------------------------------------------------- 2025-10-23 23:39:37,383 - INFO - Deleted project: ctest-TestBasicPolicy-78690951, ID : 871f1340-4217-4ff7-82e9-0a20d9dd6636