2025-08-28 14:19:54,636 - INFO - Domain Default found not creating 2025-08-28 14:19:54,772 - INFO - Project ctest-TestBasicPolicy-27503609 not found, creating it 2025-08-28 14:19:55,202 - INFO - Created Project:ctest-TestBasicPolicy-27503609, ID : e91e5af7-1767-4efb-b4e1-b53f147c35d2 2025-08-28 14:19:56,715 - INFO - ================================================================================ 2025-08-28 14:19:56,715 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-28 14:19:56,715 - 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-08-28 14:19:56,973 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-08-28 14:19:56,973 - INFO - Initial checks done. Running the testcase now 2025-08-28 14:19:56,973 - INFO - 2025-08-28 14:19:57,554 - DEBUG - Response for create_network : {'network': {'id': '73df7ccd-78d6-4006-991e-5e24008f8711', 'name': 'ctest-vn-43329916', 'tenant_id': 'e91e5af717674efbb4e1b53f147c35d2', 'project_id': 'e91e5af717674efbb4e1b53f147c35d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27503609', 'ctest-vn-43329916'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 14:19:57,751 - DEBUG - Response for create_subnet : {'subnet': {'id': '9dc22080-e90d-46e2-bb98-237cb6375a1b', 'name': '', 'tenant_id': 'e91e5af717674efbb4e1b53f147c35d2', 'network_id': '73df7ccd-78d6-4006-991e-5e24008f8711', 'ip_version': 4, 'cidr': '122.1.99.0/26', 'allocation_pools': [{'start': '122.1.99.2', 'end': '122.1.99.62'}], 'gateway_ip': '122.1.99.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.1.99.2', 'tags': [], 'project_id': 'e91e5af717674efbb4e1b53f147c35d2'}} 2025-08-28 14:19:57,768 - INFO - Created VN ctest-vn-43329916 2025-08-28 14:19:57,820 - DEBUG - VN ctest-vn-43329916 UUID is 73df7ccd-78d6-4006-991e-5e24008f8711 2025-08-28 14:19:58,126 - DEBUG - Response for create_network : {'network': {'id': '1f2bff95-a0fb-49a3-bf67-5237d7264d84', 'name': 'ctest-vn-40826949', 'tenant_id': 'e91e5af717674efbb4e1b53f147c35d2', 'project_id': 'e91e5af717674efbb4e1b53f147c35d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27503609', 'ctest-vn-40826949'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 14:19:58,342 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b5c52a0-0fc7-4122-8a15-6ef1d0bb9abf', 'name': '', 'tenant_id': 'e91e5af717674efbb4e1b53f147c35d2', 'network_id': '1f2bff95-a0fb-49a3-bf67-5237d7264d84', 'ip_version': 4, 'cidr': '86.235.120.0/26', 'allocation_pools': [{'start': '86.235.120.2', 'end': '86.235.120.62'}], 'gateway_ip': '86.235.120.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.235.120.2', 'tags': [], 'project_id': 'e91e5af717674efbb4e1b53f147c35d2'}} 2025-08-28 14:19:58,358 - INFO - Created VN ctest-vn-40826949 2025-08-28 14:19:58,408 - DEBUG - VN ctest-vn-40826949 UUID is 1f2bff95-a0fb-49a3-bf67-5237d7264d84 2025-08-28 14:19:58,551 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-43329916, 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-27503609:ctest-vn-40826949, 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-08-28 14:19:58,841 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '73df7ccd-78d6-4006-991e-5e24008f8711', 'name': 'ctest-vn-43329916', 'tenant_id': 'e91e5af717674efbb4e1b53f147c35d2', 'project_id': 'e91e5af717674efbb4e1b53f147c35d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9dc22080-e90d-46e2-bb98-237cb6375a1b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27503609', 'ctest-vn-43329916'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27503609', 'ctest-policy-allow-all-26870509']], 'subnet_ipam': [{'subnet_cidr': '122.1.99.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-28 14:19:59,125 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1f2bff95-a0fb-49a3-bf67-5237d7264d84', 'name': 'ctest-vn-40826949', 'tenant_id': 'e91e5af717674efbb4e1b53f147c35d2', 'project_id': 'e91e5af717674efbb4e1b53f147c35d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b5c52a0-0fc7-4122-8a15-6ef1d0bb9abf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27503609', 'ctest-vn-40826949'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27503609', 'ctest-policy-allow-all-26870509']], 'subnet_ipam': [{'subnet_cidr': '86.235.120.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-28 14:19:59,268 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 14:19:59,607 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 14:19:59,633 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5d03df05-e0d5-4270-9076-958063a7f381 2025-08-28 14:19:59,643 - DEBUG - Requesting: http://10.0.0.249:8082/project/e91e5af7-1767-4efb-b4e1-b53f147c35d2 2025-08-28 14:19:59,715 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/73df7ccd-78d6-4006-991e-5e24008f8711 2025-08-28 14:19:59,724 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/73df7ccd-78d6-4006-991e-5e24008f8711 2025-08-28 14:19:59,733 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9dc25816-3a2c-4436-83f9-156308db39d5 2025-08-28 14:19:59,739 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9dc25816-3a2c-4436-83f9-156308db39d5 2025-08-28 14:19:59,744 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/c9cdc5b7-78de-45cc-8e45-d413742022b7 2025-08-28 14:19:59,749 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 14:19:59,749 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/73df7ccd-78d6-4006-991e-5e24008f8711 2025-08-28 14:19:59,757 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9dc25816-3a2c-4436-83f9-156308db39d5 2025-08-28 14:19:59,769 - INFO - Verified VN network id 11 for VN 73df7ccd-78d6-4006-991e-5e24008f8711 2025-08-28 14:19:59,769 - INFO - Verifications in API Server for VN ctest-vn-43329916 passed 2025-08-28 14:19:59,769 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/73df7ccd-78d6-4006-991e-5e24008f8711 2025-08-28 14:19:59,777 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9dc25816-3a2c-4436-83f9-156308db39d5 2025-08-28 14:19:59,782 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9dc25816-3a2c-4436-83f9-156308db39d5 2025-08-28 14:19:59,787 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/c9cdc5b7-78de-45cc-8e45-d413742022b7 2025-08-28 14:19:59,797 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-43329916', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27503609', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8349529456105635846', 'uuid-lslong': '11033359645825533713'}, 'enable': 'true', 'created': '2025-08-28T14:19:57', 'last-modified': '2025-08-28T14:19:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.979503'} 2025-08-28 14:19:59,803 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 14:19:59,803 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43329916 passed 2025-08-28 14:19:59,803 - DEBUG - ====Verifying policy data for ctest-vn-43329916 in API_Server ====== 2025-08-28 14:19:59,803 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 14:19:59,807 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5d03df05-e0d5-4270-9076-958063a7f381 2025-08-28 14:19:59,816 - DEBUG - Requesting: http://10.0.0.249:8082/project/e91e5af7-1767-4efb-b4e1-b53f147c35d2 2025-08-28 14:19:59,887 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/73df7ccd-78d6-4006-991e-5e24008f8711 2025-08-28 14:19:59,897 - DEBUG - ==>Verifying data for policy with id: 7471bb67-112a-484b-909f-4dd3fd9d0c4b, fqn: ['default-domain', 'ctest-TestBasicPolicy-27503609', 'ctest-policy-allow-all-26870509'] 2025-08-28 14:19:59,897 - INFO - VN ctest-vn-43329916 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-28 14:19:59,897 - DEBUG - Verifying the vn in opserver 2025-08-28 14:19:59,897 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-43329916 virtual network link through opserver 10.0.0.249 2025-08-28 14:19:59,897 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-28 14:20:00,227 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-28 14:20:00,280 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-43329916', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-43329916?flat'} 2025-08-28 14:20:00,280 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-43329916 is found in opserver 2025-08-28 14:20:00,289 - DEBUG - Do not have enough data to verify VN in agent 2025-08-28 14:20:00,293 - DEBUG - VRF ids for VN ctest-vn-43329916: {} 2025-08-28 14:20:00,293 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 14:20:00,298 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5d03df05-e0d5-4270-9076-958063a7f381 2025-08-28 14:20:00,308 - DEBUG - Requesting: http://10.0.0.249:8082/project/e91e5af7-1767-4efb-b4e1-b53f147c35d2 2025-08-28 14:20:00,377 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1f2bff95-a0fb-49a3-bf67-5237d7264d84 2025-08-28 14:20:00,388 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1f2bff95-a0fb-49a3-bf67-5237d7264d84 2025-08-28 14:20:00,396 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c46e38bd-3d1c-4f82-9c18-cc2f43d1b0fd 2025-08-28 14:20:00,403 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c46e38bd-3d1c-4f82-9c18-cc2f43d1b0fd 2025-08-28 14:20:00,409 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/f9cd318e-49d7-4853-97ad-7f946a76423e 2025-08-28 14:20:00,414 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-28 14:20:00,414 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1f2bff95-a0fb-49a3-bf67-5237d7264d84 2025-08-28 14:20:00,424 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c46e38bd-3d1c-4f82-9c18-cc2f43d1b0fd 2025-08-28 14:20:00,437 - INFO - Verified VN network id 12 for VN 1f2bff95-a0fb-49a3-bf67-5237d7264d84 2025-08-28 14:20:00,437 - INFO - Verifications in API Server for VN ctest-vn-40826949 passed 2025-08-28 14:20:00,437 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1f2bff95-a0fb-49a3-bf67-5237d7264d84 2025-08-28 14:20:00,446 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c46e38bd-3d1c-4f82-9c18-cc2f43d1b0fd 2025-08-28 14:20:00,452 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c46e38bd-3d1c-4f82-9c18-cc2f43d1b0fd 2025-08-28 14:20:00,458 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/f9cd318e-49d7-4853-97ad-7f946a76423e 2025-08-28 14:20:00,468 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-40826949', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27503609', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2246169857290357155', 'uuid-lslong': '13792082783631723908'}, 'enable': 'true', 'created': '2025-08-28T14:19:58', 'last-modified': '2025-08-28T14:19:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.411746'} 2025-08-28 14:20:00,474 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-28 14:20:00,474 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40826949 passed 2025-08-28 14:20:00,474 - DEBUG - ====Verifying policy data for ctest-vn-40826949 in API_Server ====== 2025-08-28 14:20:00,474 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 14:20:00,478 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5d03df05-e0d5-4270-9076-958063a7f381 2025-08-28 14:20:00,489 - DEBUG - Requesting: http://10.0.0.249:8082/project/e91e5af7-1767-4efb-b4e1-b53f147c35d2 2025-08-28 14:20:00,567 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1f2bff95-a0fb-49a3-bf67-5237d7264d84 2025-08-28 14:20:00,576 - DEBUG - ==>Verifying data for policy with id: 7471bb67-112a-484b-909f-4dd3fd9d0c4b, fqn: ['default-domain', 'ctest-TestBasicPolicy-27503609', 'ctest-policy-allow-all-26870509'] 2025-08-28 14:20:00,576 - INFO - VN ctest-vn-40826949 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-28 14:20:00,576 - DEBUG - Verifying the vn in opserver 2025-08-28 14:20:00,576 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-40826949 virtual network link through opserver 10.0.0.249 2025-08-28 14:20:00,576 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-28 14:20:00,586 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-40826949', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-40826949?flat'} 2025-08-28 14:20:00,587 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-40826949 is found in opserver 2025-08-28 14:20:00,596 - DEBUG - Do not have enough data to verify VN in agent 2025-08-28 14:20:00,601 - DEBUG - VRF ids for VN ctest-vn-40826949: {} 2025-08-28 14:20:00,658 - DEBUG - Services list from nova: [, , ] 2025-08-28 14:20:01,892 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3959-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3959-1) 2025-08-28 14:20:03,053 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3959-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3959-1) 2025-08-28 14:20:03,054 - INFO - Waiting for VM ctest-TestBasicPolicy-27503609-68769919 to be up.. 2025-08-28 14:20:03,126 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-28 14:20:08,198 - DEBUG - VM is in ACTIVE state now 2025-08-28 14:20:08,198 - INFO - VM name : ctest-TestBasicPolicy-27503609-68769919 2025-08-28 14:20:08,273 - DEBUG - VM ctest-TestBasicPolicy-27503609-68769919 ID is 6e6b475b-1686-4cb1-8642-e4ccbbed95fc 2025-08-28 14:20:08,291 - DEBUG - VM ctest-TestBasicPolicy-27503609-68769919 launched on Node cn-jenkins-deploy-platform-ansible-os-3959-1 2025-08-28 14:20:08,360 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/6e6b475b-1686-4cb1-8642-e4ccbbed95fc 2025-08-28 14:20:08,368 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/b2729c2c-f6a4-4a27-83fa-222d927927c8 2025-08-28 14:20:11,630 - 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 1026ms') 2025-08-28 14:20:11,630 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27503609-68769919 failed! 2025-08-28 14:20:11,684 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27503609:ctest-vn-43329916 is 122.1.99.1 and allocation pool is NOT set 2025-08-28 14:20:13,749 - 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.08 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.37 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.366/4.724/8.082/3.358 ms') 2025-08-28 14:20:13,749 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27503609-68769919 passed 2025-08-28 14:20:13,904 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 14:20:13,904 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27503609-68769919, IP 122.1.99.3, Port 22 2025-08-28 14:20:13,960 - 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-08-28 14:20:14,035 - DEBUG - VM ctest-TestBasicPolicy-27503609-68769919 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-28 14:20:19,036 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 14:20:19,036 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27503609-68769919, IP 122.1.99.3, Port 22 2025-08-28 14:20:19,191 - DEBUG - VM ctest-TestBasicPolicy-27503609-68769919 is ready for SSH connections 2025-08-28 14:20:19,191 - INFO - Waiting for VM ctest-TestBasicPolicy-27503609-72851576 to be up.. 2025-08-28 14:20:19,265 - DEBUG - VM is in ACTIVE state now 2025-08-28 14:20:19,265 - INFO - VM name : ctest-TestBasicPolicy-27503609-72851576 2025-08-28 14:20:19,336 - DEBUG - VM ctest-TestBasicPolicy-27503609-72851576 ID is 61bcf003-8829-445c-8b58-171bbf3adab4 2025-08-28 14:20:19,336 - DEBUG - VM ctest-TestBasicPolicy-27503609-72851576 launched on Node cn-jenkins-deploy-platform-ansible-os-3959-1 2025-08-28 14:20:19,402 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/61bcf003-8829-445c-8b58-171bbf3adab4 2025-08-28 14:20:19,409 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/0186c72a-e85d-4fbc-8dbd-151ee24fdfa2 2025-08-28 14:20:20,645 - 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.97 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.386 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.386/1.675/2.965/1.289 ms') 2025-08-28 14:20:20,646 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-27503609-72851576 passed 2025-08-28 14:20:20,796 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 14:20:20,796 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27503609-72851576, IP 86.235.120.3, Port 22 2025-08-28 14:20:20,955 - DEBUG - VM ctest-TestBasicPolicy-27503609-72851576 is ready for SSH connections 2025-08-28 14:20:20,955 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 14:20:20,955 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 86.235.120.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-08-28 14:20:20,955 - DEBUG - ping -s 56 -c 3 -W 1 86.235.120.3 2025-08-28 14:20:25,044 - DEBUG - PING 86.235.120.3 (86.235.120.3): 56 data bytes 64 bytes from 86.235.120.3: seq=0 ttl=63 time=3.409 ms 64 bytes from 86.235.120.3: seq=1 ttl=63 time=1.068 ms 64 bytes from 86.235.120.3: seq=2 ttl=63 time=0.876 ms --- 86.235.120.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.876/1.784/3.409 ms 2025-08-28 14:20:25,044 - INFO - Ping to IP 86.235.120.3 from VM ctest-TestBasicPolicy-27503609-68769919 passed 2025-08-28 14:20:25,215 - DEBUG - Policy Update Response {"network-policy": {"uuid": "7471bb67-112a-484b-909f-4dd3fd9d0c4b", "href": "http://10.0.0.249:8082/network-policy/7471bb67-112a-484b-909f-4dd3fd9d0c4b"}} 2025-08-28 14:20:25,215 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 14:20:25,216 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 86.235.120.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-08-28 14:20:25,216 - DEBUG - ping -s 56 -c 3 -W 1 86.235.120.3 2025-08-28 14:20:28,441 - DEBUG - PING 86.235.120.3 (86.235.120.3): 56 data bytes --- 86.235.120.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-28 14:20:28,441 - WARNING - Ping to IP 86.235.120.3 from VM ctest-TestBasicPolicy-27503609-68769919 failed 2025-08-28 14:20:28,441 - INFO - Deleting VM ctest-TestBasicPolicy-27503609-72851576 2025-08-28 14:20:28,506 - INFO - Deleting VM ctest-TestBasicPolicy-27503609-68769919 2025-08-28 14:20:28,870 - INFO - Deleted policy ctest-policy-allow-all-26870509 2025-08-28 14:20:28,870 - INFO - Deleting VN ctest-vn-40826949 2025-08-28 14:20:28,901 - DEBUG - VN 1f2bff95-a0fb-49a3-bf67-5237d7264d84 still in use: Unable to complete operation on network 1f2bff95-a0fb-49a3-bf67-5237d7264d84. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6a5b990a-60c8-4947-a7d1-9321036e8c96'] 2025-08-28 14:20:28,901 - WARNING - Deleting VN ctest-vn-40826949 failed..Will retry 2025-08-28 14:20:31,009 - DEBUG - Response for deleting network () 2025-08-28 14:20:31,009 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c46e38bd-3d1c-4f82-9c18-cc2f43d1b0fd 2025-08-28 14:20:31,016 - DEBUG - Response Code: 404 2025-08-28 14:20:31,016 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 14:20:31,021 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5d03df05-e0d5-4270-9076-958063a7f381 2025-08-28 14:20:31,074 - DEBUG - Requesting: http://10.0.0.249:8082/project/e91e5af7-1767-4efb-b4e1-b53f147c35d2 2025-08-28 14:20:31,146 - INFO - Validated that VN ctest-vn-40826949 is not found in API Server 2025-08-28 14:20:31,157 - DEBUG - VN ctest-vn-40826949 is not present in Agent 10.0.0.249 2025-08-28 14:20:31,157 - INFO - Validated that VN ctest-vn-40826949 is not in any agent 2025-08-28 14:20:31,172 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-40826949 info 2025-08-28 14:20:31,172 - INFO - Deleting VN ctest-vn-43329916 2025-08-28 14:20:31,256 - DEBUG - Response for deleting network () 2025-08-28 14:20:31,257 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9dc25816-3a2c-4436-83f9-156308db39d5 2025-08-28 14:20:31,262 - DEBUG - Response Code: 404 2025-08-28 14:20:31,262 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 14:20:31,268 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5d03df05-e0d5-4270-9076-958063a7f381 2025-08-28 14:20:31,320 - DEBUG - Requesting: http://10.0.0.249:8082/project/e91e5af7-1767-4efb-b4e1-b53f147c35d2 2025-08-28 14:20:31,389 - INFO - Validated that VN ctest-vn-43329916 is not found in API Server 2025-08-28 14:20:31,399 - DEBUG - VN ctest-vn-43329916 is not present in Agent 10.0.0.249 2025-08-28 14:20:31,399 - INFO - Validated that VN ctest-vn-43329916 is not in any agent 2025-08-28 14:20:31,411 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-43329916 info 2025-08-28 14:20:31,664 - DEBUG - No XMPP flaps were noticed during the test
2025-08-28 14:20:31,664 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-08-28 14:20:31,664 - INFO - -------------------------------------------------------------------------------- 2025-08-28 14:20:32,409 - INFO - Deleted project: ctest-TestBasicPolicy-27503609, ID : e91e5af7-1767-4efb-b4e1-b53f147c35d2