2025-05-13 12:03:56,921 - INFO - Domain Default found not creating 2025-05-13 12:03:57,216 - INFO - Project ctest-TestBasicPolicy-58383464 not found, creating it 2025-05-13 12:03:58,129 - INFO - Created Project:ctest-TestBasicPolicy-58383464, ID : 67ae77e7-20a5-44d0-b250-c59c7e7ca379 2025-05-13 12:03:59,830 - INFO - ================================================================================ 2025-05-13 12:03:59,830 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-13 12:03:59,831 - 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-13 12:04:00,088 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-05-13 12:04:00,088 - INFO - Initial checks done. Running the testcase now 2025-05-13 12:04:00,088 - INFO - 2025-05-13 12:04:00,720 - DEBUG - Response for create_network : {'network': {'id': 'c1070370-1381-41a4-bce5-63f30cae92d8', 'name': 'ctest-vn-76204095', 'tenant_id': '67ae77e720a544d0b250c59c7e7ca379', 'project_id': '67ae77e720a544d0b250c59c7e7ca379', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58383464', 'ctest-vn-76204095'], 'port_security_enabled': True, 'description': ''}} 2025-05-13 12:04:00,918 - DEBUG - Response for create_subnet : {'subnet': {'id': '85d897e4-0b60-4c08-a88a-d3ec8b571498', 'name': '', 'tenant_id': '67ae77e720a544d0b250c59c7e7ca379', 'network_id': 'c1070370-1381-41a4-bce5-63f30cae92d8', 'ip_version': 4, 'cidr': '219.159.147.192/26', 'allocation_pools': [{'start': '219.159.147.194', 'end': '219.159.147.254'}], 'gateway_ip': '219.159.147.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.159.147.194', 'tags': [], 'project_id': '67ae77e720a544d0b250c59c7e7ca379'}} 2025-05-13 12:04:00,940 - INFO - Created VN ctest-vn-76204095 2025-05-13 12:04:00,996 - DEBUG - VN ctest-vn-76204095 UUID is c1070370-1381-41a4-bce5-63f30cae92d8 2025-05-13 12:04:01,309 - DEBUG - Response for create_network : {'network': {'id': '2281d4d3-3619-4333-aba3-18fe7cf697f1', 'name': 'ctest-vn-14675421', 'tenant_id': '67ae77e720a544d0b250c59c7e7ca379', 'project_id': '67ae77e720a544d0b250c59c7e7ca379', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58383464', 'ctest-vn-14675421'], 'port_security_enabled': True, 'description': ''}} 2025-05-13 12:04:01,518 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dbb4e11e-3fcf-406d-b1e8-02b4bdb405bb', 'name': '', 'tenant_id': '67ae77e720a544d0b250c59c7e7ca379', 'network_id': '2281d4d3-3619-4333-aba3-18fe7cf697f1', 'ip_version': 4, 'cidr': '159.205.142.64/26', 'allocation_pools': [{'start': '159.205.142.66', 'end': '159.205.142.126'}], 'gateway_ip': '159.205.142.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.205.142.66', 'tags': [], 'project_id': '67ae77e720a544d0b250c59c7e7ca379'}} 2025-05-13 12:04:01,541 - INFO - Created VN ctest-vn-14675421 2025-05-13 12:04:01,596 - DEBUG - VN ctest-vn-14675421 UUID is 2281d4d3-3619-4333-aba3-18fe7cf697f1 2025-05-13 12:04:01,727 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58383464:ctest-vn-76204095, 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-58383464:ctest-vn-14675421, 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-13 12:04:02,069 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c1070370-1381-41a4-bce5-63f30cae92d8', 'name': 'ctest-vn-76204095', 'tenant_id': '67ae77e720a544d0b250c59c7e7ca379', 'project_id': '67ae77e720a544d0b250c59c7e7ca379', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['85d897e4-0b60-4c08-a88a-d3ec8b571498'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58383464', 'ctest-vn-76204095'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58383464', 'ctest-policy-allow-all-70033553']], 'subnet_ipam': [{'subnet_cidr': '219.159.147.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-13 12:04:02,357 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2281d4d3-3619-4333-aba3-18fe7cf697f1', 'name': 'ctest-vn-14675421', 'tenant_id': '67ae77e720a544d0b250c59c7e7ca379', 'project_id': '67ae77e720a544d0b250c59c7e7ca379', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dbb4e11e-3fcf-406d-b1e8-02b4bdb405bb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58383464', 'ctest-vn-14675421'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58383464', 'ctest-policy-allow-all-70033553']], 'subnet_ipam': [{'subnet_cidr': '159.205.142.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-13 12:04:02,520 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-13 12:04:02,865 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-13 12:04:02,899 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d240c268-f8b0-4860-9e4d-0545ca9dafb7 2025-05-13 12:04:02,916 - DEBUG - Requesting: http://10.0.0.50:8082/project/67ae77e7-20a5-44d0-b250-c59c7e7ca379 2025-05-13 12:04:03,002 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c1070370-1381-41a4-bce5-63f30cae92d8 2025-05-13 12:04:03,018 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c1070370-1381-41a4-bce5-63f30cae92d8 2025-05-13 12:04:03,032 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d5d8d38e-0ec7-4ac8-bc2b-35a5d859c2e2 2025-05-13 12:04:03,043 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d5d8d38e-0ec7-4ac8-bc2b-35a5d859c2e2 2025-05-13 12:04:03,053 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c03004e7-bd21-4453-995d-07a4cfa40858 2025-05-13 12:04:03,063 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-13 12:04:03,063 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c1070370-1381-41a4-bce5-63f30cae92d8 2025-05-13 12:04:03,079 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d5d8d38e-0ec7-4ac8-bc2b-35a5d859c2e2 2025-05-13 12:04:03,099 - INFO - Verified VN network id 8 for VN c1070370-1381-41a4-bce5-63f30cae92d8 2025-05-13 12:04:03,099 - INFO - Verifications in API Server for VN ctest-vn-76204095 passed 2025-05-13 12:04:03,099 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c1070370-1381-41a4-bce5-63f30cae92d8 2025-05-13 12:04:03,111 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d5d8d38e-0ec7-4ac8-bc2b-35a5d859c2e2 2025-05-13 12:04:03,120 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d5d8d38e-0ec7-4ac8-bc2b-35a5d859c2e2 2025-05-13 12:04:03,130 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c03004e7-bd21-4453-995d-07a4cfa40858 2025-05-13 12:04:03,145 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58383464:ctest-vn-76204095', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58383464', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13909089754055524772', 'uuid-lslong': '13611395344338162392'}, 'enable': 'true', 'created': '2025-05-13T12:04:00', 'last-modified': '2025-05-13T12:04:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.119638'} 2025-05-13 12:04:03,154 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-13 12:04:03,154 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76204095 passed 2025-05-13 12:04:03,155 - DEBUG - ====Verifying policy data for ctest-vn-76204095 in API_Server ====== 2025-05-13 12:04:03,155 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-13 12:04:03,161 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d240c268-f8b0-4860-9e4d-0545ca9dafb7 2025-05-13 12:04:03,175 - DEBUG - Requesting: http://10.0.0.50:8082/project/67ae77e7-20a5-44d0-b250-c59c7e7ca379 2025-05-13 12:04:03,253 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c1070370-1381-41a4-bce5-63f30cae92d8 2025-05-13 12:04:03,265 - DEBUG - ==>Verifying data for policy with id: 0f06e527-c213-44a5-8f68-910399fa0ac7, fqn: ['default-domain', 'ctest-TestBasicPolicy-58383464', 'ctest-policy-allow-all-70033553'] 2025-05-13 12:04:03,265 - INFO - VN ctest-vn-76204095 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-13 12:04:03,265 - DEBUG - Verifying the vn in opserver 2025-05-13 12:04:03,265 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58383464:ctest-vn-76204095 virtual network link through opserver 10.0.0.50 2025-05-13 12:04:03,266 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-13 12:04:03,707 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-13 12:04:03,787 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58383464:ctest-vn-76204095', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58383464:ctest-vn-76204095?flat'} 2025-05-13 12:04:03,787 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58383464:ctest-vn-76204095 is found in opserver 2025-05-13 12:04:03,800 - DEBUG - Do not have enough data to verify VN in agent 2025-05-13 12:04:03,807 - DEBUG - VRF ids for VN ctest-vn-76204095: {} 2025-05-13 12:04:03,807 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-13 12:04:03,814 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d240c268-f8b0-4860-9e4d-0545ca9dafb7 2025-05-13 12:04:03,827 - DEBUG - Requesting: http://10.0.0.50:8082/project/67ae77e7-20a5-44d0-b250-c59c7e7ca379 2025-05-13 12:04:03,906 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2281d4d3-3619-4333-aba3-18fe7cf697f1 2025-05-13 12:04:03,921 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2281d4d3-3619-4333-aba3-18fe7cf697f1 2025-05-13 12:04:03,935 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bba1f74c-486b-4308-a002-da823f1032e6 2025-05-13 12:04:03,946 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bba1f74c-486b-4308-a002-da823f1032e6 2025-05-13 12:04:03,956 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/21efb9e5-28d5-4686-927d-e60826e96ee8 2025-05-13 12:04:03,970 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-13 12:04:03,970 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2281d4d3-3619-4333-aba3-18fe7cf697f1 2025-05-13 12:04:03,994 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bba1f74c-486b-4308-a002-da823f1032e6 2025-05-13 12:04:04,019 - INFO - Verified VN network id 9 for VN 2281d4d3-3619-4333-aba3-18fe7cf697f1 2025-05-13 12:04:04,020 - INFO - Verifications in API Server for VN ctest-vn-14675421 passed 2025-05-13 12:04:04,020 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2281d4d3-3619-4333-aba3-18fe7cf697f1 2025-05-13 12:04:04,041 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bba1f74c-486b-4308-a002-da823f1032e6 2025-05-13 12:04:04,056 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bba1f74c-486b-4308-a002-da823f1032e6 2025-05-13 12:04:04,068 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/21efb9e5-28d5-4686-927d-e60826e96ee8 2025-05-13 12:04:04,086 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58383464:ctest-vn-14675421', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58383464', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2486502472896037683', 'uuid-lslong': '12367756482986809329'}, 'enable': 'true', 'created': '2025-05-13T12:04:01', 'last-modified': '2025-05-13T12:04:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.801918'} 2025-05-13 12:04:04,096 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-13 12:04:04,096 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14675421 passed 2025-05-13 12:04:04,096 - DEBUG - ====Verifying policy data for ctest-vn-14675421 in API_Server ====== 2025-05-13 12:04:04,096 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-13 12:04:04,107 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d240c268-f8b0-4860-9e4d-0545ca9dafb7 2025-05-13 12:04:04,126 - DEBUG - Requesting: http://10.0.0.50:8082/project/67ae77e7-20a5-44d0-b250-c59c7e7ca379 2025-05-13 12:04:04,208 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2281d4d3-3619-4333-aba3-18fe7cf697f1 2025-05-13 12:04:04,224 - DEBUG - ==>Verifying data for policy with id: 0f06e527-c213-44a5-8f68-910399fa0ac7, fqn: ['default-domain', 'ctest-TestBasicPolicy-58383464', 'ctest-policy-allow-all-70033553'] 2025-05-13 12:04:04,224 - INFO - VN ctest-vn-14675421 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-13 12:04:04,224 - DEBUG - Verifying the vn in opserver 2025-05-13 12:04:04,224 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58383464:ctest-vn-14675421 virtual network link through opserver 10.0.0.50 2025-05-13 12:04:04,224 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-05-13 12:04:04,239 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58383464:ctest-vn-14675421', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58383464:ctest-vn-14675421?flat'} 2025-05-13 12:04:04,239 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58383464:ctest-vn-14675421 is found in opserver 2025-05-13 12:04:04,253 - DEBUG - Do not have enough data to verify VN in agent 2025-05-13 12:04:04,260 - DEBUG - VRF ids for VN ctest-vn-14675421: {} 2025-05-13 12:04:04,322 - DEBUG - Services list from nova: [, , ] 2025-05-13 12:04:05,471 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3306-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3306-1) 2025-05-13 12:04:06,935 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3306-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3306-1) 2025-05-13 12:04:06,935 - INFO - Waiting for VM ctest-TestBasicPolicy-58383464-60418537 to be up.. 2025-05-13 12:04:07,025 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-13 12:04:12,115 - DEBUG - VM is in ACTIVE state now 2025-05-13 12:04:12,115 - INFO - VM name : ctest-TestBasicPolicy-58383464-60418537 2025-05-13 12:04:12,214 - DEBUG - VM ctest-TestBasicPolicy-58383464-60418537 ID is 6a557ab5-d799-4b5d-be94-0dc8ff3eedd6 2025-05-13 12:04:12,240 - DEBUG - VM ctest-TestBasicPolicy-58383464-60418537 launched on Node cn-jenkins-deploy-platform-ansible-os-3306-1 2025-05-13 12:04:12,340 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/6a557ab5-d799-4b5d-be94-0dc8ff3eedd6 2025-05-13 12:04:12,352 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/dba5c1bd-3a2d-45c4-a9b8-5520a7f6c4bc 2025-05-13 12:04:15,609 - 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 1004ms') 2025-05-13 12:04:15,609 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58383464-60418537 failed! 2025-05-13 12:04:15,668 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-58383464:ctest-vn-76204095 is 219.159.147.193 and allocation pool is NOT set 2025-05-13 12:04:17,730 - 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.07 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.99 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.990/5.030/7.071/2.040 ms') 2025-05-13 12:04:17,731 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-58383464-60418537 passed 2025-05-13 12:04:17,888 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-13 12:04:17,888 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58383464-60418537, IP 219.159.147.195, Port 22 2025-05-13 12:04:17,944 - 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-13 12:04:18,038 - DEBUG - VM ctest-TestBasicPolicy-58383464-60418537 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-13 12:04:23,040 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-13 12:04:23,040 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58383464-60418537, IP 219.159.147.195, Port 22 2025-05-13 12:04:23,204 - DEBUG - VM ctest-TestBasicPolicy-58383464-60418537 is ready for SSH connections 2025-05-13 12:04:23,204 - INFO - Waiting for VM ctest-TestBasicPolicy-58383464-20088995 to be up.. 2025-05-13 12:04:23,299 - DEBUG - VM is in ACTIVE state now 2025-05-13 12:04:23,299 - INFO - VM name : ctest-TestBasicPolicy-58383464-20088995 2025-05-13 12:04:23,388 - DEBUG - VM ctest-TestBasicPolicy-58383464-20088995 ID is a7c77b51-a506-433b-a69e-18a6fb4c3a9b 2025-05-13 12:04:23,388 - DEBUG - VM ctest-TestBasicPolicy-58383464-20088995 launched on Node cn-jenkins-deploy-platform-ansible-os-3306-1 2025-05-13 12:04:23,478 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/a7c77b51-a506-433b-a69e-18a6fb4c3a9b 2025-05-13 12:04:23,490 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/88a9ef12-615f-4887-bd87-26d7e188574e 2025-05-13 12:04:24,746 - 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=2.98 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.433 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.433/1.707/2.982/1.274 ms') 2025-05-13 12:04:24,746 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-58383464-20088995 passed 2025-05-13 12:04:24,900 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-13 12:04:24,900 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-58383464-20088995, IP 159.205.142.67, Port 22 2025-05-13 12:04:25,064 - DEBUG - VM ctest-TestBasicPolicy-58383464-20088995 is ready for SSH connections 2025-05-13 12:04:25,064 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-13 12:04:25,064 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 159.205.142.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-05-13 12:04:25,064 - DEBUG - ping -s 56 -c 3 -W 1 159.205.142.67 2025-05-13 12:04:29,178 - DEBUG - PING 159.205.142.67 (159.205.142.67): 56 data bytes 64 bytes from 159.205.142.67: seq=0 ttl=63 time=4.382 ms 64 bytes from 159.205.142.67: seq=1 ttl=63 time=0.963 ms 64 bytes from 159.205.142.67: seq=2 ttl=63 time=0.845 ms --- 159.205.142.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.845/2.063/4.382 ms 2025-05-13 12:04:29,178 - INFO - Ping to IP 159.205.142.67 from VM ctest-TestBasicPolicy-58383464-60418537 passed 2025-05-13 12:04:29,368 - DEBUG - Policy Update Response {"network-policy": {"uuid": "0f06e527-c213-44a5-8f68-910399fa0ac7", "href": "http://10.0.0.50:8082/network-policy/0f06e527-c213-44a5-8f68-910399fa0ac7"}} 2025-05-13 12:04:29,368 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-13 12:04:29,368 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 159.205.142.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-05-13 12:04:29,368 - DEBUG - ping -s 56 -c 3 -W 1 159.205.142.67 2025-05-13 12:04:32,601 - DEBUG - PING 159.205.142.67 (159.205.142.67): 56 data bytes --- 159.205.142.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-13 12:04:32,601 - WARNING - Ping to IP 159.205.142.67 from VM ctest-TestBasicPolicy-58383464-60418537 failed 2025-05-13 12:04:32,601 - INFO - Deleting VM ctest-TestBasicPolicy-58383464-20088995 2025-05-13 12:04:32,675 - INFO - Deleting VM ctest-TestBasicPolicy-58383464-60418537 2025-05-13 12:04:33,121 - INFO - Deleted policy ctest-policy-allow-all-70033553 2025-05-13 12:04:33,121 - INFO - Deleting VN ctest-vn-14675421 2025-05-13 12:04:33,164 - DEBUG - VN 2281d4d3-3619-4333-aba3-18fe7cf697f1 still in use: Unable to complete operation on network 2281d4d3-3619-4333-aba3-18fe7cf697f1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c3785cb4-c17d-43cc-852d-180c6493e63a'] 2025-05-13 12:04:33,164 - WARNING - Deleting VN ctest-vn-14675421 failed..Will retry 2025-05-13 12:04:35,290 - DEBUG - Response for deleting network () 2025-05-13 12:04:35,290 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bba1f74c-486b-4308-a002-da823f1032e6 2025-05-13 12:04:35,301 - DEBUG - Response Code: 404 2025-05-13 12:04:35,301 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-13 12:04:35,309 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d240c268-f8b0-4860-9e4d-0545ca9dafb7 2025-05-13 12:04:35,366 - DEBUG - Requesting: http://10.0.0.50:8082/project/67ae77e7-20a5-44d0-b250-c59c7e7ca379 2025-05-13 12:04:35,441 - INFO - Validated that VN ctest-vn-14675421 is not found in API Server 2025-05-13 12:04:35,454 - DEBUG - VN ctest-vn-14675421 is not present in Agent 10.0.0.50 2025-05-13 12:04:35,454 - INFO - Validated that VN ctest-vn-14675421 is not in any agent 2025-05-13 12:04:35,473 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-14675421 info 2025-05-13 12:04:35,473 - INFO - Deleting VN ctest-vn-76204095 2025-05-13 12:04:35,598 - DEBUG - Response for deleting network () 2025-05-13 12:04:35,598 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d5d8d38e-0ec7-4ac8-bc2b-35a5d859c2e2 2025-05-13 12:04:35,608 - DEBUG - Response Code: 404 2025-05-13 12:04:35,608 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-05-13 12:04:35,618 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d240c268-f8b0-4860-9e4d-0545ca9dafb7 2025-05-13 12:04:35,673 - DEBUG - Requesting: http://10.0.0.50:8082/project/67ae77e7-20a5-44d0-b250-c59c7e7ca379 2025-05-13 12:04:35,750 - INFO - Validated that VN ctest-vn-76204095 is not found in API Server 2025-05-13 12:04:35,762 - DEBUG - VN ctest-vn-76204095 is not present in Agent 10.0.0.50 2025-05-13 12:04:35,762 - INFO - Validated that VN ctest-vn-76204095 is not in any agent 2025-05-13 12:04:35,780 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76204095 info 2025-05-13 12:04:36,050 - DEBUG - No XMPP flaps were noticed during the test 2025-05-13 12:04:36,050 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2025-05-13 12:04:36,050 - INFO - -------------------------------------------------------------------------------- 2025-05-13 12:04:36,805 - INFO - Deleted project: ctest-TestBasicPolicy-58383464, ID : 67ae77e7-20a5-44d0-b250-c59c7e7ca379