2026-04-29 19:07:14,422 - INFO - Domain Default found not creating 2026-04-29 19:07:14,597 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-42559696 not found, creating it 2026-04-29 19:07:15,063 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-42559696, ID : 990aaa41-b6d6-41a5-86c6-156fa946b2ae 2026-04-29 19:07:16,595 - INFO - ================================================================================ 2026-04-29 19:07:16,596 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-29 19:07:16,853 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-04-29 19:07:16,853 - INFO - Initial checks done. Running the testcase now 2026-04-29 19:07:16,853 - INFO - 2026-04-29 19:07:16,854 - INFO - ================================================================================ 2026-04-29 19:07:16,854 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-29 19:07:16,854 - 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-04-29 19:07:17,162 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-04-29 19:07:17,162 - INFO - Initial checks done. Running the testcase now 2026-04-29 19:07:17,162 - INFO - 2026-04-29 19:07:17,523 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42559696:ctest-vn4-45032784, 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-42559696:ctest-vn4-45032784, 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-42559696:ctest-vn4-45032784, 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-42559696:ctest-vn4-45032784, 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-04-29 19:07:18,045 - DEBUG - Response for create_network : {'network': {'id': 'c4cab760-b497-4fab-9cf9-6dae19bad9af', 'name': 'ctest-vn4-45032784', 'tenant_id': '990aaa41b6d641a586c6156fa946b2ae', 'project_id': '990aaa41b6d641a586c6156fa946b2ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42559696', 'ctest-vn4-45032784'], 'port_security_enabled': True, 'description': ''}} 2026-04-29 19:07:18,271 - DEBUG - Response for create_subnet : {'subnet': {'id': '86f24385-06dc-4e6e-a572-c133faf371b7', 'name': '', 'tenant_id': '990aaa41b6d641a586c6156fa946b2ae', 'network_id': 'c4cab760-b497-4fab-9cf9-6dae19bad9af', 'ip_version': 4, 'cidr': '116.205.243.192/26', 'allocation_pools': [{'start': '116.205.243.194', 'end': '116.205.243.254'}], 'gateway_ip': '116.205.243.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.205.243.194', 'tags': [], 'project_id': '990aaa41b6d641a586c6156fa946b2ae'}} 2026-04-29 19:07:18,442 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb7afc83-30d9-4afb-8658-519c48f2e9b2', 'name': '', 'tenant_id': '990aaa41b6d641a586c6156fa946b2ae', 'network_id': 'c4cab760-b497-4fab-9cf9-6dae19bad9af', 'ip_version': 6, 'cidr': '39f5:332:66f0:872:3ea1:1bb6::/96', 'allocation_pools': [{'start': '39f5:332:66f0:872:3ea1:1bb6:0:2', 'end': '39f5:332:66f0:872:3ea1:1bb6:ffff:fffe'}], 'gateway_ip': '39f5:332:66f0:872:3ea1:1bb6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39f5:332:66f0:872:3ea1:1bb6:0:2', 'tags': [], 'project_id': '990aaa41b6d641a586c6156fa946b2ae'}} 2026-04-29 19:07:18,462 - INFO - Created VN ctest-vn4-45032784 2026-04-29 19:07:18,516 - DEBUG - VN ctest-vn4-45032784 UUID is c4cab760-b497-4fab-9cf9-6dae19bad9af 2026-04-29 19:07:18,728 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c4cab760-b497-4fab-9cf9-6dae19bad9af', 'name': 'ctest-vn4-45032784', 'tenant_id': '990aaa41b6d641a586c6156fa946b2ae', 'project_id': '990aaa41b6d641a586c6156fa946b2ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['86f24385-06dc-4e6e-a572-c133faf371b7', 'fb7afc83-30d9-4afb-8658-519c48f2e9b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42559696', 'ctest-vn4-45032784'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42559696', 'ctest-policy1-89994236']], 'subnet_ipam': [{'subnet_cidr': '116.205.243.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '39f5:332:66f0:872:3ea1:1bb6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-29 19:07:18,888 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-29 19:07:19,189 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-29 19:07:19,223 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3eb7dd65-15c1-4633-ac5f-d5ec47edd8f8 2026-04-29 19:07:19,237 - DEBUG - Requesting: http://10.0.0.38:8082/project/990aaa41-b6d6-41a5-86c6-156fa946b2ae 2026-04-29 19:07:19,310 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c4cab760-b497-4fab-9cf9-6dae19bad9af 2026-04-29 19:07:19,323 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c4cab760-b497-4fab-9cf9-6dae19bad9af 2026-04-29 19:07:19,333 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/89283b51-dfae-499c-bda1-d9628c48c166 2026-04-29 19:07:19,340 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/89283b51-dfae-499c-bda1-d9628c48c166 2026-04-29 19:07:19,347 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1fbd753a-ca25-48ef-bee7-786a27fccd31 2026-04-29 19:07:19,354 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-29 19:07:19,354 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c4cab760-b497-4fab-9cf9-6dae19bad9af 2026-04-29 19:07:19,364 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/89283b51-dfae-499c-bda1-d9628c48c166 2026-04-29 19:07:19,379 - INFO - Verified VN network id 11 for VN c4cab760-b497-4fab-9cf9-6dae19bad9af 2026-04-29 19:07:19,380 - INFO - Verifications in API Server for VN ctest-vn4-45032784 passed 2026-04-29 19:07:19,380 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c4cab760-b497-4fab-9cf9-6dae19bad9af 2026-04-29 19:07:19,389 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/89283b51-dfae-499c-bda1-d9628c48c166 2026-04-29 19:07:19,396 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/89283b51-dfae-499c-bda1-d9628c48c166 2026-04-29 19:07:19,402 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1fbd753a-ca25-48ef-bee7-786a27fccd31 2026-04-29 19:07:19,415 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42559696:ctest-vn4-45032784', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42559696', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14180348002703986603', 'uuid-lslong': '11311192533641124271'}, 'enable': 'true', 'created': '2026-04-29T19:07:18', 'last-modified': '2026-04-29T19:07:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.713018'} 2026-04-29 19:07:19,421 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-29 19:07:19,421 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-45032784 passed 2026-04-29 19:07:19,421 - DEBUG - ====Verifying policy data for ctest-vn4-45032784 in API_Server ====== 2026-04-29 19:07:19,422 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-29 19:07:19,427 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3eb7dd65-15c1-4633-ac5f-d5ec47edd8f8 2026-04-29 19:07:19,439 - DEBUG - Requesting: http://10.0.0.38:8082/project/990aaa41-b6d6-41a5-86c6-156fa946b2ae 2026-04-29 19:07:19,510 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c4cab760-b497-4fab-9cf9-6dae19bad9af 2026-04-29 19:07:19,522 - DEBUG - ==>Verifying data for policy with id: a3667bb0-d813-4956-ab1f-618c8da88c1c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42559696', 'ctest-policy1-89994236'] 2026-04-29 19:07:19,522 - INFO - VN ctest-vn4-45032784 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-29 19:07:19,522 - DEBUG - Verifying the vn in opserver 2026-04-29 19:07:19,522 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42559696:ctest-vn4-45032784 virtual network link through opserver 10.0.0.38 2026-04-29 19:07:19,522 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-29 19:07:19,823 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-29 19:07:19,891 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42559696:ctest-vn4-45032784', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42559696:ctest-vn4-45032784?flat'} 2026-04-29 19:07:19,891 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42559696:ctest-vn4-45032784 is found in opserver 2026-04-29 19:07:19,900 - DEBUG - Do not have enough data to verify VN in agent 2026-04-29 19:07:19,905 - DEBUG - VRF ids for VN ctest-vn4-45032784: {} 2026-04-29 19:07:19,905 - DEBUG - ====Verifying data for ctest-policy1-89994236 in API_Server ====== 2026-04-29 19:07:19,905 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-29 19:07:19,910 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3eb7dd65-15c1-4633-ac5f-d5ec47edd8f8 2026-04-29 19:07:19,920 - DEBUG - Requesting: http://10.0.0.38:8082/project/990aaa41-b6d6-41a5-86c6-156fa946b2ae 2026-04-29 19:07:19,990 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/a3667bb0-d813-4956-ab1f-618c8da88c1c 2026-04-29 19:07:19,999 - INFO - Verified policy ctest-policy1-89994236 in API Server, Result: True 2026-04-29 19:07:19,999 - INFO - Done with setup and verification, moving onto test .. 2026-04-29 19:07:20,008 - INFO - Deleting VN ctest-vn4-45032784 2026-04-29 19:07:20,131 - DEBUG - Response for deleting network () 2026-04-29 19:07:20,131 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/89283b51-dfae-499c-bda1-d9628c48c166 2026-04-29 19:07:20,136 - DEBUG - Response Code: 404 2026-04-29 19:07:20,136 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-29 19:07:20,142 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3eb7dd65-15c1-4633-ac5f-d5ec47edd8f8 2026-04-29 19:07:20,197 - DEBUG - Requesting: http://10.0.0.38:8082/project/990aaa41-b6d6-41a5-86c6-156fa946b2ae 2026-04-29 19:07:20,267 - INFO - Validated that VN ctest-vn4-45032784 is not found in API Server 2026-04-29 19:07:20,277 - DEBUG - VN ctest-vn4-45032784 is not present in Agent 10.0.0.38 2026-04-29 19:07:20,277 - INFO - Validated that VN ctest-vn4-45032784 is not in any agent 2026-04-29 19:07:20,292 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-45032784 info 2026-04-29 19:07:20,316 - INFO - Deleted policy ctest-policy1-89994236 2026-04-29 19:07:20,480 - DEBUG - policy ctest-policy1-89994236 is not found in API Server 2026-04-29 19:07:20,734 - DEBUG - No XMPP flaps were noticed during the test