2025-11-20 17:27:40,961 - INFO - Domain Default found not creating 2025-11-20 17:27:41,124 - INFO - Project ctest-TestBasicPolicy-31108039 not found, creating it 2025-11-20 17:27:41,589 - INFO - Created Project:ctest-TestBasicPolicy-31108039, ID : 6337f272-1471-42b3-b4fb-17b1f9bb7043 2025-11-20 17:27:43,722 - INFO - ================================================================================ 2025-11-20 17:27:43,722 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-20 17:27:43,723 - 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-20 17:27:43,981 - DEBUG - Nothing to compare xmpp stats {'10.0.0.145': {'10.20.0.249': '0'}} with 2025-11-20 17:27:43,981 - INFO - Initial checks done. Running the testcase now 2025-11-20 17:27:43,981 - INFO - 2025-11-20 17:27:44,539 - DEBUG - Response for create_network : {'network': {'id': '82f6c886-9f38-402c-8a24-9aeda9aa8d32', 'name': 'ctest-vn-20793551', 'tenant_id': '6337f272147142b3b4fb17b1f9bb7043', 'project_id': '6337f272147142b3b4fb17b1f9bb7043', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31108039', 'ctest-vn-20793551'], 'port_security_enabled': True, 'description': ''}} 2025-11-20 17:27:44,749 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d5289c3-df4b-4658-b94a-1ac1f66ffd8a', 'name': '', 'tenant_id': '6337f272147142b3b4fb17b1f9bb7043', 'network_id': '82f6c886-9f38-402c-8a24-9aeda9aa8d32', 'ip_version': 4, 'cidr': '196.170.199.192/26', 'allocation_pools': [{'start': '196.170.199.194', 'end': '196.170.199.254'}], 'gateway_ip': '196.170.199.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.170.199.194', 'tags': [], 'project_id': '6337f272147142b3b4fb17b1f9bb7043'}} 2025-11-20 17:27:44,766 - INFO - Created VN ctest-vn-20793551 2025-11-20 17:27:44,827 - DEBUG - VN ctest-vn-20793551 UUID is 82f6c886-9f38-402c-8a24-9aeda9aa8d32 2025-11-20 17:27:45,139 - DEBUG - Response for create_network : {'network': {'id': '98e67367-23be-444e-b37e-dcad46f5527a', 'name': 'ctest-vn-20684599', 'tenant_id': '6337f272147142b3b4fb17b1f9bb7043', 'project_id': '6337f272147142b3b4fb17b1f9bb7043', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31108039', 'ctest-vn-20684599'], 'port_security_enabled': True, 'description': ''}} 2025-11-20 17:27:45,346 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1f52f6c-0f8d-4f6f-9403-8fa29fd8ed14', 'name': '', 'tenant_id': '6337f272147142b3b4fb17b1f9bb7043', 'network_id': '98e67367-23be-444e-b37e-dcad46f5527a', 'ip_version': 4, 'cidr': '161.221.40.0/26', 'allocation_pools': [{'start': '161.221.40.2', 'end': '161.221.40.62'}], 'gateway_ip': '161.221.40.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.221.40.2', 'tags': [], 'project_id': '6337f272147142b3b4fb17b1f9bb7043'}} 2025-11-20 17:27:45,363 - INFO - Created VN ctest-vn-20684599 2025-11-20 17:27:45,416 - DEBUG - VN ctest-vn-20684599 UUID is 98e67367-23be-444e-b37e-dcad46f5527a 2025-11-20 17:27:45,564 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20793551, 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-31108039:ctest-vn-20684599, 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-20 17:27:45,850 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '82f6c886-9f38-402c-8a24-9aeda9aa8d32', 'name': 'ctest-vn-20793551', 'tenant_id': '6337f272147142b3b4fb17b1f9bb7043', 'project_id': '6337f272147142b3b4fb17b1f9bb7043', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d5289c3-df4b-4658-b94a-1ac1f66ffd8a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31108039', 'ctest-vn-20793551'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31108039', 'ctest-policy-allow-all-77700383']], 'subnet_ipam': [{'subnet_cidr': '196.170.199.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-20 17:27:46,077 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '98e67367-23be-444e-b37e-dcad46f5527a', 'name': 'ctest-vn-20684599', 'tenant_id': '6337f272147142b3b4fb17b1f9bb7043', 'project_id': '6337f272147142b3b4fb17b1f9bb7043', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1f52f6c-0f8d-4f6f-9403-8fa29fd8ed14'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31108039', 'ctest-vn-20684599'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31108039', 'ctest-policy-allow-all-77700383']], 'subnet_ipam': [{'subnet_cidr': '161.221.40.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-20 17:27:46,244 - DEBUG - Requesting: http://10.0.0.145:8082/domains 2025-11-20 17:27:46,537 - DEBUG - Requesting: http://10.0.0.145:8082/domains 2025-11-20 17:27:46,572 - DEBUG - Requesting: http://10.0.0.145:8082/domain/3ae69794-d215-4e22-8661-e3c4a0723948 2025-11-20 17:27:46,584 - DEBUG - Requesting: http://10.0.0.145:8082/project/6337f272-1471-42b3-b4fb-17b1f9bb7043 2025-11-20 17:27:46,655 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/82f6c886-9f38-402c-8a24-9aeda9aa8d32 2025-11-20 17:27:46,664 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/82f6c886-9f38-402c-8a24-9aeda9aa8d32 2025-11-20 17:27:46,673 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/fe035cb2-b4e4-4678-85ea-ae73c4234cfa 2025-11-20 17:27:46,679 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/fe035cb2-b4e4-4678-85ea-ae73c4234cfa 2025-11-20 17:27:46,686 - DEBUG - Requesting: http://10.0.0.145:8082/route-target/3d4a99cb-727c-45eb-b8d6-34d87eab9afa 2025-11-20 17:27:46,692 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 17:27:46,692 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/82f6c886-9f38-402c-8a24-9aeda9aa8d32 2025-11-20 17:27:46,700 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/fe035cb2-b4e4-4678-85ea-ae73c4234cfa 2025-11-20 17:27:46,714 - INFO - Verified VN network id 11 for VN 82f6c886-9f38-402c-8a24-9aeda9aa8d32 2025-11-20 17:27:46,714 - INFO - Verifications in API Server for VN ctest-vn-20793551 passed 2025-11-20 17:27:46,714 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/82f6c886-9f38-402c-8a24-9aeda9aa8d32 2025-11-20 17:27:46,722 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/fe035cb2-b4e4-4678-85ea-ae73c4234cfa 2025-11-20 17:27:46,728 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/fe035cb2-b4e4-4678-85ea-ae73c4234cfa 2025-11-20 17:27:46,734 - DEBUG - Requesting: http://10.0.0.145:8082/route-target/3d4a99cb-727c-45eb-b8d6-34d87eab9afa 2025-11-20 17:27:46,746 - DEBUG - Control-node 10.0.0.145 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20793551', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31108039', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9436950549723889708', 'uuid-lslong': '9954251421940092210'}, 'enable': 'true', 'created': '2025-11-20T17:27:44', 'last-modified': '2025-11-20T17:27:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915720'} 2025-11-20 17:27:46,752 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 17:27:46,752 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20793551 passed 2025-11-20 17:27:46,752 - DEBUG - ====Verifying policy data for ctest-vn-20793551 in API_Server ====== 2025-11-20 17:27:46,753 - DEBUG - Requesting: http://10.0.0.145:8082/domains 2025-11-20 17:27:46,759 - DEBUG - Requesting: http://10.0.0.145:8082/domain/3ae69794-d215-4e22-8661-e3c4a0723948 2025-11-20 17:27:46,770 - DEBUG - Requesting: http://10.0.0.145:8082/project/6337f272-1471-42b3-b4fb-17b1f9bb7043 2025-11-20 17:27:46,847 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/82f6c886-9f38-402c-8a24-9aeda9aa8d32 2025-11-20 17:27:46,856 - DEBUG - ==>Verifying data for policy with id: 51b84581-2a7c-45c9-b916-da398d1cf2bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-31108039', 'ctest-policy-allow-all-77700383'] 2025-11-20 17:27:46,856 - INFO - VN ctest-vn-20793551 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-20 17:27:46,856 - DEBUG - Verifying the vn in opserver 2025-11-20 17:27:46,856 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20793551 virtual network link through opserver 10.0.0.145 2025-11-20 17:27:46,856 - DEBUG - Requesting: http://10.0.0.145:8081/analytics/uves/virtual-networks 2025-11-20 17:27:47,146 - DEBUG - Requesting: http://10.0.0.145:8081/analytics/uves/virtual-networks 2025-11-20 17:27:47,201 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20793551', 'href': 'http://10.0.0.145:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20793551?flat'} 2025-11-20 17:27:47,201 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20793551 is found in opserver 2025-11-20 17:27:47,211 - DEBUG - Do not have enough data to verify VN in agent 2025-11-20 17:27:47,216 - DEBUG - VRF ids for VN ctest-vn-20793551: {} 2025-11-20 17:27:47,216 - DEBUG - Requesting: http://10.0.0.145:8082/domains 2025-11-20 17:27:47,221 - DEBUG - Requesting: http://10.0.0.145:8082/domain/3ae69794-d215-4e22-8661-e3c4a0723948 2025-11-20 17:27:47,231 - DEBUG - Requesting: http://10.0.0.145:8082/project/6337f272-1471-42b3-b4fb-17b1f9bb7043 2025-11-20 17:27:47,299 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/98e67367-23be-444e-b37e-dcad46f5527a 2025-11-20 17:27:47,311 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/98e67367-23be-444e-b37e-dcad46f5527a 2025-11-20 17:27:47,320 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/a142287e-dd18-4520-b797-ce3ff35c4516 2025-11-20 17:27:47,326 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/a142287e-dd18-4520-b797-ce3ff35c4516 2025-11-20 17:27:47,333 - DEBUG - Requesting: http://10.0.0.145:8082/route-target/789913aa-070d-4c06-b9fa-6d74cf7c7aaa 2025-11-20 17:27:47,338 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-20 17:27:47,338 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/98e67367-23be-444e-b37e-dcad46f5527a 2025-11-20 17:27:47,347 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/a142287e-dd18-4520-b797-ce3ff35c4516 2025-11-20 17:27:47,360 - INFO - Verified VN network id 12 for VN 98e67367-23be-444e-b37e-dcad46f5527a 2025-11-20 17:27:47,360 - INFO - Verifications in API Server for VN ctest-vn-20684599 passed 2025-11-20 17:27:47,360 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/98e67367-23be-444e-b37e-dcad46f5527a 2025-11-20 17:27:47,370 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/a142287e-dd18-4520-b797-ce3ff35c4516 2025-11-20 17:27:47,377 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/a142287e-dd18-4520-b797-ce3ff35c4516 2025-11-20 17:27:47,383 - DEBUG - Requesting: http://10.0.0.145:8082/route-target/789913aa-070d-4c06-b9fa-6d74cf7c7aaa 2025-11-20 17:27:47,394 - DEBUG - Control-node 10.0.0.145 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20684599', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31108039', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11017620425226994766', 'uuid-lslong': '12934017816632578682'}, 'enable': 'true', 'created': '2025-11-20T17:27:45', 'last-modified': '2025-11-20T17:27:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.332520'} 2025-11-20 17:27:47,400 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-20 17:27:47,400 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20684599 passed 2025-11-20 17:27:47,400 - DEBUG - ====Verifying policy data for ctest-vn-20684599 in API_Server ====== 2025-11-20 17:27:47,400 - DEBUG - Requesting: http://10.0.0.145:8082/domains 2025-11-20 17:27:47,406 - DEBUG - Requesting: http://10.0.0.145:8082/domain/3ae69794-d215-4e22-8661-e3c4a0723948 2025-11-20 17:27:47,416 - DEBUG - Requesting: http://10.0.0.145:8082/project/6337f272-1471-42b3-b4fb-17b1f9bb7043 2025-11-20 17:27:47,483 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-network/98e67367-23be-444e-b37e-dcad46f5527a 2025-11-20 17:27:47,492 - DEBUG - ==>Verifying data for policy with id: 51b84581-2a7c-45c9-b916-da398d1cf2bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-31108039', 'ctest-policy-allow-all-77700383'] 2025-11-20 17:27:47,492 - INFO - VN ctest-vn-20684599 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-20 17:27:47,492 - DEBUG - Verifying the vn in opserver 2025-11-20 17:27:47,492 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20684599 virtual network link through opserver 10.0.0.145 2025-11-20 17:27:47,492 - DEBUG - Requesting: http://10.0.0.145:8081/analytics/uves/virtual-networks 2025-11-20 17:27:47,501 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20684599', 'href': 'http://10.0.0.145:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20684599?flat'} 2025-11-20 17:27:47,501 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20684599 is found in opserver 2025-11-20 17:27:47,511 - DEBUG - Do not have enough data to verify VN in agent 2025-11-20 17:27:47,515 - DEBUG - VRF ids for VN ctest-vn-20684599: {} 2025-11-20 17:27:47,577 - DEBUG - Services list from nova: [, , ] 2025-11-20 17:27:48,587 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4782-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4782-1) 2025-11-20 17:27:49,723 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4782-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4782-1) 2025-11-20 17:27:49,723 - INFO - Waiting for VM ctest-TestBasicPolicy-31108039-63852520 to be up.. 2025-11-20 17:27:49,807 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-20 17:27:54,904 - DEBUG - VM is in ACTIVE state now 2025-11-20 17:27:54,904 - INFO - VM name : ctest-TestBasicPolicy-31108039-63852520 2025-11-20 17:27:54,985 - DEBUG - VM ctest-TestBasicPolicy-31108039-63852520 ID is 881462b9-a43a-4ddd-a332-aac0928b6987 2025-11-20 17:27:55,006 - DEBUG - VM ctest-TestBasicPolicy-31108039-63852520 launched on Node cn-jenkins-deploy-platform-ansible-os-4782-1 2025-11-20 17:27:55,084 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-machine/881462b9-a43a-4ddd-a332-aac0928b6987 2025-11-20 17:27:55,093 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-machine-interface/df03d4de-d475-4db6-9612-ce4fd6d1123c 2025-11-20 17:27:58,357 - 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 1031ms') 2025-11-20 17:27:58,357 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-31108039-63852520 failed! 2025-11-20 17:27:58,412 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-31108039:ctest-vn-20793551 is 196.170.199.193 and allocation pool is NOT set 2025-11-20 17:28:00,470 - 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=7.80 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.363 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 = 0.363/4.082/7.801/3.719 ms') 2025-11-20 17:28:00,470 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-31108039-63852520 passed 2025-11-20 17:28:00,624 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 17:28:00,624 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31108039-63852520, IP 196.170.199.195, Port 22 2025-11-20 17:28:00,691 - 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-20 17:28:00,781 - DEBUG - VM ctest-TestBasicPolicy-31108039-63852520 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-20 17:28:05,781 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 17:28:05,782 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31108039-63852520, IP 196.170.199.195, Port 22 2025-11-20 17:28:05,939 - DEBUG - VM ctest-TestBasicPolicy-31108039-63852520 is ready for SSH connections 2025-11-20 17:28:05,939 - INFO - Waiting for VM ctest-TestBasicPolicy-31108039-28845059 to be up.. 2025-11-20 17:28:06,008 - DEBUG - VM is in ACTIVE state now 2025-11-20 17:28:06,009 - INFO - VM name : ctest-TestBasicPolicy-31108039-28845059 2025-11-20 17:28:06,085 - DEBUG - VM ctest-TestBasicPolicy-31108039-28845059 ID is 2c971377-9e16-4673-99be-df8e436e7d33 2025-11-20 17:28:06,085 - DEBUG - VM ctest-TestBasicPolicy-31108039-28845059 launched on Node cn-jenkins-deploy-platform-ansible-os-4782-1 2025-11-20 17:28:06,161 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-machine/2c971377-9e16-4673-99be-df8e436e7d33 2025-11-20 17:28:06,169 - DEBUG - Requesting: http://10.0.0.145:8082/virtual-machine-interface/a2e8a9d7-6997-47ab-8d63-2ce39f6f778f 2025-11-20 17:28:07,405 - 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=3.00 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.394 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.394/1.698/3.002/1.304 ms') 2025-11-20 17:28:07,405 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-31108039-28845059 passed 2025-11-20 17:28:07,552 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 17:28:07,552 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31108039-28845059, IP 161.221.40.3, Port 22 2025-11-20 17:28:07,707 - DEBUG - VM ctest-TestBasicPolicy-31108039-28845059 is ready for SSH connections 2025-11-20 17:28:07,708 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 17:28:07,708 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 161.221.40.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.145, gateway password: c0ntrail123 2025-11-20 17:28:07,708 - DEBUG - ping -s 56 -c 3 -W 1 161.221.40.3 2025-11-20 17:28:11,721 - DEBUG - PING 161.221.40.3 (161.221.40.3): 56 data bytes 64 bytes from 161.221.40.3: seq=0 ttl=63 time=3.845 ms 64 bytes from 161.221.40.3: seq=1 ttl=63 time=0.814 ms 64 bytes from 161.221.40.3: seq=2 ttl=63 time=1.035 ms --- 161.221.40.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.814/1.898/3.845 ms 2025-11-20 17:28:11,721 - INFO - Ping to IP 161.221.40.3 from VM ctest-TestBasicPolicy-31108039-63852520 passed 2025-11-20 17:28:11,900 - DEBUG - Policy Update Response {"network-policy": {"uuid": "51b84581-2a7c-45c9-b916-da398d1cf2bf", "href": "http://10.0.0.145:8082/network-policy/51b84581-2a7c-45c9-b916-da398d1cf2bf"}} 2025-11-20 17:28:11,900 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-20 17:28:11,900 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 161.221.40.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.145, gateway password: c0ntrail123 2025-11-20 17:28:11,900 - DEBUG - ping -s 56 -c 3 -W 1 161.221.40.3 2025-11-20 17:28:15,139 - DEBUG - PING 161.221.40.3 (161.221.40.3): 56 data bytes --- 161.221.40.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-20 17:28:15,139 - WARNING - Ping to IP 161.221.40.3 from VM ctest-TestBasicPolicy-31108039-63852520 failed 2025-11-20 17:28:15,140 - INFO - Deleting VM ctest-TestBasicPolicy-31108039-28845059 2025-11-20 17:28:15,213 - INFO - Deleting VM ctest-TestBasicPolicy-31108039-63852520 2025-11-20 17:28:15,565 - INFO - Deleted policy ctest-policy-allow-all-77700383 2025-11-20 17:28:15,566 - INFO - Deleting VN ctest-vn-20684599 2025-11-20 17:28:15,599 - DEBUG - VN 98e67367-23be-444e-b37e-dcad46f5527a still in use: Unable to complete operation on network 98e67367-23be-444e-b37e-dcad46f5527a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b1463ea0-36fb-4005-bf38-256f529265f7'] 2025-11-20 17:28:15,599 - WARNING - Deleting VN ctest-vn-20684599 failed..Will retry 2025-11-20 17:28:17,712 - DEBUG - Response for deleting network () 2025-11-20 17:28:17,712 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/a142287e-dd18-4520-b797-ce3ff35c4516 2025-11-20 17:28:17,717 - DEBUG - Response Code: 404 2025-11-20 17:28:17,717 - DEBUG - Requesting: http://10.0.0.145:8082/domains 2025-11-20 17:28:17,722 - DEBUG - Requesting: http://10.0.0.145:8082/domain/3ae69794-d215-4e22-8661-e3c4a0723948 2025-11-20 17:28:17,772 - DEBUG - Requesting: http://10.0.0.145:8082/project/6337f272-1471-42b3-b4fb-17b1f9bb7043 2025-11-20 17:28:17,848 - INFO - Validated that VN ctest-vn-20684599 is not found in API Server 2025-11-20 17:28:17,857 - DEBUG - VN ctest-vn-20684599 is not present in Agent 10.0.0.145 2025-11-20 17:28:17,857 - INFO - Validated that VN ctest-vn-20684599 is not in any agent 2025-11-20 17:28:17,869 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-20684599 info 2025-11-20 17:28:17,869 - INFO - Deleting VN ctest-vn-20793551 2025-11-20 17:28:17,957 - DEBUG - Response for deleting network () 2025-11-20 17:28:17,957 - DEBUG - Requesting: http://10.0.0.145:8082/routing-instance/fe035cb2-b4e4-4678-85ea-ae73c4234cfa 2025-11-20 17:28:17,961 - DEBUG - Response Code: 404 2025-11-20 17:28:17,961 - DEBUG - Requesting: http://10.0.0.145:8082/domains 2025-11-20 17:28:17,965 - DEBUG - Requesting: http://10.0.0.145:8082/domain/3ae69794-d215-4e22-8661-e3c4a0723948 2025-11-20 17:28:18,016 - DEBUG - Requesting: http://10.0.0.145:8082/project/6337f272-1471-42b3-b4fb-17b1f9bb7043 2025-11-20 17:28:18,087 - INFO - Validated that VN ctest-vn-20793551 is not found in API Server 2025-11-20 17:28:18,096 - DEBUG - VN ctest-vn-20793551 is not present in Agent 10.0.0.145 2025-11-20 17:28:18,096 - INFO - Validated that VN ctest-vn-20793551 is not in any agent 2025-11-20 17:28:18,108 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-20793551 info 2025-11-20 17:28:18,365 - DEBUG - No XMPP flaps were noticed during the test
2025-11-20 17:28:18,365 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-11-20 17:28:18,365 - INFO - -------------------------------------------------------------------------------- 2025-11-20 17:28:19,039 - INFO - Deleted project: ctest-TestBasicPolicy-31108039, ID : 6337f272-1471-42b3-b4fb-17b1f9bb7043