2026-09-03 11:57:42,514 - INFO - Domain Default found not creating 2026-09-03 11:57:42,733 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-39079448 not found, creating it 2026-09-03 11:57:43,307 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-39079448, ID : 0345729c-fe43-4830-819e-a33599d96eb9 2026-09-03 11:57:45,299 - INFO - ================================================================================ 2026-09-03 11:57:45,299 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-03 11:57:45,573 - DEBUG - Nothing to compare xmpp stats {'10.0.0.248': {'10.20.0.25': '0'}} with 2026-09-03 11:57:45,573 - INFO - Initial checks done. Running the testcase now 2026-09-03 11:57:45,573 - INFO - 2026-09-03 11:57:45,573 - INFO - ================================================================================ 2026-09-03 11:57:45,573 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-03 11:57:45,573 - 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-03 11:57:45,870 - DEBUG - Nothing to compare xmpp stats {'10.0.0.248': {'10.20.0.25': '0'}} with 2026-09-03 11:57:45,870 - INFO - Initial checks done. Running the testcase now 2026-09-03 11:57:45,870 - INFO - 2026-09-03 11:57:46,310 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39079448:ctest-vn4-94833099, 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-39079448:ctest-vn4-94833099, 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-39079448:ctest-vn4-94833099, 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-39079448:ctest-vn4-94833099, 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-03 11:57:46,902 - DEBUG - Response for create_network : {'network': {'id': '1d7f4d6e-a3af-497b-beb7-b552bc7042dd', 'name': 'ctest-vn4-94833099', 'tenant_id': '0345729cfe434830819ea33599d96eb9', 'project_id': '0345729cfe434830819ea33599d96eb9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39079448', 'ctest-vn4-94833099'], 'port_security_enabled': True, 'description': ''}} 2026-09-03 11:57:47,111 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f756a79-4270-4743-9d2e-abee2c44955b', 'name': '', 'tenant_id': '0345729cfe434830819ea33599d96eb9', 'network_id': '1d7f4d6e-a3af-497b-beb7-b552bc7042dd', 'ip_version': 4, 'cidr': '193.28.103.64/26', 'allocation_pools': [{'start': '193.28.103.66', 'end': '193.28.103.126'}], 'gateway_ip': '193.28.103.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.28.103.66', 'tags': [], 'project_id': '0345729cfe434830819ea33599d96eb9'}} 2026-09-03 11:57:47,329 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb54dea5-975e-4f6d-baa9-5e3da5e4809a', 'name': '', 'tenant_id': '0345729cfe434830819ea33599d96eb9', 'network_id': '1d7f4d6e-a3af-497b-beb7-b552bc7042dd', 'ip_version': 6, 'cidr': '2df6:c324:4526:6851:6e6f:81d1::/96', 'allocation_pools': [{'start': '2df6:c324:4526:6851:6e6f:81d1:0:2', 'end': '2df6:c324:4526:6851:6e6f:81d1:ffff:fffe'}], 'gateway_ip': '2df6:c324:4526:6851:6e6f:81d1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2df6:c324:4526:6851:6e6f:81d1:0:2', 'tags': [], 'project_id': '0345729cfe434830819ea33599d96eb9'}} 2026-09-03 11:57:47,352 - INFO - Created VN ctest-vn4-94833099 2026-09-03 11:57:47,410 - DEBUG - VN ctest-vn4-94833099 UUID is 1d7f4d6e-a3af-497b-beb7-b552bc7042dd 2026-09-03 11:57:47,662 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1d7f4d6e-a3af-497b-beb7-b552bc7042dd', 'name': 'ctest-vn4-94833099', 'tenant_id': '0345729cfe434830819ea33599d96eb9', 'project_id': '0345729cfe434830819ea33599d96eb9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['8f756a79-4270-4743-9d2e-abee2c44955b', 'bb54dea5-975e-4f6d-baa9-5e3da5e4809a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39079448', 'ctest-vn4-94833099'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39079448', 'ctest-policy1-86354037']], 'subnet_ipam': [{'subnet_cidr': '193.28.103.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2df6:c324:4526:6851:6e6f:81d1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-03 11:57:47,835 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-09-03 11:57:48,215 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-09-03 11:57:48,253 - DEBUG - Requesting: http://10.0.0.248:8082/domain/5d429a03-7ac7-428e-bf9e-cbb7fcb96f19 2026-09-03 11:57:48,268 - DEBUG - Requesting: http://10.0.0.248:8082/project/0345729c-fe43-4830-819e-a33599d96eb9 2026-09-03 11:57:48,350 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/1d7f4d6e-a3af-497b-beb7-b552bc7042dd 2026-09-03 11:57:48,363 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/1d7f4d6e-a3af-497b-beb7-b552bc7042dd 2026-09-03 11:57:48,374 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/191b3d16-7cfe-4a50-9f56-6dbe63865b2a 2026-09-03 11:57:48,382 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/191b3d16-7cfe-4a50-9f56-6dbe63865b2a 2026-09-03 11:57:48,390 - DEBUG - Requesting: http://10.0.0.248:8082/route-target/0d96a68f-f1f3-48ee-91e5-c202fd8a82dd 2026-09-03 11:57:48,398 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-03 11:57:48,398 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/1d7f4d6e-a3af-497b-beb7-b552bc7042dd 2026-09-03 11:57:48,411 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/191b3d16-7cfe-4a50-9f56-6dbe63865b2a 2026-09-03 11:57:48,430 - INFO - Verified VN network id 10 for VN 1d7f4d6e-a3af-497b-beb7-b552bc7042dd 2026-09-03 11:57:48,430 - INFO - Verifications in API Server for VN ctest-vn4-94833099 passed 2026-09-03 11:57:48,430 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/1d7f4d6e-a3af-497b-beb7-b552bc7042dd 2026-09-03 11:57:48,441 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/191b3d16-7cfe-4a50-9f56-6dbe63865b2a 2026-09-03 11:57:48,449 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/191b3d16-7cfe-4a50-9f56-6dbe63865b2a 2026-09-03 11:57:48,457 - DEBUG - Requesting: http://10.0.0.248:8082/route-target/0d96a68f-f1f3-48ee-91e5-c202fd8a82dd 2026-09-03 11:57:48,473 - DEBUG - Control-node 10.0.0.248 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39079448:ctest-vn4-94833099', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-39079448', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2125502686730078587', 'uuid-lslong': '13742652154897777373'}, 'enable': 'true', 'created': '2026-09-03T11:57:46', 'last-modified': '2026-09-03T11:57:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.849847'} 2026-09-03 11:57:48,483 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-03 11:57:48,483 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94833099 passed 2026-09-03 11:57:48,483 - DEBUG - ====Verifying policy data for ctest-vn4-94833099 in API_Server ====== 2026-09-03 11:57:48,483 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-09-03 11:57:48,491 - DEBUG - Requesting: http://10.0.0.248:8082/domain/5d429a03-7ac7-428e-bf9e-cbb7fcb96f19 2026-09-03 11:57:48,505 - DEBUG - Requesting: http://10.0.0.248:8082/project/0345729c-fe43-4830-819e-a33599d96eb9 2026-09-03 11:57:48,595 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/1d7f4d6e-a3af-497b-beb7-b552bc7042dd 2026-09-03 11:57:48,614 - DEBUG - ==>Verifying data for policy with id: 65f7d07a-b5c4-4241-9c07-4941c854a8f9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39079448', 'ctest-policy1-86354037'] 2026-09-03 11:57:48,614 - INFO - VN ctest-vn4-94833099 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-03 11:57:48,614 - DEBUG - Verifying the vn in opserver 2026-09-03 11:57:48,615 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39079448:ctest-vn4-94833099 virtual network link through opserver 10.0.0.248 2026-09-03 11:57:48,615 - DEBUG - Requesting: http://10.0.0.248:8081/analytics/uves/virtual-networks 2026-09-03 11:57:48,987 - DEBUG - Requesting: http://10.0.0.248:8081/analytics/uves/virtual-networks 2026-09-03 11:57:49,050 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39079448:ctest-vn4-94833099', 'href': 'http://10.0.0.248:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39079448:ctest-vn4-94833099?flat'} 2026-09-03 11:57:49,050 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39079448:ctest-vn4-94833099 is found in opserver 2026-09-03 11:57:49,064 - DEBUG - Do not have enough data to verify VN in agent 2026-09-03 11:57:49,071 - DEBUG - VRF ids for VN ctest-vn4-94833099: {} 2026-09-03 11:57:49,072 - DEBUG - ====Verifying data for ctest-policy1-86354037 in API_Server ====== 2026-09-03 11:57:49,072 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-09-03 11:57:49,080 - DEBUG - Requesting: http://10.0.0.248:8082/domain/5d429a03-7ac7-428e-bf9e-cbb7fcb96f19 2026-09-03 11:57:49,094 - DEBUG - Requesting: http://10.0.0.248:8082/project/0345729c-fe43-4830-819e-a33599d96eb9 2026-09-03 11:57:49,177 - DEBUG - Requesting: http://10.0.0.248:8082/network-policy/65f7d07a-b5c4-4241-9c07-4941c854a8f9 2026-09-03 11:57:49,188 - INFO - Verified policy ctest-policy1-86354037 in API Server, Result: True 2026-09-03 11:57:49,188 - INFO - Done with setup and verification, moving onto test .. 2026-09-03 11:57:49,201 - INFO - Deleting VN ctest-vn4-94833099 2026-09-03 11:57:49,368 - DEBUG - Response for deleting network () 2026-09-03 11:57:49,368 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/191b3d16-7cfe-4a50-9f56-6dbe63865b2a 2026-09-03 11:57:49,375 - DEBUG - Response Code: 404 2026-09-03 11:57:49,375 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-09-03 11:57:49,385 - DEBUG - Requesting: http://10.0.0.248:8082/domain/5d429a03-7ac7-428e-bf9e-cbb7fcb96f19 2026-09-03 11:57:49,441 - DEBUG - Requesting: http://10.0.0.248:8082/project/0345729c-fe43-4830-819e-a33599d96eb9 2026-09-03 11:57:49,529 - INFO - Validated that VN ctest-vn4-94833099 is not found in API Server 2026-09-03 11:57:49,542 - DEBUG - VN ctest-vn4-94833099 is not present in Agent 10.0.0.248 2026-09-03 11:57:49,542 - INFO - Validated that VN ctest-vn4-94833099 is not in any agent 2026-09-03 11:57:49,559 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94833099 info 2026-09-03 11:57:49,587 - INFO - Deleted policy ctest-policy1-86354037 2026-09-03 11:57:49,766 - DEBUG - policy ctest-policy1-86354037 is not found in API Server 2026-09-03 11:57:50,037 - DEBUG - No XMPP flaps were noticed during the test 2026-09-03 11:57:50,037 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-03 11:57:50,037 - INFO - -------------------------------------------------------------------------------- 2026-09-03 11:57:50,332 - DEBUG - No XMPP flaps were noticed during the test 2026-09-03 11:57:50,333 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-03 11:57:50,333 - INFO - -------------------------------------------------------------------------------- 2026-09-03 11:57:51,161 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-39079448, ID : 0345729c-fe43-4830-819e-a33599d96eb9