2026-08-20 13:51:50,534 - INFO - Domain Default found not creating 2026-08-20 13:51:50,685 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70036900 not found, creating it 2026-08-20 13:51:51,166 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70036900, ID : 11b60e00-7df7-403f-81de-6699f9e7fb18 2026-08-20 13:51:52,669 - INFO - ================================================================================ 2026-08-20 13:51:52,669 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 13:51:52,928 - DEBUG - Nothing to compare xmpp stats {'10.0.0.176': {'10.20.0.14': '0'}} with 2026-08-20 13:51:52,928 - INFO - Initial checks done. Running the testcase now 2026-08-20 13:51:52,928 - INFO - 2026-08-20 13:51:52,928 - INFO - ================================================================================ 2026-08-20 13:51:52,928 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 13:51:52,928 - 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-08-20 13:51:53,216 - DEBUG - Nothing to compare xmpp stats {'10.0.0.176': {'10.20.0.14': '0'}} with 2026-08-20 13:51:53,216 - INFO - Initial checks done. Running the testcase now 2026-08-20 13:51:53,216 - INFO - 2026-08-20 13:51:53,607 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70036900:ctest-vn4-07556919, 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-70036900:ctest-vn4-07556919, 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-70036900:ctest-vn4-07556919, 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-70036900:ctest-vn4-07556919, 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-08-20 13:51:54,154 - DEBUG - Response for create_network : {'network': {'id': 'adcc0bdb-7070-4eab-bcc2-086a8880f58b', 'name': 'ctest-vn4-07556919', 'tenant_id': '11b60e007df7403f81de6699f9e7fb18', 'project_id': '11b60e007df7403f81de6699f9e7fb18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70036900', 'ctest-vn4-07556919'], 'port_security_enabled': True, 'description': ''}} 2026-08-20 13:51:54,339 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee79cdd9-c123-4feb-93d4-7b76b25b0342', 'name': '', 'tenant_id': '11b60e007df7403f81de6699f9e7fb18', 'network_id': 'adcc0bdb-7070-4eab-bcc2-086a8880f58b', 'ip_version': 4, 'cidr': '12.160.192.64/26', 'allocation_pools': [{'start': '12.160.192.66', 'end': '12.160.192.126'}], 'gateway_ip': '12.160.192.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.160.192.66', 'tags': [], 'project_id': '11b60e007df7403f81de6699f9e7fb18'}} 2026-08-20 13:51:54,506 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b115c610-ff8f-4b5a-8629-474d8dd4b2be', 'name': '', 'tenant_id': '11b60e007df7403f81de6699f9e7fb18', 'network_id': 'adcc0bdb-7070-4eab-bcc2-086a8880f58b', 'ip_version': 6, 'cidr': '308c:4395:4509:e6dd:c59c:fa55::/96', 'allocation_pools': [{'start': '308c:4395:4509:e6dd:c59c:fa55:0:2', 'end': '308c:4395:4509:e6dd:c59c:fa55:ffff:fffe'}], 'gateway_ip': '308c:4395:4509:e6dd:c59c:fa55:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '308c:4395:4509:e6dd:c59c:fa55:0:2', 'tags': [], 'project_id': '11b60e007df7403f81de6699f9e7fb18'}} 2026-08-20 13:51:54,522 - INFO - Created VN ctest-vn4-07556919 2026-08-20 13:51:54,574 - DEBUG - VN ctest-vn4-07556919 UUID is adcc0bdb-7070-4eab-bcc2-086a8880f58b 2026-08-20 13:51:54,792 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'adcc0bdb-7070-4eab-bcc2-086a8880f58b', 'name': 'ctest-vn4-07556919', 'tenant_id': '11b60e007df7403f81de6699f9e7fb18', 'project_id': '11b60e007df7403f81de6699f9e7fb18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee79cdd9-c123-4feb-93d4-7b76b25b0342', 'b115c610-ff8f-4b5a-8629-474d8dd4b2be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70036900', 'ctest-vn4-07556919'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70036900', 'ctest-policy1-13565156']], 'subnet_ipam': [{'subnet_cidr': '12.160.192.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '308c:4395:4509:e6dd:c59c:fa55::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-20 13:51:54,962 - DEBUG - Requesting: http://10.0.0.176:8082/domains 2026-08-20 13:51:55,286 - DEBUG - Requesting: http://10.0.0.176:8082/domains 2026-08-20 13:51:55,312 - DEBUG - Requesting: http://10.0.0.176:8082/domain/53ebe7e3-bc32-45c4-a920-aa955791a7d4 2026-08-20 13:51:55,324 - DEBUG - Requesting: http://10.0.0.176:8082/project/11b60e00-7df7-403f-81de-6699f9e7fb18 2026-08-20 13:51:55,402 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/adcc0bdb-7070-4eab-bcc2-086a8880f58b 2026-08-20 13:51:55,414 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/adcc0bdb-7070-4eab-bcc2-086a8880f58b 2026-08-20 13:51:55,424 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/ae143aec-1366-4ae5-b76e-a1e169e9bfbd 2026-08-20 13:51:55,431 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/ae143aec-1366-4ae5-b76e-a1e169e9bfbd 2026-08-20 13:51:55,438 - DEBUG - Requesting: http://10.0.0.176:8082/route-target/13876dc6-872b-466f-84b1-08e120516836 2026-08-20 13:51:55,445 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 13:51:55,445 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/adcc0bdb-7070-4eab-bcc2-086a8880f58b 2026-08-20 13:51:55,455 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/ae143aec-1366-4ae5-b76e-a1e169e9bfbd 2026-08-20 13:51:55,469 - INFO - Verified VN network id 10 for VN adcc0bdb-7070-4eab-bcc2-086a8880f58b 2026-08-20 13:51:55,469 - INFO - Verifications in API Server for VN ctest-vn4-07556919 passed 2026-08-20 13:51:55,469 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/adcc0bdb-7070-4eab-bcc2-086a8880f58b 2026-08-20 13:51:55,478 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/ae143aec-1366-4ae5-b76e-a1e169e9bfbd 2026-08-20 13:51:55,485 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/ae143aec-1366-4ae5-b76e-a1e169e9bfbd 2026-08-20 13:51:55,491 - DEBUG - Requesting: http://10.0.0.176:8082/route-target/13876dc6-872b-466f-84b1-08e120516836 2026-08-20 13:51:55,503 - DEBUG - Control-node 10.0.0.176 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70036900:ctest-vn4-07556919', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70036900', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12523397700922658475', 'uuid-lslong': '13601443078262027659'}, 'enable': 'true', 'created': '2026-08-20T13:51:54', 'last-modified': '2026-08-20T13:51:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.735342'} 2026-08-20 13:51:55,510 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 13:51:55,510 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-07556919 passed 2026-08-20 13:51:55,510 - DEBUG - ====Verifying policy data for ctest-vn4-07556919 in API_Server ====== 2026-08-20 13:51:55,511 - DEBUG - Requesting: http://10.0.0.176:8082/domains 2026-08-20 13:51:55,518 - DEBUG - Requesting: http://10.0.0.176:8082/domain/53ebe7e3-bc32-45c4-a920-aa955791a7d4 2026-08-20 13:51:55,534 - DEBUG - Requesting: http://10.0.0.176:8082/project/11b60e00-7df7-403f-81de-6699f9e7fb18 2026-08-20 13:51:55,612 - DEBUG - Requesting: http://10.0.0.176:8082/virtual-network/adcc0bdb-7070-4eab-bcc2-086a8880f58b 2026-08-20 13:51:55,621 - DEBUG - ==>Verifying data for policy with id: afceb461-6848-4f42-9ef8-a696da73ac9d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70036900', 'ctest-policy1-13565156'] 2026-08-20 13:51:55,621 - INFO - VN ctest-vn4-07556919 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-20 13:51:55,621 - DEBUG - Verifying the vn in opserver 2026-08-20 13:51:55,621 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70036900:ctest-vn4-07556919 virtual network link through opserver 10.0.0.176 2026-08-20 13:51:55,621 - DEBUG - Requesting: http://10.0.0.176:8081/analytics/uves/virtual-networks 2026-08-20 13:51:55,952 - DEBUG - Requesting: http://10.0.0.176:8081/analytics/uves/virtual-networks 2026-08-20 13:51:56,004 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70036900:ctest-vn4-07556919', 'href': 'http://10.0.0.176:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70036900:ctest-vn4-07556919?flat'} 2026-08-20 13:51:56,004 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70036900:ctest-vn4-07556919 is found in opserver 2026-08-20 13:51:56,016 - DEBUG - Do not have enough data to verify VN in agent 2026-08-20 13:51:56,021 - DEBUG - VRF ids for VN ctest-vn4-07556919: {} 2026-08-20 13:51:56,021 - DEBUG - ====Verifying data for ctest-policy1-13565156 in API_Server ====== 2026-08-20 13:51:56,021 - DEBUG - Requesting: http://10.0.0.176:8082/domains 2026-08-20 13:51:56,027 - DEBUG - Requesting: http://10.0.0.176:8082/domain/53ebe7e3-bc32-45c4-a920-aa955791a7d4 2026-08-20 13:51:56,038 - DEBUG - Requesting: http://10.0.0.176:8082/project/11b60e00-7df7-403f-81de-6699f9e7fb18 2026-08-20 13:51:56,116 - DEBUG - Requesting: http://10.0.0.176:8082/network-policy/afceb461-6848-4f42-9ef8-a696da73ac9d 2026-08-20 13:51:56,126 - INFO - Verified policy ctest-policy1-13565156 in API Server, Result: True 2026-08-20 13:51:56,126 - INFO - Done with setup and verification, moving onto test .. 2026-08-20 13:51:56,135 - INFO - Deleting VN ctest-vn4-07556919 2026-08-20 13:51:56,267 - DEBUG - Response for deleting network () 2026-08-20 13:51:56,267 - DEBUG - Requesting: http://10.0.0.176:8082/routing-instance/ae143aec-1366-4ae5-b76e-a1e169e9bfbd 2026-08-20 13:51:56,273 - DEBUG - Response Code: 404 2026-08-20 13:51:56,273 - DEBUG - Requesting: http://10.0.0.176:8082/domains 2026-08-20 13:51:56,280 - DEBUG - Requesting: http://10.0.0.176:8082/domain/53ebe7e3-bc32-45c4-a920-aa955791a7d4 2026-08-20 13:51:56,333 - DEBUG - Requesting: http://10.0.0.176:8082/project/11b60e00-7df7-403f-81de-6699f9e7fb18 2026-08-20 13:51:56,410 - INFO - Validated that VN ctest-vn4-07556919 is not found in API Server 2026-08-20 13:51:56,420 - DEBUG - VN ctest-vn4-07556919 is not present in Agent 10.0.0.176 2026-08-20 13:51:56,420 - INFO - Validated that VN ctest-vn4-07556919 is not in any agent 2026-08-20 13:51:56,437 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-07556919 info 2026-08-20 13:51:56,468 - INFO - Deleted policy ctest-policy1-13565156 2026-08-20 13:51:56,630 - DEBUG - policy ctest-policy1-13565156 is not found in API Server 2026-08-20 13:51:56,884 - DEBUG - No XMPP flaps were noticed during the test
2026-08-20 13:51:56,884 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-20 13:51:56,884 - INFO - -------------------------------------------------------------------------------- 2026-08-20 13:51:57,173 - DEBUG - No XMPP flaps were noticed during the test
2026-08-20 13:51:57,173 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-08-20 13:51:57,174 - INFO - -------------------------------------------------------------------------------- 2026-08-20 13:51:57,894 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-70036900, ID : 11b60e00-7df7-403f-81de-6699f9e7fb18