2026-09-21 13:00:56,071 - INFO - Domain Default found not creating 2026-09-21 13:00:56,280 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-42598296 not found, creating it 2026-09-21 13:00:56,834 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-42598296, ID : a70034f0-0e25-4263-bc56-b299105ba32a 2026-09-21 13:00:58,692 - INFO - ================================================================================ 2026-09-21 13:00:58,693 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-21 13:00:58,968 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-09-21 13:00:58,968 - INFO - Initial checks done. Running the testcase now 2026-09-21 13:00:58,968 - INFO - 2026-09-21 13:00:58,969 - INFO - ================================================================================ 2026-09-21 13:00:58,969 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-21 13:00:58,969 - 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-09-21 13:00:59,267 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-09-21 13:00:59,268 - INFO - Initial checks done. Running the testcase now 2026-09-21 13:00:59,268 - INFO - 2026-09-21 13:01:00,003 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42598296:ctest-vn4-11533813, 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-42598296:ctest-vn4-11533813, 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-42598296:ctest-vn4-11533813, 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-42598296:ctest-vn4-11533813, 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-09-21 13:01:00,641 - DEBUG - Response for create_network : {'network': {'id': '9c21bead-7598-4aa1-90e8-330f095093f5', 'name': 'ctest-vn4-11533813', 'tenant_id': 'a70034f00e254263bc56b299105ba32a', 'project_id': 'a70034f00e254263bc56b299105ba32a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42598296', 'ctest-vn4-11533813'], 'port_security_enabled': True, 'description': ''}} 2026-09-21 13:01:00,954 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e97ee3b7-6680-4f68-9155-64eb7db1adf6', 'name': '', 'tenant_id': 'a70034f00e254263bc56b299105ba32a', 'network_id': '9c21bead-7598-4aa1-90e8-330f095093f5', 'ip_version': 4, 'cidr': '218.13.95.64/26', 'allocation_pools': [{'start': '218.13.95.66', 'end': '218.13.95.126'}], 'gateway_ip': '218.13.95.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.13.95.66', 'tags': [], 'project_id': 'a70034f00e254263bc56b299105ba32a'}} 2026-09-21 13:01:01,127 - DEBUG - Response for create_subnet : {'subnet': {'id': '81f46791-722e-4466-b3d0-1fc4ffb61237', 'name': '', 'tenant_id': 'a70034f00e254263bc56b299105ba32a', 'network_id': '9c21bead-7598-4aa1-90e8-330f095093f5', 'ip_version': 6, 'cidr': '36da:2744:51fe:69fc:8d41:31c6::/96', 'allocation_pools': [{'start': '36da:2744:51fe:69fc:8d41:31c6:0:2', 'end': '36da:2744:51fe:69fc:8d41:31c6:ffff:fffe'}], 'gateway_ip': '36da:2744:51fe:69fc:8d41:31c6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36da:2744:51fe:69fc:8d41:31c6:0:2', 'tags': [], 'project_id': 'a70034f00e254263bc56b299105ba32a'}} 2026-09-21 13:01:01,151 - INFO - Created VN ctest-vn4-11533813 2026-09-21 13:01:01,207 - DEBUG - VN ctest-vn4-11533813 UUID is 9c21bead-7598-4aa1-90e8-330f095093f5 2026-09-21 13:01:01,487 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9c21bead-7598-4aa1-90e8-330f095093f5', 'name': 'ctest-vn4-11533813', 'tenant_id': 'a70034f00e254263bc56b299105ba32a', 'project_id': 'a70034f00e254263bc56b299105ba32a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['e97ee3b7-6680-4f68-9155-64eb7db1adf6', '81f46791-722e-4466-b3d0-1fc4ffb61237'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42598296', 'ctest-vn4-11533813'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42598296', 'ctest-policy1-06673087']], 'subnet_ipam': [{'subnet_cidr': '218.13.95.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '36da:2744:51fe:69fc:8d41:31c6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-21 13:01:01,675 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-21 13:01:02,063 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-21 13:01:02,100 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07979dce-6a25-44e8-ba77-a1d748102f54 2026-09-21 13:01:02,119 - DEBUG - Requesting: http://10.0.0.50:8082/project/a70034f0-0e25-4263-bc56-b299105ba32a 2026-09-21 13:01:02,207 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9c21bead-7598-4aa1-90e8-330f095093f5 2026-09-21 13:01:02,222 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9c21bead-7598-4aa1-90e8-330f095093f5 2026-09-21 13:01:02,235 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b1a6c610-417c-4676-a3b0-4166f9bdddf3 2026-09-21 13:01:02,246 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b1a6c610-417c-4676-a3b0-4166f9bdddf3 2026-09-21 13:01:02,256 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/31c875b6-d1b7-4b89-94f7-bfde41a2fde8 2026-09-21 13:01:02,264 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-21 13:01:02,264 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9c21bead-7598-4aa1-90e8-330f095093f5 2026-09-21 13:01:02,278 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b1a6c610-417c-4676-a3b0-4166f9bdddf3 2026-09-21 13:01:02,296 - INFO - Verified VN network id 12 for VN 9c21bead-7598-4aa1-90e8-330f095093f5 2026-09-21 13:01:02,296 - INFO - Verifications in API Server for VN ctest-vn4-11533813 passed 2026-09-21 13:01:02,296 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9c21bead-7598-4aa1-90e8-330f095093f5 2026-09-21 13:01:02,309 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b1a6c610-417c-4676-a3b0-4166f9bdddf3 2026-09-21 13:01:02,319 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b1a6c610-417c-4676-a3b0-4166f9bdddf3 2026-09-21 13:01:02,331 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/31c875b6-d1b7-4b89-94f7-bfde41a2fde8 2026-09-21 13:01:02,350 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42598296:ctest-vn4-11533813', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42598296', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11250482996359744161', 'uuid-lslong': '10441651875732296693'}, 'enable': 'true', 'created': '2026-09-21T13:01:00', 'last-modified': '2026-09-21T13:01:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.918551'} 2026-09-21 13:01:02,359 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-21 13:01:02,359 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-11533813 passed 2026-09-21 13:01:02,359 - DEBUG - ====Verifying policy data for ctest-vn4-11533813 in API_Server ====== 2026-09-21 13:01:02,360 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-21 13:01:02,367 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07979dce-6a25-44e8-ba77-a1d748102f54 2026-09-21 13:01:02,382 - DEBUG - Requesting: http://10.0.0.50:8082/project/a70034f0-0e25-4263-bc56-b299105ba32a 2026-09-21 13:01:02,475 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9c21bead-7598-4aa1-90e8-330f095093f5 2026-09-21 13:01:02,489 - DEBUG - ==>Verifying data for policy with id: 28013c8a-9583-4322-967a-1aaaa5407708, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42598296', 'ctest-policy1-06673087'] 2026-09-21 13:01:02,489 - INFO - VN ctest-vn4-11533813 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-21 13:01:02,489 - DEBUG - Verifying the vn in opserver 2026-09-21 13:01:02,489 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42598296:ctest-vn4-11533813 virtual network link through opserver 10.0.0.50 2026-09-21 13:01:02,489 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-09-21 13:01:02,880 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-09-21 13:01:02,943 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42598296:ctest-vn4-11533813', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42598296:ctest-vn4-11533813?flat'} 2026-09-21 13:01:02,943 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42598296:ctest-vn4-11533813 is found in opserver 2026-09-21 13:01:02,957 - DEBUG - Do not have enough data to verify VN in agent 2026-09-21 13:01:02,964 - DEBUG - VRF ids for VN ctest-vn4-11533813: {} 2026-09-21 13:01:02,965 - DEBUG - ====Verifying data for ctest-policy1-06673087 in API_Server ====== 2026-09-21 13:01:02,965 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-21 13:01:02,972 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07979dce-6a25-44e8-ba77-a1d748102f54 2026-09-21 13:01:02,987 - DEBUG - Requesting: http://10.0.0.50:8082/project/a70034f0-0e25-4263-bc56-b299105ba32a 2026-09-21 13:01:03,070 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/28013c8a-9583-4322-967a-1aaaa5407708 2026-09-21 13:01:03,084 - INFO - Verified policy ctest-policy1-06673087 in API Server, Result: True 2026-09-21 13:01:03,084 - INFO - Done with setup and verification, moving onto test .. 2026-09-21 13:01:03,096 - INFO - Deleting VN ctest-vn4-11533813 2026-09-21 13:01:03,304 - DEBUG - Response for deleting network () 2026-09-21 13:01:03,304 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b1a6c610-417c-4676-a3b0-4166f9bdddf3 2026-09-21 13:01:03,313 - DEBUG - Response Code: 404 2026-09-21 13:01:03,313 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-21 13:01:03,329 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07979dce-6a25-44e8-ba77-a1d748102f54 2026-09-21 13:01:03,346 - DEBUG - Requesting: http://10.0.0.50:8082/project/a70034f0-0e25-4263-bc56-b299105ba32a 2026-09-21 13:01:03,439 - INFO - Validated that VN ctest-vn4-11533813 is not found in API Server 2026-09-21 13:01:03,454 - DEBUG - VN ctest-vn4-11533813 is not present in Agent 10.0.0.50 2026-09-21 13:01:03,455 - INFO - Validated that VN ctest-vn4-11533813 is not in any agent 2026-09-21 13:01:03,476 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-11533813 info 2026-09-21 13:01:03,509 - INFO - Deleted policy ctest-policy1-06673087 2026-09-21 13:01:03,702 - DEBUG - policy ctest-policy1-06673087 is not found in API Server 2026-09-21 13:01:03,976 - DEBUG - No XMPP flaps were noticed during the test