2025-04-24 19:33:41,084 - INFO - Domain Default found not creating 2025-04-24 19:33:41,223 - INFO - Project ctest-TestBasicPolicy-62196395 not found, creating it 2025-04-24 19:33:41,680 - INFO - Created Project:ctest-TestBasicPolicy-62196395, ID : ee7b816e-42b2-45a7-970e-169207280d2b 2025-04-24 19:33:43,240 - INFO - ================================================================================ 2025-04-24 19:33:43,240 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-24 19:33:43,240 - 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-24 19:33:43,500 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-04-24 19:33:43,500 - INFO - Initial checks done. Running the testcase now 2025-04-24 19:33:43,500 - INFO - 2025-04-24 19:33:44,081 - DEBUG - Response for create_network : {'network': {'id': 'e21f5f62-e89c-43b4-a869-be16b24b504e', 'name': 'ctest-vn-69494467', 'tenant_id': 'ee7b816e42b245a7970e169207280d2b', 'project_id': 'ee7b816e42b245a7970e169207280d2b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62196395', 'ctest-vn-69494467'], 'port_security_enabled': True, 'description': ''}} 2025-04-24 19:33:44,307 - DEBUG - Response for create_subnet : {'subnet': {'id': '8fb08846-890c-4895-999a-080ee3f4fb07', 'name': '', 'tenant_id': 'ee7b816e42b245a7970e169207280d2b', 'network_id': 'e21f5f62-e89c-43b4-a869-be16b24b504e', 'ip_version': 4, 'cidr': '23.245.6.128/26', 'allocation_pools': [{'start': '23.245.6.130', 'end': '23.245.6.190'}], 'gateway_ip': '23.245.6.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.245.6.130', 'tags': [], 'project_id': 'ee7b816e42b245a7970e169207280d2b'}} 2025-04-24 19:33:44,328 - INFO - Created VN ctest-vn-69494467 2025-04-24 19:33:44,381 - DEBUG - VN ctest-vn-69494467 UUID is e21f5f62-e89c-43b4-a869-be16b24b504e 2025-04-24 19:33:44,724 - DEBUG - Response for create_network : {'network': {'id': '70e7abcc-75fd-4adb-813a-33c8f615f33f', 'name': 'ctest-vn-81008996', 'tenant_id': 'ee7b816e42b245a7970e169207280d2b', 'project_id': 'ee7b816e42b245a7970e169207280d2b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62196395', 'ctest-vn-81008996'], 'port_security_enabled': True, 'description': ''}} 2025-04-24 19:33:44,962 - DEBUG - Response for create_subnet : {'subnet': {'id': '30ffd5bf-e934-47e3-b678-79998d217715', 'name': '', 'tenant_id': 'ee7b816e42b245a7970e169207280d2b', 'network_id': '70e7abcc-75fd-4adb-813a-33c8f615f33f', 'ip_version': 4, 'cidr': '161.253.39.192/26', 'allocation_pools': [{'start': '161.253.39.194', 'end': '161.253.39.254'}], 'gateway_ip': '161.253.39.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.253.39.194', 'tags': [], 'project_id': 'ee7b816e42b245a7970e169207280d2b'}} 2025-04-24 19:33:44,979 - INFO - Created VN ctest-vn-81008996 2025-04-24 19:33:45,029 - DEBUG - VN ctest-vn-81008996 UUID is 70e7abcc-75fd-4adb-813a-33c8f615f33f 2025-04-24 19:33:45,181 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-69494467, 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-62196395:ctest-vn-81008996, 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-24 19:33:45,488 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e21f5f62-e89c-43b4-a869-be16b24b504e', 'name': 'ctest-vn-69494467', 'tenant_id': 'ee7b816e42b245a7970e169207280d2b', 'project_id': 'ee7b816e42b245a7970e169207280d2b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8fb08846-890c-4895-999a-080ee3f4fb07'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62196395', 'ctest-vn-69494467'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62196395', 'ctest-policy-allow-all-83817781']], 'subnet_ipam': [{'subnet_cidr': '23.245.6.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-24 19:33:45,727 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70e7abcc-75fd-4adb-813a-33c8f615f33f', 'name': 'ctest-vn-81008996', 'tenant_id': 'ee7b816e42b245a7970e169207280d2b', 'project_id': 'ee7b816e42b245a7970e169207280d2b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['30ffd5bf-e934-47e3-b678-79998d217715'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62196395', 'ctest-vn-81008996'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62196395', 'ctest-policy-allow-all-83817781']], 'subnet_ipam': [{'subnet_cidr': '161.253.39.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-24 19:33:45,889 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-24 19:33:46,225 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-24 19:33:46,252 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f9f6d5b2-4674-4c14-b2d6-6a6862386506 2025-04-24 19:33:46,265 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee7b816e-42b2-45a7-970e-169207280d2b 2025-04-24 19:33:46,358 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e21f5f62-e89c-43b4-a869-be16b24b504e 2025-04-24 19:33:46,370 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e21f5f62-e89c-43b4-a869-be16b24b504e 2025-04-24 19:33:46,381 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f6381a4c-67ac-4dba-b5da-548318dac01b 2025-04-24 19:33:46,388 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f6381a4c-67ac-4dba-b5da-548318dac01b 2025-04-24 19:33:46,395 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/880bba87-0860-4377-9c91-9031e92fccc8 2025-04-24 19:33:46,402 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-24 19:33:46,402 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e21f5f62-e89c-43b4-a869-be16b24b504e 2025-04-24 19:33:46,412 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f6381a4c-67ac-4dba-b5da-548318dac01b 2025-04-24 19:33:46,427 - INFO - Verified VN network id 8 for VN e21f5f62-e89c-43b4-a869-be16b24b504e 2025-04-24 19:33:46,427 - INFO - Verifications in API Server for VN ctest-vn-69494467 passed 2025-04-24 19:33:46,427 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e21f5f62-e89c-43b4-a869-be16b24b504e 2025-04-24 19:33:46,439 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f6381a4c-67ac-4dba-b5da-548318dac01b 2025-04-24 19:33:46,446 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f6381a4c-67ac-4dba-b5da-548318dac01b 2025-04-24 19:33:46,453 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/880bba87-0860-4377-9c91-9031e92fccc8 2025-04-24 19:33:46,466 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-69494467', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62196395', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16293846855263732660', 'uuid-lslong': '12135439675616350286'}, 'enable': 'true', 'created': '2025-04-24T19:33:44', 'last-modified': '2025-04-24T19:33:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.002371'} 2025-04-24 19:33:46,473 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-24 19:33:46,473 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69494467 passed 2025-04-24 19:33:46,474 - DEBUG - ====Verifying policy data for ctest-vn-69494467 in API_Server ====== 2025-04-24 19:33:46,474 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-24 19:33:46,480 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f9f6d5b2-4674-4c14-b2d6-6a6862386506 2025-04-24 19:33:46,492 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee7b816e-42b2-45a7-970e-169207280d2b 2025-04-24 19:33:46,568 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e21f5f62-e89c-43b4-a869-be16b24b504e 2025-04-24 19:33:46,579 - DEBUG - ==>Verifying data for policy with id: 2ef14c4b-a3c3-4593-a4b9-2c92ae7e0eb5, fqn: ['default-domain', 'ctest-TestBasicPolicy-62196395', 'ctest-policy-allow-all-83817781'] 2025-04-24 19:33:46,579 - INFO - VN ctest-vn-69494467 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-24 19:33:46,579 - DEBUG - Verifying the vn in opserver 2025-04-24 19:33:46,579 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-69494467 virtual network link through opserver 10.0.0.254 2025-04-24 19:33:46,579 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-24 19:33:46,917 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-24 19:33:46,974 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-69494467', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-69494467?flat'} 2025-04-24 19:33:46,974 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-69494467 is found in opserver 2025-04-24 19:33:46,985 - DEBUG - Do not have enough data to verify VN in agent 2025-04-24 19:33:46,990 - DEBUG - VRF ids for VN ctest-vn-69494467: {} 2025-04-24 19:33:46,990 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-24 19:33:46,996 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f9f6d5b2-4674-4c14-b2d6-6a6862386506 2025-04-24 19:33:47,007 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee7b816e-42b2-45a7-970e-169207280d2b 2025-04-24 19:33:47,083 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/70e7abcc-75fd-4adb-813a-33c8f615f33f 2025-04-24 19:33:47,096 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/70e7abcc-75fd-4adb-813a-33c8f615f33f 2025-04-24 19:33:47,107 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba40df83-bfb2-45d8-bb09-c99be9b05ece 2025-04-24 19:33:47,115 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba40df83-bfb2-45d8-bb09-c99be9b05ece 2025-04-24 19:33:47,122 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/51b8d7b0-1f70-4fb6-931a-d7eab5a4cf77 2025-04-24 19:33:47,129 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-24 19:33:47,129 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/70e7abcc-75fd-4adb-813a-33c8f615f33f 2025-04-24 19:33:47,138 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba40df83-bfb2-45d8-bb09-c99be9b05ece 2025-04-24 19:33:47,152 - INFO - Verified VN network id 9 for VN 70e7abcc-75fd-4adb-813a-33c8f615f33f 2025-04-24 19:33:47,152 - INFO - Verifications in API Server for VN ctest-vn-81008996 passed 2025-04-24 19:33:47,152 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/70e7abcc-75fd-4adb-813a-33c8f615f33f 2025-04-24 19:33:47,162 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba40df83-bfb2-45d8-bb09-c99be9b05ece 2025-04-24 19:33:47,169 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba40df83-bfb2-45d8-bb09-c99be9b05ece 2025-04-24 19:33:47,175 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/51b8d7b0-1f70-4fb6-931a-d7eab5a4cf77 2025-04-24 19:33:47,188 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-81008996', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62196395', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8135660146509302491', 'uuid-lslong': '9311812117757031231'}, 'enable': 'true', 'created': '2025-04-24T19:33:44', 'last-modified': '2025-04-24T19:33:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.496263'} 2025-04-24 19:33:47,195 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-24 19:33:47,195 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81008996 passed 2025-04-24 19:33:47,195 - DEBUG - ====Verifying policy data for ctest-vn-81008996 in API_Server ====== 2025-04-24 19:33:47,195 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-24 19:33:47,200 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f9f6d5b2-4674-4c14-b2d6-6a6862386506 2025-04-24 19:33:47,211 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee7b816e-42b2-45a7-970e-169207280d2b 2025-04-24 19:33:47,290 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/70e7abcc-75fd-4adb-813a-33c8f615f33f 2025-04-24 19:33:47,300 - DEBUG - ==>Verifying data for policy with id: 2ef14c4b-a3c3-4593-a4b9-2c92ae7e0eb5, fqn: ['default-domain', 'ctest-TestBasicPolicy-62196395', 'ctest-policy-allow-all-83817781'] 2025-04-24 19:33:47,300 - INFO - VN ctest-vn-81008996 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-24 19:33:47,300 - DEBUG - Verifying the vn in opserver 2025-04-24 19:33:47,300 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-81008996 virtual network link through opserver 10.0.0.254 2025-04-24 19:33:47,301 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-24 19:33:47,311 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-81008996', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-81008996?flat'} 2025-04-24 19:33:47,311 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-81008996 is found in opserver 2025-04-24 19:33:47,323 - DEBUG - Do not have enough data to verify VN in agent 2025-04-24 19:33:47,328 - DEBUG - VRF ids for VN ctest-vn-81008996: {} 2025-04-24 19:33:47,382 - DEBUG - Services list from nova: [, , ] 2025-04-24 19:33:48,457 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3207-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3207-1) 2025-04-24 19:33:49,779 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3207-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3207-1) 2025-04-24 19:33:49,779 - INFO - Waiting for VM ctest-TestBasicPolicy-62196395-96173402 to be up.. 2025-04-24 19:33:49,866 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-24 19:33:54,963 - DEBUG - VM is in ACTIVE state now 2025-04-24 19:33:54,963 - INFO - VM name : ctest-TestBasicPolicy-62196395-96173402 2025-04-24 19:33:55,038 - DEBUG - VM ctest-TestBasicPolicy-62196395-96173402 ID is 1ae75db0-67a3-49a0-9b7f-5d2ac8f0790a 2025-04-24 19:33:55,056 - DEBUG - VM ctest-TestBasicPolicy-62196395-96173402 launched on Node cn-jenkins-deploy-platform-ansible-os-3207-1 2025-04-24 19:33:55,130 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/1ae75db0-67a3-49a0-9b7f-5d2ac8f0790a 2025-04-24 19:33:55,139 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/9110fdd4-3192-4d4f-8733-d67987b3dff2 2025-04-24 19:33:58,387 - 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 1011ms') 2025-04-24 19:33:58,387 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62196395-96173402 failed! 2025-04-24 19:33:58,445 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-62196395:ctest-vn-69494467 is 23.245.6.129 and allocation pool is NOT set 2025-04-24 19:34:00,507 - 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.81 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.419 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 = 0.419/4.116/7.813/3.697 ms') 2025-04-24 19:34:00,507 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62196395-96173402 passed 2025-04-24 19:34:00,665 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-24 19:34:00,665 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62196395-96173402, IP 23.245.6.131, Port 22 2025-04-24 19:34:00,821 - DEBUG - VM ctest-TestBasicPolicy-62196395-96173402 is ready for SSH connections 2025-04-24 19:34:00,821 - INFO - Waiting for VM ctest-TestBasicPolicy-62196395-12961098 to be up.. 2025-04-24 19:34:00,906 - DEBUG - VM is in ACTIVE state now 2025-04-24 19:34:00,907 - INFO - VM name : ctest-TestBasicPolicy-62196395-12961098 2025-04-24 19:34:00,989 - DEBUG - VM ctest-TestBasicPolicy-62196395-12961098 ID is 702473eb-6ff2-44c4-91cd-d4640963b9e4 2025-04-24 19:34:00,989 - DEBUG - VM ctest-TestBasicPolicy-62196395-12961098 launched on Node cn-jenkins-deploy-platform-ansible-os-3207-1 2025-04-24 19:34:01,077 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/702473eb-6ff2-44c4-91cd-d4640963b9e4 2025-04-24 19:34:01,087 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/4c7d4c6a-5e3c-49b9-a291-7c0b80616df3 2025-04-24 19:34:02,357 - 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=4.90 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.548 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.548/2.722/4.896/2.174 ms') 2025-04-24 19:34:02,357 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-62196395-12961098 passed 2025-04-24 19:34:02,509 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-24 19:34:02,509 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62196395-12961098, IP 161.253.39.195, Port 22 2025-04-24 19:34:02,669 - DEBUG - VM ctest-TestBasicPolicy-62196395-12961098 is ready for SSH connections 2025-04-24 19:34:02,669 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-24 19:34:02,669 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 161.253.39.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-24 19:34:02,669 - DEBUG - ping -s 56 -c 3 -W 1 161.253.39.195 2025-04-24 19:34:06,718 - DEBUG - PING 161.253.39.195 (161.253.39.195): 56 data bytes 64 bytes from 161.253.39.195: seq=0 ttl=63 time=3.777 ms 64 bytes from 161.253.39.195: seq=1 ttl=63 time=0.926 ms 64 bytes from 161.253.39.195: seq=2 ttl=63 time=0.796 ms --- 161.253.39.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.796/1.833/3.777 ms 2025-04-24 19:34:06,718 - INFO - Ping to IP 161.253.39.195 from VM ctest-TestBasicPolicy-62196395-96173402 passed 2025-04-24 19:34:06,901 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2ef14c4b-a3c3-4593-a4b9-2c92ae7e0eb5", "href": "http://10.0.0.254:8082/network-policy/2ef14c4b-a3c3-4593-a4b9-2c92ae7e0eb5"}} 2025-04-24 19:34:06,901 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-24 19:34:06,901 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 161.253.39.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-24 19:34:06,902 - DEBUG - ping -s 56 -c 3 -W 1 161.253.39.195 2025-04-24 19:34:10,117 - DEBUG - PING 161.253.39.195 (161.253.39.195): 56 data bytes 64 bytes from 161.253.39.195: seq=0 ttl=63 time=1.550 ms --- 161.253.39.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.550/1.550/1.550 ms 2025-04-24 19:34:10,118 - WARNING - Ping to IP 161.253.39.195 from VM ctest-TestBasicPolicy-62196395-96173402 failed 2025-04-24 19:34:10,118 - INFO - Deleting VM ctest-TestBasicPolicy-62196395-12961098 2025-04-24 19:34:10,186 - INFO - Deleting VM ctest-TestBasicPolicy-62196395-96173402 2025-04-24 19:34:10,579 - INFO - Deleted policy ctest-policy-allow-all-83817781 2025-04-24 19:34:10,580 - INFO - Deleting VN ctest-vn-81008996 2025-04-24 19:34:10,615 - DEBUG - VN 70e7abcc-75fd-4adb-813a-33c8f615f33f still in use: Unable to complete operation on network 70e7abcc-75fd-4adb-813a-33c8f615f33f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-86d60d37-8ee3-4622-8748-3e053ff358e3'] 2025-04-24 19:34:10,615 - WARNING - Deleting VN ctest-vn-81008996 failed..Will retry 2025-04-24 19:34:12,714 - DEBUG - Response for deleting network () 2025-04-24 19:34:12,714 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ba40df83-bfb2-45d8-bb09-c99be9b05ece 2025-04-24 19:34:12,721 - DEBUG - Response Code: 404 2025-04-24 19:34:12,721 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-24 19:34:12,727 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f9f6d5b2-4674-4c14-b2d6-6a6862386506 2025-04-24 19:34:12,788 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee7b816e-42b2-45a7-970e-169207280d2b 2025-04-24 19:34:12,864 - INFO - Validated that VN ctest-vn-81008996 is not found in API Server 2025-04-24 19:34:12,876 - DEBUG - VN ctest-vn-81008996 is not present in Agent 10.0.0.254 2025-04-24 19:34:12,876 - INFO - Validated that VN ctest-vn-81008996 is not in any agent 2025-04-24 19:34:12,892 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81008996 info 2025-04-24 19:34:12,892 - INFO - Deleting VN ctest-vn-69494467 2025-04-24 19:34:12,997 - DEBUG - Response for deleting network () 2025-04-24 19:34:12,997 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f6381a4c-67ac-4dba-b5da-548318dac01b 2025-04-24 19:34:13,003 - DEBUG - Response Code: 404 2025-04-24 19:34:13,004 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-24 19:34:13,010 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f9f6d5b2-4674-4c14-b2d6-6a6862386506 2025-04-24 19:34:13,067 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee7b816e-42b2-45a7-970e-169207280d2b 2025-04-24 19:34:13,142 - INFO - Validated that VN ctest-vn-69494467 is not found in API Server 2025-04-24 19:34:13,153 - DEBUG - VN ctest-vn-69494467 is not present in Agent 10.0.0.254 2025-04-24 19:34:13,153 - INFO - Validated that VN ctest-vn-69494467 is not in any agent 2025-04-24 19:34:13,170 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-69494467 info 2025-04-24 19:34:13,424 - DEBUG - No XMPP flaps were noticed during the test
2025-04-24 19:34:13,424 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-04-24 19:34:13,424 - INFO - -------------------------------------------------------------------------------- 2025-04-24 19:34:14,169 - INFO - Deleted project: ctest-TestBasicPolicy-62196395, ID : ee7b816e-42b2-45a7-970e-169207280d2b