2026-02-24 15:40:39,053 - INFO - Domain Default found not creating 2026-02-24 15:40:39,290 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07342108 not found, creating it 2026-02-24 15:40:39,740 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07342108, ID : ff3482f8-32d4-4a86-9f5e-bff6e199f24b 2026-02-24 15:40:41,414 - INFO - ================================================================================ 2026-02-24 15:40:41,415 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-24 15:40:41,673 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-24 15:40:41,673 - INFO - Initial checks done. Running the testcase now 2026-02-24 15:40:41,673 - INFO - 2026-02-24 15:40:41,673 - INFO - ================================================================================ 2026-02-24 15:40:41,673 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-24 15:40:41,673 - 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-24 15:40:41,964 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-24 15:40:41,965 - INFO - Initial checks done. Running the testcase now 2026-02-24 15:40:41,965 - INFO - 2026-02-24 15:40:42,330 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07342108:ctest-vn4-12358376, 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-07342108:ctest-vn4-12358376, 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-07342108:ctest-vn4-12358376, 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-07342108:ctest-vn4-12358376, 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-24 15:40:42,873 - DEBUG - Response for create_network : {'network': {'id': '288066ff-37ba-4181-8f58-7a88bdbffcf1', 'name': 'ctest-vn4-12358376', 'tenant_id': 'ff3482f832d44a869f5ebff6e199f24b', 'project_id': 'ff3482f832d44a869f5ebff6e199f24b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07342108', 'ctest-vn4-12358376'], 'port_security_enabled': True, 'description': ''}} 2026-02-24 15:40:43,065 - DEBUG - Response for create_subnet : {'subnet': {'id': '07e733fc-9ef4-46cb-935d-d813414298e8', 'name': '', 'tenant_id': 'ff3482f832d44a869f5ebff6e199f24b', 'network_id': '288066ff-37ba-4181-8f58-7a88bdbffcf1', 'ip_version': 4, 'cidr': '46.200.104.128/26', 'allocation_pools': [{'start': '46.200.104.130', 'end': '46.200.104.190'}], 'gateway_ip': '46.200.104.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.200.104.130', 'tags': [], 'project_id': 'ff3482f832d44a869f5ebff6e199f24b'}} 2026-02-24 15:40:43,299 - DEBUG - Response for create_subnet : {'subnet': {'id': '51e71b84-3485-4473-af25-43c18f84771b', 'name': '', 'tenant_id': 'ff3482f832d44a869f5ebff6e199f24b', 'network_id': '288066ff-37ba-4181-8f58-7a88bdbffcf1', 'ip_version': 6, 'cidr': '332a:e188:430a:ddcc:4ee2:8cf9::/96', 'allocation_pools': [{'start': '332a:e188:430a:ddcc:4ee2:8cf9:0:2', 'end': '332a:e188:430a:ddcc:4ee2:8cf9:ffff:fffe'}], 'gateway_ip': '332a:e188:430a:ddcc:4ee2:8cf9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '332a:e188:430a:ddcc:4ee2:8cf9:0:2', 'tags': [], 'project_id': 'ff3482f832d44a869f5ebff6e199f24b'}} 2026-02-24 15:40:43,326 - INFO - Created VN ctest-vn4-12358376 2026-02-24 15:40:43,384 - DEBUG - VN ctest-vn4-12358376 UUID is 288066ff-37ba-4181-8f58-7a88bdbffcf1 2026-02-24 15:40:43,597 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '288066ff-37ba-4181-8f58-7a88bdbffcf1', 'name': 'ctest-vn4-12358376', 'tenant_id': 'ff3482f832d44a869f5ebff6e199f24b', 'project_id': 'ff3482f832d44a869f5ebff6e199f24b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['07e733fc-9ef4-46cb-935d-d813414298e8', '51e71b84-3485-4473-af25-43c18f84771b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07342108', 'ctest-vn4-12358376'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07342108', 'ctest-policy1-17155053']], 'subnet_ipam': [{'subnet_cidr': '46.200.104.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '332a:e188:430a:ddcc:4ee2:8cf9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-24 15:40:43,776 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-24 15:40:44,073 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-24 15:40:44,107 - DEBUG - Requesting: http://10.0.0.38:8082/domain/199b6b8f-63b3-4724-98ce-439ce0ccb072 2026-02-24 15:40:44,122 - DEBUG - Requesting: http://10.0.0.38:8082/project/ff3482f8-32d4-4a86-9f5e-bff6e199f24b 2026-02-24 15:40:44,199 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/288066ff-37ba-4181-8f58-7a88bdbffcf1 2026-02-24 15:40:44,212 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/288066ff-37ba-4181-8f58-7a88bdbffcf1 2026-02-24 15:40:44,222 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46360330-5418-4381-9f0a-012956633185 2026-02-24 15:40:44,230 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46360330-5418-4381-9f0a-012956633185 2026-02-24 15:40:44,249 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9fa54274-994f-4430-96e4-6cac270c68df 2026-02-24 15:40:44,256 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-24 15:40:44,257 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/288066ff-37ba-4181-8f58-7a88bdbffcf1 2026-02-24 15:40:44,266 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46360330-5418-4381-9f0a-012956633185 2026-02-24 15:40:44,280 - INFO - Verified VN network id 11 for VN 288066ff-37ba-4181-8f58-7a88bdbffcf1 2026-02-24 15:40:44,280 - INFO - Verifications in API Server for VN ctest-vn4-12358376 passed 2026-02-24 15:40:44,281 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/288066ff-37ba-4181-8f58-7a88bdbffcf1 2026-02-24 15:40:44,290 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46360330-5418-4381-9f0a-012956633185 2026-02-24 15:40:44,298 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46360330-5418-4381-9f0a-012956633185 2026-02-24 15:40:44,305 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9fa54274-994f-4430-96e4-6cac270c68df 2026-02-24 15:40:44,315 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07342108:ctest-vn4-12358376', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07342108', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2918445804873728385', 'uuid-lslong': '10329140473091849457'}, 'enable': 'true', 'created': '2026-02-24T15:40:42', 'last-modified': '2026-02-24T15:40:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.745712'} 2026-02-24 15:40:44,320 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-24 15:40:44,320 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12358376 passed 2026-02-24 15:40:44,321 - DEBUG - ====Verifying policy data for ctest-vn4-12358376 in API_Server ====== 2026-02-24 15:40:44,321 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-24 15:40:44,327 - DEBUG - Requesting: http://10.0.0.38:8082/domain/199b6b8f-63b3-4724-98ce-439ce0ccb072 2026-02-24 15:40:44,337 - DEBUG - Requesting: http://10.0.0.38:8082/project/ff3482f8-32d4-4a86-9f5e-bff6e199f24b 2026-02-24 15:40:44,414 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/288066ff-37ba-4181-8f58-7a88bdbffcf1 2026-02-24 15:40:44,424 - DEBUG - ==>Verifying data for policy with id: 9554af83-7acb-4662-8c02-6b1ebc879fbf, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07342108', 'ctest-policy1-17155053'] 2026-02-24 15:40:44,424 - INFO - VN ctest-vn4-12358376 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-24 15:40:44,424 - DEBUG - Verifying the vn in opserver 2026-02-24 15:40:44,424 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07342108:ctest-vn4-12358376 virtual network link through opserver 10.0.0.38 2026-02-24 15:40:44,424 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-24 15:40:44,721 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-24 15:40:44,847 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07342108:ctest-vn4-12358376', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07342108:ctest-vn4-12358376?flat'} 2026-02-24 15:40:44,847 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07342108:ctest-vn4-12358376 is found in opserver 2026-02-24 15:40:44,855 - DEBUG - Do not have enough data to verify VN in agent 2026-02-24 15:40:44,859 - DEBUG - VRF ids for VN ctest-vn4-12358376: {} 2026-02-24 15:40:44,860 - DEBUG - ====Verifying data for ctest-policy1-17155053 in API_Server ====== 2026-02-24 15:40:44,860 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-24 15:40:44,870 - DEBUG - Requesting: http://10.0.0.38:8082/domain/199b6b8f-63b3-4724-98ce-439ce0ccb072 2026-02-24 15:40:44,932 - DEBUG - Requesting: http://10.0.0.38:8082/project/ff3482f8-32d4-4a86-9f5e-bff6e199f24b 2026-02-24 15:40:45,021 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/9554af83-7acb-4662-8c02-6b1ebc879fbf 2026-02-24 15:40:45,036 - INFO - Verified policy ctest-policy1-17155053 in API Server, Result: True 2026-02-24 15:40:45,036 - INFO - Done with setup and verification, moving onto test .. 2026-02-24 15:40:45,047 - INFO - Deleting VN ctest-vn4-12358376 2026-02-24 15:40:45,341 - DEBUG - Response for deleting network () 2026-02-24 15:40:45,341 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46360330-5418-4381-9f0a-012956633185 2026-02-24 15:40:45,347 - DEBUG - Response Code: 404 2026-02-24 15:40:45,348 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-24 15:40:45,357 - DEBUG - Requesting: http://10.0.0.38:8082/domain/199b6b8f-63b3-4724-98ce-439ce0ccb072 2026-02-24 15:40:45,417 - DEBUG - Requesting: http://10.0.0.38:8082/project/ff3482f8-32d4-4a86-9f5e-bff6e199f24b 2026-02-24 15:40:45,492 - INFO - Validated that VN ctest-vn4-12358376 is not found in API Server 2026-02-24 15:40:45,503 - DEBUG - VN ctest-vn4-12358376 is not present in Agent 10.0.0.38 2026-02-24 15:40:45,503 - INFO - Validated that VN ctest-vn4-12358376 is not in any agent 2026-02-24 15:40:45,517 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12358376 info 2026-02-24 15:40:45,545 - INFO - Deleted policy ctest-policy1-17155053 2026-02-24 15:40:45,711 - DEBUG - policy ctest-policy1-17155053 is not found in API Server 2026-02-24 15:40:45,965 - DEBUG - No XMPP flaps were noticed during the test 2026-02-24 15:40:45,965 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-24 15:40:45,965 - INFO - -------------------------------------------------------------------------------- 2026-02-24 15:40:46,253 - DEBUG - No XMPP flaps were noticed during the test 2026-02-24 15:40:46,253 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-24 15:40:46,253 - INFO - -------------------------------------------------------------------------------- 2026-02-24 15:40:46,989 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-07342108, ID : ff3482f8-32d4-4a86-9f5e-bff6e199f24b