2026-01-08 02:09:34,032 - INFO - Domain Default found not creating 2026-01-08 02:09:34,196 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-99380130 not found, creating it 2026-01-08 02:09:34,657 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-99380130, ID : 02b8379a-03fb-480c-9cd3-12ded4bfaa83 2026-01-08 02:09:36,127 - INFO - ================================================================================ 2026-01-08 02:09:36,127 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-08 02:09:36,391 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.18': '0'}} with 2026-01-08 02:09:36,391 - INFO - Initial checks done. Running the testcase now 2026-01-08 02:09:36,391 - INFO - 2026-01-08 02:09:36,391 - INFO - ================================================================================ 2026-01-08 02:09:36,391 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-08 02:09:36,391 - 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-01-08 02:09:36,677 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.18': '0'}} with 2026-01-08 02:09:36,677 - INFO - Initial checks done. Running the testcase now 2026-01-08 02:09:36,677 - INFO - 2026-01-08 02:09:37,030 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99380130:ctest-vn4-50415676, 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-99380130:ctest-vn4-50415676, 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-99380130:ctest-vn4-50415676, 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-99380130:ctest-vn4-50415676, 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-01-08 02:09:37,540 - DEBUG - Response for create_network : {'network': {'id': '5b2eb108-a51a-4811-97a3-39d44a5b63d8', 'name': 'ctest-vn4-50415676', 'tenant_id': '02b8379a03fb480c9cd312ded4bfaa83', 'project_id': '02b8379a03fb480c9cd312ded4bfaa83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99380130', 'ctest-vn4-50415676'], 'port_security_enabled': True, 'description': ''}} 2026-01-08 02:09:37,694 - DEBUG - Response for create_subnet : {'subnet': {'id': '4086e072-ff0a-46f7-a8d8-a829345a8dcf', 'name': '', 'tenant_id': '02b8379a03fb480c9cd312ded4bfaa83', 'network_id': '5b2eb108-a51a-4811-97a3-39d44a5b63d8', 'ip_version': 4, 'cidr': '216.82.56.192/26', 'allocation_pools': [{'start': '216.82.56.194', 'end': '216.82.56.254'}], 'gateway_ip': '216.82.56.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.82.56.194', 'tags': [], 'project_id': '02b8379a03fb480c9cd312ded4bfaa83'}} 2026-01-08 02:09:37,874 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2103b2e-1b29-4270-92ab-311014feb55a', 'name': '', 'tenant_id': '02b8379a03fb480c9cd312ded4bfaa83', 'network_id': '5b2eb108-a51a-4811-97a3-39d44a5b63d8', 'ip_version': 6, 'cidr': '38f4:bbbe:58a:af0d:b4b9:b9ca::/96', 'allocation_pools': [{'start': '38f4:bbbe:58a:af0d:b4b9:b9ca:0:2', 'end': '38f4:bbbe:58a:af0d:b4b9:b9ca:ffff:fffe'}], 'gateway_ip': '38f4:bbbe:58a:af0d:b4b9:b9ca:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38f4:bbbe:58a:af0d:b4b9:b9ca:0:2', 'tags': [], 'project_id': '02b8379a03fb480c9cd312ded4bfaa83'}} 2026-01-08 02:09:37,897 - INFO - Created VN ctest-vn4-50415676 2026-01-08 02:09:37,948 - DEBUG - VN ctest-vn4-50415676 UUID is 5b2eb108-a51a-4811-97a3-39d44a5b63d8 2026-01-08 02:09:38,134 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b2eb108-a51a-4811-97a3-39d44a5b63d8', 'name': 'ctest-vn4-50415676', 'tenant_id': '02b8379a03fb480c9cd312ded4bfaa83', 'project_id': '02b8379a03fb480c9cd312ded4bfaa83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4086e072-ff0a-46f7-a8d8-a829345a8dcf', 'b2103b2e-1b29-4270-92ab-311014feb55a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99380130', 'ctest-vn4-50415676'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99380130', 'ctest-policy1-86449376']], 'subnet_ipam': [{'subnet_cidr': '216.82.56.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '38f4:bbbe:58a:af0d:b4b9:b9ca::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-08 02:09:38,292 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-08 02:09:38,592 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-08 02:09:38,622 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cd468b36-442d-49bf-b5d3-8ada6376a516 2026-01-08 02:09:38,634 - DEBUG - Requesting: http://10.0.0.22:8082/project/02b8379a-03fb-480c-9cd3-12ded4bfaa83 2026-01-08 02:09:38,708 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5b2eb108-a51a-4811-97a3-39d44a5b63d8 2026-01-08 02:09:38,719 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5b2eb108-a51a-4811-97a3-39d44a5b63d8 2026-01-08 02:09:38,730 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e3d62be6-eeae-491b-bef3-b42e1b94b0f2 2026-01-08 02:09:38,737 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e3d62be6-eeae-491b-bef3-b42e1b94b0f2 2026-01-08 02:09:38,743 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7c76e44c-9079-4a28-b9bc-07fe2b8bdf29 2026-01-08 02:09:38,750 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 02:09:38,750 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5b2eb108-a51a-4811-97a3-39d44a5b63d8 2026-01-08 02:09:38,758 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e3d62be6-eeae-491b-bef3-b42e1b94b0f2 2026-01-08 02:09:38,771 - INFO - Verified VN network id 11 for VN 5b2eb108-a51a-4811-97a3-39d44a5b63d8 2026-01-08 02:09:38,771 - INFO - Verifications in API Server for VN ctest-vn4-50415676 passed 2026-01-08 02:09:38,771 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5b2eb108-a51a-4811-97a3-39d44a5b63d8 2026-01-08 02:09:38,781 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e3d62be6-eeae-491b-bef3-b42e1b94b0f2 2026-01-08 02:09:38,787 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e3d62be6-eeae-491b-bef3-b42e1b94b0f2 2026-01-08 02:09:38,794 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7c76e44c-9079-4a28-b9bc-07fe2b8bdf29 2026-01-08 02:09:38,805 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99380130:ctest-vn4-50415676', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-99380130', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6570383557067950097', 'uuid-lslong': '10926640704874308568'}, 'enable': 'true', 'created': '2026-01-08T02:09:37', 'last-modified': '2026-01-08T02:09:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690622'} 2026-01-08 02:09:38,813 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 02:09:38,813 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-50415676 passed 2026-01-08 02:09:38,813 - DEBUG - ====Verifying policy data for ctest-vn4-50415676 in API_Server ====== 2026-01-08 02:09:38,813 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-08 02:09:38,819 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cd468b36-442d-49bf-b5d3-8ada6376a516 2026-01-08 02:09:38,829 - DEBUG - Requesting: http://10.0.0.22:8082/project/02b8379a-03fb-480c-9cd3-12ded4bfaa83 2026-01-08 02:09:38,897 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5b2eb108-a51a-4811-97a3-39d44a5b63d8 2026-01-08 02:09:38,906 - DEBUG - ==>Verifying data for policy with id: 948b31e0-5c85-4994-a457-2edf735ad07f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99380130', 'ctest-policy1-86449376'] 2026-01-08 02:09:38,906 - INFO - VN ctest-vn4-50415676 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-08 02:09:38,906 - DEBUG - Verifying the vn in opserver 2026-01-08 02:09:38,906 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99380130:ctest-vn4-50415676 virtual network link through opserver 10.0.0.22 2026-01-08 02:09:38,906 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-08 02:09:39,201 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-08 02:09:39,263 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99380130:ctest-vn4-50415676', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99380130:ctest-vn4-50415676?flat'} 2026-01-08 02:09:39,263 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99380130:ctest-vn4-50415676 is found in opserver 2026-01-08 02:09:39,273 - DEBUG - Do not have enough data to verify VN in agent 2026-01-08 02:09:39,276 - DEBUG - VRF ids for VN ctest-vn4-50415676: {} 2026-01-08 02:09:39,277 - DEBUG - ====Verifying data for ctest-policy1-86449376 in API_Server ====== 2026-01-08 02:09:39,277 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-08 02:09:39,282 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cd468b36-442d-49bf-b5d3-8ada6376a516 2026-01-08 02:09:39,294 - DEBUG - Requesting: http://10.0.0.22:8082/project/02b8379a-03fb-480c-9cd3-12ded4bfaa83 2026-01-08 02:09:39,366 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/948b31e0-5c85-4994-a457-2edf735ad07f 2026-01-08 02:09:39,377 - INFO - Verified policy ctest-policy1-86449376 in API Server, Result: True 2026-01-08 02:09:39,377 - INFO - Done with setup and verification, moving onto test .. 2026-01-08 02:09:39,385 - INFO - Deleting VN ctest-vn4-50415676 2026-01-08 02:09:39,497 - DEBUG - Response for deleting network () 2026-01-08 02:09:39,497 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e3d62be6-eeae-491b-bef3-b42e1b94b0f2 2026-01-08 02:09:39,502 - DEBUG - Response Code: 404 2026-01-08 02:09:39,502 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-08 02:09:39,507 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cd468b36-442d-49bf-b5d3-8ada6376a516 2026-01-08 02:09:39,557 - DEBUG - Requesting: http://10.0.0.22:8082/project/02b8379a-03fb-480c-9cd3-12ded4bfaa83 2026-01-08 02:09:39,625 - INFO - Validated that VN ctest-vn4-50415676 is not found in API Server 2026-01-08 02:09:39,635 - DEBUG - VN ctest-vn4-50415676 is not present in Agent 10.0.0.22 2026-01-08 02:09:39,635 - INFO - Validated that VN ctest-vn4-50415676 is not in any agent 2026-01-08 02:09:39,647 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-50415676 info 2026-01-08 02:09:39,671 - INFO - Deleted policy ctest-policy1-86449376 2026-01-08 02:09:39,836 - DEBUG - policy ctest-policy1-86449376 is not found in API Server 2026-01-08 02:09:40,089 - DEBUG - No XMPP flaps were noticed during the test 2026-01-08 02:09:40,089 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-08 02:09:40,089 - INFO - -------------------------------------------------------------------------------- 2026-01-08 02:09:40,381 - DEBUG - No XMPP flaps were noticed during the test 2026-01-08 02:09:40,381 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-08 02:09:40,381 - INFO - -------------------------------------------------------------------------------- 2026-01-08 02:09:41,057 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-99380130, ID : 02b8379a-03fb-480c-9cd3-12ded4bfaa83