2026-02-08 19:09:38,195 - INFO - Domain Default found not creating 2026-02-08 19:09:38,359 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07028698 not found, creating it 2026-02-08 19:09:38,825 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07028698, ID : 022526c9-af1b-4d32-92d6-ce7164f131de 2026-02-08 19:09:40,358 - INFO - ================================================================================ 2026-02-08 19:09:40,358 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-08 19:09:40,616 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-02-08 19:09:40,616 - INFO - Initial checks done. Running the testcase now 2026-02-08 19:09:40,616 - INFO - 2026-02-08 19:09:40,616 - INFO - ================================================================================ 2026-02-08 19:09:40,616 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-08 19:09:40,616 - 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-08 19:09:40,909 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-02-08 19:09:40,909 - INFO - Initial checks done. Running the testcase now 2026-02-08 19:09:40,909 - INFO - 2026-02-08 19:09:41,273 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07028698:ctest-vn4-82645361, 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-07028698:ctest-vn4-82645361, 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-07028698:ctest-vn4-82645361, 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-07028698:ctest-vn4-82645361, 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-08 19:09:41,788 - DEBUG - Response for create_network : {'network': {'id': 'a3e8d173-e7fa-422d-bf39-ce993b0f8e0d', 'name': 'ctest-vn4-82645361', 'tenant_id': '022526c9af1b4d3292d6ce7164f131de', 'project_id': '022526c9af1b4d3292d6ce7164f131de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07028698', 'ctest-vn4-82645361'], 'port_security_enabled': True, 'description': ''}} 2026-02-08 19:09:42,006 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb65aa49-a92e-4851-8942-b7f3eee6ba43', 'name': '', 'tenant_id': '022526c9af1b4d3292d6ce7164f131de', 'network_id': 'a3e8d173-e7fa-422d-bf39-ce993b0f8e0d', 'ip_version': 4, 'cidr': '19.27.108.192/26', 'allocation_pools': [{'start': '19.27.108.194', 'end': '19.27.108.254'}], 'gateway_ip': '19.27.108.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.27.108.194', 'tags': [], 'project_id': '022526c9af1b4d3292d6ce7164f131de'}} 2026-02-08 19:09:42,189 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bdf8c03e-37b7-49f2-9e37-0514278d1454', 'name': '', 'tenant_id': '022526c9af1b4d3292d6ce7164f131de', 'network_id': 'a3e8d173-e7fa-422d-bf39-ce993b0f8e0d', 'ip_version': 6, 'cidr': '3bd0:32bb:c94:d004:42c1:5fd9::/96', 'allocation_pools': [{'start': '3bd0:32bb:c94:d004:42c1:5fd9:0:2', 'end': '3bd0:32bb:c94:d004:42c1:5fd9:ffff:fffe'}], 'gateway_ip': '3bd0:32bb:c94:d004:42c1:5fd9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3bd0:32bb:c94:d004:42c1:5fd9:0:2', 'tags': [], 'project_id': '022526c9af1b4d3292d6ce7164f131de'}} 2026-02-08 19:09:42,271 - INFO - Created VN ctest-vn4-82645361 2026-02-08 19:09:42,325 - DEBUG - VN ctest-vn4-82645361 UUID is a3e8d173-e7fa-422d-bf39-ce993b0f8e0d 2026-02-08 19:09:42,534 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a3e8d173-e7fa-422d-bf39-ce993b0f8e0d', 'name': 'ctest-vn4-82645361', 'tenant_id': '022526c9af1b4d3292d6ce7164f131de', 'project_id': '022526c9af1b4d3292d6ce7164f131de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bb65aa49-a92e-4851-8942-b7f3eee6ba43', 'bdf8c03e-37b7-49f2-9e37-0514278d1454'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07028698', 'ctest-vn4-82645361'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07028698', 'ctest-policy1-77084071']], 'subnet_ipam': [{'subnet_cidr': '19.27.108.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3bd0:32bb:c94:d004:42c1:5fd9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-08 19:09:42,709 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-08 19:09:43,020 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-08 19:09:43,053 - DEBUG - Requesting: http://10.0.0.249:8082/domain/90687d1f-de58-44e3-9156-30fe74f161e1 2026-02-08 19:09:43,064 - DEBUG - Requesting: http://10.0.0.249:8082/project/022526c9-af1b-4d32-92d6-ce7164f131de 2026-02-08 19:09:43,135 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a3e8d173-e7fa-422d-bf39-ce993b0f8e0d 2026-02-08 19:09:43,151 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a3e8d173-e7fa-422d-bf39-ce993b0f8e0d 2026-02-08 19:09:43,160 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7fd30a15-084c-468b-8efd-5ad7ee2745b1 2026-02-08 19:09:43,167 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7fd30a15-084c-468b-8efd-5ad7ee2745b1 2026-02-08 19:09:43,173 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/db53a124-664b-4eaa-bf98-5c57893078d9 2026-02-08 19:09:43,179 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-08 19:09:43,179 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a3e8d173-e7fa-422d-bf39-ce993b0f8e0d 2026-02-08 19:09:43,188 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7fd30a15-084c-468b-8efd-5ad7ee2745b1 2026-02-08 19:09:43,204 - INFO - Verified VN network id 12 for VN a3e8d173-e7fa-422d-bf39-ce993b0f8e0d 2026-02-08 19:09:43,204 - INFO - Verifications in API Server for VN ctest-vn4-82645361 passed 2026-02-08 19:09:43,204 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a3e8d173-e7fa-422d-bf39-ce993b0f8e0d 2026-02-08 19:09:43,213 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7fd30a15-084c-468b-8efd-5ad7ee2745b1 2026-02-08 19:09:43,219 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7fd30a15-084c-468b-8efd-5ad7ee2745b1 2026-02-08 19:09:43,225 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/db53a124-664b-4eaa-bf98-5c57893078d9 2026-02-08 19:09:43,240 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07028698:ctest-vn4-82645361', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07028698', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11810920318522507821', 'uuid-lslong': '13779271692432936461'}, 'enable': 'true', 'created': '2026-02-08T19:09:41', 'last-modified': '2026-02-08T19:09:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.740149'} 2026-02-08 19:09:43,246 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-08 19:09:43,246 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-82645361 passed 2026-02-08 19:09:43,247 - DEBUG - ====Verifying policy data for ctest-vn4-82645361 in API_Server ====== 2026-02-08 19:09:43,247 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-08 19:09:43,252 - DEBUG - Requesting: http://10.0.0.249:8082/domain/90687d1f-de58-44e3-9156-30fe74f161e1 2026-02-08 19:09:43,261 - DEBUG - Requesting: http://10.0.0.249:8082/project/022526c9-af1b-4d32-92d6-ce7164f131de 2026-02-08 19:09:43,337 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a3e8d173-e7fa-422d-bf39-ce993b0f8e0d 2026-02-08 19:09:43,351 - DEBUG - ==>Verifying data for policy with id: 07c5887f-98f8-41c0-8937-2f84dd58523d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07028698', 'ctest-policy1-77084071'] 2026-02-08 19:09:43,351 - INFO - VN ctest-vn4-82645361 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-08 19:09:43,351 - DEBUG - Verifying the vn in opserver 2026-02-08 19:09:43,351 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07028698:ctest-vn4-82645361 virtual network link through opserver 10.0.0.249 2026-02-08 19:09:43,351 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-02-08 19:09:43,658 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-02-08 19:09:43,723 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07028698:ctest-vn4-82645361', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07028698:ctest-vn4-82645361?flat'} 2026-02-08 19:09:43,723 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07028698:ctest-vn4-82645361 is found in opserver 2026-02-08 19:09:43,733 - DEBUG - Do not have enough data to verify VN in agent 2026-02-08 19:09:43,740 - DEBUG - VRF ids for VN ctest-vn4-82645361: {} 2026-02-08 19:09:43,741 - DEBUG - ====Verifying data for ctest-policy1-77084071 in API_Server ====== 2026-02-08 19:09:43,741 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-08 19:09:43,747 - DEBUG - Requesting: http://10.0.0.249:8082/domain/90687d1f-de58-44e3-9156-30fe74f161e1 2026-02-08 19:09:43,756 - DEBUG - Requesting: http://10.0.0.249:8082/project/022526c9-af1b-4d32-92d6-ce7164f131de 2026-02-08 19:09:43,831 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/07c5887f-98f8-41c0-8937-2f84dd58523d 2026-02-08 19:09:43,844 - INFO - Verified policy ctest-policy1-77084071 in API Server, Result: True 2026-02-08 19:09:43,845 - INFO - Done with setup and verification, moving onto test .. 2026-02-08 19:09:43,852 - INFO - Deleting VN ctest-vn4-82645361 2026-02-08 19:09:43,987 - DEBUG - Response for deleting network () 2026-02-08 19:09:43,987 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7fd30a15-084c-468b-8efd-5ad7ee2745b1 2026-02-08 19:09:43,991 - DEBUG - Response Code: 404 2026-02-08 19:09:43,991 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-08 19:09:43,996 - DEBUG - Requesting: http://10.0.0.249:8082/domain/90687d1f-de58-44e3-9156-30fe74f161e1 2026-02-08 19:09:44,054 - DEBUG - Requesting: http://10.0.0.249:8082/project/022526c9-af1b-4d32-92d6-ce7164f131de 2026-02-08 19:09:44,126 - INFO - Validated that VN ctest-vn4-82645361 is not found in API Server 2026-02-08 19:09:44,135 - DEBUG - VN ctest-vn4-82645361 is not present in Agent 10.0.0.249 2026-02-08 19:09:44,135 - INFO - Validated that VN ctest-vn4-82645361 is not in any agent 2026-02-08 19:09:44,150 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-82645361 info 2026-02-08 19:09:44,173 - INFO - Deleted policy ctest-policy1-77084071 2026-02-08 19:09:44,333 - DEBUG - policy ctest-policy1-77084071 is not found in API Server 2026-02-08 19:09:44,587 - DEBUG - No XMPP flaps were noticed during the test