2026-02-10 18:27:30,187 - INFO - Domain Default found not creating 2026-02-10 18:27:30,483 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-59065674 not found, creating it 2026-02-10 18:27:31,118 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-59065674, ID : a8ea5459-f8b8-4a8c-a976-3a32037c5191 2026-02-10 18:27:33,212 - INFO - ================================================================================ 2026-02-10 18:27:33,212 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 18:27:33,549 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.252': '0'}} with 2026-02-10 18:27:33,550 - INFO - Initial checks done. Running the testcase now 2026-02-10 18:27:33,550 - INFO - 2026-02-10 18:27:33,550 - INFO - ================================================================================ 2026-02-10 18:27:33,550 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 18:27:33,550 - 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-02-10 18:27:33,878 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.252': '0'}} with 2026-02-10 18:27:33,878 - INFO - Initial checks done. Running the testcase now 2026-02-10 18:27:33,879 - INFO - 2026-02-10 18:27:34,328 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59065674:ctest-vn4-56728018, 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-59065674:ctest-vn4-56728018, 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-59065674:ctest-vn4-56728018, 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-59065674:ctest-vn4-56728018, 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-02-10 18:27:35,114 - DEBUG - Response for create_network : {'network': {'id': '62c27054-cbfd-4018-bd15-60f254b8e95f', 'name': 'ctest-vn4-56728018', 'tenant_id': 'a8ea5459f8b84a8ca9763a32037c5191', 'project_id': 'a8ea5459f8b84a8ca9763a32037c5191', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59065674', 'ctest-vn4-56728018'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 18:27:35,297 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d551abe-f814-4835-a6da-f060e2882bae', 'name': '', 'tenant_id': 'a8ea5459f8b84a8ca9763a32037c5191', 'network_id': '62c27054-cbfd-4018-bd15-60f254b8e95f', 'ip_version': 4, 'cidr': '17.177.115.192/26', 'allocation_pools': [{'start': '17.177.115.194', 'end': '17.177.115.254'}], 'gateway_ip': '17.177.115.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.177.115.194', 'tags': [], 'project_id': 'a8ea5459f8b84a8ca9763a32037c5191'}} 2026-02-10 18:27:35,589 - DEBUG - Response for create_subnet : {'subnet': {'id': '21399cbf-3847-4c59-ac1b-dfb2f06d98ad', 'name': '', 'tenant_id': 'a8ea5459f8b84a8ca9763a32037c5191', 'network_id': '62c27054-cbfd-4018-bd15-60f254b8e95f', 'ip_version': 6, 'cidr': '21c2:9b68:8331:2b8a:d281:44e::/96', 'allocation_pools': [{'start': '21c2:9b68:8331:2b8a:d281:44e:0:2', 'end': '21c2:9b68:8331:2b8a:d281:44e:ffff:fffe'}], 'gateway_ip': '21c2:9b68:8331:2b8a:d281:44e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21c2:9b68:8331:2b8a:d281:44e:0:2', 'tags': [], 'project_id': 'a8ea5459f8b84a8ca9763a32037c5191'}} 2026-02-10 18:27:35,612 - INFO - Created VN ctest-vn4-56728018 2026-02-10 18:27:35,666 - DEBUG - VN ctest-vn4-56728018 UUID is 62c27054-cbfd-4018-bd15-60f254b8e95f 2026-02-10 18:27:36,103 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '62c27054-cbfd-4018-bd15-60f254b8e95f', 'name': 'ctest-vn4-56728018', 'tenant_id': 'a8ea5459f8b84a8ca9763a32037c5191', 'project_id': 'a8ea5459f8b84a8ca9763a32037c5191', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5d551abe-f814-4835-a6da-f060e2882bae', '21399cbf-3847-4c59-ac1b-dfb2f06d98ad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59065674', 'ctest-vn4-56728018'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59065674', 'ctest-policy1-03628963']], 'subnet_ipam': [{'subnet_cidr': '17.177.115.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21c2:9b68:8331:2b8a:d281:44e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 18:27:36,298 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-10 18:27:36,660 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-10 18:27:36,699 - DEBUG - Requesting: http://10.0.0.249:8082/domain/1a7beebb-927b-46d1-b2e4-a8f0d4d2bb6d 2026-02-10 18:27:36,717 - DEBUG - Requesting: http://10.0.0.249:8082/project/a8ea5459-f8b8-4a8c-a976-3a32037c5191 2026-02-10 18:27:36,830 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/62c27054-cbfd-4018-bd15-60f254b8e95f 2026-02-10 18:27:36,868 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/62c27054-cbfd-4018-bd15-60f254b8e95f 2026-02-10 18:27:36,888 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f4e611b6-bf06-4510-9b98-02dfbd7b3f1d 2026-02-10 18:27:36,899 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f4e611b6-bf06-4510-9b98-02dfbd7b3f1d 2026-02-10 18:27:36,912 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/259363e1-b5cc-48d2-a127-39b9c10c1970 2026-02-10 18:27:36,924 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 18:27:36,925 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/62c27054-cbfd-4018-bd15-60f254b8e95f 2026-02-10 18:27:36,938 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f4e611b6-bf06-4510-9b98-02dfbd7b3f1d 2026-02-10 18:27:36,962 - INFO - Verified VN network id 10 for VN 62c27054-cbfd-4018-bd15-60f254b8e95f 2026-02-10 18:27:36,962 - INFO - Verifications in API Server for VN ctest-vn4-56728018 passed 2026-02-10 18:27:36,963 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/62c27054-cbfd-4018-bd15-60f254b8e95f 2026-02-10 18:27:36,978 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f4e611b6-bf06-4510-9b98-02dfbd7b3f1d 2026-02-10 18:27:36,988 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f4e611b6-bf06-4510-9b98-02dfbd7b3f1d 2026-02-10 18:27:36,996 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/259363e1-b5cc-48d2-a127-39b9c10c1970 2026-02-10 18:27:37,013 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59065674:ctest-vn4-56728018', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-59065674', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7116373870700740632', 'uuid-lslong': '13624902841599060319'}, 'enable': 'true', 'created': '2026-02-10T18:27:35', 'last-modified': '2026-02-10T18:27:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.975668'} 2026-02-10 18:27:37,021 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 18:27:37,022 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-56728018 passed 2026-02-10 18:27:37,022 - DEBUG - ====Verifying policy data for ctest-vn4-56728018 in API_Server ====== 2026-02-10 18:27:37,022 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-10 18:27:37,029 - DEBUG - Requesting: http://10.0.0.249:8082/domain/1a7beebb-927b-46d1-b2e4-a8f0d4d2bb6d 2026-02-10 18:27:37,043 - DEBUG - Requesting: http://10.0.0.249:8082/project/a8ea5459-f8b8-4a8c-a976-3a32037c5191 2026-02-10 18:27:37,138 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/62c27054-cbfd-4018-bd15-60f254b8e95f 2026-02-10 18:27:37,156 - DEBUG - ==>Verifying data for policy with id: a371ec4e-6882-4dd4-a624-ca334cfa51e1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59065674', 'ctest-policy1-03628963'] 2026-02-10 18:27:37,156 - INFO - VN ctest-vn4-56728018 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 18:27:37,156 - DEBUG - Verifying the vn in opserver 2026-02-10 18:27:37,157 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59065674:ctest-vn4-56728018 virtual network link through opserver 10.0.0.249 2026-02-10 18:27:37,157 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-02-10 18:27:37,474 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-02-10 18:27:37,595 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59065674:ctest-vn4-56728018', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59065674:ctest-vn4-56728018?flat'} 2026-02-10 18:27:37,595 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59065674:ctest-vn4-56728018 is found in opserver 2026-02-10 18:27:37,619 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 18:27:37,625 - DEBUG - VRF ids for VN ctest-vn4-56728018: {} 2026-02-10 18:27:37,626 - DEBUG - ====Verifying data for ctest-policy1-03628963 in API_Server ====== 2026-02-10 18:27:37,626 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-10 18:27:37,636 - DEBUG - Requesting: http://10.0.0.249:8082/domain/1a7beebb-927b-46d1-b2e4-a8f0d4d2bb6d 2026-02-10 18:27:37,661 - DEBUG - Requesting: http://10.0.0.249:8082/project/a8ea5459-f8b8-4a8c-a976-3a32037c5191 2026-02-10 18:27:37,775 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/a371ec4e-6882-4dd4-a624-ca334cfa51e1 2026-02-10 18:27:37,804 - INFO - Verified policy ctest-policy1-03628963 in API Server, Result: True 2026-02-10 18:27:37,805 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 18:27:37,825 - INFO - Deleting VN ctest-vn4-56728018 2026-02-10 18:27:38,047 - DEBUG - Response for deleting network () 2026-02-10 18:27:38,047 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f4e611b6-bf06-4510-9b98-02dfbd7b3f1d 2026-02-10 18:27:38,055 - DEBUG - Response Code: 404 2026-02-10 18:27:38,055 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-10 18:27:38,061 - DEBUG - Requesting: http://10.0.0.249:8082/domain/1a7beebb-927b-46d1-b2e4-a8f0d4d2bb6d 2026-02-10 18:27:38,122 - DEBUG - Requesting: http://10.0.0.249:8082/project/a8ea5459-f8b8-4a8c-a976-3a32037c5191 2026-02-10 18:27:38,224 - INFO - Validated that VN ctest-vn4-56728018 is not found in API Server 2026-02-10 18:27:38,242 - DEBUG - VN ctest-vn4-56728018 is not present in Agent 10.0.0.249 2026-02-10 18:27:38,242 - INFO - Validated that VN ctest-vn4-56728018 is not in any agent 2026-02-10 18:27:38,267 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-56728018 info 2026-02-10 18:27:38,308 - INFO - Deleted policy ctest-policy1-03628963 2026-02-10 18:27:38,514 - DEBUG - policy ctest-policy1-03628963 is not found in API Server 2026-02-10 18:27:38,844 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 18:27:38,845 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-10 18:27:38,845 - INFO - -------------------------------------------------------------------------------- 2026-02-10 18:27:39,169 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 18:27:39,169 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2026-02-10 18:27:39,169 - INFO - -------------------------------------------------------------------------------- 2026-02-10 18:27:40,019 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-59065674, ID : a8ea5459-f8b8-4a8c-a976-3a32037c5191