2025-06-04 12:02:38,465 - INFO - Domain Default found not creating 2025-06-04 12:02:38,721 - INFO - Project ctest-TestBasicPolicy-44758937 not found, creating it 2025-06-04 12:02:39,313 - INFO - Created Project:ctest-TestBasicPolicy-44758937, ID : 6af53196-34a3-4430-900f-002b76fe8ea0 2025-06-04 12:02:41,021 - INFO - ================================================================================ 2025-06-04 12:02:41,022 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-04 12:02:41,022 - 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-04 12:02:41,283 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-06-04 12:02:41,283 - INFO - Initial checks done. Running the testcase now 2025-06-04 12:02:41,283 - INFO - 2025-06-04 12:02:41,897 - DEBUG - Response for create_network : {'network': {'id': '65ac46d8-bf37-405c-9338-7d4610466377', 'name': 'ctest-vn-12309794', 'tenant_id': '6af5319634a34430900f002b76fe8ea0', 'project_id': '6af5319634a34430900f002b76fe8ea0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44758937', 'ctest-vn-12309794'], 'port_security_enabled': True, 'description': ''}} 2025-06-04 12:02:42,122 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae264eec-d013-44d9-9050-50f6c878aebb', 'name': '', 'tenant_id': '6af5319634a34430900f002b76fe8ea0', 'network_id': '65ac46d8-bf37-405c-9338-7d4610466377', 'ip_version': 4, 'cidr': '110.188.103.128/26', 'allocation_pools': [{'start': '110.188.103.130', 'end': '110.188.103.190'}], 'gateway_ip': '110.188.103.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.188.103.130', 'tags': [], 'project_id': '6af5319634a34430900f002b76fe8ea0'}} 2025-06-04 12:02:42,143 - INFO - Created VN ctest-vn-12309794 2025-06-04 12:02:42,197 - DEBUG - VN ctest-vn-12309794 UUID is 65ac46d8-bf37-405c-9338-7d4610466377 2025-06-04 12:02:42,515 - DEBUG - Response for create_network : {'network': {'id': '927005c6-bc2f-4448-8013-79cd4b6a120f', 'name': 'ctest-vn-48301989', 'tenant_id': '6af5319634a34430900f002b76fe8ea0', 'project_id': '6af5319634a34430900f002b76fe8ea0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44758937', 'ctest-vn-48301989'], 'port_security_enabled': True, 'description': ''}} 2025-06-04 12:02:42,762 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc126946-6449-4d40-8495-1ad0c7f60ef2', 'name': '', 'tenant_id': '6af5319634a34430900f002b76fe8ea0', 'network_id': '927005c6-bc2f-4448-8013-79cd4b6a120f', 'ip_version': 4, 'cidr': '201.89.225.128/26', 'allocation_pools': [{'start': '201.89.225.130', 'end': '201.89.225.190'}], 'gateway_ip': '201.89.225.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.89.225.130', 'tags': [], 'project_id': '6af5319634a34430900f002b76fe8ea0'}} 2025-06-04 12:02:42,784 - INFO - Created VN ctest-vn-48301989 2025-06-04 12:02:42,837 - DEBUG - VN ctest-vn-48301989 UUID is 927005c6-bc2f-4448-8013-79cd4b6a120f 2025-06-04 12:02:42,964 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-12309794, 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-44758937:ctest-vn-48301989, 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-04 12:02:43,279 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '65ac46d8-bf37-405c-9338-7d4610466377', 'name': 'ctest-vn-12309794', 'tenant_id': '6af5319634a34430900f002b76fe8ea0', 'project_id': '6af5319634a34430900f002b76fe8ea0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae264eec-d013-44d9-9050-50f6c878aebb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44758937', 'ctest-vn-12309794'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44758937', 'ctest-policy-allow-all-97016798']], 'subnet_ipam': [{'subnet_cidr': '110.188.103.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-04 12:02:43,533 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '927005c6-bc2f-4448-8013-79cd4b6a120f', 'name': 'ctest-vn-48301989', 'tenant_id': '6af5319634a34430900f002b76fe8ea0', 'project_id': '6af5319634a34430900f002b76fe8ea0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dc126946-6449-4d40-8495-1ad0c7f60ef2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44758937', 'ctest-vn-48301989'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44758937', 'ctest-policy-allow-all-97016798']], 'subnet_ipam': [{'subnet_cidr': '201.89.225.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-04 12:02:43,681 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-04 12:02:44,138 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-04 12:02:44,182 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d455174-bdf2-436c-aaee-b32000072a6e 2025-06-04 12:02:44,197 - DEBUG - Requesting: http://10.0.0.254:8082/project/6af53196-34a3-4430-900f-002b76fe8ea0 2025-06-04 12:02:44,275 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/65ac46d8-bf37-405c-9338-7d4610466377 2025-06-04 12:02:44,288 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/65ac46d8-bf37-405c-9338-7d4610466377 2025-06-04 12:02:44,300 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a499d7f0-3cc5-4848-b709-25e2dcf6397f 2025-06-04 12:02:44,310 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a499d7f0-3cc5-4848-b709-25e2dcf6397f 2025-06-04 12:02:44,321 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cca596b1-af58-4775-a985-45b20429ff19 2025-06-04 12:02:44,329 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-04 12:02:44,329 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/65ac46d8-bf37-405c-9338-7d4610466377 2025-06-04 12:02:44,347 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a499d7f0-3cc5-4848-b709-25e2dcf6397f 2025-06-04 12:02:44,363 - INFO - Verified VN network id 8 for VN 65ac46d8-bf37-405c-9338-7d4610466377 2025-06-04 12:02:44,364 - INFO - Verifications in API Server for VN ctest-vn-12309794 passed 2025-06-04 12:02:44,364 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/65ac46d8-bf37-405c-9338-7d4610466377 2025-06-04 12:02:44,378 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a499d7f0-3cc5-4848-b709-25e2dcf6397f 2025-06-04 12:02:44,386 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a499d7f0-3cc5-4848-b709-25e2dcf6397f 2025-06-04 12:02:44,395 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cca596b1-af58-4775-a985-45b20429ff19 2025-06-04 12:02:44,409 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-12309794', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44758937', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7326308590559903836', 'uuid-lslong': '10608366662145434487'}, 'enable': 'true', 'created': '2025-06-04T12:02:41', 'last-modified': '2025-06-04T12:02:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.159904'} 2025-06-04 12:02:44,416 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-04 12:02:44,416 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12309794 passed 2025-06-04 12:02:44,416 - DEBUG - ====Verifying policy data for ctest-vn-12309794 in API_Server ====== 2025-06-04 12:02:44,416 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-04 12:02:44,424 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d455174-bdf2-436c-aaee-b32000072a6e 2025-06-04 12:02:44,438 - DEBUG - Requesting: http://10.0.0.254:8082/project/6af53196-34a3-4430-900f-002b76fe8ea0 2025-06-04 12:02:44,521 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/65ac46d8-bf37-405c-9338-7d4610466377 2025-06-04 12:02:44,535 - DEBUG - ==>Verifying data for policy with id: acbaa851-6b07-4689-bf24-8fac60fff492, fqn: ['default-domain', 'ctest-TestBasicPolicy-44758937', 'ctest-policy-allow-all-97016798'] 2025-06-04 12:02:44,535 - INFO - VN ctest-vn-12309794 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-04 12:02:44,535 - DEBUG - Verifying the vn in opserver 2025-06-04 12:02:44,535 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-12309794 virtual network link through opserver 10.0.0.254 2025-06-04 12:02:44,535 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-04 12:02:44,877 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-04 12:02:44,964 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-12309794', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-12309794?flat'} 2025-06-04 12:02:44,964 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-12309794 is found in opserver 2025-06-04 12:02:44,982 - DEBUG - Do not have enough data to verify VN in agent 2025-06-04 12:02:44,989 - DEBUG - VRF ids for VN ctest-vn-12309794: {} 2025-06-04 12:02:44,989 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-04 12:02:44,995 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d455174-bdf2-436c-aaee-b32000072a6e 2025-06-04 12:02:45,009 - DEBUG - Requesting: http://10.0.0.254:8082/project/6af53196-34a3-4430-900f-002b76fe8ea0 2025-06-04 12:02:45,082 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/927005c6-bc2f-4448-8013-79cd4b6a120f 2025-06-04 12:02:45,096 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/927005c6-bc2f-4448-8013-79cd4b6a120f 2025-06-04 12:02:45,107 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ce0b6cdf-ae16-4aaf-89a0-b9c0eb83bd55 2025-06-04 12:02:45,115 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ce0b6cdf-ae16-4aaf-89a0-b9c0eb83bd55 2025-06-04 12:02:45,124 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8e21aba5-5d74-48e2-8dd9-23c24a657d44 2025-06-04 12:02:45,132 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-04 12:02:45,133 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/927005c6-bc2f-4448-8013-79cd4b6a120f 2025-06-04 12:02:45,147 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ce0b6cdf-ae16-4aaf-89a0-b9c0eb83bd55 2025-06-04 12:02:45,167 - INFO - Verified VN network id 9 for VN 927005c6-bc2f-4448-8013-79cd4b6a120f 2025-06-04 12:02:45,167 - INFO - Verifications in API Server for VN ctest-vn-48301989 passed 2025-06-04 12:02:45,167 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/927005c6-bc2f-4448-8013-79cd4b6a120f 2025-06-04 12:02:45,178 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ce0b6cdf-ae16-4aaf-89a0-b9c0eb83bd55 2025-06-04 12:02:45,186 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ce0b6cdf-ae16-4aaf-89a0-b9c0eb83bd55 2025-06-04 12:02:45,195 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8e21aba5-5d74-48e2-8dd9-23c24a657d44 2025-06-04 12:02:45,211 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-48301989', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44758937', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10551940278047949896', 'uuid-lslong': '9228853984052777487'}, 'enable': 'true', 'created': '2025-06-04T12:02:42', 'last-modified': '2025-06-04T12:02:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.702388'} 2025-06-04 12:02:45,219 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-04 12:02:45,219 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48301989 passed 2025-06-04 12:02:45,219 - DEBUG - ====Verifying policy data for ctest-vn-48301989 in API_Server ====== 2025-06-04 12:02:45,219 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-04 12:02:45,227 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d455174-bdf2-436c-aaee-b32000072a6e 2025-06-04 12:02:45,240 - DEBUG - Requesting: http://10.0.0.254:8082/project/6af53196-34a3-4430-900f-002b76fe8ea0 2025-06-04 12:02:45,315 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/927005c6-bc2f-4448-8013-79cd4b6a120f 2025-06-04 12:02:45,326 - DEBUG - ==>Verifying data for policy with id: acbaa851-6b07-4689-bf24-8fac60fff492, fqn: ['default-domain', 'ctest-TestBasicPolicy-44758937', 'ctest-policy-allow-all-97016798'] 2025-06-04 12:02:45,326 - INFO - VN ctest-vn-48301989 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-04 12:02:45,327 - DEBUG - Verifying the vn in opserver 2025-06-04 12:02:45,327 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-48301989 virtual network link through opserver 10.0.0.254 2025-06-04 12:02:45,327 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-04 12:02:45,339 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-48301989', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-48301989?flat'} 2025-06-04 12:02:45,339 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-48301989 is found in opserver 2025-06-04 12:02:45,351 - DEBUG - Do not have enough data to verify VN in agent 2025-06-04 12:02:45,356 - DEBUG - VRF ids for VN ctest-vn-48301989: {} 2025-06-04 12:02:45,419 - DEBUG - Services list from nova: [, , ] 2025-06-04 12:02:46,573 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3398-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3398-1) 2025-06-04 12:02:48,017 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3398-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3398-1) 2025-06-04 12:02:48,017 - INFO - Waiting for VM ctest-TestBasicPolicy-44758937-87423967 to be up.. 2025-06-04 12:02:48,110 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-04 12:02:53,194 - DEBUG - VM is in ACTIVE state now 2025-06-04 12:02:53,194 - INFO - VM name : ctest-TestBasicPolicy-44758937-87423967 2025-06-04 12:02:53,280 - DEBUG - VM ctest-TestBasicPolicy-44758937-87423967 ID is a319bdbe-6f4b-4348-8847-66665d3a73d5 2025-06-04 12:02:53,306 - DEBUG - VM ctest-TestBasicPolicy-44758937-87423967 launched on Node cn-jenkins-deploy-platform-ansible-os-3398-1 2025-06-04 12:02:53,402 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/a319bdbe-6f4b-4348-8847-66665d3a73d5 2025-06-04 12:02:53,417 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/86d67d6c-af1d-4b4a-9d8e-e89d025c2c40 2025-06-04 12:02:56,711 - 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 1022ms') 2025-06-04 12:02:56,712 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-44758937-87423967 failed! 2025-06-04 12:02:56,769 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-12309794 is 110.188.103.129 and allocation pool is NOT set 2025-06-04 12:02:58,833 - 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.56 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.25 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 = 2.252/4.906/7.561/2.654 ms') 2025-06-04 12:02:58,833 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-44758937-87423967 passed 2025-06-04 12:02:58,989 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-04 12:02:58,989 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-44758937-87423967, IP 110.188.103.131, Port 22 2025-06-04 12:02:59,044 - 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-04 12:02:59,136 - DEBUG - VM ctest-TestBasicPolicy-44758937-87423967 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-04 12:03:04,137 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-04 12:03:04,138 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-44758937-87423967, IP 110.188.103.131, Port 22 2025-06-04 12:03:04,307 - DEBUG - VM ctest-TestBasicPolicy-44758937-87423967 is ready for SSH connections 2025-06-04 12:03:04,307 - INFO - Waiting for VM ctest-TestBasicPolicy-44758937-82320787 to be up.. 2025-06-04 12:03:04,391 - DEBUG - VM is in ACTIVE state now 2025-06-04 12:03:04,391 - INFO - VM name : ctest-TestBasicPolicy-44758937-82320787 2025-06-04 12:03:04,481 - DEBUG - VM ctest-TestBasicPolicy-44758937-82320787 ID is 27de1a1b-8eb8-479c-8354-cf98cd5e81b2 2025-06-04 12:03:04,481 - DEBUG - VM ctest-TestBasicPolicy-44758937-82320787 launched on Node cn-jenkins-deploy-platform-ansible-os-3398-1 2025-06-04 12:03:04,562 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/27de1a1b-8eb8-479c-8354-cf98cd5e81b2 2025-06-04 12:03:04,574 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/197718ba-ab56-4626-b525-91acbc160b9c 2025-06-04 12:03:05,827 - 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.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.390 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.390/2.022/3.654/1.632 ms') 2025-06-04 12:03:05,828 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-44758937-82320787 passed 2025-06-04 12:03:05,989 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-04 12:03:05,990 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-44758937-82320787, IP 201.89.225.131, Port 22 2025-06-04 12:03:06,145 - DEBUG - VM ctest-TestBasicPolicy-44758937-82320787 is ready for SSH connections 2025-06-04 12:03:06,145 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-04 12:03:06,145 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 201.89.225.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-04 12:03:06,145 - DEBUG - ping -s 56 -c 3 -W 1 201.89.225.131 2025-06-04 12:03:10,304 - DEBUG - PING 201.89.225.131 (201.89.225.131): 56 data bytes 64 bytes from 201.89.225.131: seq=0 ttl=63 time=4.076 ms 64 bytes from 201.89.225.131: seq=1 ttl=63 time=1.207 ms 64 bytes from 201.89.225.131: seq=2 ttl=63 time=0.910 ms --- 201.89.225.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.910/2.064/4.076 ms 2025-06-04 12:03:10,304 - INFO - Ping to IP 201.89.225.131 from VM ctest-TestBasicPolicy-44758937-87423967 passed 2025-06-04 12:03:10,505 - DEBUG - Policy Update Response {"network-policy": {"uuid": "acbaa851-6b07-4689-bf24-8fac60fff492", "href": "http://10.0.0.254:8082/network-policy/acbaa851-6b07-4689-bf24-8fac60fff492"}} 2025-06-04 12:03:10,505 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-04 12:03:10,505 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 201.89.225.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-04 12:03:10,505 - DEBUG - ping -s 56 -c 3 -W 1 201.89.225.131 2025-06-04 12:03:13,743 - DEBUG - PING 201.89.225.131 (201.89.225.131): 56 data bytes 64 bytes from 201.89.225.131: seq=0 ttl=63 time=1.624 ms --- 201.89.225.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.624/1.624/1.624 ms 2025-06-04 12:03:13,744 - WARNING - Ping to IP 201.89.225.131 from VM ctest-TestBasicPolicy-44758937-87423967 failed 2025-06-04 12:03:13,744 - INFO - Deleting VM ctest-TestBasicPolicy-44758937-82320787 2025-06-04 12:03:13,820 - INFO - Deleting VM ctest-TestBasicPolicy-44758937-87423967 2025-06-04 12:03:14,292 - INFO - Deleted policy ctest-policy-allow-all-97016798 2025-06-04 12:03:14,293 - INFO - Deleting VN ctest-vn-48301989 2025-06-04 12:03:14,338 - DEBUG - VN 927005c6-bc2f-4448-8013-79cd4b6a120f still in use: Unable to complete operation on network 927005c6-bc2f-4448-8013-79cd4b6a120f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5c560723-36c1-44c4-b524-e5678d767ac5'] 2025-06-04 12:03:14,338 - WARNING - Deleting VN ctest-vn-48301989 failed..Will retry 2025-06-04 12:03:16,454 - DEBUG - Response for deleting network () 2025-06-04 12:03:16,454 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ce0b6cdf-ae16-4aaf-89a0-b9c0eb83bd55 2025-06-04 12:03:16,462 - DEBUG - Response Code: 404 2025-06-04 12:03:16,462 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-04 12:03:16,469 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d455174-bdf2-436c-aaee-b32000072a6e 2025-06-04 12:03:16,523 - DEBUG - Requesting: http://10.0.0.254:8082/project/6af53196-34a3-4430-900f-002b76fe8ea0 2025-06-04 12:03:16,600 - INFO - Validated that VN ctest-vn-48301989 is not found in API Server 2025-06-04 12:03:16,618 - DEBUG - VN ctest-vn-48301989 is not present in Agent 10.0.0.254 2025-06-04 12:03:16,618 - INFO - Validated that VN ctest-vn-48301989 is not in any agent 2025-06-04 12:03:16,640 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48301989 info 2025-06-04 12:03:16,641 - INFO - Deleting VN ctest-vn-12309794 2025-06-04 12:03:16,772 - DEBUG - Response for deleting network () 2025-06-04 12:03:16,772 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a499d7f0-3cc5-4848-b709-25e2dcf6397f 2025-06-04 12:03:16,782 - DEBUG - Response Code: 404 2025-06-04 12:03:16,782 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-04 12:03:16,789 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d455174-bdf2-436c-aaee-b32000072a6e 2025-06-04 12:03:16,847 - DEBUG - Requesting: http://10.0.0.254:8082/project/6af53196-34a3-4430-900f-002b76fe8ea0 2025-06-04 12:03:16,929 - INFO - Validated that VN ctest-vn-12309794 is not found in API Server 2025-06-04 12:03:16,945 - DEBUG - VN ctest-vn-12309794 is not present in Agent 10.0.0.254 2025-06-04 12:03:16,945 - INFO - Validated that VN ctest-vn-12309794 is not in any agent 2025-06-04 12:03:16,968 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-12309794 info 2025-06-04 12:03:17,223 - DEBUG - No XMPP flaps were noticed during the test
2025-06-04 12:03:17,223 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-06-04 12:03:17,223 - INFO - -------------------------------------------------------------------------------- 2025-06-04 12:03:17,995 - INFO - Deleted project: ctest-TestBasicPolicy-44758937, ID : 6af53196-34a3-4430-900f-002b76fe8ea0