2026-06-15 17:46:33,270 - INFO - Domain Default found not creating 2026-06-15 17:46:33,401 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-61619006 not found, creating it 2026-06-15 17:46:33,823 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-61619006, ID : 46095db3-25c1-4434-981d-2976dab1b611 2026-06-15 17:46:35,260 - INFO - ================================================================================ 2026-06-15 17:46:35,260 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 17:46:35,520 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-06-15 17:46:35,520 - INFO - Initial checks done. Running the testcase now 2026-06-15 17:46:35,520 - INFO - 2026-06-15 17:46:35,520 - INFO - ================================================================================ 2026-06-15 17:46:35,520 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 17:46:35,520 - 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-06-15 17:46:35,822 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-06-15 17:46:35,822 - INFO - Initial checks done. Running the testcase now 2026-06-15 17:46:35,822 - INFO - 2026-06-15 17:46:36,195 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61619006:ctest-vn4-43598285, 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-61619006:ctest-vn4-43598285, 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-61619006:ctest-vn4-43598285, 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-61619006:ctest-vn4-43598285, 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-06-15 17:46:36,678 - DEBUG - Response for create_network : {'network': {'id': 'ef8a8cdb-98cf-46e0-8145-7d94c9f29adf', 'name': 'ctest-vn4-43598285', 'tenant_id': '46095db325c14434981d2976dab1b611', 'project_id': '46095db325c14434981d2976dab1b611', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61619006', 'ctest-vn4-43598285'], 'port_security_enabled': True, 'description': ''}} 2026-06-15 17:46:36,894 - DEBUG - Response for create_subnet : {'subnet': {'id': '5b6764a3-c4cc-47a3-930a-ac684d2134e1', 'name': '', 'tenant_id': '46095db325c14434981d2976dab1b611', 'network_id': 'ef8a8cdb-98cf-46e0-8145-7d94c9f29adf', 'ip_version': 4, 'cidr': '4.2.199.128/26', 'allocation_pools': [{'start': '4.2.199.130', 'end': '4.2.199.190'}], 'gateway_ip': '4.2.199.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.2.199.130', 'tags': [], 'project_id': '46095db325c14434981d2976dab1b611'}} 2026-06-15 17:46:37,032 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2189901-d4dd-4d9a-b9e3-db804acc33d4', 'name': '', 'tenant_id': '46095db325c14434981d2976dab1b611', 'network_id': 'ef8a8cdb-98cf-46e0-8145-7d94c9f29adf', 'ip_version': 6, 'cidr': '3d6a:e0a0:81cd:85a7:5804:e8c::/96', 'allocation_pools': [{'start': '3d6a:e0a0:81cd:85a7:5804:e8c:0:2', 'end': '3d6a:e0a0:81cd:85a7:5804:e8c:ffff:fffe'}], 'gateway_ip': '3d6a:e0a0:81cd:85a7:5804:e8c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d6a:e0a0:81cd:85a7:5804:e8c:0:2', 'tags': [], 'project_id': '46095db325c14434981d2976dab1b611'}} 2026-06-15 17:46:37,047 - INFO - Created VN ctest-vn4-43598285 2026-06-15 17:46:37,101 - DEBUG - VN ctest-vn4-43598285 UUID is ef8a8cdb-98cf-46e0-8145-7d94c9f29adf 2026-06-15 17:46:37,274 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ef8a8cdb-98cf-46e0-8145-7d94c9f29adf', 'name': 'ctest-vn4-43598285', 'tenant_id': '46095db325c14434981d2976dab1b611', 'project_id': '46095db325c14434981d2976dab1b611', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5b6764a3-c4cc-47a3-930a-ac684d2134e1', 'a2189901-d4dd-4d9a-b9e3-db804acc33d4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61619006', 'ctest-vn4-43598285'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61619006', 'ctest-policy1-20476754']], 'subnet_ipam': [{'subnet_cidr': '4.2.199.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d6a:e0a0:81cd:85a7:5804:e8c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-15 17:46:37,433 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-15 17:46:37,758 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-15 17:46:37,785 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6ee94fda-81d7-4925-a024-805f1fa5078a 2026-06-15 17:46:37,795 - DEBUG - Requesting: http://10.0.0.22:8082/project/46095db3-25c1-4434-981d-2976dab1b611 2026-06-15 17:46:37,863 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef8a8cdb-98cf-46e0-8145-7d94c9f29adf 2026-06-15 17:46:37,873 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef8a8cdb-98cf-46e0-8145-7d94c9f29adf 2026-06-15 17:46:37,881 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3e99109b-1c3a-477f-a675-df1ba0ea8199 2026-06-15 17:46:37,887 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3e99109b-1c3a-477f-a675-df1ba0ea8199 2026-06-15 17:46:37,892 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/4df3680c-c57b-4492-a46c-989af9025b82 2026-06-15 17:46:37,896 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 17:46:37,896 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef8a8cdb-98cf-46e0-8145-7d94c9f29adf 2026-06-15 17:46:37,903 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3e99109b-1c3a-477f-a675-df1ba0ea8199 2026-06-15 17:46:37,914 - INFO - Verified VN network id 11 for VN ef8a8cdb-98cf-46e0-8145-7d94c9f29adf 2026-06-15 17:46:37,914 - INFO - Verifications in API Server for VN ctest-vn4-43598285 passed 2026-06-15 17:46:37,914 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef8a8cdb-98cf-46e0-8145-7d94c9f29adf 2026-06-15 17:46:37,921 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3e99109b-1c3a-477f-a675-df1ba0ea8199 2026-06-15 17:46:37,926 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3e99109b-1c3a-477f-a675-df1ba0ea8199 2026-06-15 17:46:37,932 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/4df3680c-c57b-4492-a46c-989af9025b82 2026-06-15 17:46:37,942 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61619006:ctest-vn4-43598285', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-61619006', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17260763396640294624', 'uuid-lslong': '9314989482282490591'}, 'enable': 'true', 'created': '2026-06-15T17:46:36', 'last-modified': '2026-06-15T17:46:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690542'} 2026-06-15 17:46:37,947 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 17:46:37,947 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43598285 passed 2026-06-15 17:46:37,947 - DEBUG - ====Verifying policy data for ctest-vn4-43598285 in API_Server ====== 2026-06-15 17:46:37,948 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-15 17:46:37,951 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6ee94fda-81d7-4925-a024-805f1fa5078a 2026-06-15 17:46:37,961 - DEBUG - Requesting: http://10.0.0.22:8082/project/46095db3-25c1-4434-981d-2976dab1b611 2026-06-15 17:46:38,028 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef8a8cdb-98cf-46e0-8145-7d94c9f29adf 2026-06-15 17:46:38,036 - DEBUG - ==>Verifying data for policy with id: 10dab61e-f927-4659-988f-0f6689ff8dcd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61619006', 'ctest-policy1-20476754'] 2026-06-15 17:46:38,036 - INFO - VN ctest-vn4-43598285 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-15 17:46:38,037 - DEBUG - Verifying the vn in opserver 2026-06-15 17:46:38,037 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61619006:ctest-vn4-43598285 virtual network link through opserver 10.0.0.22 2026-06-15 17:46:38,037 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-06-15 17:46:38,355 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-06-15 17:46:38,405 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61619006:ctest-vn4-43598285', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61619006:ctest-vn4-43598285?flat'} 2026-06-15 17:46:38,405 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61619006:ctest-vn4-43598285 is found in opserver 2026-06-15 17:46:38,415 - DEBUG - Do not have enough data to verify VN in agent 2026-06-15 17:46:38,419 - DEBUG - VRF ids for VN ctest-vn4-43598285: {} 2026-06-15 17:46:38,420 - DEBUG - ====Verifying data for ctest-policy1-20476754 in API_Server ====== 2026-06-15 17:46:38,420 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-15 17:46:38,425 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6ee94fda-81d7-4925-a024-805f1fa5078a 2026-06-15 17:46:38,434 - DEBUG - Requesting: http://10.0.0.22:8082/project/46095db3-25c1-4434-981d-2976dab1b611 2026-06-15 17:46:38,506 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/10dab61e-f927-4659-988f-0f6689ff8dcd 2026-06-15 17:46:38,515 - INFO - Verified policy ctest-policy1-20476754 in API Server, Result: True 2026-06-15 17:46:38,515 - INFO - Done with setup and verification, moving onto test .. 2026-06-15 17:46:38,522 - INFO - Deleting VN ctest-vn4-43598285 2026-06-15 17:46:38,632 - DEBUG - Response for deleting network () 2026-06-15 17:46:38,632 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3e99109b-1c3a-477f-a675-df1ba0ea8199 2026-06-15 17:46:38,637 - DEBUG - Response Code: 404 2026-06-15 17:46:38,637 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-15 17:46:38,641 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6ee94fda-81d7-4925-a024-805f1fa5078a 2026-06-15 17:46:38,693 - DEBUG - Requesting: http://10.0.0.22:8082/project/46095db3-25c1-4434-981d-2976dab1b611 2026-06-15 17:46:38,761 - INFO - Validated that VN ctest-vn4-43598285 is not found in API Server 2026-06-15 17:46:38,769 - DEBUG - VN ctest-vn4-43598285 is not present in Agent 10.0.0.22 2026-06-15 17:46:38,769 - INFO - Validated that VN ctest-vn4-43598285 is not in any agent 2026-06-15 17:46:38,780 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43598285 info 2026-06-15 17:46:38,801 - INFO - Deleted policy ctest-policy1-20476754 2026-06-15 17:46:38,969 - DEBUG - policy ctest-policy1-20476754 is not found in API Server 2026-06-15 17:46:39,226 - DEBUG - No XMPP flaps were noticed during the test
2026-06-15 17:46:39,226 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-15 17:46:39,226 - INFO - -------------------------------------------------------------------------------- 2026-06-15 17:46:39,518 - DEBUG - No XMPP flaps were noticed during the test
2026-06-15 17:46:39,518 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-15 17:46:39,518 - INFO - -------------------------------------------------------------------------------- 2026-06-15 17:46:40,223 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-61619006, ID : 46095db3-25c1-4434-981d-2976dab1b611