2026-12-02 17:04:58,392 - INFO - Domain Default found not creating 2026-12-02 17:04:58,580 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-59408585 not found, creating it 2026-12-02 17:04:59,109 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-59408585, ID : 7a3bdc80-eeb5-4c7f-a425-02c085f652f5 2026-12-02 17:05:00,786 - INFO - ================================================================================ 2026-12-02 17:05:00,787 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-12-02 17:05:01,127 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-12-02 17:05:01,127 - INFO - Initial checks done. Running the testcase now 2026-12-02 17:05:01,127 - INFO - 2026-12-02 17:05:01,127 - INFO - ================================================================================ 2026-12-02 17:05:01,127 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-12-02 17:05:01,127 - 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-12-02 17:05:01,424 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-12-02 17:05:01,424 - INFO - Initial checks done. Running the testcase now 2026-12-02 17:05:01,424 - INFO - 2026-12-02 17:05:01,892 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59408585:ctest-vn4-90620912, 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-59408585:ctest-vn4-90620912, 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-59408585:ctest-vn4-90620912, 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-59408585:ctest-vn4-90620912, 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-12-02 17:05:02,399 - DEBUG - Response for create_network : {'network': {'id': 'ec0ae882-08ca-4db9-b504-2bd1c4e4ff98', 'name': 'ctest-vn4-90620912', 'tenant_id': '7a3bdc80eeb54c7fa42502c085f652f5', 'project_id': '7a3bdc80eeb54c7fa42502c085f652f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59408585', 'ctest-vn4-90620912'], 'port_security_enabled': True, 'description': ''}} 2026-12-02 17:05:02,604 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a8fb9df-8530-40fc-8c6d-86981c16b529', 'name': '', 'tenant_id': '7a3bdc80eeb54c7fa42502c085f652f5', 'network_id': 'ec0ae882-08ca-4db9-b504-2bd1c4e4ff98', 'ip_version': 4, 'cidr': '146.82.177.64/26', 'allocation_pools': [{'start': '146.82.177.66', 'end': '146.82.177.126'}], 'gateway_ip': '146.82.177.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.82.177.66', 'tags': [], 'project_id': '7a3bdc80eeb54c7fa42502c085f652f5'}} 2026-12-02 17:05:02,737 - DEBUG - Response for create_subnet : {'subnet': {'id': '60801783-5501-4306-8bc0-4e5d49f6b919', 'name': '', 'tenant_id': '7a3bdc80eeb54c7fa42502c085f652f5', 'network_id': 'ec0ae882-08ca-4db9-b504-2bd1c4e4ff98', 'ip_version': 6, 'cidr': '3206:c037:babf:968c:12e8:1be9::/96', 'allocation_pools': [{'start': '3206:c037:babf:968c:12e8:1be9:0:2', 'end': '3206:c037:babf:968c:12e8:1be9:ffff:fffe'}], 'gateway_ip': '3206:c037:babf:968c:12e8:1be9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3206:c037:babf:968c:12e8:1be9:0:2', 'tags': [], 'project_id': '7a3bdc80eeb54c7fa42502c085f652f5'}} 2026-12-02 17:05:02,753 - INFO - Created VN ctest-vn4-90620912 2026-12-02 17:05:02,804 - DEBUG - VN ctest-vn4-90620912 UUID is ec0ae882-08ca-4db9-b504-2bd1c4e4ff98 2026-12-02 17:05:02,997 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec0ae882-08ca-4db9-b504-2bd1c4e4ff98', 'name': 'ctest-vn4-90620912', 'tenant_id': '7a3bdc80eeb54c7fa42502c085f652f5', 'project_id': '7a3bdc80eeb54c7fa42502c085f652f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['5a8fb9df-8530-40fc-8c6d-86981c16b529', '60801783-5501-4306-8bc0-4e5d49f6b919'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59408585', 'ctest-vn4-90620912'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59408585', 'ctest-policy1-91538465']], 'subnet_ipam': [{'subnet_cidr': '146.82.177.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3206:c037:babf:968c:12e8:1be9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-12-02 17:05:03,156 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-12-02 17:05:03,525 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-12-02 17:05:03,559 - DEBUG - Requesting: http://10.0.0.161:8082/domain/0ed25494-23bb-4a96-86d3-01a99b0f6289 2026-12-02 17:05:03,572 - DEBUG - Requesting: http://10.0.0.161:8082/project/7a3bdc80-eeb5-4c7f-a425-02c085f652f5 2026-12-02 17:05:03,644 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/ec0ae882-08ca-4db9-b504-2bd1c4e4ff98 2026-12-02 17:05:03,656 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/ec0ae882-08ca-4db9-b504-2bd1c4e4ff98 2026-12-02 17:05:03,665 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/2ffeb91c-3794-4dee-99bf-d3dcb1fa0349 2026-12-02 17:05:03,672 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/2ffeb91c-3794-4dee-99bf-d3dcb1fa0349 2026-12-02 17:05:03,678 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/dbffeb60-bae5-4482-b1b0-2fdd57f05ffa 2026-12-02 17:05:03,684 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-12-02 17:05:03,684 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/ec0ae882-08ca-4db9-b504-2bd1c4e4ff98 2026-12-02 17:05:03,696 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/2ffeb91c-3794-4dee-99bf-d3dcb1fa0349 2026-12-02 17:05:03,709 - INFO - Verified VN network id 12 for VN ec0ae882-08ca-4db9-b504-2bd1c4e4ff98 2026-12-02 17:05:03,710 - INFO - Verifications in API Server for VN ctest-vn4-90620912 passed 2026-12-02 17:05:03,710 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/ec0ae882-08ca-4db9-b504-2bd1c4e4ff98 2026-12-02 17:05:03,719 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/2ffeb91c-3794-4dee-99bf-d3dcb1fa0349 2026-12-02 17:05:03,725 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/2ffeb91c-3794-4dee-99bf-d3dcb1fa0349 2026-12-02 17:05:03,731 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/dbffeb60-bae5-4482-b1b0-2fdd57f05ffa 2026-12-02 17:05:03,742 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59408585:ctest-vn4-90620912', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-59408585', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17008662587908967865', 'uuid-lslong': '13043598600723300248'}, 'enable': 'true', 'created': '2026-12-02T17:05:02', 'last-modified': '2026-12-02T17:05:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.773892'} 2026-12-02 17:05:03,749 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-12-02 17:05:03,749 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-90620912 passed 2026-12-02 17:05:03,749 - DEBUG - ====Verifying policy data for ctest-vn4-90620912 in API_Server ====== 2026-12-02 17:05:03,749 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-12-02 17:05:03,754 - DEBUG - Requesting: http://10.0.0.161:8082/domain/0ed25494-23bb-4a96-86d3-01a99b0f6289 2026-12-02 17:05:03,764 - DEBUG - Requesting: http://10.0.0.161:8082/project/7a3bdc80-eeb5-4c7f-a425-02c085f652f5 2026-12-02 17:05:03,835 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/ec0ae882-08ca-4db9-b504-2bd1c4e4ff98 2026-12-02 17:05:03,845 - DEBUG - ==>Verifying data for policy with id: 4ae81b43-77e6-4e0e-9927-35d66ff90b5f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59408585', 'ctest-policy1-91538465'] 2026-12-02 17:05:03,845 - INFO - VN ctest-vn4-90620912 Policy verification: verify_vn_policy_in_api_server, status: True 2026-12-02 17:05:03,845 - DEBUG - Verifying the vn in opserver 2026-12-02 17:05:03,845 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59408585:ctest-vn4-90620912 virtual network link through opserver 10.0.0.161 2026-12-02 17:05:03,845 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-12-02 17:05:04,223 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-12-02 17:05:04,289 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59408585:ctest-vn4-90620912', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59408585:ctest-vn4-90620912?flat'} 2026-12-02 17:05:04,289 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59408585:ctest-vn4-90620912 is found in opserver 2026-12-02 17:05:04,299 - DEBUG - Do not have enough data to verify VN in agent 2026-12-02 17:05:04,304 - DEBUG - VRF ids for VN ctest-vn4-90620912: {} 2026-12-02 17:05:04,305 - DEBUG - ====Verifying data for ctest-policy1-91538465 in API_Server ====== 2026-12-02 17:05:04,305 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-12-02 17:05:04,310 - DEBUG - Requesting: http://10.0.0.161:8082/domain/0ed25494-23bb-4a96-86d3-01a99b0f6289 2026-12-02 17:05:04,322 - DEBUG - Requesting: http://10.0.0.161:8082/project/7a3bdc80-eeb5-4c7f-a425-02c085f652f5 2026-12-02 17:05:04,394 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/4ae81b43-77e6-4e0e-9927-35d66ff90b5f 2026-12-02 17:05:04,405 - INFO - Verified policy ctest-policy1-91538465 in API Server, Result: True 2026-12-02 17:05:04,405 - INFO - Done with setup and verification, moving onto test .. 2026-12-02 17:05:04,413 - INFO - Deleting VN ctest-vn4-90620912 2026-12-02 17:05:04,550 - DEBUG - Response for deleting network () 2026-12-02 17:05:04,550 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/2ffeb91c-3794-4dee-99bf-d3dcb1fa0349 2026-12-02 17:05:04,556 - DEBUG - Response Code: 404 2026-12-02 17:05:04,556 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-12-02 17:05:04,561 - DEBUG - Requesting: http://10.0.0.161:8082/domain/0ed25494-23bb-4a96-86d3-01a99b0f6289 2026-12-02 17:05:04,614 - DEBUG - Requesting: http://10.0.0.161:8082/project/7a3bdc80-eeb5-4c7f-a425-02c085f652f5 2026-12-02 17:05:04,693 - INFO - Validated that VN ctest-vn4-90620912 is not found in API Server 2026-12-02 17:05:04,702 - DEBUG - VN ctest-vn4-90620912 is not present in Agent 10.0.0.161 2026-12-02 17:05:04,702 - INFO - Validated that VN ctest-vn4-90620912 is not in any agent 2026-12-02 17:05:04,716 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-90620912 info 2026-12-02 17:05:04,750 - INFO - Deleted policy ctest-policy1-91538465 2026-12-02 17:05:04,916 - DEBUG - policy ctest-policy1-91538465 is not found in API Server 2026-12-02 17:05:05,169 - DEBUG - No XMPP flaps were noticed during the test
2026-12-02 17:05:05,170 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-12-02 17:05:05,170 - INFO - -------------------------------------------------------------------------------- 2026-12-02 17:05:05,461 - DEBUG - No XMPP flaps were noticed during the test
2026-12-02 17:05:05,461 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-12-02 17:05:05,461 - INFO - -------------------------------------------------------------------------------- 2026-12-02 17:05:06,241 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-59408585, ID : 7a3bdc80-eeb5-4c7f-a425-02c085f652f5