2026-02-20 16:34:21,302 - INFO - Domain Default found not creating 2026-02-20 16:34:21,476 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-46341467 not found, creating it 2026-02-20 16:34:22,000 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-46341467, ID : 208fe039-530d-44aa-b0f6-c4a945bb8110 2026-02-20 16:34:23,471 - INFO - ================================================================================ 2026-02-20 16:34:23,471 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 16:34:23,757 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-20 16:34:23,757 - INFO - Initial checks done. Running the testcase now 2026-02-20 16:34:23,757 - INFO - 2026-02-20 16:34:23,757 - INFO - ================================================================================ 2026-02-20 16:34:23,757 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 16:34:23,757 - 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 16:34:24,047 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-20 16:34:24,047 - INFO - Initial checks done. Running the testcase now 2026-02-20 16:34:24,047 - INFO - 2026-02-20 16:34:24,420 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46341467:ctest-vn4-04005508, 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-46341467:ctest-vn4-04005508, 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-46341467:ctest-vn4-04005508, 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-46341467:ctest-vn4-04005508, 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 16:34:24,944 - DEBUG - Response for create_network : {'network': {'id': '50769433-f9a7-497f-a247-24b1d701698b', 'name': 'ctest-vn4-04005508', 'tenant_id': '208fe039530d44aab0f6c4a945bb8110', 'project_id': '208fe039530d44aab0f6c4a945bb8110', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46341467', 'ctest-vn4-04005508'], 'port_security_enabled': True, 'description': ''}} 2026-02-20 16:34:25,127 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2b9e35a-0b70-42ab-8e28-06b5302658e9', 'name': '', 'tenant_id': '208fe039530d44aab0f6c4a945bb8110', 'network_id': '50769433-f9a7-497f-a247-24b1d701698b', 'ip_version': 4, 'cidr': '133.2.41.192/26', 'allocation_pools': [{'start': '133.2.41.194', 'end': '133.2.41.254'}], 'gateway_ip': '133.2.41.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.2.41.194', 'tags': [], 'project_id': '208fe039530d44aab0f6c4a945bb8110'}} 2026-02-20 16:34:25,286 - DEBUG - Response for create_subnet : {'subnet': {'id': '55fede90-5976-4a97-a162-a810bfecca44', 'name': '', 'tenant_id': '208fe039530d44aab0f6c4a945bb8110', 'network_id': '50769433-f9a7-497f-a247-24b1d701698b', 'ip_version': 6, 'cidr': '3c9d:4ad9:f1e0:6e58:78c8:1368::/96', 'allocation_pools': [{'start': '3c9d:4ad9:f1e0:6e58:78c8:1368:0:2', 'end': '3c9d:4ad9:f1e0:6e58:78c8:1368:ffff:fffe'}], 'gateway_ip': '3c9d:4ad9:f1e0:6e58:78c8:1368:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c9d:4ad9:f1e0:6e58:78c8:1368:0:2', 'tags': [], 'project_id': '208fe039530d44aab0f6c4a945bb8110'}} 2026-02-20 16:34:25,305 - INFO - Created VN ctest-vn4-04005508 2026-02-20 16:34:25,360 - DEBUG - VN ctest-vn4-04005508 UUID is 50769433-f9a7-497f-a247-24b1d701698b 2026-02-20 16:34:25,558 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50769433-f9a7-497f-a247-24b1d701698b', 'name': 'ctest-vn4-04005508', 'tenant_id': '208fe039530d44aab0f6c4a945bb8110', 'project_id': '208fe039530d44aab0f6c4a945bb8110', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d2b9e35a-0b70-42ab-8e28-06b5302658e9', '55fede90-5976-4a97-a162-a810bfecca44'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46341467', 'ctest-vn4-04005508'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46341467', 'ctest-policy1-03345477']], 'subnet_ipam': [{'subnet_cidr': '133.2.41.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c9d:4ad9:f1e0:6e58:78c8:1368::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-20 16:34:25,720 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-20 16:34:26,039 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-20 16:34:26,070 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6f0a8dcb-e910-4fbf-86c4-779b8554a4bb 2026-02-20 16:34:26,085 - DEBUG - Requesting: http://10.0.0.38:8082/project/208fe039-530d-44aa-b0f6-c4a945bb8110 2026-02-20 16:34:26,154 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50769433-f9a7-497f-a247-24b1d701698b 2026-02-20 16:34:26,167 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50769433-f9a7-497f-a247-24b1d701698b 2026-02-20 16:34:26,178 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f61a22c2-2dd5-4b09-b221-cf5176b3936a 2026-02-20 16:34:26,188 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f61a22c2-2dd5-4b09-b221-cf5176b3936a 2026-02-20 16:34:26,196 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bb41ad18-56fb-4eae-9755-474b06b4532b 2026-02-20 16:34:26,202 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 16:34:26,202 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50769433-f9a7-497f-a247-24b1d701698b 2026-02-20 16:34:26,211 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f61a22c2-2dd5-4b09-b221-cf5176b3936a 2026-02-20 16:34:26,225 - INFO - Verified VN network id 12 for VN 50769433-f9a7-497f-a247-24b1d701698b 2026-02-20 16:34:26,225 - INFO - Verifications in API Server for VN ctest-vn4-04005508 passed 2026-02-20 16:34:26,225 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50769433-f9a7-497f-a247-24b1d701698b 2026-02-20 16:34:26,235 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f61a22c2-2dd5-4b09-b221-cf5176b3936a 2026-02-20 16:34:26,242 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f61a22c2-2dd5-4b09-b221-cf5176b3936a 2026-02-20 16:34:26,250 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bb41ad18-56fb-4eae-9755-474b06b4532b 2026-02-20 16:34:26,264 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46341467:ctest-vn4-04005508', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-46341467', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5797984521238825343', 'uuid-lslong': '11693355303725787531'}, 'enable': 'true', 'created': '2026-02-20T16:34:24', 'last-modified': '2026-02-20T16:34:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.734803'} 2026-02-20 16:34:26,270 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 16:34:26,270 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-04005508 passed 2026-02-20 16:34:26,270 - DEBUG - ====Verifying policy data for ctest-vn4-04005508 in API_Server ====== 2026-02-20 16:34:26,270 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-20 16:34:26,276 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6f0a8dcb-e910-4fbf-86c4-779b8554a4bb 2026-02-20 16:34:26,287 - DEBUG - Requesting: http://10.0.0.38:8082/project/208fe039-530d-44aa-b0f6-c4a945bb8110 2026-02-20 16:34:26,357 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50769433-f9a7-497f-a247-24b1d701698b 2026-02-20 16:34:26,368 - DEBUG - ==>Verifying data for policy with id: 71bb742c-5279-42d4-9aef-d0fb29985d47, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46341467', 'ctest-policy1-03345477'] 2026-02-20 16:34:26,368 - INFO - VN ctest-vn4-04005508 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-20 16:34:26,368 - DEBUG - Verifying the vn in opserver 2026-02-20 16:34:26,368 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46341467:ctest-vn4-04005508 virtual network link through opserver 10.0.0.38 2026-02-20 16:34:26,368 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-20 16:34:26,666 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-20 16:34:26,733 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46341467:ctest-vn4-04005508', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46341467:ctest-vn4-04005508?flat'} 2026-02-20 16:34:26,733 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46341467:ctest-vn4-04005508 is found in opserver 2026-02-20 16:34:26,742 - DEBUG - Do not have enough data to verify VN in agent 2026-02-20 16:34:26,746 - DEBUG - VRF ids for VN ctest-vn4-04005508: {} 2026-02-20 16:34:26,746 - DEBUG - ====Verifying data for ctest-policy1-03345477 in API_Server ====== 2026-02-20 16:34:26,746 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-20 16:34:26,751 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6f0a8dcb-e910-4fbf-86c4-779b8554a4bb 2026-02-20 16:34:26,761 - DEBUG - Requesting: http://10.0.0.38:8082/project/208fe039-530d-44aa-b0f6-c4a945bb8110 2026-02-20 16:34:26,831 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/71bb742c-5279-42d4-9aef-d0fb29985d47 2026-02-20 16:34:26,840 - INFO - Verified policy ctest-policy1-03345477 in API Server, Result: True 2026-02-20 16:34:26,841 - INFO - Done with setup and verification, moving onto test .. 2026-02-20 16:34:26,849 - INFO - Deleting VN ctest-vn4-04005508 2026-02-20 16:34:26,979 - DEBUG - Response for deleting network () 2026-02-20 16:34:26,980 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f61a22c2-2dd5-4b09-b221-cf5176b3936a 2026-02-20 16:34:26,984 - DEBUG - Response Code: 404 2026-02-20 16:34:26,984 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-20 16:34:26,989 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6f0a8dcb-e910-4fbf-86c4-779b8554a4bb 2026-02-20 16:34:27,040 - DEBUG - Requesting: http://10.0.0.38:8082/project/208fe039-530d-44aa-b0f6-c4a945bb8110 2026-02-20 16:34:27,106 - INFO - Validated that VN ctest-vn4-04005508 is not found in API Server 2026-02-20 16:34:27,115 - DEBUG - VN ctest-vn4-04005508 is not present in Agent 10.0.0.38 2026-02-20 16:34:27,115 - INFO - Validated that VN ctest-vn4-04005508 is not in any agent 2026-02-20 16:34:27,128 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-04005508 info 2026-02-20 16:34:27,150 - INFO - Deleted policy ctest-policy1-03345477 2026-02-20 16:34:27,308 - DEBUG - policy ctest-policy1-03345477 is not found in API Server 2026-02-20 16:34:27,560 - DEBUG - No XMPP flaps were noticed during the test
2026-02-20 16:34:27,560 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-20 16:34:27,560 - INFO - -------------------------------------------------------------------------------- 2026-02-20 16:34:27,848 - DEBUG - No XMPP flaps were noticed during the test
2026-02-20 16:34:27,848 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-20 16:34:27,848 - INFO - -------------------------------------------------------------------------------- 2026-02-20 16:34:28,526 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-46341467, ID : 208fe039-530d-44aa-b0f6-c4a945bb8110