2026-02-09 02:09:32,806 - INFO - Domain Default found not creating 2026-02-09 02:09:32,940 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-19278256 not found, creating it 2026-02-09 02:09:33,358 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-19278256, ID : 04b1e6b9-a2c7-4ea6-929d-af6325cb406f 2026-02-09 02:09:34,711 - INFO - ================================================================================ 2026-02-09 02:09:34,711 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 02:09:34,963 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.129': '0'}} with 2026-02-09 02:09:34,963 - INFO - Initial checks done. Running the testcase now 2026-02-09 02:09:34,963 - INFO - 2026-02-09 02:09:34,963 - INFO - ================================================================================ 2026-02-09 02:09:34,963 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 02:09:34,963 - INFO - TEST DESCRIPTION : This tests the following scenarios. 1. Test to validate that policy removal will fail when it referenced with VN. 2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs. 3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs. 2026-02-09 02:09:35,246 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.129': '0'}} with 2026-02-09 02:09:35,246 - INFO - Initial checks done. Running the testcase now 2026-02-09 02:09:35,247 - INFO - 2026-02-09 02:09:35,589 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19278256:ctest-vn4-31579989, 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-TestBasicPolicyNegativeIpv4v6-19278256:ctest-vn4-31579989, 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, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19278256:ctest-vn4-31579989, 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-TestBasicPolicyNegativeIpv4v6-19278256:ctest-vn4-31579989, 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] 2026-02-09 02:09:36,109 - DEBUG - Response for create_network : {'network': {'id': '1fb14018-a711-4fd8-897a-f15ab084625a', 'name': 'ctest-vn4-31579989', 'tenant_id': '04b1e6b9a2c74ea6929daf6325cb406f', 'project_id': '04b1e6b9a2c74ea6929daf6325cb406f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19278256', 'ctest-vn4-31579989'], 'port_security_enabled': True, 'description': ''}} 2026-02-09 02:09:36,271 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ae3a315-d0d8-462c-90c0-05415b60c740', 'name': '', 'tenant_id': '04b1e6b9a2c74ea6929daf6325cb406f', 'network_id': '1fb14018-a711-4fd8-897a-f15ab084625a', 'ip_version': 4, 'cidr': '106.45.65.0/26', 'allocation_pools': [{'start': '106.45.65.2', 'end': '106.45.65.62'}], 'gateway_ip': '106.45.65.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.45.65.2', 'tags': [], 'project_id': '04b1e6b9a2c74ea6929daf6325cb406f'}} 2026-02-09 02:09:36,418 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b444b41c-0a49-4cb4-8231-eaabc8efffc4', 'name': '', 'tenant_id': '04b1e6b9a2c74ea6929daf6325cb406f', 'network_id': '1fb14018-a711-4fd8-897a-f15ab084625a', 'ip_version': 6, 'cidr': '39fc:1d4e:ec42:54d9:2d1e:7713::/96', 'allocation_pools': [{'start': '39fc:1d4e:ec42:54d9:2d1e:7713:0:2', 'end': '39fc:1d4e:ec42:54d9:2d1e:7713:ffff:fffe'}], 'gateway_ip': '39fc:1d4e:ec42:54d9:2d1e:7713:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39fc:1d4e:ec42:54d9:2d1e:7713:0:2', 'tags': [], 'project_id': '04b1e6b9a2c74ea6929daf6325cb406f'}} 2026-02-09 02:09:36,442 - INFO - Created VN ctest-vn4-31579989 2026-02-09 02:09:36,494 - DEBUG - VN ctest-vn4-31579989 UUID is 1fb14018-a711-4fd8-897a-f15ab084625a 2026-02-09 02:09:36,678 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1fb14018-a711-4fd8-897a-f15ab084625a', 'name': 'ctest-vn4-31579989', 'tenant_id': '04b1e6b9a2c74ea6929daf6325cb406f', 'project_id': '04b1e6b9a2c74ea6929daf6325cb406f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ae3a315-d0d8-462c-90c0-05415b60c740', 'b444b41c-0a49-4cb4-8231-eaabc8efffc4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19278256', 'ctest-vn4-31579989'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19278256', 'ctest-policy1-36410864']], 'subnet_ipam': [{'subnet_cidr': '106.45.65.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '39fc:1d4e:ec42:54d9:2d1e:7713::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-09 02:09:36,834 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-02-09 02:09:37,128 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-02-09 02:09:37,156 - DEBUG - Requesting: http://10.0.0.240:8082/domain/7470f268-9049-41c4-9352-79f6bcd272f1 2026-02-09 02:09:37,168 - DEBUG - Requesting: http://10.0.0.240:8082/project/04b1e6b9-a2c7-4ea6-929d-af6325cb406f 2026-02-09 02:09:37,239 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/1fb14018-a711-4fd8-897a-f15ab084625a 2026-02-09 02:09:37,252 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/1fb14018-a711-4fd8-897a-f15ab084625a 2026-02-09 02:09:37,262 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/1f76ead7-a092-4d64-b7ce-b9e68ed50898 2026-02-09 02:09:37,268 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/1f76ead7-a092-4d64-b7ce-b9e68ed50898 2026-02-09 02:09:37,274 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/b27e40ce-f85c-4303-bdee-cbc86d8975c9 2026-02-09 02:09:37,280 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 02:09:37,280 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/1fb14018-a711-4fd8-897a-f15ab084625a 2026-02-09 02:09:37,287 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/1f76ead7-a092-4d64-b7ce-b9e68ed50898 2026-02-09 02:09:37,299 - INFO - Verified VN network id 11 for VN 1fb14018-a711-4fd8-897a-f15ab084625a 2026-02-09 02:09:37,299 - INFO - Verifications in API Server for VN ctest-vn4-31579989 passed 2026-02-09 02:09:37,299 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/1fb14018-a711-4fd8-897a-f15ab084625a 2026-02-09 02:09:37,307 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/1f76ead7-a092-4d64-b7ce-b9e68ed50898 2026-02-09 02:09:37,313 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/1f76ead7-a092-4d64-b7ce-b9e68ed50898 2026-02-09 02:09:37,318 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/b27e40ce-f85c-4303-bdee-cbc86d8975c9 2026-02-09 02:09:37,329 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19278256:ctest-vn4-31579989', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-19278256', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2283676960679874520', 'uuid-lslong': '9906495702165643866'}, 'enable': 'true', 'created': '2026-02-09T02:09:36', 'last-modified': '2026-02-09T02:09:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.674818'} 2026-02-09 02:09:37,336 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 02:09:37,336 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-31579989 passed 2026-02-09 02:09:37,336 - DEBUG - ====Verifying policy data for ctest-vn4-31579989 in API_Server ====== 2026-02-09 02:09:37,336 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-02-09 02:09:37,342 - DEBUG - Requesting: http://10.0.0.240:8082/domain/7470f268-9049-41c4-9352-79f6bcd272f1 2026-02-09 02:09:37,351 - DEBUG - Requesting: http://10.0.0.240:8082/project/04b1e6b9-a2c7-4ea6-929d-af6325cb406f 2026-02-09 02:09:37,425 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/1fb14018-a711-4fd8-897a-f15ab084625a 2026-02-09 02:09:37,433 - DEBUG - ==>Verifying data for policy with id: fd91dd7c-b10f-4f0e-abeb-64b7df20da9a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19278256', 'ctest-policy1-36410864'] 2026-02-09 02:09:37,433 - INFO - VN ctest-vn4-31579989 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-09 02:09:37,433 - DEBUG - Verifying the vn in opserver 2026-02-09 02:09:37,433 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19278256:ctest-vn4-31579989 virtual network link through opserver 10.0.0.240 2026-02-09 02:09:37,433 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-02-09 02:09:37,727 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-02-09 02:09:37,781 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19278256:ctest-vn4-31579989', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19278256:ctest-vn4-31579989?flat'} 2026-02-09 02:09:37,781 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19278256:ctest-vn4-31579989 is found in opserver 2026-02-09 02:09:37,792 - DEBUG - Do not have enough data to verify VN in agent 2026-02-09 02:09:37,798 - DEBUG - VRF ids for VN ctest-vn4-31579989: {} 2026-02-09 02:09:37,798 - DEBUG - ====Verifying data for ctest-policy1-36410864 in API_Server ====== 2026-02-09 02:09:37,798 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-02-09 02:09:37,804 - DEBUG - Requesting: http://10.0.0.240:8082/domain/7470f268-9049-41c4-9352-79f6bcd272f1 2026-02-09 02:09:37,814 - DEBUG - Requesting: http://10.0.0.240:8082/project/04b1e6b9-a2c7-4ea6-929d-af6325cb406f 2026-02-09 02:09:37,881 - DEBUG - Requesting: http://10.0.0.240:8082/network-policy/fd91dd7c-b10f-4f0e-abeb-64b7df20da9a 2026-02-09 02:09:37,893 - INFO - Verified policy ctest-policy1-36410864 in API Server, Result: True 2026-02-09 02:09:37,893 - INFO - Done with setup and verification, moving onto test .. 2026-02-09 02:09:37,900 - INFO - Deleting VN ctest-vn4-31579989 2026-02-09 02:09:38,004 - DEBUG - Response for deleting network () 2026-02-09 02:09:38,004 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/1f76ead7-a092-4d64-b7ce-b9e68ed50898 2026-02-09 02:09:38,008 - DEBUG - Response Code: 404 2026-02-09 02:09:38,009 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-02-09 02:09:38,013 - DEBUG - Requesting: http://10.0.0.240:8082/domain/7470f268-9049-41c4-9352-79f6bcd272f1 2026-02-09 02:09:38,066 - DEBUG - Requesting: http://10.0.0.240:8082/project/04b1e6b9-a2c7-4ea6-929d-af6325cb406f 2026-02-09 02:09:38,133 - INFO - Validated that VN ctest-vn4-31579989 is not found in API Server 2026-02-09 02:09:38,142 - DEBUG - VN ctest-vn4-31579989 is not present in Agent 10.0.0.240 2026-02-09 02:09:38,142 - INFO - Validated that VN ctest-vn4-31579989 is not in any agent 2026-02-09 02:09:38,154 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-31579989 info 2026-02-09 02:09:38,173 - INFO - Deleted policy ctest-policy1-36410864 2026-02-09 02:09:38,330 - DEBUG - policy ctest-policy1-36410864 is not found in API Server 2026-02-09 02:09:38,584 - DEBUG - No XMPP flaps were noticed during the test
2026-02-09 02:09:38,584 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-09 02:09:38,584 - INFO - -------------------------------------------------------------------------------- 2026-02-09 02:09:38,871 - DEBUG - No XMPP flaps were noticed during the test
2026-02-09 02:09:38,871 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-09 02:09:38,871 - INFO - -------------------------------------------------------------------------------- 2026-02-09 02:09:39,566 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-19278256, ID : 04b1e6b9-a2c7-4ea6-929d-af6325cb406f