2025-05-28 14:31:56,975 - INFO - Domain Default found not creating 2025-05-28 14:31:57,123 - INFO - Project ctest-TestBasicPolicy-13028091 not found, creating it 2025-05-28 14:31:57,600 - INFO - Created Project:ctest-TestBasicPolicy-13028091, ID : 5a4330c0-c46e-4e7d-b393-31032c8db87d 2025-05-28 14:31:59,185 - INFO - ================================================================================ 2025-05-28 14:31:59,185 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-28 14:31:59,185 - 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-05-28 14:31:59,442 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-05-28 14:31:59,442 - INFO - Initial checks done. Running the testcase now 2025-05-28 14:31:59,442 - INFO - 2025-05-28 14:32:00,025 - DEBUG - Response for create_network : {'network': {'id': 'd00a44a3-08dc-4efa-97bb-627d92741c86', 'name': 'ctest-vn-64764660', 'tenant_id': '5a4330c0c46e4e7db39331032c8db87d', 'project_id': '5a4330c0c46e4e7db39331032c8db87d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13028091', 'ctest-vn-64764660'], 'port_security_enabled': True, 'description': ''}} 2025-05-28 14:32:00,183 - DEBUG - Response for create_subnet : {'subnet': {'id': '41877977-09c2-45bd-b385-14dc570e6385', 'name': '', 'tenant_id': '5a4330c0c46e4e7db39331032c8db87d', 'network_id': 'd00a44a3-08dc-4efa-97bb-627d92741c86', 'ip_version': 4, 'cidr': '168.102.122.0/26', 'allocation_pools': [{'start': '168.102.122.2', 'end': '168.102.122.62'}], 'gateway_ip': '168.102.122.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.102.122.2', 'tags': [], 'project_id': '5a4330c0c46e4e7db39331032c8db87d'}} 2025-05-28 14:32:00,203 - INFO - Created VN ctest-vn-64764660 2025-05-28 14:32:00,255 - DEBUG - VN ctest-vn-64764660 UUID is d00a44a3-08dc-4efa-97bb-627d92741c86 2025-05-28 14:32:00,538 - DEBUG - Response for create_network : {'network': {'id': '3131c46a-c6e7-4fe4-ac58-bfc0009ab488', 'name': 'ctest-vn-05311418', 'tenant_id': '5a4330c0c46e4e7db39331032c8db87d', 'project_id': '5a4330c0c46e4e7db39331032c8db87d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13028091', 'ctest-vn-05311418'], 'port_security_enabled': True, 'description': ''}} 2025-05-28 14:32:00,697 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd870676-7fba-4c1d-b1c5-6d833a4fd406', 'name': '', 'tenant_id': '5a4330c0c46e4e7db39331032c8db87d', 'network_id': '3131c46a-c6e7-4fe4-ac58-bfc0009ab488', 'ip_version': 4, 'cidr': '184.173.50.0/26', 'allocation_pools': [{'start': '184.173.50.2', 'end': '184.173.50.62'}], 'gateway_ip': '184.173.50.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.173.50.2', 'tags': [], 'project_id': '5a4330c0c46e4e7db39331032c8db87d'}} 2025-05-28 14:32:00,716 - INFO - Created VN ctest-vn-05311418 2025-05-28 14:32:00,767 - DEBUG - VN ctest-vn-05311418 UUID is 3131c46a-c6e7-4fe4-ac58-bfc0009ab488 2025-05-28 14:32:00,879 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-64764660, 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-13028091:ctest-vn-05311418, 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-05-28 14:32:01,193 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd00a44a3-08dc-4efa-97bb-627d92741c86', 'name': 'ctest-vn-64764660', 'tenant_id': '5a4330c0c46e4e7db39331032c8db87d', 'project_id': '5a4330c0c46e4e7db39331032c8db87d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41877977-09c2-45bd-b385-14dc570e6385'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13028091', 'ctest-vn-64764660'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13028091', 'ctest-policy-allow-all-93070879']], 'subnet_ipam': [{'subnet_cidr': '168.102.122.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-28 14:32:01,430 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3131c46a-c6e7-4fe4-ac58-bfc0009ab488', 'name': 'ctest-vn-05311418', 'tenant_id': '5a4330c0c46e4e7db39331032c8db87d', 'project_id': '5a4330c0c46e4e7db39331032c8db87d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd870676-7fba-4c1d-b1c5-6d833a4fd406'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13028091', 'ctest-vn-05311418'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13028091', 'ctest-policy-allow-all-93070879']], 'subnet_ipam': [{'subnet_cidr': '184.173.50.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-28 14:32:01,575 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-28 14:32:01,911 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-28 14:32:01,941 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6d0be6e-dc93-4151-8f0a-bb9ab6845794 2025-05-28 14:32:01,955 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a4330c0-c46e-4e7d-b393-31032c8db87d 2025-05-28 14:32:02,030 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d00a44a3-08dc-4efa-97bb-627d92741c86 2025-05-28 14:32:02,043 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d00a44a3-08dc-4efa-97bb-627d92741c86 2025-05-28 14:32:02,053 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bef266e2-5714-4978-9374-2bf2d5b08504 2025-05-28 14:32:02,062 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bef266e2-5714-4978-9374-2bf2d5b08504 2025-05-28 14:32:02,070 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0890a02a-b859-4792-b73d-3f2b4c621364 2025-05-28 14:32:02,077 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-28 14:32:02,077 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d00a44a3-08dc-4efa-97bb-627d92741c86 2025-05-28 14:32:02,088 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bef266e2-5714-4978-9374-2bf2d5b08504 2025-05-28 14:32:02,103 - INFO - Verified VN network id 8 for VN d00a44a3-08dc-4efa-97bb-627d92741c86 2025-05-28 14:32:02,103 - INFO - Verifications in API Server for VN ctest-vn-64764660 passed 2025-05-28 14:32:02,103 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d00a44a3-08dc-4efa-97bb-627d92741c86 2025-05-28 14:32:02,113 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bef266e2-5714-4978-9374-2bf2d5b08504 2025-05-28 14:32:02,120 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bef266e2-5714-4978-9374-2bf2d5b08504 2025-05-28 14:32:02,129 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0890a02a-b859-4792-b73d-3f2b4c621364 2025-05-28 14:32:02,144 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-64764660', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13028091', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14990869776675131130', 'uuid-lslong': '10933440811839528070'}, 'enable': 'true', 'created': '2025-05-28T14:31:59', 'last-modified': '2025-05-28T14:32:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982195'} 2025-05-28 14:32:02,151 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-28 14:32:02,151 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64764660 passed 2025-05-28 14:32:02,152 - DEBUG - ====Verifying policy data for ctest-vn-64764660 in API_Server ====== 2025-05-28 14:32:02,152 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-28 14:32:02,158 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6d0be6e-dc93-4151-8f0a-bb9ab6845794 2025-05-28 14:32:02,174 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a4330c0-c46e-4e7d-b393-31032c8db87d 2025-05-28 14:32:02,250 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d00a44a3-08dc-4efa-97bb-627d92741c86 2025-05-28 14:32:02,261 - DEBUG - ==>Verifying data for policy with id: 47d92d52-c426-4e93-8eed-e77749c1bdb8, fqn: ['default-domain', 'ctest-TestBasicPolicy-13028091', 'ctest-policy-allow-all-93070879'] 2025-05-28 14:32:02,261 - INFO - VN ctest-vn-64764660 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-28 14:32:02,261 - DEBUG - Verifying the vn in opserver 2025-05-28 14:32:02,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-64764660 virtual network link through opserver 10.0.0.38 2025-05-28 14:32:02,262 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-05-28 14:32:02,594 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-05-28 14:32:02,651 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-64764660', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-64764660?flat'} 2025-05-28 14:32:02,651 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-64764660 is found in opserver 2025-05-28 14:32:02,662 - DEBUG - Do not have enough data to verify VN in agent 2025-05-28 14:32:02,667 - DEBUG - VRF ids for VN ctest-vn-64764660: {} 2025-05-28 14:32:02,667 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-28 14:32:02,673 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6d0be6e-dc93-4151-8f0a-bb9ab6845794 2025-05-28 14:32:02,685 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a4330c0-c46e-4e7d-b393-31032c8db87d 2025-05-28 14:32:02,756 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3131c46a-c6e7-4fe4-ac58-bfc0009ab488 2025-05-28 14:32:02,771 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3131c46a-c6e7-4fe4-ac58-bfc0009ab488 2025-05-28 14:32:02,782 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c10e091-0ff3-4187-ac6b-4db650014384 2025-05-28 14:32:02,790 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c10e091-0ff3-4187-ac6b-4db650014384 2025-05-28 14:32:02,800 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a239299a-1763-42e8-b983-6dc62f101cfe 2025-05-28 14:32:02,806 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-28 14:32:02,806 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3131c46a-c6e7-4fe4-ac58-bfc0009ab488 2025-05-28 14:32:02,817 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c10e091-0ff3-4187-ac6b-4db650014384 2025-05-28 14:32:02,832 - INFO - Verified VN network id 9 for VN 3131c46a-c6e7-4fe4-ac58-bfc0009ab488 2025-05-28 14:32:02,832 - INFO - Verifications in API Server for VN ctest-vn-05311418 passed 2025-05-28 14:32:02,832 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3131c46a-c6e7-4fe4-ac58-bfc0009ab488 2025-05-28 14:32:02,842 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c10e091-0ff3-4187-ac6b-4db650014384 2025-05-28 14:32:02,851 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c10e091-0ff3-4187-ac6b-4db650014384 2025-05-28 14:32:02,859 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a239299a-1763-42e8-b983-6dc62f101cfe 2025-05-28 14:32:02,873 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-05311418', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13028091', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3544830344599916516', 'uuid-lslong': '12418886803838907528'}, 'enable': 'true', 'created': '2025-05-28T14:32:00', 'last-modified': '2025-05-28T14:32:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.466647'} 2025-05-28 14:32:02,881 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-28 14:32:02,881 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05311418 passed 2025-05-28 14:32:02,882 - DEBUG - ====Verifying policy data for ctest-vn-05311418 in API_Server ====== 2025-05-28 14:32:02,882 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-28 14:32:02,889 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6d0be6e-dc93-4151-8f0a-bb9ab6845794 2025-05-28 14:32:02,908 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a4330c0-c46e-4e7d-b393-31032c8db87d 2025-05-28 14:32:02,993 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3131c46a-c6e7-4fe4-ac58-bfc0009ab488 2025-05-28 14:32:03,004 - DEBUG - ==>Verifying data for policy with id: 47d92d52-c426-4e93-8eed-e77749c1bdb8, fqn: ['default-domain', 'ctest-TestBasicPolicy-13028091', 'ctest-policy-allow-all-93070879'] 2025-05-28 14:32:03,005 - INFO - VN ctest-vn-05311418 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-28 14:32:03,005 - DEBUG - Verifying the vn in opserver 2025-05-28 14:32:03,005 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-05311418 virtual network link through opserver 10.0.0.38 2025-05-28 14:32:03,005 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-05-28 14:32:03,017 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-05311418', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-05311418?flat'} 2025-05-28 14:32:03,017 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-05311418 is found in opserver 2025-05-28 14:32:03,031 - DEBUG - Do not have enough data to verify VN in agent 2025-05-28 14:32:03,036 - DEBUG - VRF ids for VN ctest-vn-05311418: {} 2025-05-28 14:32:03,093 - DEBUG - Services list from nova: [, , ] 2025-05-28 14:32:04,212 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3352-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3352-1) 2025-05-28 14:32:05,509 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3352-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3352-1) 2025-05-28 14:32:05,509 - INFO - Waiting for VM ctest-TestBasicPolicy-13028091-22999155 to be up.. 2025-05-28 14:32:05,585 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-28 14:32:10,681 - DEBUG - VM is in ACTIVE state now 2025-05-28 14:32:10,682 - INFO - VM name : ctest-TestBasicPolicy-13028091-22999155 2025-05-28 14:32:10,774 - DEBUG - VM ctest-TestBasicPolicy-13028091-22999155 ID is 4855604a-974d-438a-9bb0-7cfded216963 2025-05-28 14:32:10,794 - DEBUG - VM ctest-TestBasicPolicy-13028091-22999155 launched on Node cn-jenkins-deploy-platform-ansible-os-3352-1 2025-05-28 14:32:10,880 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/4855604a-974d-438a-9bb0-7cfded216963 2025-05-28 14:32:10,892 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/ad9784d7-0bf5-4118-923c-4d49e77c00cb 2025-05-28 14:32:14,158 - 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 1014ms') 2025-05-28 14:32:14,159 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13028091-22999155 failed! 2025-05-28 14:32:14,215 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-13028091:ctest-vn-64764660 is 168.102.122.1 and allocation pool is NOT set 2025-05-28 14:32:16,275 - 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=5.37 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.719 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.719/3.043/5.367/2.324 ms') 2025-05-28 14:32:16,275 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13028091-22999155 passed 2025-05-28 14:32:16,427 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-28 14:32:16,427 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13028091-22999155, IP 168.102.122.3, Port 22 2025-05-28 14:32:16,483 - 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-05-28 14:32:16,566 - DEBUG - VM ctest-TestBasicPolicy-13028091-22999155 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-28 14:32:21,567 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-28 14:32:21,567 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13028091-22999155, IP 168.102.122.3, Port 22 2025-05-28 14:32:21,723 - DEBUG - VM ctest-TestBasicPolicy-13028091-22999155 is ready for SSH connections 2025-05-28 14:32:21,723 - INFO - Waiting for VM ctest-TestBasicPolicy-13028091-69875438 to be up.. 2025-05-28 14:32:21,806 - DEBUG - VM is in ACTIVE state now 2025-05-28 14:32:21,806 - INFO - VM name : ctest-TestBasicPolicy-13028091-69875438 2025-05-28 14:32:21,901 - DEBUG - VM ctest-TestBasicPolicy-13028091-69875438 ID is 1d7f3208-f8b1-463b-b1ef-27e121552cc4 2025-05-28 14:32:21,902 - DEBUG - VM ctest-TestBasicPolicy-13028091-69875438 launched on Node cn-jenkins-deploy-platform-ansible-os-3352-1 2025-05-28 14:32:21,983 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/1d7f3208-f8b1-463b-b1ef-27e121552cc4 2025-05-28 14:32:21,994 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/e5ae48cc-f74a-4b89-bbc2-9a7504d5690d 2025-05-28 14:32:23,254 - 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.76 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.416 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.416/2.086/3.756/1.670 ms') 2025-05-28 14:32:23,254 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-13028091-69875438 passed 2025-05-28 14:32:23,407 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-28 14:32:23,407 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13028091-69875438, IP 184.173.50.3, Port 22 2025-05-28 14:32:23,563 - DEBUG - VM ctest-TestBasicPolicy-13028091-69875438 is ready for SSH connections 2025-05-28 14:32:23,563 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-28 14:32:23,563 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 184.173.50.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-28 14:32:23,563 - DEBUG - ping -s 56 -c 3 -W 1 184.173.50.3 2025-05-28 14:32:27,317 - DEBUG - PING 184.173.50.3 (184.173.50.3): 56 data bytes 64 bytes from 184.173.50.3: seq=0 ttl=63 time=3.679 ms 64 bytes from 184.173.50.3: seq=1 ttl=63 time=0.864 ms 64 bytes from 184.173.50.3: seq=2 ttl=63 time=0.956 ms --- 184.173.50.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.864/1.833/3.679 ms 2025-05-28 14:32:27,317 - INFO - Ping to IP 184.173.50.3 from VM ctest-TestBasicPolicy-13028091-22999155 passed 2025-05-28 14:32:27,503 - DEBUG - Policy Update Response {"network-policy": {"uuid": "47d92d52-c426-4e93-8eed-e77749c1bdb8", "href": "http://10.0.0.38:8082/network-policy/47d92d52-c426-4e93-8eed-e77749c1bdb8"}} 2025-05-28 14:32:27,503 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-28 14:32:27,503 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 184.173.50.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-28 14:32:27,503 - DEBUG - ping -s 56 -c 3 -W 1 184.173.50.3 2025-05-28 14:32:30,731 - DEBUG - PING 184.173.50.3 (184.173.50.3): 56 data bytes 64 bytes from 184.173.50.3: seq=0 ttl=63 time=1.821 ms --- 184.173.50.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.821/1.821/1.821 ms 2025-05-28 14:32:30,731 - WARNING - Ping to IP 184.173.50.3 from VM ctest-TestBasicPolicy-13028091-22999155 failed 2025-05-28 14:32:30,731 - INFO - Deleting VM ctest-TestBasicPolicy-13028091-69875438 2025-05-28 14:32:30,806 - INFO - Deleting VM ctest-TestBasicPolicy-13028091-22999155 2025-05-28 14:32:31,239 - INFO - Deleted policy ctest-policy-allow-all-93070879 2025-05-28 14:32:31,239 - INFO - Deleting VN ctest-vn-05311418 2025-05-28 14:32:31,283 - DEBUG - VN 3131c46a-c6e7-4fe4-ac58-bfc0009ab488 still in use: Unable to complete operation on network 3131c46a-c6e7-4fe4-ac58-bfc0009ab488. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-63116c83-5638-48ec-9440-f16f2ed94506'] 2025-05-28 14:32:31,283 - WARNING - Deleting VN ctest-vn-05311418 failed..Will retry 2025-05-28 14:32:33,401 - DEBUG - Response for deleting network () 2025-05-28 14:32:33,401 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c10e091-0ff3-4187-ac6b-4db650014384 2025-05-28 14:32:33,411 - DEBUG - Response Code: 404 2025-05-28 14:32:33,411 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-28 14:32:33,418 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6d0be6e-dc93-4151-8f0a-bb9ab6845794 2025-05-28 14:32:33,474 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a4330c0-c46e-4e7d-b393-31032c8db87d 2025-05-28 14:32:33,549 - INFO - Validated that VN ctest-vn-05311418 is not found in API Server 2025-05-28 14:32:33,561 - DEBUG - VN ctest-vn-05311418 is not present in Agent 10.0.0.38 2025-05-28 14:32:33,561 - INFO - Validated that VN ctest-vn-05311418 is not in any agent 2025-05-28 14:32:33,578 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-05311418 info 2025-05-28 14:32:33,579 - INFO - Deleting VN ctest-vn-64764660 2025-05-28 14:32:33,693 - DEBUG - Response for deleting network () 2025-05-28 14:32:33,693 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bef266e2-5714-4978-9374-2bf2d5b08504 2025-05-28 14:32:33,701 - DEBUG - Response Code: 404 2025-05-28 14:32:33,701 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-28 14:32:33,707 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b6d0be6e-dc93-4151-8f0a-bb9ab6845794 2025-05-28 14:32:33,765 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a4330c0-c46e-4e7d-b393-31032c8db87d 2025-05-28 14:32:33,840 - INFO - Validated that VN ctest-vn-64764660 is not found in API Server 2025-05-28 14:32:33,856 - DEBUG - VN ctest-vn-64764660 is not present in Agent 10.0.0.38 2025-05-28 14:32:33,856 - INFO - Validated that VN ctest-vn-64764660 is not in any agent 2025-05-28 14:32:33,876 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-64764660 info 2025-05-28 14:32:34,130 - DEBUG - No XMPP flaps were noticed during the test 2025-05-28 14:32:34,130 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-05-28 14:32:34,130 - INFO - -------------------------------------------------------------------------------- 2025-05-28 14:32:34,885 - INFO - Deleted project: ctest-TestBasicPolicy-13028091, ID : 5a4330c0-c46e-4e7d-b393-31032c8db87d