2026-02-23 19:05:59,093 - INFO - Domain Default found not creating 2026-02-23 19:05:59,281 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-24598725 not found, creating it 2026-02-23 19:05:59,768 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-24598725, ID : e7e25e89-3e56-434d-aa1e-42ea2655acf7 2026-02-23 19:06:01,283 - INFO - ================================================================================ 2026-02-23 19:06:01,283 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-23 19:06:01,558 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-23 19:06:01,558 - INFO - Initial checks done. Running the testcase now 2026-02-23 19:06:01,558 - INFO - 2026-02-23 19:06:01,558 - INFO - ================================================================================ 2026-02-23 19:06:01,558 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-23 19:06:01,558 - 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-23 19:06:01,866 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-23 19:06:01,866 - INFO - Initial checks done. Running the testcase now 2026-02-23 19:06:01,866 - INFO - 2026-02-23 19:06:02,236 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24598725:ctest-vn4-77171650, 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-24598725:ctest-vn4-77171650, 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-24598725:ctest-vn4-77171650, 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-24598725:ctest-vn4-77171650, 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-23 19:06:02,780 - DEBUG - Response for create_network : {'network': {'id': '5403c406-6940-4f8d-a6e9-f02df934a188', 'name': 'ctest-vn4-77171650', 'tenant_id': 'e7e25e893e56434daa1e42ea2655acf7', 'project_id': 'e7e25e893e56434daa1e42ea2655acf7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24598725', 'ctest-vn4-77171650'], 'port_security_enabled': True, 'description': ''}} 2026-02-23 19:06:03,006 - DEBUG - Response for create_subnet : {'subnet': {'id': '6161dfef-4373-4cba-8e6a-7045031aa3aa', 'name': '', 'tenant_id': 'e7e25e893e56434daa1e42ea2655acf7', 'network_id': '5403c406-6940-4f8d-a6e9-f02df934a188', 'ip_version': 4, 'cidr': '126.60.251.64/26', 'allocation_pools': [{'start': '126.60.251.66', 'end': '126.60.251.126'}], 'gateway_ip': '126.60.251.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.60.251.66', 'tags': [], 'project_id': 'e7e25e893e56434daa1e42ea2655acf7'}} 2026-02-23 19:06:03,182 - DEBUG - Response for create_subnet : {'subnet': {'id': '4aa9ef03-26df-4b78-bac1-517e1406ca32', 'name': '', 'tenant_id': 'e7e25e893e56434daa1e42ea2655acf7', 'network_id': '5403c406-6940-4f8d-a6e9-f02df934a188', 'ip_version': 6, 'cidr': '2b91:53d2:3015:ac55:7ec8:a0a4::/96', 'allocation_pools': [{'start': '2b91:53d2:3015:ac55:7ec8:a0a4:0:2', 'end': '2b91:53d2:3015:ac55:7ec8:a0a4:ffff:fffe'}], 'gateway_ip': '2b91:53d2:3015:ac55:7ec8:a0a4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b91:53d2:3015:ac55:7ec8:a0a4:0:2', 'tags': [], 'project_id': 'e7e25e893e56434daa1e42ea2655acf7'}} 2026-02-23 19:06:03,205 - INFO - Created VN ctest-vn4-77171650 2026-02-23 19:06:03,258 - DEBUG - VN ctest-vn4-77171650 UUID is 5403c406-6940-4f8d-a6e9-f02df934a188 2026-02-23 19:06:03,475 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5403c406-6940-4f8d-a6e9-f02df934a188', 'name': 'ctest-vn4-77171650', 'tenant_id': 'e7e25e893e56434daa1e42ea2655acf7', 'project_id': 'e7e25e893e56434daa1e42ea2655acf7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6161dfef-4373-4cba-8e6a-7045031aa3aa', '4aa9ef03-26df-4b78-bac1-517e1406ca32'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24598725', 'ctest-vn4-77171650'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24598725', 'ctest-policy1-55202510']], 'subnet_ipam': [{'subnet_cidr': '126.60.251.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b91:53d2:3015:ac55:7ec8:a0a4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-23 19:06:03,639 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-23 19:06:03,932 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-23 19:06:03,969 - DEBUG - Requesting: http://10.0.0.38:8082/domain/df73923b-f7bc-4dd3-a681-5519cdc0c4dc 2026-02-23 19:06:03,984 - DEBUG - Requesting: http://10.0.0.38:8082/project/e7e25e89-3e56-434d-aa1e-42ea2655acf7 2026-02-23 19:06:04,070 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5403c406-6940-4f8d-a6e9-f02df934a188 2026-02-23 19:06:04,085 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5403c406-6940-4f8d-a6e9-f02df934a188 2026-02-23 19:06:04,095 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a96331c-4b9f-4e73-8245-75287f9314fe 2026-02-23 19:06:04,104 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a96331c-4b9f-4e73-8245-75287f9314fe 2026-02-23 19:06:04,112 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/518de8da-5018-4daa-a9fc-c976050e5cca 2026-02-23 19:06:04,118 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 19:06:04,118 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5403c406-6940-4f8d-a6e9-f02df934a188 2026-02-23 19:06:04,126 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a96331c-4b9f-4e73-8245-75287f9314fe 2026-02-23 19:06:04,140 - INFO - Verified VN network id 9 for VN 5403c406-6940-4f8d-a6e9-f02df934a188 2026-02-23 19:06:04,140 - INFO - Verifications in API Server for VN ctest-vn4-77171650 passed 2026-02-23 19:06:04,140 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5403c406-6940-4f8d-a6e9-f02df934a188 2026-02-23 19:06:04,150 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a96331c-4b9f-4e73-8245-75287f9314fe 2026-02-23 19:06:04,156 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a96331c-4b9f-4e73-8245-75287f9314fe 2026-02-23 19:06:04,162 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/518de8da-5018-4daa-a9fc-c976050e5cca 2026-02-23 19:06:04,174 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24598725:ctest-vn4-77171650', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-24598725', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6053897855930748813', 'uuid-lslong': '12027408360114790792'}, 'enable': 'true', 'created': '2026-02-23T19:06:02', 'last-modified': '2026-02-23T19:06:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.735588'} 2026-02-23 19:06:04,180 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 19:06:04,180 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-77171650 passed 2026-02-23 19:06:04,180 - DEBUG - ====Verifying policy data for ctest-vn4-77171650 in API_Server ====== 2026-02-23 19:06:04,180 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-23 19:06:04,185 - DEBUG - Requesting: http://10.0.0.38:8082/domain/df73923b-f7bc-4dd3-a681-5519cdc0c4dc 2026-02-23 19:06:04,194 - DEBUG - Requesting: http://10.0.0.38:8082/project/e7e25e89-3e56-434d-aa1e-42ea2655acf7 2026-02-23 19:06:04,269 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5403c406-6940-4f8d-a6e9-f02df934a188 2026-02-23 19:06:04,279 - DEBUG - ==>Verifying data for policy with id: ed5f12dc-9385-4360-a687-a783339d2482, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24598725', 'ctest-policy1-55202510'] 2026-02-23 19:06:04,279 - INFO - VN ctest-vn4-77171650 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-23 19:06:04,279 - DEBUG - Verifying the vn in opserver 2026-02-23 19:06:04,279 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24598725:ctest-vn4-77171650 virtual network link through opserver 10.0.0.38 2026-02-23 19:06:04,279 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-23 19:06:04,588 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-23 19:06:04,658 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24598725:ctest-vn4-77171650', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24598725:ctest-vn4-77171650?flat'} 2026-02-23 19:06:04,658 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24598725:ctest-vn4-77171650 is found in opserver 2026-02-23 19:06:04,667 - DEBUG - Do not have enough data to verify VN in agent 2026-02-23 19:06:04,671 - DEBUG - VRF ids for VN ctest-vn4-77171650: {} 2026-02-23 19:06:04,671 - DEBUG - ====Verifying data for ctest-policy1-55202510 in API_Server ====== 2026-02-23 19:06:04,671 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-23 19:06:04,676 - DEBUG - Requesting: http://10.0.0.38:8082/domain/df73923b-f7bc-4dd3-a681-5519cdc0c4dc 2026-02-23 19:06:04,686 - DEBUG - Requesting: http://10.0.0.38:8082/project/e7e25e89-3e56-434d-aa1e-42ea2655acf7 2026-02-23 19:06:04,757 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/ed5f12dc-9385-4360-a687-a783339d2482 2026-02-23 19:06:04,766 - INFO - Verified policy ctest-policy1-55202510 in API Server, Result: True 2026-02-23 19:06:04,766 - INFO - Done with setup and verification, moving onto test .. 2026-02-23 19:06:04,774 - INFO - Deleting VN ctest-vn4-77171650 2026-02-23 19:06:04,911 - DEBUG - Response for deleting network () 2026-02-23 19:06:04,911 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9a96331c-4b9f-4e73-8245-75287f9314fe 2026-02-23 19:06:04,916 - DEBUG - Response Code: 404 2026-02-23 19:06:04,917 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-23 19:06:04,922 - DEBUG - Requesting: http://10.0.0.38:8082/domain/df73923b-f7bc-4dd3-a681-5519cdc0c4dc 2026-02-23 19:06:04,975 - DEBUG - Requesting: http://10.0.0.38:8082/project/e7e25e89-3e56-434d-aa1e-42ea2655acf7 2026-02-23 19:06:05,052 - INFO - Validated that VN ctest-vn4-77171650 is not found in API Server 2026-02-23 19:06:05,064 - DEBUG - VN ctest-vn4-77171650 is not present in Agent 10.0.0.38 2026-02-23 19:06:05,064 - INFO - Validated that VN ctest-vn4-77171650 is not in any agent 2026-02-23 19:06:05,081 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-77171650 info 2026-02-23 19:06:05,112 - INFO - Deleted policy ctest-policy1-55202510 2026-02-23 19:06:05,282 - DEBUG - policy ctest-policy1-55202510 is not found in API Server 2026-02-23 19:06:05,539 - DEBUG - No XMPP flaps were noticed during the test
2026-02-23 19:06:05,539 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-23 19:06:05,539 - INFO - -------------------------------------------------------------------------------- 2026-02-23 19:06:05,833 - DEBUG - No XMPP flaps were noticed during the test
2026-02-23 19:06:05,833 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-23 19:06:05,834 - INFO - -------------------------------------------------------------------------------- 2026-02-23 19:06:06,542 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-24598725, ID : e7e25e89-3e56-434d-aa1e-42ea2655acf7