2025-03-26 00:52:37,463 - INFO - Domain Default found not creating 2025-03-26 00:52:37,621 - INFO - Project ctest-TestBasicPolicy-77562062 not found, creating it 2025-03-26 00:52:38,122 - INFO - Created Project:ctest-TestBasicPolicy-77562062, ID : 37a3ff81-d1cd-4530-bb24-bdeef0cc080f 2025-03-26 00:52:39,764 - INFO - ================================================================================ 2025-03-26 00:52:39,764 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-26 00:52:39,764 - 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-03-26 00:52:40,033 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.12': '0'}} with 2025-03-26 00:52:40,033 - INFO - Initial checks done. Running the testcase now 2025-03-26 00:52:40,034 - INFO - 2025-03-26 00:52:40,656 - DEBUG - Response for create_network : {'network': {'id': '0c22b426-2bc2-4d23-9e4a-fabc42d222ca', 'name': 'ctest-vn-74104717', 'tenant_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'project_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77562062', 'ctest-vn-74104717'], 'port_security_enabled': True, 'description': ''}} 2025-03-26 00:52:40,850 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a30932b-f2d1-4966-ac97-79fe307e0e29', 'name': '', 'tenant_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'network_id': '0c22b426-2bc2-4d23-9e4a-fabc42d222ca', 'ip_version': 4, 'cidr': '134.50.243.0/26', 'allocation_pools': [{'start': '134.50.243.2', 'end': '134.50.243.62'}], 'gateway_ip': '134.50.243.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.50.243.2', 'tags': [], 'project_id': '37a3ff81d1cd4530bb24bdeef0cc080f'}} 2025-03-26 00:52:40,871 - INFO - Created VN ctest-vn-74104717 2025-03-26 00:52:40,928 - DEBUG - VN ctest-vn-74104717 UUID is 0c22b426-2bc2-4d23-9e4a-fabc42d222ca 2025-03-26 00:52:41,246 - DEBUG - Response for create_network : {'network': {'id': '33653f60-c0a9-4914-bd60-5178e7306e17', 'name': 'ctest-vn-03821116', 'tenant_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'project_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77562062', 'ctest-vn-03821116'], 'port_security_enabled': True, 'description': ''}} 2025-03-26 00:52:41,434 - DEBUG - Response for create_subnet : {'subnet': {'id': '981b35e9-a0b6-4561-b2b1-80ba8396ba77', 'name': '', 'tenant_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'network_id': '33653f60-c0a9-4914-bd60-5178e7306e17', 'ip_version': 4, 'cidr': '211.223.203.64/26', 'allocation_pools': [{'start': '211.223.203.66', 'end': '211.223.203.126'}], 'gateway_ip': '211.223.203.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.223.203.66', 'tags': [], 'project_id': '37a3ff81d1cd4530bb24bdeef0cc080f'}} 2025-03-26 00:52:41,453 - INFO - Created VN ctest-vn-03821116 2025-03-26 00:52:41,508 - DEBUG - VN ctest-vn-03821116 UUID is 33653f60-c0a9-4914-bd60-5178e7306e17 2025-03-26 00:52:41,638 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-74104717, 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-77562062:ctest-vn-03821116, 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-03-26 00:52:41,979 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c22b426-2bc2-4d23-9e4a-fabc42d222ca', 'name': 'ctest-vn-74104717', 'tenant_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'project_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5a30932b-f2d1-4966-ac97-79fe307e0e29'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77562062', 'ctest-vn-74104717'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77562062', 'ctest-policy-allow-all-14498307']], 'subnet_ipam': [{'subnet_cidr': '134.50.243.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-26 00:52:42,262 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '33653f60-c0a9-4914-bd60-5178e7306e17', 'name': 'ctest-vn-03821116', 'tenant_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'project_id': '37a3ff81d1cd4530bb24bdeef0cc080f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['981b35e9-a0b6-4561-b2b1-80ba8396ba77'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77562062', 'ctest-vn-03821116'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77562062', 'ctest-policy-allow-all-14498307']], 'subnet_ipam': [{'subnet_cidr': '211.223.203.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-26 00:52:42,444 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-03-26 00:52:42,785 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-03-26 00:52:42,818 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2d186e3b-ca0a-4be9-9958-c6e68ac20377 2025-03-26 00:52:42,835 - DEBUG - Requesting: http://10.0.0.24:8082/project/37a3ff81-d1cd-4530-bb24-bdeef0cc080f 2025-03-26 00:52:42,919 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0c22b426-2bc2-4d23-9e4a-fabc42d222ca 2025-03-26 00:52:42,937 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0c22b426-2bc2-4d23-9e4a-fabc42d222ca 2025-03-26 00:52:42,952 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/13569be0-8d78-418a-8668-b01c29c6ff04 2025-03-26 00:52:42,961 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/13569be0-8d78-418a-8668-b01c29c6ff04 2025-03-26 00:52:42,975 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/5560cac0-4541-4a7d-bd76-2df0164ca8c7 2025-03-26 00:52:42,983 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-26 00:52:42,984 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0c22b426-2bc2-4d23-9e4a-fabc42d222ca 2025-03-26 00:52:42,998 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/13569be0-8d78-418a-8668-b01c29c6ff04 2025-03-26 00:52:43,021 - INFO - Verified VN network id 9 for VN 0c22b426-2bc2-4d23-9e4a-fabc42d222ca 2025-03-26 00:52:43,021 - INFO - Verifications in API Server for VN ctest-vn-74104717 passed 2025-03-26 00:52:43,021 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0c22b426-2bc2-4d23-9e4a-fabc42d222ca 2025-03-26 00:52:43,035 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/13569be0-8d78-418a-8668-b01c29c6ff04 2025-03-26 00:52:43,044 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/13569be0-8d78-418a-8668-b01c29c6ff04 2025-03-26 00:52:43,053 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/5560cac0-4541-4a7d-bd76-2df0164ca8c7 2025-03-26 00:52:43,068 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-74104717', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77562062', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '874459353699208483', 'uuid-lslong': '11406204692751065802'}, 'enable': 'true', 'created': '2025-03-26T00:52:40', 'last-modified': '2025-03-26T00:52:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.117877'} 2025-03-26 00:52:43,076 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-26 00:52:43,076 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74104717 passed 2025-03-26 00:52:43,076 - DEBUG - ====Verifying policy data for ctest-vn-74104717 in API_Server ====== 2025-03-26 00:52:43,076 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-03-26 00:52:43,083 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2d186e3b-ca0a-4be9-9958-c6e68ac20377 2025-03-26 00:52:43,097 - DEBUG - Requesting: http://10.0.0.24:8082/project/37a3ff81-d1cd-4530-bb24-bdeef0cc080f 2025-03-26 00:52:43,235 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0c22b426-2bc2-4d23-9e4a-fabc42d222ca 2025-03-26 00:52:43,252 - DEBUG - ==>Verifying data for policy with id: 132fd800-553b-45fb-ad38-61ffe54fbcce, fqn: ['default-domain', 'ctest-TestBasicPolicy-77562062', 'ctest-policy-allow-all-14498307'] 2025-03-26 00:52:43,252 - INFO - VN ctest-vn-74104717 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-26 00:52:43,252 - DEBUG - Verifying the vn in opserver 2025-03-26 00:52:43,252 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-74104717 virtual network link through opserver 10.0.0.24 2025-03-26 00:52:43,252 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-03-26 00:52:43,641 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-03-26 00:52:43,757 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-74104717', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-74104717?flat'} 2025-03-26 00:52:43,757 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-74104717 is found in opserver 2025-03-26 00:52:43,775 - DEBUG - Do not have enough data to verify VN in agent 2025-03-26 00:52:43,781 - DEBUG - VRF ids for VN ctest-vn-74104717: {} 2025-03-26 00:52:43,781 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-03-26 00:52:43,801 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2d186e3b-ca0a-4be9-9958-c6e68ac20377 2025-03-26 00:52:43,826 - DEBUG - Requesting: http://10.0.0.24:8082/project/37a3ff81-d1cd-4530-bb24-bdeef0cc080f 2025-03-26 00:52:43,971 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/33653f60-c0a9-4914-bd60-5178e7306e17 2025-03-26 00:52:44,005 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/33653f60-c0a9-4914-bd60-5178e7306e17 2025-03-26 00:52:44,020 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/527f8c8f-3b87-4d77-a142-44852036a848 2025-03-26 00:52:44,034 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/527f8c8f-3b87-4d77-a142-44852036a848 2025-03-26 00:52:44,055 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/383cf568-3a37-48e3-90a1-e3f14cefb3e0 2025-03-26 00:52:44,076 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-26 00:52:44,076 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/33653f60-c0a9-4914-bd60-5178e7306e17 2025-03-26 00:52:44,090 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/527f8c8f-3b87-4d77-a142-44852036a848 2025-03-26 00:52:44,119 - INFO - Verified VN network id 10 for VN 33653f60-c0a9-4914-bd60-5178e7306e17 2025-03-26 00:52:44,120 - INFO - Verifications in API Server for VN ctest-vn-03821116 passed 2025-03-26 00:52:44,120 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/33653f60-c0a9-4914-bd60-5178e7306e17 2025-03-26 00:52:44,134 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/527f8c8f-3b87-4d77-a142-44852036a848 2025-03-26 00:52:44,145 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/527f8c8f-3b87-4d77-a142-44852036a848 2025-03-26 00:52:44,158 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/383cf568-3a37-48e3-90a1-e3f14cefb3e0 2025-03-26 00:52:44,178 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-03821116', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77562062', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3703435953363831060', 'uuid-lslong': '13645996450649239063'}, 'enable': 'true', 'created': '2025-03-26T00:52:41', 'last-modified': '2025-03-26T00:52:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.948486'} 2025-03-26 00:52:44,188 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-26 00:52:44,188 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03821116 passed 2025-03-26 00:52:44,189 - DEBUG - ====Verifying policy data for ctest-vn-03821116 in API_Server ====== 2025-03-26 00:52:44,189 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-03-26 00:52:44,197 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2d186e3b-ca0a-4be9-9958-c6e68ac20377 2025-03-26 00:52:44,213 - DEBUG - Requesting: http://10.0.0.24:8082/project/37a3ff81-d1cd-4530-bb24-bdeef0cc080f 2025-03-26 00:52:44,290 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/33653f60-c0a9-4914-bd60-5178e7306e17 2025-03-26 00:52:44,303 - DEBUG - ==>Verifying data for policy with id: 132fd800-553b-45fb-ad38-61ffe54fbcce, fqn: ['default-domain', 'ctest-TestBasicPolicy-77562062', 'ctest-policy-allow-all-14498307'] 2025-03-26 00:52:44,303 - INFO - VN ctest-vn-03821116 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-26 00:52:44,303 - DEBUG - Verifying the vn in opserver 2025-03-26 00:52:44,303 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-03821116 virtual network link through opserver 10.0.0.24 2025-03-26 00:52:44,303 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-03-26 00:52:44,317 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-03821116', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-03821116?flat'} 2025-03-26 00:52:44,317 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-03821116 is found in opserver 2025-03-26 00:52:44,329 - DEBUG - Do not have enough data to verify VN in agent 2025-03-26 00:52:44,335 - DEBUG - VRF ids for VN ctest-vn-03821116: {} 2025-03-26 00:52:44,402 - DEBUG - Services list from nova: [, , ] 2025-03-26 00:52:45,534 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2955-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2955-1) 2025-03-26 00:52:46,928 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2955-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2955-1) 2025-03-26 00:52:46,929 - INFO - Waiting for VM ctest-TestBasicPolicy-77562062-92575029 to be up.. 2025-03-26 00:52:47,029 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-26 00:52:52,125 - DEBUG - VM is in ACTIVE state now 2025-03-26 00:52:52,125 - INFO - VM name : ctest-TestBasicPolicy-77562062-92575029 2025-03-26 00:52:52,214 - DEBUG - VM ctest-TestBasicPolicy-77562062-92575029 ID is acac6ca8-64fb-41ea-b95a-2db398fd4970 2025-03-26 00:52:52,238 - DEBUG - VM ctest-TestBasicPolicy-77562062-92575029 launched on Node cn-jenkins-deploy-platform-ansible-os-2955-1 2025-03-26 00:52:52,328 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/acac6ca8-64fb-41ea-b95a-2db398fd4970 2025-03-26 00:52:52,339 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/3f5a3586-546f-4c61-bb93-aa024699ac9e 2025-03-26 00:52:55,595 - 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 1006ms') 2025-03-26 00:52:55,595 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77562062-92575029 failed! 2025-03-26 00:52:55,652 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-77562062:ctest-vn-74104717 is 134.50.243.1 and allocation pool is NOT set 2025-03-26 00:52:57,710 - 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.35 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.38 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.380/4.863/8.346/3.483 ms') 2025-03-26 00:52:57,710 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77562062-92575029 passed 2025-03-26 00:52:57,864 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-26 00:52:57,864 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77562062-92575029, IP 134.50.243.3, Port 22 2025-03-26 00:52:57,930 - 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-03-26 00:52:58,025 - DEBUG - VM ctest-TestBasicPolicy-77562062-92575029 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-26 00:53:03,025 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-26 00:53:03,026 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77562062-92575029, IP 134.50.243.3, Port 22 2025-03-26 00:53:03,184 - DEBUG - VM ctest-TestBasicPolicy-77562062-92575029 is ready for SSH connections 2025-03-26 00:53:03,184 - INFO - Waiting for VM ctest-TestBasicPolicy-77562062-39335127 to be up.. 2025-03-26 00:53:03,275 - DEBUG - VM is in ACTIVE state now 2025-03-26 00:53:03,275 - INFO - VM name : ctest-TestBasicPolicy-77562062-39335127 2025-03-26 00:53:03,363 - DEBUG - VM ctest-TestBasicPolicy-77562062-39335127 ID is 5a053014-b282-4086-b96f-f4e0ee56eb77 2025-03-26 00:53:03,363 - DEBUG - VM ctest-TestBasicPolicy-77562062-39335127 launched on Node cn-jenkins-deploy-platform-ansible-os-2955-1 2025-03-26 00:53:03,446 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/5a053014-b282-4086-b96f-f4e0ee56eb77 2025-03-26 00:53:03,457 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/a02a8ce6-18c4-419c-9d41-ae0f5473f4c4 2025-03-26 00:53:04,697 - 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.07 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.410 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.410/1.738/3.066/1.328 ms') 2025-03-26 00:53:04,698 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-77562062-39335127 passed 2025-03-26 00:53:04,852 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-26 00:53:04,852 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77562062-39335127, IP 211.223.203.67, Port 22 2025-03-26 00:53:05,008 - DEBUG - VM ctest-TestBasicPolicy-77562062-39335127 is ready for SSH connections 2025-03-26 00:53:05,008 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-26 00:53:05,008 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.223.203.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2025-03-26 00:53:05,009 - DEBUG - ping -s 56 -c 3 -W 1 211.223.203.67 2025-03-26 00:53:09,108 - DEBUG - PING 211.223.203.67 (211.223.203.67): 56 data bytes 64 bytes from 211.223.203.67: seq=0 ttl=63 time=3.729 ms 64 bytes from 211.223.203.67: seq=1 ttl=63 time=0.934 ms 64 bytes from 211.223.203.67: seq=2 ttl=63 time=0.889 ms --- 211.223.203.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.889/1.850/3.729 ms 2025-03-26 00:53:09,108 - INFO - Ping to IP 211.223.203.67 from VM ctest-TestBasicPolicy-77562062-92575029 passed 2025-03-26 00:53:09,296 - DEBUG - Policy Update Response {"network-policy": {"uuid": "132fd800-553b-45fb-ad38-61ffe54fbcce", "href": "http://10.0.0.24:8082/network-policy/132fd800-553b-45fb-ad38-61ffe54fbcce"}} 2025-03-26 00:53:09,296 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-26 00:53:09,296 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.223.203.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2025-03-26 00:53:09,296 - DEBUG - ping -s 56 -c 3 -W 1 211.223.203.67 2025-03-26 00:53:12,523 - DEBUG - PING 211.223.203.67 (211.223.203.67): 56 data bytes 64 bytes from 211.223.203.67: seq=0 ttl=63 time=1.672 ms --- 211.223.203.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.672/1.672/1.672 ms 2025-03-26 00:53:12,523 - WARNING - Ping to IP 211.223.203.67 from VM ctest-TestBasicPolicy-77562062-92575029 failed 2025-03-26 00:53:12,523 - INFO - Deleting VM ctest-TestBasicPolicy-77562062-39335127 2025-03-26 00:53:12,600 - INFO - Deleting VM ctest-TestBasicPolicy-77562062-92575029 2025-03-26 00:53:13,040 - INFO - Deleted policy ctest-policy-allow-all-14498307 2025-03-26 00:53:13,041 - INFO - Deleting VN ctest-vn-03821116 2025-03-26 00:53:13,159 - DEBUG - VN 33653f60-c0a9-4914-bd60-5178e7306e17 still in use: Unable to complete operation on network 33653f60-c0a9-4914-bd60-5178e7306e17. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-772413f9-fbd2-4e08-a384-e07ae070bad1'] 2025-03-26 00:53:13,159 - WARNING - Deleting VN ctest-vn-03821116 failed..Will retry 2025-03-26 00:53:15,325 - DEBUG - Response for deleting network () 2025-03-26 00:53:15,325 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/527f8c8f-3b87-4d77-a142-44852036a848 2025-03-26 00:53:15,333 - DEBUG - Response Code: 404 2025-03-26 00:53:15,333 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-03-26 00:53:15,340 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2d186e3b-ca0a-4be9-9958-c6e68ac20377 2025-03-26 00:53:15,398 - DEBUG - Requesting: http://10.0.0.24:8082/project/37a3ff81-d1cd-4530-bb24-bdeef0cc080f 2025-03-26 00:53:15,477 - INFO - Validated that VN ctest-vn-03821116 is not found in API Server 2025-03-26 00:53:15,490 - DEBUG - VN ctest-vn-03821116 is not present in Agent 10.0.0.24 2025-03-26 00:53:15,490 - INFO - Validated that VN ctest-vn-03821116 is not in any agent 2025-03-26 00:53:15,515 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-03821116 info 2025-03-26 00:53:15,515 - INFO - Deleting VN ctest-vn-74104717 2025-03-26 00:53:15,649 - DEBUG - Response for deleting network () 2025-03-26 00:53:15,649 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/13569be0-8d78-418a-8668-b01c29c6ff04 2025-03-26 00:53:15,659 - DEBUG - Response Code: 404 2025-03-26 00:53:15,659 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-03-26 00:53:15,669 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2d186e3b-ca0a-4be9-9958-c6e68ac20377 2025-03-26 00:53:15,726 - DEBUG - Requesting: http://10.0.0.24:8082/project/37a3ff81-d1cd-4530-bb24-bdeef0cc080f 2025-03-26 00:53:15,811 - INFO - Validated that VN ctest-vn-74104717 is not found in API Server 2025-03-26 00:53:15,832 - DEBUG - VN ctest-vn-74104717 is not present in Agent 10.0.0.24 2025-03-26 00:53:15,832 - INFO - Validated that VN ctest-vn-74104717 is not in any agent 2025-03-26 00:53:15,850 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-74104717 info 2025-03-26 00:53:16,110 - DEBUG - No XMPP flaps were noticed during the test 2025-03-26 00:53:16,110 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2025-03-26 00:53:16,110 - INFO - -------------------------------------------------------------------------------- 2025-03-26 00:53:16,854 - INFO - Deleted project: ctest-TestBasicPolicy-77562062, ID : 37a3ff81-d1cd-4530-bb24-bdeef0cc080f