2026-02-16 17:11:44,679 - INFO - Domain Default found not creating 2026-02-16 17:11:44,830 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-69956903 not found, creating it 2026-02-16 17:11:45,262 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-69956903, ID : 2df86065-0b75-43ce-af9f-ee108d170c48 2026-02-16 17:11:46,658 - INFO - ================================================================================ 2026-02-16 17:11:46,658 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 17:11:46,912 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-16 17:11:46,912 - INFO - Initial checks done. Running the testcase now 2026-02-16 17:11:46,912 - INFO - 2026-02-16 17:11:46,913 - INFO - ================================================================================ 2026-02-16 17:11:46,913 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 17:11:46,913 - 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-16 17:11:47,201 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-16 17:11:47,201 - INFO - Initial checks done. Running the testcase now 2026-02-16 17:11:47,202 - INFO - 2026-02-16 17:11:47,549 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69956903:ctest-vn4-11876251, 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-69956903:ctest-vn4-11876251, 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-69956903:ctest-vn4-11876251, 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-69956903:ctest-vn4-11876251, 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-16 17:11:48,047 - DEBUG - Response for create_network : {'network': {'id': '0142031f-570b-445d-856d-b4b082c57cda', 'name': 'ctest-vn4-11876251', 'tenant_id': '2df860650b7543ceaf9fee108d170c48', 'project_id': '2df860650b7543ceaf9fee108d170c48', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69956903', 'ctest-vn4-11876251'], 'port_security_enabled': True, 'description': ''}} 2026-02-16 17:11:48,203 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a52a531-23d3-405a-9d96-6fcbd4dc3241', 'name': '', 'tenant_id': '2df860650b7543ceaf9fee108d170c48', 'network_id': '0142031f-570b-445d-856d-b4b082c57cda', 'ip_version': 4, 'cidr': '34.243.159.64/26', 'allocation_pools': [{'start': '34.243.159.66', 'end': '34.243.159.126'}], 'gateway_ip': '34.243.159.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.243.159.66', 'tags': [], 'project_id': '2df860650b7543ceaf9fee108d170c48'}} 2026-02-16 17:11:48,334 - DEBUG - Response for create_subnet : {'subnet': {'id': '7895aa9a-dea5-4e24-97fb-d4b212a8e693', 'name': '', 'tenant_id': '2df860650b7543ceaf9fee108d170c48', 'network_id': '0142031f-570b-445d-856d-b4b082c57cda', 'ip_version': 6, 'cidr': '20e2:10f0:23e3:690:3c6c:8f70::/96', 'allocation_pools': [{'start': '20e2:10f0:23e3:690:3c6c:8f70:0:2', 'end': '20e2:10f0:23e3:690:3c6c:8f70:ffff:fffe'}], 'gateway_ip': '20e2:10f0:23e3:690:3c6c:8f70:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20e2:10f0:23e3:690:3c6c:8f70:0:2', 'tags': [], 'project_id': '2df860650b7543ceaf9fee108d170c48'}} 2026-02-16 17:11:48,355 - INFO - Created VN ctest-vn4-11876251 2026-02-16 17:11:48,407 - DEBUG - VN ctest-vn4-11876251 UUID is 0142031f-570b-445d-856d-b4b082c57cda 2026-02-16 17:11:48,608 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0142031f-570b-445d-856d-b4b082c57cda', 'name': 'ctest-vn4-11876251', 'tenant_id': '2df860650b7543ceaf9fee108d170c48', 'project_id': '2df860650b7543ceaf9fee108d170c48', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a52a531-23d3-405a-9d96-6fcbd4dc3241', '7895aa9a-dea5-4e24-97fb-d4b212a8e693'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69956903', 'ctest-vn4-11876251'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69956903', 'ctest-policy1-01860173']], 'subnet_ipam': [{'subnet_cidr': '34.243.159.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '20e2:10f0:23e3:690:3c6c:8f70::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-16 17:11:48,763 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-16 17:11:49,070 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-16 17:11:49,100 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9bea2ab5-06ab-4276-b47e-ddb4f6e2a72b 2026-02-16 17:11:49,112 - DEBUG - Requesting: http://10.0.0.38:8082/project/2df86065-0b75-43ce-af9f-ee108d170c48 2026-02-16 17:11:49,185 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0142031f-570b-445d-856d-b4b082c57cda 2026-02-16 17:11:49,196 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0142031f-570b-445d-856d-b4b082c57cda 2026-02-16 17:11:49,205 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1aa62fe0-8804-4953-82a4-a5d6e9d61407 2026-02-16 17:11:49,212 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1aa62fe0-8804-4953-82a4-a5d6e9d61407 2026-02-16 17:11:49,219 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b19a342-5293-49c7-9f06-6dce4a67f674 2026-02-16 17:11:49,226 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 17:11:49,226 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0142031f-570b-445d-856d-b4b082c57cda 2026-02-16 17:11:49,237 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1aa62fe0-8804-4953-82a4-a5d6e9d61407 2026-02-16 17:11:49,254 - INFO - Verified VN network id 11 for VN 0142031f-570b-445d-856d-b4b082c57cda 2026-02-16 17:11:49,254 - INFO - Verifications in API Server for VN ctest-vn4-11876251 passed 2026-02-16 17:11:49,254 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0142031f-570b-445d-856d-b4b082c57cda 2026-02-16 17:11:49,263 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1aa62fe0-8804-4953-82a4-a5d6e9d61407 2026-02-16 17:11:49,271 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1aa62fe0-8804-4953-82a4-a5d6e9d61407 2026-02-16 17:11:49,278 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b19a342-5293-49c7-9f06-6dce4a67f674 2026-02-16 17:11:49,289 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69956903:ctest-vn4-11876251', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69956903', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '90638375640056925', 'uuid-lslong': '9614539449707101402'}, 'enable': 'true', 'created': '2026-02-16T17:11:48', 'last-modified': '2026-02-16T17:11:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.708953'} 2026-02-16 17:11:49,296 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 17:11:49,296 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-11876251 passed 2026-02-16 17:11:49,297 - DEBUG - ====Verifying policy data for ctest-vn4-11876251 in API_Server ====== 2026-02-16 17:11:49,297 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-16 17:11:49,303 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9bea2ab5-06ab-4276-b47e-ddb4f6e2a72b 2026-02-16 17:11:49,313 - DEBUG - Requesting: http://10.0.0.38:8082/project/2df86065-0b75-43ce-af9f-ee108d170c48 2026-02-16 17:11:49,387 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0142031f-570b-445d-856d-b4b082c57cda 2026-02-16 17:11:49,397 - DEBUG - ==>Verifying data for policy with id: 482e1442-86a6-4152-92fa-88f09bc55760, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69956903', 'ctest-policy1-01860173'] 2026-02-16 17:11:49,397 - INFO - VN ctest-vn4-11876251 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-16 17:11:49,398 - DEBUG - Verifying the vn in opserver 2026-02-16 17:11:49,398 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69956903:ctest-vn4-11876251 virtual network link through opserver 10.0.0.38 2026-02-16 17:11:49,398 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-16 17:11:49,700 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-16 17:11:49,756 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69956903:ctest-vn4-11876251', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69956903:ctest-vn4-11876251?flat'} 2026-02-16 17:11:49,756 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69956903:ctest-vn4-11876251 is found in opserver 2026-02-16 17:11:49,765 - DEBUG - Do not have enough data to verify VN in agent 2026-02-16 17:11:49,770 - DEBUG - VRF ids for VN ctest-vn4-11876251: {} 2026-02-16 17:11:49,770 - DEBUG - ====Verifying data for ctest-policy1-01860173 in API_Server ====== 2026-02-16 17:11:49,770 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-16 17:11:49,775 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9bea2ab5-06ab-4276-b47e-ddb4f6e2a72b 2026-02-16 17:11:49,784 - DEBUG - Requesting: http://10.0.0.38:8082/project/2df86065-0b75-43ce-af9f-ee108d170c48 2026-02-16 17:11:49,855 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/482e1442-86a6-4152-92fa-88f09bc55760 2026-02-16 17:11:49,865 - INFO - Verified policy ctest-policy1-01860173 in API Server, Result: True 2026-02-16 17:11:49,865 - INFO - Done with setup and verification, moving onto test .. 2026-02-16 17:11:49,873 - INFO - Deleting VN ctest-vn4-11876251 2026-02-16 17:11:49,992 - DEBUG - Response for deleting network () 2026-02-16 17:11:49,992 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1aa62fe0-8804-4953-82a4-a5d6e9d61407 2026-02-16 17:11:49,997 - DEBUG - Response Code: 404 2026-02-16 17:11:49,997 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-16 17:11:50,001 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9bea2ab5-06ab-4276-b47e-ddb4f6e2a72b 2026-02-16 17:11:50,056 - DEBUG - Requesting: http://10.0.0.38:8082/project/2df86065-0b75-43ce-af9f-ee108d170c48 2026-02-16 17:11:50,122 - INFO - Validated that VN ctest-vn4-11876251 is not found in API Server 2026-02-16 17:11:50,132 - DEBUG - VN ctest-vn4-11876251 is not present in Agent 10.0.0.38 2026-02-16 17:11:50,132 - INFO - Validated that VN ctest-vn4-11876251 is not in any agent 2026-02-16 17:11:50,144 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-11876251 info 2026-02-16 17:11:50,169 - INFO - Deleted policy ctest-policy1-01860173 2026-02-16 17:11:50,327 - DEBUG - policy ctest-policy1-01860173 is not found in API Server 2026-02-16 17:11:50,580 - DEBUG - No XMPP flaps were noticed during the test 2026-02-16 17:11:50,580 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-16 17:11:50,580 - INFO - -------------------------------------------------------------------------------- 2026-02-16 17:11:50,869 - DEBUG - No XMPP flaps were noticed during the test 2026-02-16 17:11:50,870 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-16 17:11:50,870 - INFO - -------------------------------------------------------------------------------- 2026-02-16 17:11:51,535 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-69956903, ID : 2df86065-0b75-43ce-af9f-ee108d170c48