2025-04-16 20:06:55,578 - INFO - Domain Default found not creating 2025-04-16 20:06:55,738 - INFO - Project ctest-TestBasicPolicy-89172505 not found, creating it 2025-04-16 20:06:56,220 - INFO - Created Project:ctest-TestBasicPolicy-89172505, ID : 1d720bd6-7eb4-4f8b-bee6-50aff9aeee56 2025-04-16 20:06:57,774 - INFO - ================================================================================ 2025-04-16 20:06:57,774 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-16 20:06:57,774 - 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-04-16 20:06:58,041 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.129': '0'}} with 2025-04-16 20:06:58,041 - INFO - Initial checks done. Running the testcase now 2025-04-16 20:06:58,041 - INFO - 2025-04-16 20:06:58,603 - DEBUG - Response for create_network : {'network': {'id': '74720fd0-387a-494b-86c9-c170edfb301c', 'name': 'ctest-vn-57920392', 'tenant_id': '1d720bd67eb44f8bbee650aff9aeee56', 'project_id': '1d720bd67eb44f8bbee650aff9aeee56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89172505', 'ctest-vn-57920392'], 'port_security_enabled': True, 'description': ''}} 2025-04-16 20:06:58,782 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0681700-216c-459a-92db-a392b0c5ceaf', 'name': '', 'tenant_id': '1d720bd67eb44f8bbee650aff9aeee56', 'network_id': '74720fd0-387a-494b-86c9-c170edfb301c', 'ip_version': 4, 'cidr': '130.101.117.64/26', 'allocation_pools': [{'start': '130.101.117.66', 'end': '130.101.117.126'}], 'gateway_ip': '130.101.117.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.101.117.66', 'tags': [], 'project_id': '1d720bd67eb44f8bbee650aff9aeee56'}} 2025-04-16 20:06:58,806 - INFO - Created VN ctest-vn-57920392 2025-04-16 20:06:58,862 - DEBUG - VN ctest-vn-57920392 UUID is 74720fd0-387a-494b-86c9-c170edfb301c 2025-04-16 20:06:59,213 - DEBUG - Response for create_network : {'network': {'id': 'acb8f2ed-0993-4c21-b89a-9a6e0faad538', 'name': 'ctest-vn-36248485', 'tenant_id': '1d720bd67eb44f8bbee650aff9aeee56', 'project_id': '1d720bd67eb44f8bbee650aff9aeee56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89172505', 'ctest-vn-36248485'], 'port_security_enabled': True, 'description': ''}} 2025-04-16 20:06:59,424 - DEBUG - Response for create_subnet : {'subnet': {'id': '5cd047d9-9250-4366-a967-2278e44e2a5d', 'name': '', 'tenant_id': '1d720bd67eb44f8bbee650aff9aeee56', 'network_id': 'acb8f2ed-0993-4c21-b89a-9a6e0faad538', 'ip_version': 4, 'cidr': '78.82.174.128/26', 'allocation_pools': [{'start': '78.82.174.130', 'end': '78.82.174.190'}], 'gateway_ip': '78.82.174.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.82.174.130', 'tags': [], 'project_id': '1d720bd67eb44f8bbee650aff9aeee56'}} 2025-04-16 20:06:59,447 - INFO - Created VN ctest-vn-36248485 2025-04-16 20:06:59,502 - DEBUG - VN ctest-vn-36248485 UUID is acb8f2ed-0993-4c21-b89a-9a6e0faad538 2025-04-16 20:06:59,621 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-57920392, 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-89172505:ctest-vn-36248485, 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-04-16 20:06:59,953 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74720fd0-387a-494b-86c9-c170edfb301c', 'name': 'ctest-vn-57920392', 'tenant_id': '1d720bd67eb44f8bbee650aff9aeee56', 'project_id': '1d720bd67eb44f8bbee650aff9aeee56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0681700-216c-459a-92db-a392b0c5ceaf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89172505', 'ctest-vn-57920392'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89172505', 'ctest-policy-allow-all-39086693']], 'subnet_ipam': [{'subnet_cidr': '130.101.117.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-16 20:07:00,208 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'acb8f2ed-0993-4c21-b89a-9a6e0faad538', 'name': 'ctest-vn-36248485', 'tenant_id': '1d720bd67eb44f8bbee650aff9aeee56', 'project_id': '1d720bd67eb44f8bbee650aff9aeee56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5cd047d9-9250-4366-a967-2278e44e2a5d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89172505', 'ctest-vn-36248485'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89172505', 'ctest-policy-allow-all-39086693']], 'subnet_ipam': [{'subnet_cidr': '78.82.174.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-16 20:07:00,394 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-04-16 20:07:00,700 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-04-16 20:07:00,731 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e3850cea-b4da-4173-8314-76828c0796eb 2025-04-16 20:07:00,748 - DEBUG - Requesting: http://10.0.0.129:8082/project/1d720bd6-7eb4-4f8b-bee6-50aff9aeee56 2025-04-16 20:07:00,826 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/74720fd0-387a-494b-86c9-c170edfb301c 2025-04-16 20:07:00,838 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/74720fd0-387a-494b-86c9-c170edfb301c 2025-04-16 20:07:00,849 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3b21188f-ab39-422e-84e9-ccacccfb9a7f 2025-04-16 20:07:00,859 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3b21188f-ab39-422e-84e9-ccacccfb9a7f 2025-04-16 20:07:00,868 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/817a0a35-6aea-4f22-affb-b3c9255f84d2 2025-04-16 20:07:00,877 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-16 20:07:00,877 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/74720fd0-387a-494b-86c9-c170edfb301c 2025-04-16 20:07:00,891 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3b21188f-ab39-422e-84e9-ccacccfb9a7f 2025-04-16 20:07:00,911 - INFO - Verified VN network id 8 for VN 74720fd0-387a-494b-86c9-c170edfb301c 2025-04-16 20:07:00,912 - INFO - Verifications in API Server for VN ctest-vn-57920392 passed 2025-04-16 20:07:00,912 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/74720fd0-387a-494b-86c9-c170edfb301c 2025-04-16 20:07:00,923 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3b21188f-ab39-422e-84e9-ccacccfb9a7f 2025-04-16 20:07:00,931 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3b21188f-ab39-422e-84e9-ccacccfb9a7f 2025-04-16 20:07:00,940 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/817a0a35-6aea-4f22-affb-b3c9255f84d2 2025-04-16 20:07:00,956 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-57920392', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89172505', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8390786442719807819', 'uuid-lslong': '9712506762174345244'}, 'enable': 'true', 'created': '2025-04-16T20:06:58', 'last-modified': '2025-04-16T20:06:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.034212'} 2025-04-16 20:07:00,963 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-16 20:07:00,963 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57920392 passed 2025-04-16 20:07:00,964 - DEBUG - ====Verifying policy data for ctest-vn-57920392 in API_Server ====== 2025-04-16 20:07:00,964 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-04-16 20:07:00,972 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e3850cea-b4da-4173-8314-76828c0796eb 2025-04-16 20:07:00,986 - DEBUG - Requesting: http://10.0.0.129:8082/project/1d720bd6-7eb4-4f8b-bee6-50aff9aeee56 2025-04-16 20:07:01,057 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/74720fd0-387a-494b-86c9-c170edfb301c 2025-04-16 20:07:01,069 - DEBUG - ==>Verifying data for policy with id: a1cb995f-df14-429f-8d61-884c59e34a64, fqn: ['default-domain', 'ctest-TestBasicPolicy-89172505', 'ctest-policy-allow-all-39086693'] 2025-04-16 20:07:01,069 - INFO - VN ctest-vn-57920392 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-16 20:07:01,069 - DEBUG - Verifying the vn in opserver 2025-04-16 20:07:01,069 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-57920392 virtual network link through opserver 10.0.0.129 2025-04-16 20:07:01,069 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-04-16 20:07:01,373 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-04-16 20:07:01,439 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-57920392', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-57920392?flat'} 2025-04-16 20:07:01,439 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-57920392 is found in opserver 2025-04-16 20:07:01,454 - DEBUG - Do not have enough data to verify VN in agent 2025-04-16 20:07:01,461 - DEBUG - VRF ids for VN ctest-vn-57920392: {} 2025-04-16 20:07:01,461 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-04-16 20:07:01,469 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e3850cea-b4da-4173-8314-76828c0796eb 2025-04-16 20:07:01,483 - DEBUG - Requesting: http://10.0.0.129:8082/project/1d720bd6-7eb4-4f8b-bee6-50aff9aeee56 2025-04-16 20:07:01,563 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/acb8f2ed-0993-4c21-b89a-9a6e0faad538 2025-04-16 20:07:01,578 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/acb8f2ed-0993-4c21-b89a-9a6e0faad538 2025-04-16 20:07:01,589 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a749a5d0-5ad5-4265-9152-34845aa6205b 2025-04-16 20:07:01,598 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a749a5d0-5ad5-4265-9152-34845aa6205b 2025-04-16 20:07:01,606 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/c6a166bf-f6e8-43df-849d-3670c76da19d 2025-04-16 20:07:01,615 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-16 20:07:01,615 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/acb8f2ed-0993-4c21-b89a-9a6e0faad538 2025-04-16 20:07:01,626 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a749a5d0-5ad5-4265-9152-34845aa6205b 2025-04-16 20:07:01,643 - INFO - Verified VN network id 9 for VN acb8f2ed-0993-4c21-b89a-9a6e0faad538 2025-04-16 20:07:01,643 - INFO - Verifications in API Server for VN ctest-vn-36248485 passed 2025-04-16 20:07:01,643 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/acb8f2ed-0993-4c21-b89a-9a6e0faad538 2025-04-16 20:07:01,655 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a749a5d0-5ad5-4265-9152-34845aa6205b 2025-04-16 20:07:01,663 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a749a5d0-5ad5-4265-9152-34845aa6205b 2025-04-16 20:07:01,672 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/c6a166bf-f6e8-43df-849d-3670c76da19d 2025-04-16 20:07:01,686 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-36248485', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89172505', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12445964670120184865', 'uuid-lslong': '13302114246892115256'}, 'enable': 'true', 'created': '2025-04-16T20:06:59', 'last-modified': '2025-04-16T20:07:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.504818'} 2025-04-16 20:07:01,695 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-16 20:07:01,695 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36248485 passed 2025-04-16 20:07:01,696 - DEBUG - ====Verifying policy data for ctest-vn-36248485 in API_Server ====== 2025-04-16 20:07:01,696 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-04-16 20:07:01,704 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e3850cea-b4da-4173-8314-76828c0796eb 2025-04-16 20:07:01,719 - DEBUG - Requesting: http://10.0.0.129:8082/project/1d720bd6-7eb4-4f8b-bee6-50aff9aeee56 2025-04-16 20:07:01,796 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/acb8f2ed-0993-4c21-b89a-9a6e0faad538 2025-04-16 20:07:01,807 - DEBUG - ==>Verifying data for policy with id: a1cb995f-df14-429f-8d61-884c59e34a64, fqn: ['default-domain', 'ctest-TestBasicPolicy-89172505', 'ctest-policy-allow-all-39086693'] 2025-04-16 20:07:01,807 - INFO - VN ctest-vn-36248485 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-16 20:07:01,807 - DEBUG - Verifying the vn in opserver 2025-04-16 20:07:01,807 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-36248485 virtual network link through opserver 10.0.0.129 2025-04-16 20:07:01,807 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-04-16 20:07:01,821 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-36248485', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-36248485?flat'} 2025-04-16 20:07:01,821 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-36248485 is found in opserver 2025-04-16 20:07:01,835 - DEBUG - Do not have enough data to verify VN in agent 2025-04-16 20:07:01,841 - DEBUG - VRF ids for VN ctest-vn-36248485: {} 2025-04-16 20:07:01,930 - DEBUG - Services list from nova: [, , ] 2025-04-16 20:07:03,120 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3125-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3125-1) 2025-04-16 20:07:04,323 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3125-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3125-1) 2025-04-16 20:07:04,323 - INFO - Waiting for VM ctest-TestBasicPolicy-89172505-72244013 to be up.. 2025-04-16 20:07:04,435 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-16 20:07:09,539 - DEBUG - VM is in ACTIVE state now 2025-04-16 20:07:09,539 - INFO - VM name : ctest-TestBasicPolicy-89172505-72244013 2025-04-16 20:07:09,649 - DEBUG - VM ctest-TestBasicPolicy-89172505-72244013 ID is fc68c7d2-15c9-452a-a11c-fc7ebe7a82cb 2025-04-16 20:07:09,670 - DEBUG - VM ctest-TestBasicPolicy-89172505-72244013 launched on Node cn-jenkins-deploy-platform-ansible-os-3125-1 2025-04-16 20:07:09,766 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine/fc68c7d2-15c9-452a-a11c-fc7ebe7a82cb 2025-04-16 20:07:09,777 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine-interface/d0c6dc8a-ddba-467d-81b9-a3f5a0a404fe 2025-04-16 20:07:13,039 - 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 1002ms') 2025-04-16 20:07:13,039 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89172505-72244013 failed! 2025-04-16 20:07:13,098 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-57920392 is 130.101.117.65 and allocation pool is NOT set 2025-04-16 20:07:15,164 - 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=9.65 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.78 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.776/5.714/9.652/3.938 ms') 2025-04-16 20:07:15,164 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89172505-72244013 passed 2025-04-16 20:07:15,318 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 20:07:15,318 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89172505-72244013, IP 130.101.117.67, Port 22 2025-04-16 20:07:15,383 - 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-04-16 20:07:15,477 - DEBUG - VM ctest-TestBasicPolicy-89172505-72244013 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-16 20:07:20,477 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 20:07:20,477 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89172505-72244013, IP 130.101.117.67, Port 22 2025-04-16 20:07:20,649 - DEBUG - VM ctest-TestBasicPolicy-89172505-72244013 is ready for SSH connections 2025-04-16 20:07:20,649 - INFO - Waiting for VM ctest-TestBasicPolicy-89172505-24624024 to be up.. 2025-04-16 20:07:20,742 - DEBUG - VM is in ACTIVE state now 2025-04-16 20:07:20,742 - INFO - VM name : ctest-TestBasicPolicy-89172505-24624024 2025-04-16 20:07:20,843 - DEBUG - VM ctest-TestBasicPolicy-89172505-24624024 ID is ce726e0e-38e5-4e5d-93b1-3a2ca44b2327 2025-04-16 20:07:20,843 - DEBUG - VM ctest-TestBasicPolicy-89172505-24624024 launched on Node cn-jenkins-deploy-platform-ansible-os-3125-1 2025-04-16 20:07:20,954 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine/ce726e0e-38e5-4e5d-93b1-3a2ca44b2327 2025-04-16 20:07:20,967 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-machine-interface/47081982-8aa9-4c48-9d5f-4606fb199dc4 2025-04-16 20:07:22,226 - 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.09 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.457 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.457/1.775/3.093/1.318 ms') 2025-04-16 20:07:22,227 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-89172505-24624024 passed 2025-04-16 20:07:22,382 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 20:07:22,382 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89172505-24624024, IP 78.82.174.131, Port 22 2025-04-16 20:07:22,541 - DEBUG - VM ctest-TestBasicPolicy-89172505-24624024 is ready for SSH connections 2025-04-16 20:07:22,541 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 20:07:22,541 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 78.82.174.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.129, gateway password: c0ntrail123 2025-04-16 20:07:22,542 - DEBUG - ping -s 56 -c 3 -W 1 78.82.174.131 2025-04-16 20:07:26,262 - DEBUG - PING 78.82.174.131 (78.82.174.131): 56 data bytes 64 bytes from 78.82.174.131: seq=0 ttl=63 time=3.652 ms 64 bytes from 78.82.174.131: seq=1 ttl=63 time=1.007 ms 64 bytes from 78.82.174.131: seq=2 ttl=63 time=1.137 ms --- 78.82.174.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.007/1.932/3.652 ms 2025-04-16 20:07:26,262 - INFO - Ping to IP 78.82.174.131 from VM ctest-TestBasicPolicy-89172505-72244013 passed 2025-04-16 20:07:26,453 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a1cb995f-df14-429f-8d61-884c59e34a64", "href": "http://10.0.0.129:8082/network-policy/a1cb995f-df14-429f-8d61-884c59e34a64"}} 2025-04-16 20:07:26,453 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-16 20:07:26,454 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 78.82.174.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.129, gateway password: c0ntrail123 2025-04-16 20:07:26,454 - DEBUG - ping -s 56 -c 3 -W 1 78.82.174.131 2025-04-16 20:07:29,662 - DEBUG - PING 78.82.174.131 (78.82.174.131): 56 data bytes 64 bytes from 78.82.174.131: seq=0 ttl=63 time=1.844 ms --- 78.82.174.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.844/1.844/1.844 ms 2025-04-16 20:07:29,662 - WARNING - Ping to IP 78.82.174.131 from VM ctest-TestBasicPolicy-89172505-72244013 failed 2025-04-16 20:07:29,662 - INFO - Deleting VM ctest-TestBasicPolicy-89172505-24624024 2025-04-16 20:07:29,740 - INFO - Deleting VM ctest-TestBasicPolicy-89172505-72244013 2025-04-16 20:07:30,145 - INFO - Deleted policy ctest-policy-allow-all-39086693 2025-04-16 20:07:30,145 - INFO - Deleting VN ctest-vn-36248485 2025-04-16 20:07:30,190 - DEBUG - VN acb8f2ed-0993-4c21-b89a-9a6e0faad538 still in use: Unable to complete operation on network acb8f2ed-0993-4c21-b89a-9a6e0faad538. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c3cd4563-1323-49df-943a-ad529bc6a204'] 2025-04-16 20:07:30,190 - WARNING - Deleting VN ctest-vn-36248485 failed..Will retry 2025-04-16 20:07:32,315 - DEBUG - Response for deleting network () 2025-04-16 20:07:32,315 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a749a5d0-5ad5-4265-9152-34845aa6205b 2025-04-16 20:07:32,326 - DEBUG - Response Code: 404 2025-04-16 20:07:32,326 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-04-16 20:07:32,334 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e3850cea-b4da-4173-8314-76828c0796eb 2025-04-16 20:07:32,392 - DEBUG - Requesting: http://10.0.0.129:8082/project/1d720bd6-7eb4-4f8b-bee6-50aff9aeee56 2025-04-16 20:07:32,465 - INFO - Validated that VN ctest-vn-36248485 is not found in API Server 2025-04-16 20:07:32,477 - DEBUG - VN ctest-vn-36248485 is not present in Agent 10.0.0.129 2025-04-16 20:07:32,477 - INFO - Validated that VN ctest-vn-36248485 is not in any agent 2025-04-16 20:07:32,494 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-36248485 info 2025-04-16 20:07:32,495 - INFO - Deleting VN ctest-vn-57920392 2025-04-16 20:07:32,610 - DEBUG - Response for deleting network () 2025-04-16 20:07:32,610 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3b21188f-ab39-422e-84e9-ccacccfb9a7f 2025-04-16 20:07:32,616 - DEBUG - Response Code: 404 2025-04-16 20:07:32,616 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-04-16 20:07:32,622 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e3850cea-b4da-4173-8314-76828c0796eb 2025-04-16 20:07:32,675 - DEBUG - Requesting: http://10.0.0.129:8082/project/1d720bd6-7eb4-4f8b-bee6-50aff9aeee56 2025-04-16 20:07:32,748 - INFO - Validated that VN ctest-vn-57920392 is not found in API Server 2025-04-16 20:07:32,760 - DEBUG - VN ctest-vn-57920392 is not present in Agent 10.0.0.129 2025-04-16 20:07:32,760 - INFO - Validated that VN ctest-vn-57920392 is not in any agent 2025-04-16 20:07:32,776 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57920392 info 2025-04-16 20:07:33,035 - DEBUG - No XMPP flaps were noticed during the test 2025-04-16 20:07:33,036 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-04-16 20:07:33,036 - INFO - -------------------------------------------------------------------------------- 2025-04-16 20:07:33,756 - INFO - Deleted project: ctest-TestBasicPolicy-89172505, ID : 1d720bd6-7eb4-4f8b-bee6-50aff9aeee56