2026-02-20 02:40:10,535 - INFO - Domain Default found not creating 2026-02-20 02:40:10,717 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-65507673 not found, creating it 2026-02-20 02:40:11,168 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-65507673, ID : a34ba42c-9674-478f-805f-373db2946676 2026-02-20 02:40:12,646 - INFO - ================================================================================ 2026-02-20 02:40:12,646 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 02:40:12,903 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2026-02-20 02:40:12,903 - INFO - Initial checks done. Running the testcase now 2026-02-20 02:40:12,903 - INFO - 2026-02-20 02:40:12,903 - INFO - ================================================================================ 2026-02-20 02:40:12,903 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 02:40:12,903 - 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-20 02:40:13,196 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2026-02-20 02:40:13,196 - INFO - Initial checks done. Running the testcase now 2026-02-20 02:40:13,196 - INFO - 2026-02-20 02:40:13,573 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65507673:ctest-vn4-59798723, 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-65507673:ctest-vn4-59798723, 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-65507673:ctest-vn4-59798723, 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-65507673:ctest-vn4-59798723, 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-20 02:40:14,089 - DEBUG - Response for create_network : {'network': {'id': '305865ec-314a-4d42-8e9a-25be1fcbbd99', 'name': 'ctest-vn4-59798723', 'tenant_id': 'a34ba42c9674478f805f373db2946676', 'project_id': 'a34ba42c9674478f805f373db2946676', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65507673', 'ctest-vn4-59798723'], 'port_security_enabled': True, 'description': ''}} 2026-02-20 02:40:14,290 - DEBUG - Response for create_subnet : {'subnet': {'id': '72d0578b-92be-40e4-89b3-09641558b4be', 'name': '', 'tenant_id': 'a34ba42c9674478f805f373db2946676', 'network_id': '305865ec-314a-4d42-8e9a-25be1fcbbd99', 'ip_version': 4, 'cidr': '181.94.16.192/26', 'allocation_pools': [{'start': '181.94.16.194', 'end': '181.94.16.254'}], 'gateway_ip': '181.94.16.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.94.16.194', 'tags': [], 'project_id': 'a34ba42c9674478f805f373db2946676'}} 2026-02-20 02:40:14,475 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6be0eac-f7ba-4630-a5e8-c52a9c3f226a', 'name': '', 'tenant_id': 'a34ba42c9674478f805f373db2946676', 'network_id': '305865ec-314a-4d42-8e9a-25be1fcbbd99', 'ip_version': 6, 'cidr': '377f:958b:8fad:f56e:9604:3044::/96', 'allocation_pools': [{'start': '377f:958b:8fad:f56e:9604:3044:0:2', 'end': '377f:958b:8fad:f56e:9604:3044:ffff:fffe'}], 'gateway_ip': '377f:958b:8fad:f56e:9604:3044:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '377f:958b:8fad:f56e:9604:3044:0:2', 'tags': [], 'project_id': 'a34ba42c9674478f805f373db2946676'}} 2026-02-20 02:40:14,491 - INFO - Created VN ctest-vn4-59798723 2026-02-20 02:40:14,542 - DEBUG - VN ctest-vn4-59798723 UUID is 305865ec-314a-4d42-8e9a-25be1fcbbd99 2026-02-20 02:40:14,739 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '305865ec-314a-4d42-8e9a-25be1fcbbd99', 'name': 'ctest-vn4-59798723', 'tenant_id': 'a34ba42c9674478f805f373db2946676', 'project_id': 'a34ba42c9674478f805f373db2946676', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['72d0578b-92be-40e4-89b3-09641558b4be', 'b6be0eac-f7ba-4630-a5e8-c52a9c3f226a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65507673', 'ctest-vn4-59798723'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65507673', 'ctest-policy1-70950175']], 'subnet_ipam': [{'subnet_cidr': '181.94.16.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '377f:958b:8fad:f56e:9604:3044::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-20 02:40:14,902 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-20 02:40:15,204 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-20 02:40:15,237 - DEBUG - Requesting: http://10.0.0.27:8082/domain/38ea807c-b0d9-40f8-b924-260a3021ef0b 2026-02-20 02:40:15,248 - DEBUG - Requesting: http://10.0.0.27:8082/project/a34ba42c-9674-478f-805f-373db2946676 2026-02-20 02:40:15,315 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/305865ec-314a-4d42-8e9a-25be1fcbbd99 2026-02-20 02:40:15,325 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/305865ec-314a-4d42-8e9a-25be1fcbbd99 2026-02-20 02:40:15,333 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a1906dd2-d103-4a36-9b55-2f2770ef016a 2026-02-20 02:40:15,339 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a1906dd2-d103-4a36-9b55-2f2770ef016a 2026-02-20 02:40:15,344 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ea75f7f1-6712-476d-9523-de6a9481cce0 2026-02-20 02:40:15,350 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 02:40:15,350 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/305865ec-314a-4d42-8e9a-25be1fcbbd99 2026-02-20 02:40:15,360 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a1906dd2-d103-4a36-9b55-2f2770ef016a 2026-02-20 02:40:15,373 - INFO - Verified VN network id 12 for VN 305865ec-314a-4d42-8e9a-25be1fcbbd99 2026-02-20 02:40:15,374 - INFO - Verifications in API Server for VN ctest-vn4-59798723 passed 2026-02-20 02:40:15,374 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/305865ec-314a-4d42-8e9a-25be1fcbbd99 2026-02-20 02:40:15,382 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a1906dd2-d103-4a36-9b55-2f2770ef016a 2026-02-20 02:40:15,388 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a1906dd2-d103-4a36-9b55-2f2770ef016a 2026-02-20 02:40:15,394 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ea75f7f1-6712-476d-9523-de6a9481cce0 2026-02-20 02:40:15,404 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65507673:ctest-vn4-59798723', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65507673', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3483646376884718914', 'uuid-lslong': '10275566998306667929'}, 'enable': 'true', 'created': '2026-02-20T02:40:14', 'last-modified': '2026-02-20T02:40:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690154'} 2026-02-20 02:40:15,409 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 02:40:15,409 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-59798723 passed 2026-02-20 02:40:15,409 - DEBUG - ====Verifying policy data for ctest-vn4-59798723 in API_Server ====== 2026-02-20 02:40:15,409 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-20 02:40:15,414 - DEBUG - Requesting: http://10.0.0.27:8082/domain/38ea807c-b0d9-40f8-b924-260a3021ef0b 2026-02-20 02:40:15,424 - DEBUG - Requesting: http://10.0.0.27:8082/project/a34ba42c-9674-478f-805f-373db2946676 2026-02-20 02:40:15,493 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/305865ec-314a-4d42-8e9a-25be1fcbbd99 2026-02-20 02:40:15,503 - DEBUG - ==>Verifying data for policy with id: b9cc78ea-9dac-4fef-8aca-d80196144767, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65507673', 'ctest-policy1-70950175'] 2026-02-20 02:40:15,503 - INFO - VN ctest-vn4-59798723 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-20 02:40:15,503 - DEBUG - Verifying the vn in opserver 2026-02-20 02:40:15,504 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65507673:ctest-vn4-59798723 virtual network link through opserver 10.0.0.27 2026-02-20 02:40:15,504 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-02-20 02:40:15,804 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-02-20 02:40:15,865 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65507673:ctest-vn4-59798723', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65507673:ctest-vn4-59798723?flat'} 2026-02-20 02:40:15,865 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65507673:ctest-vn4-59798723 is found in opserver 2026-02-20 02:40:15,874 - DEBUG - Do not have enough data to verify VN in agent 2026-02-20 02:40:15,879 - DEBUG - VRF ids for VN ctest-vn4-59798723: {} 2026-02-20 02:40:15,880 - DEBUG - ====Verifying data for ctest-policy1-70950175 in API_Server ====== 2026-02-20 02:40:15,880 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-20 02:40:15,885 - DEBUG - Requesting: http://10.0.0.27:8082/domain/38ea807c-b0d9-40f8-b924-260a3021ef0b 2026-02-20 02:40:15,896 - DEBUG - Requesting: http://10.0.0.27:8082/project/a34ba42c-9674-478f-805f-373db2946676 2026-02-20 02:40:15,973 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/b9cc78ea-9dac-4fef-8aca-d80196144767 2026-02-20 02:40:15,982 - INFO - Verified policy ctest-policy1-70950175 in API Server, Result: True 2026-02-20 02:40:15,982 - INFO - Done with setup and verification, moving onto test .. 2026-02-20 02:40:15,988 - INFO - Deleting VN ctest-vn4-59798723 2026-02-20 02:40:16,091 - DEBUG - Response for deleting network () 2026-02-20 02:40:16,091 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a1906dd2-d103-4a36-9b55-2f2770ef016a 2026-02-20 02:40:16,096 - DEBUG - Response Code: 404 2026-02-20 02:40:16,096 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-20 02:40:16,101 - DEBUG - Requesting: http://10.0.0.27:8082/domain/38ea807c-b0d9-40f8-b924-260a3021ef0b 2026-02-20 02:40:16,150 - DEBUG - Requesting: http://10.0.0.27:8082/project/a34ba42c-9674-478f-805f-373db2946676 2026-02-20 02:40:16,220 - INFO - Validated that VN ctest-vn4-59798723 is not found in API Server 2026-02-20 02:40:16,230 - DEBUG - VN ctest-vn4-59798723 is not present in Agent 10.0.0.27 2026-02-20 02:40:16,230 - INFO - Validated that VN ctest-vn4-59798723 is not in any agent 2026-02-20 02:40:16,245 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-59798723 info 2026-02-20 02:40:16,274 - INFO - Deleted policy ctest-policy1-70950175 2026-02-20 02:40:16,438 - DEBUG - policy ctest-policy1-70950175 is not found in API Server 2026-02-20 02:40:16,690 - DEBUG - No XMPP flaps were noticed during the test
2026-02-20 02:40:16,690 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-20 02:40:16,691 - INFO - -------------------------------------------------------------------------------- 2026-02-20 02:40:16,990 - DEBUG - No XMPP flaps were noticed during the test
2026-02-20 02:40:16,990 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-20 02:40:16,990 - INFO - -------------------------------------------------------------------------------- 2026-02-20 02:40:17,724 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-65507673, ID : a34ba42c-9674-478f-805f-373db2946676