2025-06-19 14:26:57,192 - INFO - Domain Default found not creating 2025-06-19 14:26:57,340 - INFO - Project ctest-TestBasicPolicy-11415748 not found, creating it 2025-06-19 14:26:57,841 - INFO - Created Project:ctest-TestBasicPolicy-11415748, ID : b38415a1-2f9f-46d9-93c4-a6d55a60be5c 2025-06-19 14:26:59,455 - INFO - ================================================================================ 2025-06-19 14:26:59,455 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-19 14:26:59,455 - 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-06-19 14:26:59,714 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with 2025-06-19 14:26:59,714 - INFO - Initial checks done. Running the testcase now 2025-06-19 14:26:59,714 - INFO - 2025-06-19 14:27:00,325 - DEBUG - Response for create_network : {'network': {'id': 'f1cc117b-f091-4447-b63a-df354b2991de', 'name': 'ctest-vn-46032278', 'tenant_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'project_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11415748', 'ctest-vn-46032278'], 'port_security_enabled': True, 'description': ''}} 2025-06-19 14:27:00,536 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0f8a172-6518-4b45-9091-17c505d44aeb', 'name': '', 'tenant_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'network_id': 'f1cc117b-f091-4447-b63a-df354b2991de', 'ip_version': 4, 'cidr': '112.230.208.64/26', 'allocation_pools': [{'start': '112.230.208.66', 'end': '112.230.208.126'}], 'gateway_ip': '112.230.208.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.230.208.66', 'tags': [], 'project_id': 'b38415a12f9f46d993c4a6d55a60be5c'}} 2025-06-19 14:27:00,554 - INFO - Created VN ctest-vn-46032278 2025-06-19 14:27:00,607 - DEBUG - VN ctest-vn-46032278 UUID is f1cc117b-f091-4447-b63a-df354b2991de 2025-06-19 14:27:00,916 - DEBUG - Response for create_network : {'network': {'id': 'e6a7fc7d-e752-4738-b094-5bf31e30ed1f', 'name': 'ctest-vn-22264605', 'tenant_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'project_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11415748', 'ctest-vn-22264605'], 'port_security_enabled': True, 'description': ''}} 2025-06-19 14:27:01,095 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f036fb64-8dee-49eb-9797-2aa6d9c57507', 'name': '', 'tenant_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'network_id': 'e6a7fc7d-e752-4738-b094-5bf31e30ed1f', 'ip_version': 4, 'cidr': '185.147.167.64/26', 'allocation_pools': [{'start': '185.147.167.66', 'end': '185.147.167.126'}], 'gateway_ip': '185.147.167.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.147.167.66', 'tags': [], 'project_id': 'b38415a12f9f46d993c4a6d55a60be5c'}} 2025-06-19 14:27:01,128 - INFO - Created VN ctest-vn-22264605 2025-06-19 14:27:01,187 - DEBUG - VN ctest-vn-22264605 UUID is e6a7fc7d-e752-4738-b094-5bf31e30ed1f 2025-06-19 14:27:01,309 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-46032278, 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-11415748:ctest-vn-22264605, 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-06-19 14:27:01,648 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1cc117b-f091-4447-b63a-df354b2991de', 'name': 'ctest-vn-46032278', 'tenant_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'project_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0f8a172-6518-4b45-9091-17c505d44aeb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11415748', 'ctest-vn-46032278'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11415748', 'ctest-policy-allow-all-87952240']], 'subnet_ipam': [{'subnet_cidr': '112.230.208.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-19 14:27:01,888 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e6a7fc7d-e752-4738-b094-5bf31e30ed1f', 'name': 'ctest-vn-22264605', 'tenant_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'project_id': 'b38415a12f9f46d993c4a6d55a60be5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f036fb64-8dee-49eb-9797-2aa6d9c57507'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11415748', 'ctest-vn-22264605'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11415748', 'ctest-policy-allow-all-87952240']], 'subnet_ipam': [{'subnet_cidr': '185.147.167.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-19 14:27:02,076 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-06-19 14:27:02,429 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-06-19 14:27:02,461 - DEBUG - Requesting: http://10.0.0.49:8082/domain/21d5f9b4-03ab-4796-8452-e8a00c75fdc4 2025-06-19 14:27:02,476 - DEBUG - Requesting: http://10.0.0.49:8082/project/b38415a1-2f9f-46d9-93c4-a6d55a60be5c 2025-06-19 14:27:02,556 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f1cc117b-f091-4447-b63a-df354b2991de 2025-06-19 14:27:02,569 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f1cc117b-f091-4447-b63a-df354b2991de 2025-06-19 14:27:02,580 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/91dee4a5-08e0-47a8-8359-4c6d08abfde0 2025-06-19 14:27:02,589 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/91dee4a5-08e0-47a8-8359-4c6d08abfde0 2025-06-19 14:27:02,597 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/1f2a2dfd-3037-495a-a37a-f480d2802127 2025-06-19 14:27:02,604 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-19 14:27:02,604 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f1cc117b-f091-4447-b63a-df354b2991de 2025-06-19 14:27:02,614 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/91dee4a5-08e0-47a8-8359-4c6d08abfde0 2025-06-19 14:27:02,631 - INFO - Verified VN network id 8 for VN f1cc117b-f091-4447-b63a-df354b2991de 2025-06-19 14:27:02,631 - INFO - Verifications in API Server for VN ctest-vn-46032278 passed 2025-06-19 14:27:02,631 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f1cc117b-f091-4447-b63a-df354b2991de 2025-06-19 14:27:02,642 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/91dee4a5-08e0-47a8-8359-4c6d08abfde0 2025-06-19 14:27:02,650 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/91dee4a5-08e0-47a8-8359-4c6d08abfde0 2025-06-19 14:27:02,658 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/1f2a2dfd-3037-495a-a37a-f480d2802127 2025-06-19 14:27:02,672 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-46032278', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11415748', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17423320282404308039', 'uuid-lslong': '13131053083539378654'}, 'enable': 'true', 'created': '2025-06-19T14:27:00', 'last-modified': '2025-06-19T14:27:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.056675'} 2025-06-19 14:27:02,679 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-19 14:27:02,680 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46032278 passed 2025-06-19 14:27:02,680 - DEBUG - ====Verifying policy data for ctest-vn-46032278 in API_Server ====== 2025-06-19 14:27:02,680 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-06-19 14:27:02,686 - DEBUG - Requesting: http://10.0.0.49:8082/domain/21d5f9b4-03ab-4796-8452-e8a00c75fdc4 2025-06-19 14:27:02,700 - DEBUG - Requesting: http://10.0.0.49:8082/project/b38415a1-2f9f-46d9-93c4-a6d55a60be5c 2025-06-19 14:27:02,772 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f1cc117b-f091-4447-b63a-df354b2991de 2025-06-19 14:27:02,783 - DEBUG - ==>Verifying data for policy with id: 47e1616b-7d38-42d5-b9da-2acb2b88889b, fqn: ['default-domain', 'ctest-TestBasicPolicy-11415748', 'ctest-policy-allow-all-87952240'] 2025-06-19 14:27:02,783 - INFO - VN ctest-vn-46032278 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-19 14:27:02,783 - DEBUG - Verifying the vn in opserver 2025-06-19 14:27:02,783 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-46032278 virtual network link through opserver 10.0.0.49 2025-06-19 14:27:02,783 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-06-19 14:27:03,119 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-06-19 14:27:03,180 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-46032278', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-46032278?flat'} 2025-06-19 14:27:03,180 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-46032278 is found in opserver 2025-06-19 14:27:03,194 - DEBUG - Do not have enough data to verify VN in agent 2025-06-19 14:27:03,200 - DEBUG - VRF ids for VN ctest-vn-46032278: {} 2025-06-19 14:27:03,200 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-06-19 14:27:03,208 - DEBUG - Requesting: http://10.0.0.49:8082/domain/21d5f9b4-03ab-4796-8452-e8a00c75fdc4 2025-06-19 14:27:03,225 - DEBUG - Requesting: http://10.0.0.49:8082/project/b38415a1-2f9f-46d9-93c4-a6d55a60be5c 2025-06-19 14:27:03,311 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e6a7fc7d-e752-4738-b094-5bf31e30ed1f 2025-06-19 14:27:03,328 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e6a7fc7d-e752-4738-b094-5bf31e30ed1f 2025-06-19 14:27:03,340 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/14d9bab0-287a-4cc7-883d-82a00788f6b8 2025-06-19 14:27:03,349 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/14d9bab0-287a-4cc7-883d-82a00788f6b8 2025-06-19 14:27:03,358 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/ad799245-d8f6-4616-8a1d-44bc0c029c08 2025-06-19 14:27:03,366 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-19 14:27:03,367 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e6a7fc7d-e752-4738-b094-5bf31e30ed1f 2025-06-19 14:27:03,378 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/14d9bab0-287a-4cc7-883d-82a00788f6b8 2025-06-19 14:27:03,393 - INFO - Verified VN network id 9 for VN e6a7fc7d-e752-4738-b094-5bf31e30ed1f 2025-06-19 14:27:03,393 - INFO - Verifications in API Server for VN ctest-vn-22264605 passed 2025-06-19 14:27:03,393 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e6a7fc7d-e752-4738-b094-5bf31e30ed1f 2025-06-19 14:27:03,406 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/14d9bab0-287a-4cc7-883d-82a00788f6b8 2025-06-19 14:27:03,418 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/14d9bab0-287a-4cc7-883d-82a00788f6b8 2025-06-19 14:27:03,428 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/ad799245-d8f6-4616-8a1d-44bc0c029c08 2025-06-19 14:27:03,446 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-22264605', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11415748', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16620530567516145464', 'uuid-lslong': '12723895946970197279'}, 'enable': 'true', 'created': '2025-06-19T14:27:00', 'last-modified': '2025-06-19T14:27:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.590513'} 2025-06-19 14:27:03,454 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-19 14:27:03,454 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22264605 passed 2025-06-19 14:27:03,455 - DEBUG - ====Verifying policy data for ctest-vn-22264605 in API_Server ====== 2025-06-19 14:27:03,455 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-06-19 14:27:03,463 - DEBUG - Requesting: http://10.0.0.49:8082/domain/21d5f9b4-03ab-4796-8452-e8a00c75fdc4 2025-06-19 14:27:03,480 - DEBUG - Requesting: http://10.0.0.49:8082/project/b38415a1-2f9f-46d9-93c4-a6d55a60be5c 2025-06-19 14:27:03,561 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e6a7fc7d-e752-4738-b094-5bf31e30ed1f 2025-06-19 14:27:03,574 - DEBUG - ==>Verifying data for policy with id: 47e1616b-7d38-42d5-b9da-2acb2b88889b, fqn: ['default-domain', 'ctest-TestBasicPolicy-11415748', 'ctest-policy-allow-all-87952240'] 2025-06-19 14:27:03,574 - INFO - VN ctest-vn-22264605 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-19 14:27:03,574 - DEBUG - Verifying the vn in opserver 2025-06-19 14:27:03,574 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-22264605 virtual network link through opserver 10.0.0.49 2025-06-19 14:27:03,574 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-06-19 14:27:03,586 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-22264605', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-22264605?flat'} 2025-06-19 14:27:03,586 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-22264605 is found in opserver 2025-06-19 14:27:03,597 - DEBUG - Do not have enough data to verify VN in agent 2025-06-19 14:27:03,603 - DEBUG - VRF ids for VN ctest-vn-22264605: {} 2025-06-19 14:27:03,668 - DEBUG - Services list from nova: [, , ] 2025-06-19 14:27:04,846 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3496-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3496-1) 2025-06-19 14:27:06,264 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3496-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3496-1) 2025-06-19 14:27:06,264 - INFO - Waiting for VM ctest-TestBasicPolicy-11415748-39737571 to be up.. 2025-06-19 14:27:06,361 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-19 14:27:11,451 - DEBUG - VM is in ACTIVE state now 2025-06-19 14:27:11,451 - INFO - VM name : ctest-TestBasicPolicy-11415748-39737571 2025-06-19 14:27:11,543 - DEBUG - VM ctest-TestBasicPolicy-11415748-39737571 ID is ed69ecc4-6016-4c1d-9edf-c5ece68179d2 2025-06-19 14:27:11,567 - DEBUG - VM ctest-TestBasicPolicy-11415748-39737571 launched on Node cn-jenkins-deploy-platform-ansible-os-3496-1 2025-06-19 14:27:11,665 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/ed69ecc4-6016-4c1d-9edf-c5ece68179d2 2025-06-19 14:27:11,676 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/a12a37f8-596b-474c-9f2a-a6c8f91259af 2025-06-19 14:27:14,936 - 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 1007ms') 2025-06-19 14:27:14,936 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11415748-39737571 failed! 2025-06-19 14:27:15,000 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-11415748:ctest-vn-46032278 is 112.230.208.65 and allocation pool is NOT set 2025-06-19 14:27:17,059 - 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=8.68 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.60 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.598/5.638/8.678/3.040 ms') 2025-06-19 14:27:17,060 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11415748-39737571 passed 2025-06-19 14:27:17,228 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 14:27:17,228 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11415748-39737571, IP 112.230.208.67, Port 22 2025-06-19 14:27:17,283 - 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-06-19 14:27:17,374 - DEBUG - VM ctest-TestBasicPolicy-11415748-39737571 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-19 14:27:22,375 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 14:27:22,375 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11415748-39737571, IP 112.230.208.67, Port 22 2025-06-19 14:27:22,531 - DEBUG - VM ctest-TestBasicPolicy-11415748-39737571 is ready for SSH connections 2025-06-19 14:27:22,531 - INFO - Waiting for VM ctest-TestBasicPolicy-11415748-22426866 to be up.. 2025-06-19 14:27:22,608 - DEBUG - VM is in ACTIVE state now 2025-06-19 14:27:22,608 - INFO - VM name : ctest-TestBasicPolicy-11415748-22426866 2025-06-19 14:27:22,691 - DEBUG - VM ctest-TestBasicPolicy-11415748-22426866 ID is 2a4c724b-4eca-4d40-8413-192924d936f1 2025-06-19 14:27:22,691 - DEBUG - VM ctest-TestBasicPolicy-11415748-22426866 launched on Node cn-jenkins-deploy-platform-ansible-os-3496-1 2025-06-19 14:27:22,778 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/2a4c724b-4eca-4d40-8413-192924d936f1 2025-06-19 14:27:22,788 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/e4085712-6d17-4667-af15-9db8991efb7e 2025-06-19 14:27:24,030 - 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.15 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.537 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.537/1.842/3.147/1.305 ms') 2025-06-19 14:27:24,030 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-11415748-22426866 passed 2025-06-19 14:27:24,188 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 14:27:24,188 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11415748-22426866, IP 185.147.167.67, Port 22 2025-06-19 14:27:24,351 - DEBUG - VM ctest-TestBasicPolicy-11415748-22426866 is ready for SSH connections 2025-06-19 14:27:24,351 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 14:27:24,351 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 185.147.167.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-06-19 14:27:24,351 - DEBUG - ping -s 56 -c 3 -W 1 185.147.167.67 2025-06-19 14:27:28,146 - DEBUG - PING 185.147.167.67 (185.147.167.67): 56 data bytes 64 bytes from 185.147.167.67: seq=0 ttl=63 time=4.586 ms 64 bytes from 185.147.167.67: seq=1 ttl=63 time=0.986 ms 64 bytes from 185.147.167.67: seq=2 ttl=63 time=0.771 ms --- 185.147.167.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.771/2.114/4.586 ms 2025-06-19 14:27:28,146 - INFO - Ping to IP 185.147.167.67 from VM ctest-TestBasicPolicy-11415748-39737571 passed 2025-06-19 14:27:28,339 - DEBUG - Policy Update Response {"network-policy": {"uuid": "47e1616b-7d38-42d5-b9da-2acb2b88889b", "href": "http://10.0.0.49:8082/network-policy/47e1616b-7d38-42d5-b9da-2acb2b88889b"}} 2025-06-19 14:27:28,340 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 14:27:28,340 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 185.147.167.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-06-19 14:27:28,340 - DEBUG - ping -s 56 -c 3 -W 1 185.147.167.67 2025-06-19 14:27:31,572 - DEBUG - PING 185.147.167.67 (185.147.167.67): 56 data bytes 64 bytes from 185.147.167.67: seq=0 ttl=63 time=1.442 ms --- 185.147.167.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.442/1.442/1.442 ms 2025-06-19 14:27:31,572 - WARNING - Ping to IP 185.147.167.67 from VM ctest-TestBasicPolicy-11415748-39737571 failed 2025-06-19 14:27:31,572 - INFO - Deleting VM ctest-TestBasicPolicy-11415748-22426866 2025-06-19 14:27:31,646 - INFO - Deleting VM ctest-TestBasicPolicy-11415748-39737571 2025-06-19 14:27:32,133 - INFO - Deleted policy ctest-policy-allow-all-87952240 2025-06-19 14:27:32,133 - INFO - Deleting VN ctest-vn-22264605 2025-06-19 14:27:32,194 - DEBUG - VN e6a7fc7d-e752-4738-b094-5bf31e30ed1f still in use: Unable to complete operation on network e6a7fc7d-e752-4738-b094-5bf31e30ed1f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bc7fd2e1-fc38-4473-becd-aab3c2cc8404'] 2025-06-19 14:27:32,195 - WARNING - Deleting VN ctest-vn-22264605 failed..Will retry 2025-06-19 14:27:34,329 - DEBUG - Response for deleting network () 2025-06-19 14:27:34,330 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/14d9bab0-287a-4cc7-883d-82a00788f6b8 2025-06-19 14:27:34,339 - DEBUG - Response Code: 404 2025-06-19 14:27:34,339 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-06-19 14:27:34,349 - DEBUG - Requesting: http://10.0.0.49:8082/domain/21d5f9b4-03ab-4796-8452-e8a00c75fdc4 2025-06-19 14:27:34,407 - DEBUG - Requesting: http://10.0.0.49:8082/project/b38415a1-2f9f-46d9-93c4-a6d55a60be5c 2025-06-19 14:27:34,482 - INFO - Validated that VN ctest-vn-22264605 is not found in API Server 2025-06-19 14:27:34,495 - DEBUG - VN ctest-vn-22264605 is not present in Agent 10.0.0.49 2025-06-19 14:27:34,495 - INFO - Validated that VN ctest-vn-22264605 is not in any agent 2025-06-19 14:27:34,514 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-22264605 info 2025-06-19 14:27:34,514 - INFO - Deleting VN ctest-vn-46032278 2025-06-19 14:27:34,621 - DEBUG - Response for deleting network () 2025-06-19 14:27:34,621 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/91dee4a5-08e0-47a8-8359-4c6d08abfde0 2025-06-19 14:27:34,631 - DEBUG - Response Code: 404 2025-06-19 14:27:34,631 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-06-19 14:27:34,639 - DEBUG - Requesting: http://10.0.0.49:8082/domain/21d5f9b4-03ab-4796-8452-e8a00c75fdc4 2025-06-19 14:27:34,696 - DEBUG - Requesting: http://10.0.0.49:8082/project/b38415a1-2f9f-46d9-93c4-a6d55a60be5c 2025-06-19 14:27:34,779 - INFO - Validated that VN ctest-vn-46032278 is not found in API Server 2025-06-19 14:27:34,792 - DEBUG - VN ctest-vn-46032278 is not present in Agent 10.0.0.49 2025-06-19 14:27:34,792 - INFO - Validated that VN ctest-vn-46032278 is not in any agent 2025-06-19 14:27:34,811 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-46032278 info 2025-06-19 14:27:35,089 - DEBUG - No XMPP flaps were noticed during the test
2025-06-19 14:27:35,089 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-06-19 14:27:35,089 - INFO - -------------------------------------------------------------------------------- 2025-06-19 14:27:35,852 - INFO - Deleted project: ctest-TestBasicPolicy-11415748, ID : b38415a1-2f9f-46d9-93c4-a6d55a60be5c