2026-10-26 14:19:27,733 - INFO - Domain Default found not creating 2026-10-26 14:19:28,010 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85017936 not found, creating it 2026-10-26 14:19:28,578 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85017936, ID : 9561ecfa-929c-4c39-bcf9-70dba4380c9c 2026-10-26 14:19:30,703 - INFO - ================================================================================ 2026-10-26 14:19:30,703 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-26 14:19:30,999 - DEBUG - Nothing to compare xmpp stats {'10.0.0.188': {'10.20.0.254': '0'}} with 2026-10-26 14:19:30,999 - INFO - Initial checks done. Running the testcase now 2026-10-26 14:19:30,999 - INFO - 2026-10-26 14:19:30,999 - INFO - ================================================================================ 2026-10-26 14:19:30,999 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-26 14:19:30,999 - 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-10-26 14:19:31,307 - DEBUG - Nothing to compare xmpp stats {'10.0.0.188': {'10.20.0.254': '0'}} with 2026-10-26 14:19:31,308 - INFO - Initial checks done. Running the testcase now 2026-10-26 14:19:31,308 - INFO - 2026-10-26 14:19:31,798 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85017936:ctest-vn4-53354600, 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-85017936:ctest-vn4-53354600, 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-85017936:ctest-vn4-53354600, 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-85017936:ctest-vn4-53354600, 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-10-26 14:19:32,427 - DEBUG - Response for create_network : {'network': {'id': 'fa7d595d-b3c5-4777-a739-e7cab4070f61', 'name': 'ctest-vn4-53354600', 'tenant_id': '9561ecfa929c4c39bcf970dba4380c9c', 'project_id': '9561ecfa929c4c39bcf970dba4380c9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85017936', 'ctest-vn4-53354600'], 'port_security_enabled': True, 'description': ''}} 2026-10-26 14:19:32,672 - DEBUG - Response for create_subnet : {'subnet': {'id': '11e8c9b5-84da-4a98-b584-12910e194423', 'name': '', 'tenant_id': '9561ecfa929c4c39bcf970dba4380c9c', 'network_id': 'fa7d595d-b3c5-4777-a739-e7cab4070f61', 'ip_version': 4, 'cidr': '120.112.80.64/26', 'allocation_pools': [{'start': '120.112.80.66', 'end': '120.112.80.126'}], 'gateway_ip': '120.112.80.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.112.80.66', 'tags': [], 'project_id': '9561ecfa929c4c39bcf970dba4380c9c'}} 2026-10-26 14:19:32,918 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd935d795-1e0d-48d4-be67-f6c5861bb909', 'name': '', 'tenant_id': '9561ecfa929c4c39bcf970dba4380c9c', 'network_id': 'fa7d595d-b3c5-4777-a739-e7cab4070f61', 'ip_version': 6, 'cidr': '366a:e5b4:2153:12cd:bfd8:f539::/96', 'allocation_pools': [{'start': '366a:e5b4:2153:12cd:bfd8:f539:0:2', 'end': '366a:e5b4:2153:12cd:bfd8:f539:ffff:fffe'}], 'gateway_ip': '366a:e5b4:2153:12cd:bfd8:f539:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '366a:e5b4:2153:12cd:bfd8:f539:0:2', 'tags': [], 'project_id': '9561ecfa929c4c39bcf970dba4380c9c'}} 2026-10-26 14:19:32,945 - INFO - Created VN ctest-vn4-53354600 2026-10-26 14:19:33,002 - DEBUG - VN ctest-vn4-53354600 UUID is fa7d595d-b3c5-4777-a739-e7cab4070f61 2026-10-26 14:19:33,285 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa7d595d-b3c5-4777-a739-e7cab4070f61', 'name': 'ctest-vn4-53354600', 'tenant_id': '9561ecfa929c4c39bcf970dba4380c9c', 'project_id': '9561ecfa929c4c39bcf970dba4380c9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['11e8c9b5-84da-4a98-b584-12910e194423', 'd935d795-1e0d-48d4-be67-f6c5861bb909'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85017936', 'ctest-vn4-53354600'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85017936', 'ctest-policy1-60364360']], 'subnet_ipam': [{'subnet_cidr': '120.112.80.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '366a:e5b4:2153:12cd:bfd8:f539::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-26 14:19:33,462 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-10-26 14:19:33,850 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-10-26 14:19:33,887 - DEBUG - Requesting: http://10.0.0.188:8082/domain/d2a16bec-094c-4a1a-82ae-c0bee6d48db8 2026-10-26 14:19:33,902 - DEBUG - Requesting: http://10.0.0.188:8082/project/9561ecfa-929c-4c39-bcf9-70dba4380c9c 2026-10-26 14:19:33,993 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/fa7d595d-b3c5-4777-a739-e7cab4070f61 2026-10-26 14:19:34,012 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/fa7d595d-b3c5-4777-a739-e7cab4070f61 2026-10-26 14:19:34,027 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/a692f98c-6da9-4f87-8428-406995102ab4 2026-10-26 14:19:34,040 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/a692f98c-6da9-4f87-8428-406995102ab4 2026-10-26 14:19:34,051 - DEBUG - Requesting: http://10.0.0.188:8082/route-target/3801f415-61a6-4e12-9c52-1fc3663dcdc2 2026-10-26 14:19:34,065 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-26 14:19:34,065 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/fa7d595d-b3c5-4777-a739-e7cab4070f61 2026-10-26 14:19:34,088 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/a692f98c-6da9-4f87-8428-406995102ab4 2026-10-26 14:19:34,111 - INFO - Verified VN network id 12 for VN fa7d595d-b3c5-4777-a739-e7cab4070f61 2026-10-26 14:19:34,112 - INFO - Verifications in API Server for VN ctest-vn4-53354600 passed 2026-10-26 14:19:34,112 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/fa7d595d-b3c5-4777-a739-e7cab4070f61 2026-10-26 14:19:34,129 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/a692f98c-6da9-4f87-8428-406995102ab4 2026-10-26 14:19:34,140 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/a692f98c-6da9-4f87-8428-406995102ab4 2026-10-26 14:19:34,153 - DEBUG - Requesting: http://10.0.0.188:8082/route-target/3801f415-61a6-4e12-9c52-1fc3663dcdc2 2026-10-26 14:19:34,176 - DEBUG - Control-node 10.0.0.188 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85017936:ctest-vn4-53354600', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85017936', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18049681140553697143', 'uuid-lslong': '12049917135796244321'}, 'enable': 'true', 'created': '2026-10-26T14:19:32', 'last-modified': '2026-10-26T14:19:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.939166'} 2026-10-26 14:19:34,189 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-26 14:19:34,189 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-53354600 passed 2026-10-26 14:19:34,190 - DEBUG - ====Verifying policy data for ctest-vn4-53354600 in API_Server ====== 2026-10-26 14:19:34,190 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-10-26 14:19:34,198 - DEBUG - Requesting: http://10.0.0.188:8082/domain/d2a16bec-094c-4a1a-82ae-c0bee6d48db8 2026-10-26 14:19:34,215 - DEBUG - Requesting: http://10.0.0.188:8082/project/9561ecfa-929c-4c39-bcf9-70dba4380c9c 2026-10-26 14:19:34,322 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/fa7d595d-b3c5-4777-a739-e7cab4070f61 2026-10-26 14:19:34,334 - DEBUG - ==>Verifying data for policy with id: 8f260240-f511-4370-a19f-7800a2bc083a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85017936', 'ctest-policy1-60364360'] 2026-10-26 14:19:34,334 - INFO - VN ctest-vn4-53354600 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-26 14:19:34,334 - DEBUG - Verifying the vn in opserver 2026-10-26 14:19:34,334 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85017936:ctest-vn4-53354600 virtual network link through opserver 10.0.0.188 2026-10-26 14:19:34,335 - DEBUG - Requesting: http://10.0.0.188:8081/analytics/uves/virtual-networks 2026-10-26 14:19:34,723 - DEBUG - Requesting: http://10.0.0.188:8081/analytics/uves/virtual-networks 2026-10-26 14:19:34,822 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85017936:ctest-vn4-53354600', 'href': 'http://10.0.0.188:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85017936:ctest-vn4-53354600?flat'} 2026-10-26 14:19:34,822 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85017936:ctest-vn4-53354600 is found in opserver 2026-10-26 14:19:34,838 - DEBUG - Do not have enough data to verify VN in agent 2026-10-26 14:19:34,844 - DEBUG - VRF ids for VN ctest-vn4-53354600: {} 2026-10-26 14:19:34,845 - DEBUG - ====Verifying data for ctest-policy1-60364360 in API_Server ====== 2026-10-26 14:19:34,845 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-10-26 14:19:34,855 - DEBUG - Requesting: http://10.0.0.188:8082/domain/d2a16bec-094c-4a1a-82ae-c0bee6d48db8 2026-10-26 14:19:34,922 - DEBUG - Requesting: http://10.0.0.188:8082/project/9561ecfa-929c-4c39-bcf9-70dba4380c9c 2026-10-26 14:19:34,982 - DEBUG - Requesting: http://10.0.0.188:8082/network-policy/8f260240-f511-4370-a19f-7800a2bc083a 2026-10-26 14:19:34,997 - INFO - Verified policy ctest-policy1-60364360 in API Server, Result: True 2026-10-26 14:19:34,997 - INFO - Done with setup and verification, moving onto test .. 2026-10-26 14:19:35,009 - INFO - Deleting VN ctest-vn4-53354600 2026-10-26 14:19:35,185 - DEBUG - Response for deleting network () 2026-10-26 14:19:35,185 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/a692f98c-6da9-4f87-8428-406995102ab4 2026-10-26 14:19:35,204 - DEBUG - Response Code: 404 2026-10-26 14:19:35,209 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-10-26 14:19:35,272 - DEBUG - Requesting: http://10.0.0.188:8082/domain/d2a16bec-094c-4a1a-82ae-c0bee6d48db8 2026-10-26 14:19:35,301 - DEBUG - Requesting: http://10.0.0.188:8082/project/9561ecfa-929c-4c39-bcf9-70dba4380c9c 2026-10-26 14:19:35,399 - INFO - Validated that VN ctest-vn4-53354600 is not found in API Server 2026-10-26 14:19:35,436 - DEBUG - VN ctest-vn4-53354600 is not present in Agent 10.0.0.188 2026-10-26 14:19:35,436 - INFO - Validated that VN ctest-vn4-53354600 is not in any agent 2026-10-26 14:19:35,505 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-53354600 info 2026-10-26 14:19:35,547 - INFO - Deleted policy ctest-policy1-60364360 2026-10-26 14:19:35,777 - DEBUG - policy ctest-policy1-60364360 is not found in API Server 2026-10-26 14:19:36,163 - DEBUG - No XMPP flaps were noticed during the test