2026-01-26 16:28:34,713 - INFO - Domain Default found not creating 2026-01-26 16:28:34,882 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-52117166 not found, creating it 2026-01-26 16:28:35,400 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-52117166, ID : a21b63d3-945f-4b14-b4ea-17d118676dcb 2026-01-26 16:28:36,909 - INFO - ================================================================================ 2026-01-26 16:28:36,909 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-26 16:28:37,163 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.14': '0'}} with 2026-01-26 16:28:37,163 - INFO - Initial checks done. Running the testcase now 2026-01-26 16:28:37,163 - INFO - 2026-01-26 16:28:37,163 - INFO - ================================================================================ 2026-01-26 16:28:37,163 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-26 16:28:37,163 - 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-01-26 16:28:37,454 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.14': '0'}} with 2026-01-26 16:28:37,454 - INFO - Initial checks done. Running the testcase now 2026-01-26 16:28:37,454 - INFO - 2026-01-26 16:28:37,807 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52117166:ctest-vn4-70750543, 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-52117166:ctest-vn4-70750543, 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-52117166:ctest-vn4-70750543, 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-52117166:ctest-vn4-70750543, 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-01-26 16:28:38,316 - DEBUG - Response for create_network : {'network': {'id': 'fc8c8d1a-6a8b-4811-bf37-d4b3e88dba26', 'name': 'ctest-vn4-70750543', 'tenant_id': 'a21b63d3945f4b14b4ea17d118676dcb', 'project_id': 'a21b63d3945f4b14b4ea17d118676dcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52117166', 'ctest-vn4-70750543'], 'port_security_enabled': True, 'description': ''}} 2026-01-26 16:28:38,523 - DEBUG - Response for create_subnet : {'subnet': {'id': '841e9257-fdf5-4144-b67f-729b9c7ea904', 'name': '', 'tenant_id': 'a21b63d3945f4b14b4ea17d118676dcb', 'network_id': 'fc8c8d1a-6a8b-4811-bf37-d4b3e88dba26', 'ip_version': 4, 'cidr': '61.88.73.64/26', 'allocation_pools': [{'start': '61.88.73.66', 'end': '61.88.73.126'}], 'gateway_ip': '61.88.73.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.88.73.66', 'tags': [], 'project_id': 'a21b63d3945f4b14b4ea17d118676dcb'}} 2026-01-26 16:28:38,671 - DEBUG - Response for create_subnet : {'subnet': {'id': '674b2988-48f5-4dcc-ba6f-bf96254f4bc2', 'name': '', 'tenant_id': 'a21b63d3945f4b14b4ea17d118676dcb', 'network_id': 'fc8c8d1a-6a8b-4811-bf37-d4b3e88dba26', 'ip_version': 6, 'cidr': '2147:ff8e:6c16:2175:5382:e176::/96', 'allocation_pools': [{'start': '2147:ff8e:6c16:2175:5382:e176:0:2', 'end': '2147:ff8e:6c16:2175:5382:e176:ffff:fffe'}], 'gateway_ip': '2147:ff8e:6c16:2175:5382:e176:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2147:ff8e:6c16:2175:5382:e176:0:2', 'tags': [], 'project_id': 'a21b63d3945f4b14b4ea17d118676dcb'}} 2026-01-26 16:28:38,691 - INFO - Created VN ctest-vn4-70750543 2026-01-26 16:28:38,746 - DEBUG - VN ctest-vn4-70750543 UUID is fc8c8d1a-6a8b-4811-bf37-d4b3e88dba26 2026-01-26 16:28:38,945 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc8c8d1a-6a8b-4811-bf37-d4b3e88dba26', 'name': 'ctest-vn4-70750543', 'tenant_id': 'a21b63d3945f4b14b4ea17d118676dcb', 'project_id': 'a21b63d3945f4b14b4ea17d118676dcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['841e9257-fdf5-4144-b67f-729b9c7ea904', '674b2988-48f5-4dcc-ba6f-bf96254f4bc2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52117166', 'ctest-vn4-70750543'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52117166', 'ctest-policy1-79273094']], 'subnet_ipam': [{'subnet_cidr': '61.88.73.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2147:ff8e:6c16:2175:5382:e176::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-26 16:28:39,106 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-26 16:28:39,403 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-26 16:28:39,432 - DEBUG - Requesting: http://10.0.0.241:8082/domain/0d22df5c-7472-483a-939d-23dedd65a822 2026-01-26 16:28:39,443 - DEBUG - Requesting: http://10.0.0.241:8082/project/a21b63d3-945f-4b14-b4ea-17d118676dcb 2026-01-26 16:28:39,513 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/fc8c8d1a-6a8b-4811-bf37-d4b3e88dba26 2026-01-26 16:28:39,524 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/fc8c8d1a-6a8b-4811-bf37-d4b3e88dba26 2026-01-26 16:28:39,533 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/0cf8af64-1299-46cb-b5c8-c1caa22ffeb2 2026-01-26 16:28:39,539 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/0cf8af64-1299-46cb-b5c8-c1caa22ffeb2 2026-01-26 16:28:39,545 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/1fc491ca-ce72-4a36-8ce3-925cb7ab6b8e 2026-01-26 16:28:39,551 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 16:28:39,551 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/fc8c8d1a-6a8b-4811-bf37-d4b3e88dba26 2026-01-26 16:28:39,560 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/0cf8af64-1299-46cb-b5c8-c1caa22ffeb2 2026-01-26 16:28:39,572 - INFO - Verified VN network id 12 for VN fc8c8d1a-6a8b-4811-bf37-d4b3e88dba26 2026-01-26 16:28:39,573 - INFO - Verifications in API Server for VN ctest-vn4-70750543 passed 2026-01-26 16:28:39,573 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/fc8c8d1a-6a8b-4811-bf37-d4b3e88dba26 2026-01-26 16:28:39,581 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/0cf8af64-1299-46cb-b5c8-c1caa22ffeb2 2026-01-26 16:28:39,587 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/0cf8af64-1299-46cb-b5c8-c1caa22ffeb2 2026-01-26 16:28:39,593 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/1fc491ca-ce72-4a36-8ce3-925cb7ab6b8e 2026-01-26 16:28:39,603 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52117166:ctest-vn4-70750543', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-52117166', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18198075338893510673', 'uuid-lslong': '13778715454129158694'}, 'enable': 'true', 'created': '2026-01-26T16:28:38', 'last-modified': '2026-01-26T16:28:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.682655'} 2026-01-26 16:28:39,610 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 16:28:39,610 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70750543 passed 2026-01-26 16:28:39,610 - DEBUG - ====Verifying policy data for ctest-vn4-70750543 in API_Server ====== 2026-01-26 16:28:39,610 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-26 16:28:39,616 - DEBUG - Requesting: http://10.0.0.241:8082/domain/0d22df5c-7472-483a-939d-23dedd65a822 2026-01-26 16:28:39,626 - DEBUG - Requesting: http://10.0.0.241:8082/project/a21b63d3-945f-4b14-b4ea-17d118676dcb 2026-01-26 16:28:39,695 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/fc8c8d1a-6a8b-4811-bf37-d4b3e88dba26 2026-01-26 16:28:39,705 - DEBUG - ==>Verifying data for policy with id: 495b6dd7-0aaf-41b6-9d31-16bbed9389c4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52117166', 'ctest-policy1-79273094'] 2026-01-26 16:28:39,705 - INFO - VN ctest-vn4-70750543 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-26 16:28:39,705 - DEBUG - Verifying the vn in opserver 2026-01-26 16:28:39,705 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52117166:ctest-vn4-70750543 virtual network link through opserver 10.0.0.241 2026-01-26 16:28:39,705 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-01-26 16:28:40,001 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-01-26 16:28:40,063 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52117166:ctest-vn4-70750543', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52117166:ctest-vn4-70750543?flat'} 2026-01-26 16:28:40,063 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52117166:ctest-vn4-70750543 is found in opserver 2026-01-26 16:28:40,072 - DEBUG - Do not have enough data to verify VN in agent 2026-01-26 16:28:40,076 - DEBUG - VRF ids for VN ctest-vn4-70750543: {} 2026-01-26 16:28:40,076 - DEBUG - ====Verifying data for ctest-policy1-79273094 in API_Server ====== 2026-01-26 16:28:40,076 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-26 16:28:40,081 - DEBUG - Requesting: http://10.0.0.241:8082/domain/0d22df5c-7472-483a-939d-23dedd65a822 2026-01-26 16:28:40,091 - DEBUG - Requesting: http://10.0.0.241:8082/project/a21b63d3-945f-4b14-b4ea-17d118676dcb 2026-01-26 16:28:40,159 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/495b6dd7-0aaf-41b6-9d31-16bbed9389c4 2026-01-26 16:28:40,168 - INFO - Verified policy ctest-policy1-79273094 in API Server, Result: True 2026-01-26 16:28:40,168 - INFO - Done with setup and verification, moving onto test .. 2026-01-26 16:28:40,175 - INFO - Deleting VN ctest-vn4-70750543 2026-01-26 16:28:40,284 - DEBUG - Response for deleting network () 2026-01-26 16:28:40,284 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/0cf8af64-1299-46cb-b5c8-c1caa22ffeb2 2026-01-26 16:28:40,289 - DEBUG - Response Code: 404 2026-01-26 16:28:40,289 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-26 16:28:40,294 - DEBUG - Requesting: http://10.0.0.241:8082/domain/0d22df5c-7472-483a-939d-23dedd65a822 2026-01-26 16:28:40,346 - DEBUG - Requesting: http://10.0.0.241:8082/project/a21b63d3-945f-4b14-b4ea-17d118676dcb 2026-01-26 16:28:40,415 - INFO - Validated that VN ctest-vn4-70750543 is not found in API Server 2026-01-26 16:28:40,426 - DEBUG - VN ctest-vn4-70750543 is not present in Agent 10.0.0.241 2026-01-26 16:28:40,426 - INFO - Validated that VN ctest-vn4-70750543 is not in any agent 2026-01-26 16:28:40,440 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70750543 info 2026-01-26 16:28:40,458 - INFO - Deleted policy ctest-policy1-79273094 2026-01-26 16:28:40,621 - DEBUG - policy ctest-policy1-79273094 is not found in API Server 2026-01-26 16:28:40,886 - DEBUG - No XMPP flaps were noticed during the test