2025-06-18 12:28:04,607 - INFO - Domain Default found not creating 2025-06-18 12:28:04,907 - INFO - Project ctest-TestBasicPolicy-08375606 not found, creating it 2025-06-18 12:28:05,357 - INFO - Created Project:ctest-TestBasicPolicy-08375606, ID : 3b7fdb3f-c673-4f08-aff0-8583ecd63907 2025-06-18 12:28:06,827 - INFO - ================================================================================ 2025-06-18 12:28:06,827 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-18 12:28:06,827 - 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-06-18 12:28:07,087 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-06-18 12:28:07,087 - INFO - Initial checks done. Running the testcase now 2025-06-18 12:28:07,087 - INFO - 2025-06-18 12:28:07,653 - DEBUG - Response for create_network : {'network': {'id': 'cf84bd32-cf84-4b30-bb6f-9c0add92ea66', 'name': 'ctest-vn-78675598', 'tenant_id': '3b7fdb3fc6734f08aff08583ecd63907', 'project_id': '3b7fdb3fc6734f08aff08583ecd63907', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08375606', 'ctest-vn-78675598'], 'port_security_enabled': True, 'description': ''}} 2025-06-18 12:28:07,853 - DEBUG - Response for create_subnet : {'subnet': {'id': '41ac6be9-7b90-43b5-bae7-f23fd646f864', 'name': '', 'tenant_id': '3b7fdb3fc6734f08aff08583ecd63907', 'network_id': 'cf84bd32-cf84-4b30-bb6f-9c0add92ea66', 'ip_version': 4, 'cidr': '52.30.39.64/26', 'allocation_pools': [{'start': '52.30.39.66', 'end': '52.30.39.126'}], 'gateway_ip': '52.30.39.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.30.39.66', 'tags': [], 'project_id': '3b7fdb3fc6734f08aff08583ecd63907'}} 2025-06-18 12:28:07,871 - INFO - Created VN ctest-vn-78675598 2025-06-18 12:28:07,925 - DEBUG - VN ctest-vn-78675598 UUID is cf84bd32-cf84-4b30-bb6f-9c0add92ea66 2025-06-18 12:28:08,232 - DEBUG - Response for create_network : {'network': {'id': 'e1718723-4717-4fb4-a1f7-23edf343ab14', 'name': 'ctest-vn-05959672', 'tenant_id': '3b7fdb3fc6734f08aff08583ecd63907', 'project_id': '3b7fdb3fc6734f08aff08583ecd63907', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08375606', 'ctest-vn-05959672'], 'port_security_enabled': True, 'description': ''}} 2025-06-18 12:28:08,437 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cbf9bbb8-ba11-4511-bc4b-5b7ae7b93b0a', 'name': '', 'tenant_id': '3b7fdb3fc6734f08aff08583ecd63907', 'network_id': 'e1718723-4717-4fb4-a1f7-23edf343ab14', 'ip_version': 4, 'cidr': '98.162.183.128/26', 'allocation_pools': [{'start': '98.162.183.130', 'end': '98.162.183.190'}], 'gateway_ip': '98.162.183.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.162.183.130', 'tags': [], 'project_id': '3b7fdb3fc6734f08aff08583ecd63907'}} 2025-06-18 12:28:08,455 - INFO - Created VN ctest-vn-05959672 2025-06-18 12:28:08,509 - DEBUG - VN ctest-vn-05959672 UUID is e1718723-4717-4fb4-a1f7-23edf343ab14 2025-06-18 12:28:08,637 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-78675598, 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-08375606:ctest-vn-05959672, 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-06-18 12:28:08,950 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf84bd32-cf84-4b30-bb6f-9c0add92ea66', 'name': 'ctest-vn-78675598', 'tenant_id': '3b7fdb3fc6734f08aff08583ecd63907', 'project_id': '3b7fdb3fc6734f08aff08583ecd63907', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41ac6be9-7b90-43b5-bae7-f23fd646f864'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08375606', 'ctest-vn-78675598'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08375606', 'ctest-policy-allow-all-39693386']], 'subnet_ipam': [{'subnet_cidr': '52.30.39.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-18 12:28:09,196 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1718723-4717-4fb4-a1f7-23edf343ab14', 'name': 'ctest-vn-05959672', 'tenant_id': '3b7fdb3fc6734f08aff08583ecd63907', 'project_id': '3b7fdb3fc6734f08aff08583ecd63907', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cbf9bbb8-ba11-4511-bc4b-5b7ae7b93b0a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08375606', 'ctest-vn-05959672'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08375606', 'ctest-policy-allow-all-39693386']], 'subnet_ipam': [{'subnet_cidr': '98.162.183.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-18 12:28:09,345 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-18 12:28:09,645 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-18 12:28:09,675 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b0bc7422-8987-444c-b9a8-c65fd263c9bd 2025-06-18 12:28:09,694 - DEBUG - Requesting: http://10.0.0.254:8082/project/3b7fdb3f-c673-4f08-aff0-8583ecd63907 2025-06-18 12:28:09,772 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cf84bd32-cf84-4b30-bb6f-9c0add92ea66 2025-06-18 12:28:09,785 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cf84bd32-cf84-4b30-bb6f-9c0add92ea66 2025-06-18 12:28:09,796 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c4633094-3cbc-4fcd-ae9a-476a8be3a537 2025-06-18 12:28:09,804 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c4633094-3cbc-4fcd-ae9a-476a8be3a537 2025-06-18 12:28:09,813 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/40468d0b-f42c-4f54-a4bc-e7485e33a381 2025-06-18 12:28:09,820 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-18 12:28:09,820 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cf84bd32-cf84-4b30-bb6f-9c0add92ea66 2025-06-18 12:28:09,831 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c4633094-3cbc-4fcd-ae9a-476a8be3a537 2025-06-18 12:28:09,855 - INFO - Verified VN network id 8 for VN cf84bd32-cf84-4b30-bb6f-9c0add92ea66 2025-06-18 12:28:09,855 - INFO - Verifications in API Server for VN ctest-vn-78675598 passed 2025-06-18 12:28:09,855 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cf84bd32-cf84-4b30-bb6f-9c0add92ea66 2025-06-18 12:28:09,868 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c4633094-3cbc-4fcd-ae9a-476a8be3a537 2025-06-18 12:28:09,876 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c4633094-3cbc-4fcd-ae9a-476a8be3a537 2025-06-18 12:28:09,885 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/40468d0b-f42c-4f54-a4bc-e7485e33a381 2025-06-18 12:28:09,903 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-78675598', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08375606', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14953284688704457520', 'uuid-lslong': '13506185377988405862'}, 'enable': 'true', 'created': '2025-06-18T12:28:07', 'last-modified': '2025-06-18T12:28:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.979833'} 2025-06-18 12:28:09,910 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-18 12:28:09,910 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78675598 passed 2025-06-18 12:28:09,910 - DEBUG - ====Verifying policy data for ctest-vn-78675598 in API_Server ====== 2025-06-18 12:28:09,910 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-18 12:28:09,917 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b0bc7422-8987-444c-b9a8-c65fd263c9bd 2025-06-18 12:28:09,930 - DEBUG - Requesting: http://10.0.0.254:8082/project/3b7fdb3f-c673-4f08-aff0-8583ecd63907 2025-06-18 12:28:10,010 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cf84bd32-cf84-4b30-bb6f-9c0add92ea66 2025-06-18 12:28:10,022 - DEBUG - ==>Verifying data for policy with id: 6be639b4-0038-4067-858e-abe812f59404, fqn: ['default-domain', 'ctest-TestBasicPolicy-08375606', 'ctest-policy-allow-all-39693386'] 2025-06-18 12:28:10,022 - INFO - VN ctest-vn-78675598 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-18 12:28:10,022 - DEBUG - Verifying the vn in opserver 2025-06-18 12:28:10,022 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-78675598 virtual network link through opserver 10.0.0.254 2025-06-18 12:28:10,022 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-18 12:28:10,317 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-18 12:28:10,384 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-78675598', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-78675598?flat'} 2025-06-18 12:28:10,384 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-78675598 is found in opserver 2025-06-18 12:28:10,401 - DEBUG - Do not have enough data to verify VN in agent 2025-06-18 12:28:10,409 - DEBUG - VRF ids for VN ctest-vn-78675598: {} 2025-06-18 12:28:10,409 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-18 12:28:10,417 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b0bc7422-8987-444c-b9a8-c65fd263c9bd 2025-06-18 12:28:10,434 - DEBUG - Requesting: http://10.0.0.254:8082/project/3b7fdb3f-c673-4f08-aff0-8583ecd63907 2025-06-18 12:28:10,513 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e1718723-4717-4fb4-a1f7-23edf343ab14 2025-06-18 12:28:10,528 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e1718723-4717-4fb4-a1f7-23edf343ab14 2025-06-18 12:28:10,539 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bba1fff7-d1dc-42af-906a-40ec283a10e9 2025-06-18 12:28:10,548 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bba1fff7-d1dc-42af-906a-40ec283a10e9 2025-06-18 12:28:10,555 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d9302e06-f477-46b7-9f20-d2466f2b201c 2025-06-18 12:28:10,567 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-18 12:28:10,567 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e1718723-4717-4fb4-a1f7-23edf343ab14 2025-06-18 12:28:10,580 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bba1fff7-d1dc-42af-906a-40ec283a10e9 2025-06-18 12:28:10,598 - INFO - Verified VN network id 9 for VN e1718723-4717-4fb4-a1f7-23edf343ab14 2025-06-18 12:28:10,598 - INFO - Verifications in API Server for VN ctest-vn-05959672 passed 2025-06-18 12:28:10,598 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e1718723-4717-4fb4-a1f7-23edf343ab14 2025-06-18 12:28:10,608 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bba1fff7-d1dc-42af-906a-40ec283a10e9 2025-06-18 12:28:10,616 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bba1fff7-d1dc-42af-906a-40ec283a10e9 2025-06-18 12:28:10,624 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d9302e06-f477-46b7-9f20-d2466f2b201c 2025-06-18 12:28:10,638 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-05959672', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08375606', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16244913916488404916', 'uuid-lslong': '11670836464249449236'}, 'enable': 'true', 'created': '2025-06-18T12:28:08', 'last-modified': '2025-06-18T12:28:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.463666'} 2025-06-18 12:28:10,644 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-18 12:28:10,644 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05959672 passed 2025-06-18 12:28:10,645 - DEBUG - ====Verifying policy data for ctest-vn-05959672 in API_Server ====== 2025-06-18 12:28:10,645 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-18 12:28:10,651 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b0bc7422-8987-444c-b9a8-c65fd263c9bd 2025-06-18 12:28:10,663 - DEBUG - Requesting: http://10.0.0.254:8082/project/3b7fdb3f-c673-4f08-aff0-8583ecd63907 2025-06-18 12:28:10,747 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e1718723-4717-4fb4-a1f7-23edf343ab14 2025-06-18 12:28:10,759 - DEBUG - ==>Verifying data for policy with id: 6be639b4-0038-4067-858e-abe812f59404, fqn: ['default-domain', 'ctest-TestBasicPolicy-08375606', 'ctest-policy-allow-all-39693386'] 2025-06-18 12:28:10,759 - INFO - VN ctest-vn-05959672 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-18 12:28:10,759 - DEBUG - Verifying the vn in opserver 2025-06-18 12:28:10,759 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-05959672 virtual network link through opserver 10.0.0.254 2025-06-18 12:28:10,759 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-18 12:28:10,772 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-05959672', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-05959672?flat'} 2025-06-18 12:28:10,772 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-05959672 is found in opserver 2025-06-18 12:28:10,787 - DEBUG - Do not have enough data to verify VN in agent 2025-06-18 12:28:10,792 - DEBUG - VRF ids for VN ctest-vn-05959672: {} 2025-06-18 12:28:10,857 - DEBUG - Services list from nova: [, , ] 2025-06-18 12:28:11,892 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3474-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3474-1) 2025-06-18 12:28:13,170 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3474-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3474-1) 2025-06-18 12:28:13,171 - INFO - Waiting for VM ctest-TestBasicPolicy-08375606-75963050 to be up.. 2025-06-18 12:28:13,256 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-18 12:28:18,341 - DEBUG - VM is in ACTIVE state now 2025-06-18 12:28:18,341 - INFO - VM name : ctest-TestBasicPolicy-08375606-75963050 2025-06-18 12:28:18,437 - DEBUG - VM ctest-TestBasicPolicy-08375606-75963050 ID is 57737c26-19c8-4a64-9e91-c668027e7fde 2025-06-18 12:28:18,462 - DEBUG - VM ctest-TestBasicPolicy-08375606-75963050 launched on Node cn-jenkins-deploy-platform-ansible-os-3474-1 2025-06-18 12:28:18,554 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/57737c26-19c8-4a64-9e91-c668027e7fde 2025-06-18 12:28:18,564 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/1ebd9278-5e53-4f9d-912b-e495405b2aaa 2025-06-18 12:28:21,778 - 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 1009ms') 2025-06-18 12:28:21,778 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08375606-75963050 failed! 2025-06-18 12:28:21,833 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-78675598 is 52.30.39.65 and allocation pool is NOT set 2025-06-18 12:28:23,900 - 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.64 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.76 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.758/5.199/8.641/3.441 ms') 2025-06-18 12:28:23,900 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08375606-75963050 passed 2025-06-18 12:28:24,057 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 12:28:24,057 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08375606-75963050, IP 52.30.39.67, Port 22 2025-06-18 12:28:24,113 - 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-06-18 12:28:24,193 - DEBUG - VM ctest-TestBasicPolicy-08375606-75963050 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-18 12:28:29,194 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 12:28:29,194 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08375606-75963050, IP 52.30.39.67, Port 22 2025-06-18 12:28:29,349 - DEBUG - VM ctest-TestBasicPolicy-08375606-75963050 is ready for SSH connections 2025-06-18 12:28:29,349 - INFO - Waiting for VM ctest-TestBasicPolicy-08375606-33603715 to be up.. 2025-06-18 12:28:29,429 - DEBUG - VM is in ACTIVE state now 2025-06-18 12:28:29,429 - INFO - VM name : ctest-TestBasicPolicy-08375606-33603715 2025-06-18 12:28:29,511 - DEBUG - VM ctest-TestBasicPolicy-08375606-33603715 ID is 34731875-334d-413a-ac92-072bd308df09 2025-06-18 12:28:29,511 - DEBUG - VM ctest-TestBasicPolicy-08375606-33603715 launched on Node cn-jenkins-deploy-platform-ansible-os-3474-1 2025-06-18 12:28:29,589 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/34731875-334d-413a-ac92-072bd308df09 2025-06-18 12:28:29,599 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/8f64403d-1327-41ae-ad5f-4c89b4a317dc 2025-06-18 12:28:30,842 - 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.91 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.371 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.371/1.639/2.908/1.268 ms') 2025-06-18 12:28:30,842 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-08375606-33603715 passed 2025-06-18 12:28:30,997 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 12:28:30,997 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08375606-33603715, IP 98.162.183.131, Port 22 2025-06-18 12:28:31,157 - DEBUG - VM ctest-TestBasicPolicy-08375606-33603715 is ready for SSH connections 2025-06-18 12:28:31,157 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 12:28:31,157 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 98.162.183.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-18 12:28:31,157 - DEBUG - ping -s 56 -c 3 -W 1 98.162.183.131 2025-06-18 12:28:34,850 - DEBUG - PING 98.162.183.131 (98.162.183.131): 56 data bytes 64 bytes from 98.162.183.131: seq=0 ttl=63 time=3.990 ms 64 bytes from 98.162.183.131: seq=1 ttl=63 time=1.032 ms 64 bytes from 98.162.183.131: seq=2 ttl=63 time=0.870 ms --- 98.162.183.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.870/1.964/3.990 ms 2025-06-18 12:28:34,850 - INFO - Ping to IP 98.162.183.131 from VM ctest-TestBasicPolicy-08375606-75963050 passed 2025-06-18 12:28:35,029 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6be639b4-0038-4067-858e-abe812f59404", "href": "http://10.0.0.254:8082/network-policy/6be639b4-0038-4067-858e-abe812f59404"}} 2025-06-18 12:28:35,029 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 12:28:35,029 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 98.162.183.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-18 12:28:35,029 - DEBUG - ping -s 56 -c 3 -W 1 98.162.183.131 2025-06-18 12:28:38,232 - DEBUG - PING 98.162.183.131 (98.162.183.131): 56 data bytes 64 bytes from 98.162.183.131: seq=0 ttl=63 time=1.364 ms --- 98.162.183.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.364/1.364/1.364 ms 2025-06-18 12:28:38,232 - WARNING - Ping to IP 98.162.183.131 from VM ctest-TestBasicPolicy-08375606-75963050 failed 2025-06-18 12:28:38,232 - INFO - Deleting VM ctest-TestBasicPolicy-08375606-33603715 2025-06-18 12:28:38,307 - INFO - Deleting VM ctest-TestBasicPolicy-08375606-75963050 2025-06-18 12:28:38,765 - INFO - Deleted policy ctest-policy-allow-all-39693386 2025-06-18 12:28:38,765 - INFO - Deleting VN ctest-vn-05959672 2025-06-18 12:28:38,808 - DEBUG - VN e1718723-4717-4fb4-a1f7-23edf343ab14 still in use: Unable to complete operation on network e1718723-4717-4fb4-a1f7-23edf343ab14. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-efd7e6cb-666a-401c-8ffb-22a66a1e58bb'] 2025-06-18 12:28:38,808 - WARNING - Deleting VN ctest-vn-05959672 failed..Will retry 2025-06-18 12:28:40,921 - DEBUG - Response for deleting network () 2025-06-18 12:28:40,921 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bba1fff7-d1dc-42af-906a-40ec283a10e9 2025-06-18 12:28:40,927 - DEBUG - Response Code: 404 2025-06-18 12:28:40,927 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-18 12:28:40,934 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b0bc7422-8987-444c-b9a8-c65fd263c9bd 2025-06-18 12:28:40,992 - DEBUG - Requesting: http://10.0.0.254:8082/project/3b7fdb3f-c673-4f08-aff0-8583ecd63907 2025-06-18 12:28:41,065 - INFO - Validated that VN ctest-vn-05959672 is not found in API Server 2025-06-18 12:28:41,077 - DEBUG - VN ctest-vn-05959672 is not present in Agent 10.0.0.254 2025-06-18 12:28:41,077 - INFO - Validated that VN ctest-vn-05959672 is not in any agent 2025-06-18 12:28:41,095 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-05959672 info 2025-06-18 12:28:41,096 - INFO - Deleting VN ctest-vn-78675598 2025-06-18 12:28:41,210 - DEBUG - Response for deleting network () 2025-06-18 12:28:41,211 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c4633094-3cbc-4fcd-ae9a-476a8be3a537 2025-06-18 12:28:41,219 - DEBUG - Response Code: 404 2025-06-18 12:28:41,219 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-18 12:28:41,232 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b0bc7422-8987-444c-b9a8-c65fd263c9bd 2025-06-18 12:28:41,288 - DEBUG - Requesting: http://10.0.0.254:8082/project/3b7fdb3f-c673-4f08-aff0-8583ecd63907 2025-06-18 12:28:41,363 - INFO - Validated that VN ctest-vn-78675598 is not found in API Server 2025-06-18 12:28:41,374 - DEBUG - VN ctest-vn-78675598 is not present in Agent 10.0.0.254 2025-06-18 12:28:41,374 - INFO - Validated that VN ctest-vn-78675598 is not in any agent 2025-06-18 12:28:41,392 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-78675598 info 2025-06-18 12:28:41,651 - DEBUG - No XMPP flaps were noticed during the test
2025-06-18 12:28:41,651 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-06-18 12:28:41,651 - INFO - -------------------------------------------------------------------------------- 2025-06-18 12:28:42,331 - INFO - Deleted project: ctest-TestBasicPolicy-08375606, ID : 3b7fdb3f-c673-4f08-aff0-8583ecd63907