2026-06-02 02:32:35,489 - INFO - Domain Default found not creating 2026-06-02 02:32:35,644 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93707237 not found, creating it 2026-06-02 02:32:36,083 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93707237, ID : b4e59d71-8757-4e99-b855-9b0b80214c68 2026-06-02 02:32:37,403 - INFO - ================================================================================ 2026-06-02 02:32:37,403 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-02 02:32:37,660 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.129': '0'}} with 2026-06-02 02:32:37,660 - INFO - Initial checks done. Running the testcase now 2026-06-02 02:32:37,660 - INFO - 2026-06-02 02:32:37,660 - INFO - ================================================================================ 2026-06-02 02:32:37,660 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-02 02:32:37,660 - 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-06-02 02:32:37,948 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.129': '0'}} with 2026-06-02 02:32:37,948 - INFO - Initial checks done. Running the testcase now 2026-06-02 02:32:37,948 - INFO - 2026-06-02 02:32:38,266 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93707237:ctest-vn4-63170919, 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-93707237:ctest-vn4-63170919, 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-93707237:ctest-vn4-63170919, 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-93707237:ctest-vn4-63170919, 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-06-02 02:32:38,782 - DEBUG - Response for create_network : {'network': {'id': '5aa33d17-2201-4676-99be-38ade53b80c4', 'name': 'ctest-vn4-63170919', 'tenant_id': 'b4e59d7187574e99b8559b0b80214c68', 'project_id': 'b4e59d7187574e99b8559b0b80214c68', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93707237', 'ctest-vn4-63170919'], 'port_security_enabled': True, 'description': ''}} 2026-06-02 02:32:38,994 - DEBUG - Response for create_subnet : {'subnet': {'id': '26a04288-9719-4134-8534-b46d3d2b18d4', 'name': '', 'tenant_id': 'b4e59d7187574e99b8559b0b80214c68', 'network_id': '5aa33d17-2201-4676-99be-38ade53b80c4', 'ip_version': 4, 'cidr': '11.188.93.128/26', 'allocation_pools': [{'start': '11.188.93.130', 'end': '11.188.93.190'}], 'gateway_ip': '11.188.93.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.188.93.130', 'tags': [], 'project_id': 'b4e59d7187574e99b8559b0b80214c68'}} 2026-06-02 02:32:39,192 - DEBUG - Response for create_subnet : {'subnet': {'id': '54cca0a5-68b9-4288-863f-2e29ce9c5618', 'name': '', 'tenant_id': 'b4e59d7187574e99b8559b0b80214c68', 'network_id': '5aa33d17-2201-4676-99be-38ade53b80c4', 'ip_version': 6, 'cidr': '3647:c575:a72c:2da1:b90e:3ba2::/96', 'allocation_pools': [{'start': '3647:c575:a72c:2da1:b90e:3ba2:0:2', 'end': '3647:c575:a72c:2da1:b90e:3ba2:ffff:fffe'}], 'gateway_ip': '3647:c575:a72c:2da1:b90e:3ba2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3647:c575:a72c:2da1:b90e:3ba2:0:2', 'tags': [], 'project_id': 'b4e59d7187574e99b8559b0b80214c68'}} 2026-06-02 02:32:39,211 - INFO - Created VN ctest-vn4-63170919 2026-06-02 02:32:39,266 - DEBUG - VN ctest-vn4-63170919 UUID is 5aa33d17-2201-4676-99be-38ade53b80c4 2026-06-02 02:32:39,464 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5aa33d17-2201-4676-99be-38ade53b80c4', 'name': 'ctest-vn4-63170919', 'tenant_id': 'b4e59d7187574e99b8559b0b80214c68', 'project_id': 'b4e59d7187574e99b8559b0b80214c68', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['26a04288-9719-4134-8534-b46d3d2b18d4', '54cca0a5-68b9-4288-863f-2e29ce9c5618'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93707237', 'ctest-vn4-63170919'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93707237', 'ctest-policy1-77418465']], 'subnet_ipam': [{'subnet_cidr': '11.188.93.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3647:c575:a72c:2da1:b90e:3ba2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-02 02:32:39,630 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-02 02:32:39,893 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-02 02:32:39,922 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b0c3d7db-527c-4601-9c04-65e547aa3d05 2026-06-02 02:32:39,933 - DEBUG - Requesting: http://10.0.0.50:8082/project/b4e59d71-8757-4e99-b855-9b0b80214c68 2026-06-02 02:32:40,002 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5aa33d17-2201-4676-99be-38ade53b80c4 2026-06-02 02:32:40,012 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5aa33d17-2201-4676-99be-38ade53b80c4 2026-06-02 02:32:40,021 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1d81acd9-d3d3-4ee3-85e2-c7b3d807937d 2026-06-02 02:32:40,028 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1d81acd9-d3d3-4ee3-85e2-c7b3d807937d 2026-06-02 02:32:40,035 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/af519049-73cf-46ac-9f58-b0698f19564d 2026-06-02 02:32:40,041 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-02 02:32:40,041 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5aa33d17-2201-4676-99be-38ade53b80c4 2026-06-02 02:32:40,049 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1d81acd9-d3d3-4ee3-85e2-c7b3d807937d 2026-06-02 02:32:40,063 - INFO - Verified VN network id 11 for VN 5aa33d17-2201-4676-99be-38ade53b80c4 2026-06-02 02:32:40,063 - INFO - Verifications in API Server for VN ctest-vn4-63170919 passed 2026-06-02 02:32:40,063 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5aa33d17-2201-4676-99be-38ade53b80c4 2026-06-02 02:32:40,071 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1d81acd9-d3d3-4ee3-85e2-c7b3d807937d 2026-06-02 02:32:40,077 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1d81acd9-d3d3-4ee3-85e2-c7b3d807937d 2026-06-02 02:32:40,082 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/af519049-73cf-46ac-9f58-b0698f19564d 2026-06-02 02:32:40,092 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93707237:ctest-vn4-63170919', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93707237', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6531131054181402230', 'uuid-lslong': '11078354452904378564'}, 'enable': 'true', 'created': '2026-06-02T02:32:38', 'last-modified': '2026-06-02T02:32:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.644101'} 2026-06-02 02:32:40,102 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-02 02:32:40,102 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-63170919 passed 2026-06-02 02:32:40,102 - DEBUG - ====Verifying policy data for ctest-vn4-63170919 in API_Server ====== 2026-06-02 02:32:40,102 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-02 02:32:40,108 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b0c3d7db-527c-4601-9c04-65e547aa3d05 2026-06-02 02:32:40,120 - DEBUG - Requesting: http://10.0.0.50:8082/project/b4e59d71-8757-4e99-b855-9b0b80214c68 2026-06-02 02:32:40,187 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5aa33d17-2201-4676-99be-38ade53b80c4 2026-06-02 02:32:40,197 - DEBUG - ==>Verifying data for policy with id: 5893c73f-8ca3-41a2-b93a-717c61900f95, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93707237', 'ctest-policy1-77418465'] 2026-06-02 02:32:40,197 - INFO - VN ctest-vn4-63170919 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-02 02:32:40,197 - DEBUG - Verifying the vn in opserver 2026-06-02 02:32:40,197 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93707237:ctest-vn4-63170919 virtual network link through opserver 10.0.0.50 2026-06-02 02:32:40,197 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-02 02:32:40,460 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-02 02:32:40,516 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93707237:ctest-vn4-63170919', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93707237:ctest-vn4-63170919?flat'} 2026-06-02 02:32:40,516 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93707237:ctest-vn4-63170919 is found in opserver 2026-06-02 02:32:40,525 - DEBUG - Do not have enough data to verify VN in agent 2026-06-02 02:32:40,529 - DEBUG - VRF ids for VN ctest-vn4-63170919: {} 2026-06-02 02:32:40,529 - DEBUG - ====Verifying data for ctest-policy1-77418465 in API_Server ====== 2026-06-02 02:32:40,530 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-02 02:32:40,535 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b0c3d7db-527c-4601-9c04-65e547aa3d05 2026-06-02 02:32:40,545 - DEBUG - Requesting: http://10.0.0.50:8082/project/b4e59d71-8757-4e99-b855-9b0b80214c68 2026-06-02 02:32:40,609 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/5893c73f-8ca3-41a2-b93a-717c61900f95 2026-06-02 02:32:40,621 - INFO - Verified policy ctest-policy1-77418465 in API Server, Result: True 2026-06-02 02:32:40,621 - INFO - Done with setup and verification, moving onto test .. 2026-06-02 02:32:40,628 - INFO - Deleting VN ctest-vn4-63170919 2026-06-02 02:32:40,740 - DEBUG - Response for deleting network () 2026-06-02 02:32:40,740 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1d81acd9-d3d3-4ee3-85e2-c7b3d807937d 2026-06-02 02:32:40,744 - DEBUG - Response Code: 404 2026-06-02 02:32:40,744 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-02 02:32:40,750 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b0c3d7db-527c-4601-9c04-65e547aa3d05 2026-06-02 02:32:40,808 - DEBUG - Requesting: http://10.0.0.50:8082/project/b4e59d71-8757-4e99-b855-9b0b80214c68 2026-06-02 02:32:40,886 - INFO - Validated that VN ctest-vn4-63170919 is not found in API Server 2026-06-02 02:32:40,895 - DEBUG - VN ctest-vn4-63170919 is not present in Agent 10.0.0.50 2026-06-02 02:32:40,895 - INFO - Validated that VN ctest-vn4-63170919 is not in any agent 2026-06-02 02:32:40,908 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-63170919 info 2026-06-02 02:32:40,934 - INFO - Deleted policy ctest-policy1-77418465 2026-06-02 02:32:41,090 - DEBUG - policy ctest-policy1-77418465 is not found in API Server 2026-06-02 02:32:41,343 - DEBUG - No XMPP flaps were noticed during the test 2026-06-02 02:32:41,343 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-02 02:32:41,343 - INFO - -------------------------------------------------------------------------------- 2026-06-02 02:32:41,639 - DEBUG - No XMPP flaps were noticed during the test 2026-06-02 02:32:41,639 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-02 02:32:41,639 - INFO - -------------------------------------------------------------------------------- 2026-06-02 02:32:42,273 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-93707237, ID : b4e59d71-8757-4e99-b855-9b0b80214c68