2025-07-31 02:22:22,878 - INFO - Domain Default found not creating 2025-07-31 02:22:23,019 - INFO - Project ctest-TestBasicPolicy-02755920 not found, creating it 2025-07-31 02:22:23,470 - INFO - Created Project:ctest-TestBasicPolicy-02755920, ID : 1ed48e6c-57c7-4e80-a631-b9b2718c719f 2025-07-31 02:22:24,859 - INFO - ================================================================================ 2025-07-31 02:22:24,859 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-31 02:22:24,859 - 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-07-31 02:22:25,120 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-31 02:22:25,120 - INFO - Initial checks done. Running the testcase now 2025-07-31 02:22:25,120 - INFO - 2025-07-31 02:22:25,652 - DEBUG - Response for create_network : {'network': {'id': '86b65d3a-7d34-48ea-a50c-f815370e19dd', 'name': 'ctest-vn-60678262', 'tenant_id': '1ed48e6c57c74e80a631b9b2718c719f', 'project_id': '1ed48e6c57c74e80a631b9b2718c719f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02755920', 'ctest-vn-60678262'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 02:22:25,850 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f00cbac-438e-417f-8ec2-0cae52923201', 'name': '', 'tenant_id': '1ed48e6c57c74e80a631b9b2718c719f', 'network_id': '86b65d3a-7d34-48ea-a50c-f815370e19dd', 'ip_version': 4, 'cidr': '24.255.1.128/26', 'allocation_pools': [{'start': '24.255.1.130', 'end': '24.255.1.190'}], 'gateway_ip': '24.255.1.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.255.1.130', 'tags': [], 'project_id': '1ed48e6c57c74e80a631b9b2718c719f'}} 2025-07-31 02:22:25,870 - INFO - Created VN ctest-vn-60678262 2025-07-31 02:22:25,923 - DEBUG - VN ctest-vn-60678262 UUID is 86b65d3a-7d34-48ea-a50c-f815370e19dd 2025-07-31 02:22:26,205 - DEBUG - Response for create_network : {'network': {'id': 'a65d3b6b-ba70-46f0-85c7-57044bc87c8c', 'name': 'ctest-vn-82235459', 'tenant_id': '1ed48e6c57c74e80a631b9b2718c719f', 'project_id': '1ed48e6c57c74e80a631b9b2718c719f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02755920', 'ctest-vn-82235459'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 02:22:26,361 - DEBUG - Response for create_subnet : {'subnet': {'id': '3569f88a-f83e-4116-9a5d-8ccf478f72a0', 'name': '', 'tenant_id': '1ed48e6c57c74e80a631b9b2718c719f', 'network_id': 'a65d3b6b-ba70-46f0-85c7-57044bc87c8c', 'ip_version': 4, 'cidr': '154.60.74.128/26', 'allocation_pools': [{'start': '154.60.74.130', 'end': '154.60.74.190'}], 'gateway_ip': '154.60.74.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.60.74.130', 'tags': [], 'project_id': '1ed48e6c57c74e80a631b9b2718c719f'}} 2025-07-31 02:22:26,379 - INFO - Created VN ctest-vn-82235459 2025-07-31 02:22:26,431 - DEBUG - VN ctest-vn-82235459 UUID is a65d3b6b-ba70-46f0-85c7-57044bc87c8c 2025-07-31 02:22:26,583 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-60678262, 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-02755920:ctest-vn-82235459, 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-07-31 02:22:26,877 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86b65d3a-7d34-48ea-a50c-f815370e19dd', 'name': 'ctest-vn-60678262', 'tenant_id': '1ed48e6c57c74e80a631b9b2718c719f', 'project_id': '1ed48e6c57c74e80a631b9b2718c719f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f00cbac-438e-417f-8ec2-0cae52923201'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02755920', 'ctest-vn-60678262'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02755920', 'ctest-policy-allow-all-47650847']], 'subnet_ipam': [{'subnet_cidr': '24.255.1.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-31 02:22:27,110 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a65d3b6b-ba70-46f0-85c7-57044bc87c8c', 'name': 'ctest-vn-82235459', 'tenant_id': '1ed48e6c57c74e80a631b9b2718c719f', 'project_id': '1ed48e6c57c74e80a631b9b2718c719f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3569f88a-f83e-4116-9a5d-8ccf478f72a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02755920', 'ctest-vn-82235459'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02755920', 'ctest-policy-allow-all-47650847']], 'subnet_ipam': [{'subnet_cidr': '154.60.74.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-31 02:22:27,255 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-31 02:22:27,552 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-31 02:22:27,585 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7c781461-8e55-4dfa-9cdf-42892b481a4b 2025-07-31 02:22:27,597 - DEBUG - Requesting: http://10.0.0.254:8082/project/1ed48e6c-57c7-4e80-a631-b9b2718c719f 2025-07-31 02:22:27,673 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86b65d3a-7d34-48ea-a50c-f815370e19dd 2025-07-31 02:22:27,685 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86b65d3a-7d34-48ea-a50c-f815370e19dd 2025-07-31 02:22:27,695 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/35a6e40f-4d5d-4c4c-a8dd-9f9b1da7ef9b 2025-07-31 02:22:27,703 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/35a6e40f-4d5d-4c4c-a8dd-9f9b1da7ef9b 2025-07-31 02:22:27,709 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d92b0eea-8c3f-4432-a4a1-26278bca0abd 2025-07-31 02:22:27,715 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 02:22:27,715 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86b65d3a-7d34-48ea-a50c-f815370e19dd 2025-07-31 02:22:27,724 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/35a6e40f-4d5d-4c4c-a8dd-9f9b1da7ef9b 2025-07-31 02:22:27,736 - INFO - Verified VN network id 11 for VN 86b65d3a-7d34-48ea-a50c-f815370e19dd 2025-07-31 02:22:27,736 - INFO - Verifications in API Server for VN ctest-vn-60678262 passed 2025-07-31 02:22:27,737 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86b65d3a-7d34-48ea-a50c-f815370e19dd 2025-07-31 02:22:27,747 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/35a6e40f-4d5d-4c4c-a8dd-9f9b1da7ef9b 2025-07-31 02:22:27,754 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/35a6e40f-4d5d-4c4c-a8dd-9f9b1da7ef9b 2025-07-31 02:22:27,761 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d92b0eea-8c3f-4432-a4a1-26278bca0abd 2025-07-31 02:22:27,773 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-60678262', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02755920', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9707048552633747690', 'uuid-lslong': '11893153485980309981'}, 'enable': 'true', 'created': '2025-07-31T02:22:25', 'last-modified': '2025-07-31T02:22:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.919219'} 2025-07-31 02:22:27,779 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 02:22:27,779 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60678262 passed 2025-07-31 02:22:27,779 - DEBUG - ====Verifying policy data for ctest-vn-60678262 in API_Server ====== 2025-07-31 02:22:27,779 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-31 02:22:27,785 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7c781461-8e55-4dfa-9cdf-42892b481a4b 2025-07-31 02:22:27,796 - DEBUG - Requesting: http://10.0.0.254:8082/project/1ed48e6c-57c7-4e80-a631-b9b2718c719f 2025-07-31 02:22:27,866 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86b65d3a-7d34-48ea-a50c-f815370e19dd 2025-07-31 02:22:27,875 - DEBUG - ==>Verifying data for policy with id: 673d82a5-0fde-4cc7-90b1-3480cb5e36b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-02755920', 'ctest-policy-allow-all-47650847'] 2025-07-31 02:22:27,875 - INFO - VN ctest-vn-60678262 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-31 02:22:27,876 - DEBUG - Verifying the vn in opserver 2025-07-31 02:22:27,876 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-60678262 virtual network link through opserver 10.0.0.254 2025-07-31 02:22:27,876 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-31 02:22:28,165 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-31 02:22:28,217 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-60678262', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-60678262?flat'} 2025-07-31 02:22:28,217 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-60678262 is found in opserver 2025-07-31 02:22:28,228 - DEBUG - Do not have enough data to verify VN in agent 2025-07-31 02:22:28,233 - DEBUG - VRF ids for VN ctest-vn-60678262: {} 2025-07-31 02:22:28,233 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-31 02:22:28,239 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7c781461-8e55-4dfa-9cdf-42892b481a4b 2025-07-31 02:22:28,250 - DEBUG - Requesting: http://10.0.0.254:8082/project/1ed48e6c-57c7-4e80-a631-b9b2718c719f 2025-07-31 02:22:28,322 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a65d3b6b-ba70-46f0-85c7-57044bc87c8c 2025-07-31 02:22:28,334 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a65d3b6b-ba70-46f0-85c7-57044bc87c8c 2025-07-31 02:22:28,344 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e3820cfe-9b8a-4aa0-a393-f248270f5678 2025-07-31 02:22:28,351 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e3820cfe-9b8a-4aa0-a393-f248270f5678 2025-07-31 02:22:28,358 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f80f669b-baf1-416f-b7b8-06e98e9b11e6 2025-07-31 02:22:28,364 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-31 02:22:28,364 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a65d3b6b-ba70-46f0-85c7-57044bc87c8c 2025-07-31 02:22:28,373 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e3820cfe-9b8a-4aa0-a393-f248270f5678 2025-07-31 02:22:28,386 - INFO - Verified VN network id 12 for VN a65d3b6b-ba70-46f0-85c7-57044bc87c8c 2025-07-31 02:22:28,387 - INFO - Verifications in API Server for VN ctest-vn-82235459 passed 2025-07-31 02:22:28,387 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a65d3b6b-ba70-46f0-85c7-57044bc87c8c 2025-07-31 02:22:28,397 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e3820cfe-9b8a-4aa0-a393-f248270f5678 2025-07-31 02:22:28,403 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e3820cfe-9b8a-4aa0-a393-f248270f5678 2025-07-31 02:22:28,410 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f80f669b-baf1-416f-b7b8-06e98e9b11e6 2025-07-31 02:22:28,423 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-82235459', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02755920', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11987803117005588208', 'uuid-lslong': '9639769203372752012'}, 'enable': 'true', 'created': '2025-07-31T02:22:26', 'last-modified': '2025-07-31T02:22:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.332794'} 2025-07-31 02:22:28,429 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-31 02:22:28,430 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82235459 passed 2025-07-31 02:22:28,430 - DEBUG - ====Verifying policy data for ctest-vn-82235459 in API_Server ====== 2025-07-31 02:22:28,430 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-31 02:22:28,435 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7c781461-8e55-4dfa-9cdf-42892b481a4b 2025-07-31 02:22:28,447 - DEBUG - Requesting: http://10.0.0.254:8082/project/1ed48e6c-57c7-4e80-a631-b9b2718c719f 2025-07-31 02:22:28,515 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a65d3b6b-ba70-46f0-85c7-57044bc87c8c 2025-07-31 02:22:28,524 - DEBUG - ==>Verifying data for policy with id: 673d82a5-0fde-4cc7-90b1-3480cb5e36b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-02755920', 'ctest-policy-allow-all-47650847'] 2025-07-31 02:22:28,524 - INFO - VN ctest-vn-82235459 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-31 02:22:28,524 - DEBUG - Verifying the vn in opserver 2025-07-31 02:22:28,524 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-82235459 virtual network link through opserver 10.0.0.254 2025-07-31 02:22:28,524 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-31 02:22:28,534 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-82235459', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-82235459?flat'} 2025-07-31 02:22:28,534 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-82235459 is found in opserver 2025-07-31 02:22:28,544 - DEBUG - Do not have enough data to verify VN in agent 2025-07-31 02:22:28,549 - DEBUG - VRF ids for VN ctest-vn-82235459: {} 2025-07-31 02:22:28,599 - DEBUG - Services list from nova: [, , ] 2025-07-31 02:22:29,572 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3728-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3728-1) 2025-07-31 02:22:30,651 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3728-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3728-1) 2025-07-31 02:22:30,652 - INFO - Waiting for VM ctest-TestBasicPolicy-02755920-81248322 to be up.. 2025-07-31 02:22:30,742 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-31 02:22:35,812 - DEBUG - VM is in ACTIVE state now 2025-07-31 02:22:35,812 - INFO - VM name : ctest-TestBasicPolicy-02755920-81248322 2025-07-31 02:22:35,882 - DEBUG - VM ctest-TestBasicPolicy-02755920-81248322 ID is 5f0d64b9-e1ef-43d9-be98-1db3d596648b 2025-07-31 02:22:35,902 - DEBUG - VM ctest-TestBasicPolicy-02755920-81248322 launched on Node cn-jenkins-deploy-platform-ansible-os-3728-1 2025-07-31 02:22:35,972 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/5f0d64b9-e1ef-43d9-be98-1db3d596648b 2025-07-31 02:22:35,981 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/a8c1b915-86a2-483e-acd6-a1ef43a390bb 2025-07-31 02:22:39,236 - 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-07-31 02:22:39,236 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-02755920-81248322 failed! 2025-07-31 02:22:39,291 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-60678262 is 24.255.1.129 and allocation pool is NOT set 2025-07-31 02:22:41,363 - 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=2.87 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.468 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 = 0.468/1.668/2.869/1.200 ms') 2025-07-31 02:22:41,363 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-02755920-81248322 passed 2025-07-31 02:22:41,511 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 02:22:41,511 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-02755920-81248322, IP 24.255.1.131, Port 22 2025-07-31 02:22:41,667 - DEBUG - VM ctest-TestBasicPolicy-02755920-81248322 is ready for SSH connections 2025-07-31 02:22:41,667 - INFO - Waiting for VM ctest-TestBasicPolicy-02755920-34727793 to be up.. 2025-07-31 02:22:41,740 - DEBUG - VM is in ACTIVE state now 2025-07-31 02:22:41,740 - INFO - VM name : ctest-TestBasicPolicy-02755920-34727793 2025-07-31 02:22:41,807 - DEBUG - VM ctest-TestBasicPolicy-02755920-34727793 ID is 10b10d6a-3d21-4527-9550-7920935b4fd0 2025-07-31 02:22:41,807 - DEBUG - VM ctest-TestBasicPolicy-02755920-34727793 launched on Node cn-jenkins-deploy-platform-ansible-os-3728-1 2025-07-31 02:22:41,878 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/10b10d6a-3d21-4527-9550-7920935b4fd0 2025-07-31 02:22:41,886 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/3fba8bd6-bc2d-4162-9c90-16491c233c54 2025-07-31 02:22:43,124 - 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.93 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.479 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.479/1.706/2.934/1.227 ms') 2025-07-31 02:22:43,124 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-02755920-34727793 passed 2025-07-31 02:22:43,279 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 02:22:43,279 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-02755920-34727793, IP 154.60.74.131, Port 22 2025-07-31 02:22:43,431 - DEBUG - VM ctest-TestBasicPolicy-02755920-34727793 is ready for SSH connections 2025-07-31 02:22:43,431 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 02:22:43,431 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 154.60.74.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-07-31 02:22:43,431 - DEBUG - ping -s 56 -c 3 -W 1 154.60.74.131 2025-07-31 02:22:47,447 - DEBUG - PING 154.60.74.131 (154.60.74.131): 56 data bytes 64 bytes from 154.60.74.131: seq=0 ttl=63 time=3.987 ms 64 bytes from 154.60.74.131: seq=1 ttl=63 time=0.940 ms 64 bytes from 154.60.74.131: seq=2 ttl=63 time=0.903 ms --- 154.60.74.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.903/1.943/3.987 ms 2025-07-31 02:22:47,447 - INFO - Ping to IP 154.60.74.131 from VM ctest-TestBasicPolicy-02755920-81248322 passed 2025-07-31 02:22:47,627 - DEBUG - Policy Update Response {"network-policy": {"uuid": "673d82a5-0fde-4cc7-90b1-3480cb5e36b5", "href": "http://10.0.0.254:8082/network-policy/673d82a5-0fde-4cc7-90b1-3480cb5e36b5"}} 2025-07-31 02:22:47,627 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 02:22:47,627 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 154.60.74.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-07-31 02:22:47,627 - DEBUG - ping -s 56 -c 3 -W 1 154.60.74.131 2025-07-31 02:22:50,829 - DEBUG - PING 154.60.74.131 (154.60.74.131): 56 data bytes --- 154.60.74.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-07-31 02:22:50,829 - WARNING - Ping to IP 154.60.74.131 from VM ctest-TestBasicPolicy-02755920-81248322 failed 2025-07-31 02:22:50,829 - INFO - Deleting VM ctest-TestBasicPolicy-02755920-34727793 2025-07-31 02:22:50,889 - INFO - Deleting VM ctest-TestBasicPolicy-02755920-81248322 2025-07-31 02:22:51,247 - INFO - Deleted policy ctest-policy-allow-all-47650847 2025-07-31 02:22:51,247 - INFO - Deleting VN ctest-vn-82235459 2025-07-31 02:22:51,291 - DEBUG - VN a65d3b6b-ba70-46f0-85c7-57044bc87c8c still in use: Unable to complete operation on network a65d3b6b-ba70-46f0-85c7-57044bc87c8c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-649658d2-07d9-4297-bfe3-38306b659a8c'] 2025-07-31 02:22:51,291 - WARNING - Deleting VN ctest-vn-82235459 failed..Will retry 2025-07-31 02:22:53,403 - DEBUG - Response for deleting network () 2025-07-31 02:22:53,404 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e3820cfe-9b8a-4aa0-a393-f248270f5678 2025-07-31 02:22:53,411 - DEBUG - Response Code: 404 2025-07-31 02:22:53,412 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-31 02:22:53,420 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7c781461-8e55-4dfa-9cdf-42892b481a4b 2025-07-31 02:22:53,477 - DEBUG - Requesting: http://10.0.0.254:8082/project/1ed48e6c-57c7-4e80-a631-b9b2718c719f 2025-07-31 02:22:53,552 - INFO - Validated that VN ctest-vn-82235459 is not found in API Server 2025-07-31 02:22:53,562 - DEBUG - VN ctest-vn-82235459 is not present in Agent 10.0.0.254 2025-07-31 02:22:53,562 - INFO - Validated that VN ctest-vn-82235459 is not in any agent 2025-07-31 02:22:53,577 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82235459 info 2025-07-31 02:22:53,577 - INFO - Deleting VN ctest-vn-60678262 2025-07-31 02:22:53,683 - DEBUG - Response for deleting network () 2025-07-31 02:22:53,683 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/35a6e40f-4d5d-4c4c-a8dd-9f9b1da7ef9b 2025-07-31 02:22:53,691 - DEBUG - Response Code: 404 2025-07-31 02:22:53,691 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-31 02:22:53,696 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7c781461-8e55-4dfa-9cdf-42892b481a4b 2025-07-31 02:22:53,752 - DEBUG - Requesting: http://10.0.0.254:8082/project/1ed48e6c-57c7-4e80-a631-b9b2718c719f 2025-07-31 02:22:53,829 - INFO - Validated that VN ctest-vn-60678262 is not found in API Server 2025-07-31 02:22:53,840 - DEBUG - VN ctest-vn-60678262 is not present in Agent 10.0.0.254 2025-07-31 02:22:53,840 - INFO - Validated that VN ctest-vn-60678262 is not in any agent 2025-07-31 02:22:53,856 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60678262 info 2025-07-31 02:22:54,112 - DEBUG - No XMPP flaps were noticed during the test
2025-07-31 02:22:54,112 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-07-31 02:22:54,112 - INFO - -------------------------------------------------------------------------------- 2025-07-31 02:22:54,779 - INFO - Deleted project: ctest-TestBasicPolicy-02755920, ID : 1ed48e6c-57c7-4e80-a631-b9b2718c719f