2026-02-12 15:18:02,049 - INFO - Domain Default found not creating 2026-02-12 15:18:02,277 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-84021215 not found, creating it 2026-02-12 15:18:02,774 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-84021215, ID : 3951ef76-b2e7-4895-8442-800f492ecab2 2026-02-12 15:18:04,409 - INFO - ================================================================================ 2026-02-12 15:18:04,409 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 15:18:04,678 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-12 15:18:04,678 - INFO - Initial checks done. Running the testcase now 2026-02-12 15:18:04,679 - INFO - 2026-02-12 15:18:04,679 - INFO - ================================================================================ 2026-02-12 15:18:04,679 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 15:18:04,679 - 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-12 15:18:04,974 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-12 15:18:04,974 - INFO - Initial checks done. Running the testcase now 2026-02-12 15:18:04,974 - INFO - 2026-02-12 15:18:05,368 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84021215:ctest-vn4-42980682, 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-84021215:ctest-vn4-42980682, 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-84021215:ctest-vn4-42980682, 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-84021215:ctest-vn4-42980682, 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-12 15:18:05,994 - DEBUG - Response for create_network : {'network': {'id': 'fd6e776b-deb5-4c4b-916b-755bbd6952a0', 'name': 'ctest-vn4-42980682', 'tenant_id': '3951ef76b2e748958442800f492ecab2', 'project_id': '3951ef76b2e748958442800f492ecab2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84021215', 'ctest-vn4-42980682'], 'port_security_enabled': True, 'description': ''}} 2026-02-12 15:18:06,232 - DEBUG - Response for create_subnet : {'subnet': {'id': '9acce732-cc38-4cb9-8920-1731ee38debd', 'name': '', 'tenant_id': '3951ef76b2e748958442800f492ecab2', 'network_id': 'fd6e776b-deb5-4c4b-916b-755bbd6952a0', 'ip_version': 4, 'cidr': '208.143.164.192/26', 'allocation_pools': [{'start': '208.143.164.194', 'end': '208.143.164.254'}], 'gateway_ip': '208.143.164.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.143.164.194', 'tags': [], 'project_id': '3951ef76b2e748958442800f492ecab2'}} 2026-02-12 15:18:06,421 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae256109-c3ea-4817-821b-b04f448a7216', 'name': '', 'tenant_id': '3951ef76b2e748958442800f492ecab2', 'network_id': 'fd6e776b-deb5-4c4b-916b-755bbd6952a0', 'ip_version': 6, 'cidr': '290e:bb10:3929:41be:79bf:163b::/96', 'allocation_pools': [{'start': '290e:bb10:3929:41be:79bf:163b:0:2', 'end': '290e:bb10:3929:41be:79bf:163b:ffff:fffe'}], 'gateway_ip': '290e:bb10:3929:41be:79bf:163b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '290e:bb10:3929:41be:79bf:163b:0:2', 'tags': [], 'project_id': '3951ef76b2e748958442800f492ecab2'}} 2026-02-12 15:18:06,444 - INFO - Created VN ctest-vn4-42980682 2026-02-12 15:18:06,500 - DEBUG - VN ctest-vn4-42980682 UUID is fd6e776b-deb5-4c4b-916b-755bbd6952a0 2026-02-12 15:18:06,751 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fd6e776b-deb5-4c4b-916b-755bbd6952a0', 'name': 'ctest-vn4-42980682', 'tenant_id': '3951ef76b2e748958442800f492ecab2', 'project_id': '3951ef76b2e748958442800f492ecab2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9acce732-cc38-4cb9-8920-1731ee38debd', 'ae256109-c3ea-4817-821b-b04f448a7216'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84021215', 'ctest-vn4-42980682'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84021215', 'ctest-policy1-95211022']], 'subnet_ipam': [{'subnet_cidr': '208.143.164.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '290e:bb10:3929:41be:79bf:163b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-12 15:18:06,916 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-12 15:18:07,254 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-12 15:18:07,289 - DEBUG - Requesting: http://10.0.0.38:8082/domain/23f1bcbe-4093-4cbe-93d4-3853a4843fba 2026-02-12 15:18:07,302 - DEBUG - Requesting: http://10.0.0.38:8082/project/3951ef76-b2e7-4895-8442-800f492ecab2 2026-02-12 15:18:07,401 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fd6e776b-deb5-4c4b-916b-755bbd6952a0 2026-02-12 15:18:07,426 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fd6e776b-deb5-4c4b-916b-755bbd6952a0 2026-02-12 15:18:07,445 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f4963bcc-376e-4e14-a621-62ec3c6602cb 2026-02-12 15:18:07,456 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f4963bcc-376e-4e14-a621-62ec3c6602cb 2026-02-12 15:18:07,466 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/732698dc-6dbe-455c-b646-9040ccbd6602 2026-02-12 15:18:07,475 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 15:18:07,475 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fd6e776b-deb5-4c4b-916b-755bbd6952a0 2026-02-12 15:18:07,486 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f4963bcc-376e-4e14-a621-62ec3c6602cb 2026-02-12 15:18:07,505 - INFO - Verified VN network id 11 for VN fd6e776b-deb5-4c4b-916b-755bbd6952a0 2026-02-12 15:18:07,505 - INFO - Verifications in API Server for VN ctest-vn4-42980682 passed 2026-02-12 15:18:07,505 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fd6e776b-deb5-4c4b-916b-755bbd6952a0 2026-02-12 15:18:07,521 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f4963bcc-376e-4e14-a621-62ec3c6602cb 2026-02-12 15:18:07,534 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f4963bcc-376e-4e14-a621-62ec3c6602cb 2026-02-12 15:18:07,546 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/732698dc-6dbe-455c-b646-9040ccbd6602 2026-02-12 15:18:07,562 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84021215:ctest-vn4-42980682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-84021215', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18261664844215569483', 'uuid-lslong': '10478597994887860896'}, 'enable': 'true', 'created': '2026-02-12T15:18:05', 'last-modified': '2026-02-12T15:18:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.856347'} 2026-02-12 15:18:07,573 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 15:18:07,573 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42980682 passed 2026-02-12 15:18:07,574 - DEBUG - ====Verifying policy data for ctest-vn4-42980682 in API_Server ====== 2026-02-12 15:18:07,574 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-12 15:18:07,583 - DEBUG - Requesting: http://10.0.0.38:8082/domain/23f1bcbe-4093-4cbe-93d4-3853a4843fba 2026-02-12 15:18:07,599 - DEBUG - Requesting: http://10.0.0.38:8082/project/3951ef76-b2e7-4895-8442-800f492ecab2 2026-02-12 15:18:07,685 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fd6e776b-deb5-4c4b-916b-755bbd6952a0 2026-02-12 15:18:07,704 - DEBUG - ==>Verifying data for policy with id: 90fffe80-874f-4db1-aa06-7c658b0cd4b7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84021215', 'ctest-policy1-95211022'] 2026-02-12 15:18:07,704 - INFO - VN ctest-vn4-42980682 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-12 15:18:07,704 - DEBUG - Verifying the vn in opserver 2026-02-12 15:18:07,704 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84021215:ctest-vn4-42980682 virtual network link through opserver 10.0.0.38 2026-02-12 15:18:07,705 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-12 15:18:08,032 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-12 15:18:08,114 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84021215:ctest-vn4-42980682', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84021215:ctest-vn4-42980682?flat'} 2026-02-12 15:18:08,114 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84021215:ctest-vn4-42980682 is found in opserver 2026-02-12 15:18:08,137 - DEBUG - Do not have enough data to verify VN in agent 2026-02-12 15:18:08,147 - DEBUG - VRF ids for VN ctest-vn4-42980682: {} 2026-02-12 15:18:08,148 - DEBUG - ====Verifying data for ctest-policy1-95211022 in API_Server ====== 2026-02-12 15:18:08,148 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-12 15:18:08,158 - DEBUG - Requesting: http://10.0.0.38:8082/domain/23f1bcbe-4093-4cbe-93d4-3853a4843fba 2026-02-12 15:18:08,181 - DEBUG - Requesting: http://10.0.0.38:8082/project/3951ef76-b2e7-4895-8442-800f492ecab2 2026-02-12 15:18:08,299 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/90fffe80-874f-4db1-aa06-7c658b0cd4b7 2026-02-12 15:18:08,319 - INFO - Verified policy ctest-policy1-95211022 in API Server, Result: True 2026-02-12 15:18:08,319 - INFO - Done with setup and verification, moving onto test .. 2026-02-12 15:18:08,334 - INFO - Deleting VN ctest-vn4-42980682 2026-02-12 15:18:08,487 - DEBUG - Response for deleting network () 2026-02-12 15:18:08,487 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f4963bcc-376e-4e14-a621-62ec3c6602cb 2026-02-12 15:18:08,495 - DEBUG - Response Code: 404 2026-02-12 15:18:08,496 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-12 15:18:08,508 - DEBUG - Requesting: http://10.0.0.38:8082/domain/23f1bcbe-4093-4cbe-93d4-3853a4843fba 2026-02-12 15:18:08,564 - DEBUG - Requesting: http://10.0.0.38:8082/project/3951ef76-b2e7-4895-8442-800f492ecab2 2026-02-12 15:18:08,644 - INFO - Validated that VN ctest-vn4-42980682 is not found in API Server 2026-02-12 15:18:08,658 - DEBUG - VN ctest-vn4-42980682 is not present in Agent 10.0.0.38 2026-02-12 15:18:08,658 - INFO - Validated that VN ctest-vn4-42980682 is not in any agent 2026-02-12 15:18:08,677 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42980682 info 2026-02-12 15:18:08,728 - INFO - Deleted policy ctest-policy1-95211022 2026-02-12 15:18:08,908 - DEBUG - policy ctest-policy1-95211022 is not found in API Server 2026-02-12 15:18:09,188 - DEBUG - No XMPP flaps were noticed during the test
2026-02-12 15:18:09,189 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-12 15:18:09,189 - INFO - -------------------------------------------------------------------------------- 2026-02-12 15:18:09,505 - DEBUG - No XMPP flaps were noticed during the test
2026-02-12 15:18:09,506 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-12 15:18:09,506 - INFO - -------------------------------------------------------------------------------- 2026-02-12 15:18:10,374 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-84021215, ID : 3951ef76-b2e7-4895-8442-800f492ecab2