2026-10-02 10:09:36,805 - INFO - Domain Default found not creating 2026-10-02 10:09:36,988 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-28420747 not found, creating it 2026-10-02 10:09:37,503 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-28420747, ID : c3bb4f3e-c9b2-45cb-ae85-f01dfca67414 2026-10-02 10:09:40,103 - INFO - ================================================================================ 2026-10-02 10:09:40,103 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-02 10:09:40,377 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.17': '0'}} with 2026-10-02 10:09:40,377 - INFO - Initial checks done. Running the testcase now 2026-10-02 10:09:40,377 - INFO - 2026-10-02 10:09:40,377 - INFO - ================================================================================ 2026-10-02 10:09:40,377 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-02 10:09:40,377 - 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-10-02 10:09:40,664 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.17': '0'}} with 2026-10-02 10:09:40,664 - INFO - Initial checks done. Running the testcase now 2026-10-02 10:09:40,664 - INFO - 2026-10-02 10:09:41,075 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28420747:ctest-vn4-65034267, 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-28420747:ctest-vn4-65034267, 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-28420747:ctest-vn4-65034267, 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-28420747:ctest-vn4-65034267, 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-10-02 10:09:41,667 - DEBUG - Response for create_network : {'network': {'id': 'a4e373b4-86d0-44d2-8f93-90c1e94cbe32', 'name': 'ctest-vn4-65034267', 'tenant_id': 'c3bb4f3ec9b245cbae85f01dfca67414', 'project_id': 'c3bb4f3ec9b245cbae85f01dfca67414', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28420747', 'ctest-vn4-65034267'], 'port_security_enabled': True, 'description': ''}} 2026-10-02 10:09:41,822 - DEBUG - Response for create_subnet : {'subnet': {'id': '8fa0d049-218e-4a68-a25f-bd1400d7e2f1', 'name': '', 'tenant_id': 'c3bb4f3ec9b245cbae85f01dfca67414', 'network_id': 'a4e373b4-86d0-44d2-8f93-90c1e94cbe32', 'ip_version': 4, 'cidr': '135.222.116.64/26', 'allocation_pools': [{'start': '135.222.116.66', 'end': '135.222.116.126'}], 'gateway_ip': '135.222.116.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.222.116.66', 'tags': [], 'project_id': 'c3bb4f3ec9b245cbae85f01dfca67414'}} 2026-10-02 10:09:41,998 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f4d0b9d-fca6-437f-83c2-b7a1b9a3e4c8', 'name': '', 'tenant_id': 'c3bb4f3ec9b245cbae85f01dfca67414', 'network_id': 'a4e373b4-86d0-44d2-8f93-90c1e94cbe32', 'ip_version': 6, 'cidr': '2c24:b035:885f:5a39:30b7:2b3e::/96', 'allocation_pools': [{'start': '2c24:b035:885f:5a39:30b7:2b3e:0:2', 'end': '2c24:b035:885f:5a39:30b7:2b3e:ffff:fffe'}], 'gateway_ip': '2c24:b035:885f:5a39:30b7:2b3e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c24:b035:885f:5a39:30b7:2b3e:0:2', 'tags': [], 'project_id': 'c3bb4f3ec9b245cbae85f01dfca67414'}} 2026-10-02 10:09:42,019 - INFO - Created VN ctest-vn4-65034267 2026-10-02 10:09:42,074 - DEBUG - VN ctest-vn4-65034267 UUID is a4e373b4-86d0-44d2-8f93-90c1e94cbe32 2026-10-02 10:09:42,314 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4e373b4-86d0-44d2-8f93-90c1e94cbe32', 'name': 'ctest-vn4-65034267', 'tenant_id': 'c3bb4f3ec9b245cbae85f01dfca67414', 'project_id': 'c3bb4f3ec9b245cbae85f01dfca67414', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['8fa0d049-218e-4a68-a25f-bd1400d7e2f1', '1f4d0b9d-fca6-437f-83c2-b7a1b9a3e4c8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28420747', 'ctest-vn4-65034267'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28420747', 'ctest-policy1-11479716']], 'subnet_ipam': [{'subnet_cidr': '135.222.116.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c24:b035:885f:5a39:30b7:2b3e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-02 10:09:42,470 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-02 10:09:42,839 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-02 10:09:42,870 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a1eea219-e16e-42d7-9caa-677776319523 2026-10-02 10:09:42,885 - DEBUG - Requesting: http://10.0.0.185:8082/project/c3bb4f3e-c9b2-45cb-ae85-f01dfca67414 2026-10-02 10:09:42,962 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/a4e373b4-86d0-44d2-8f93-90c1e94cbe32 2026-10-02 10:09:42,975 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/a4e373b4-86d0-44d2-8f93-90c1e94cbe32 2026-10-02 10:09:42,986 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/82748d28-1029-4ed8-981a-b0204672ef20 2026-10-02 10:09:42,994 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/82748d28-1029-4ed8-981a-b0204672ef20 2026-10-02 10:09:43,002 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/bfd4ed8d-349c-431c-b678-7e82a1f3bb88 2026-10-02 10:09:43,011 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-02 10:09:43,011 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/a4e373b4-86d0-44d2-8f93-90c1e94cbe32 2026-10-02 10:09:43,022 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/82748d28-1029-4ed8-981a-b0204672ef20 2026-10-02 10:09:43,038 - INFO - Verified VN network id 12 for VN a4e373b4-86d0-44d2-8f93-90c1e94cbe32 2026-10-02 10:09:43,038 - INFO - Verifications in API Server for VN ctest-vn4-65034267 passed 2026-10-02 10:09:43,038 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/a4e373b4-86d0-44d2-8f93-90c1e94cbe32 2026-10-02 10:09:43,049 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/82748d28-1029-4ed8-981a-b0204672ef20 2026-10-02 10:09:43,057 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/82748d28-1029-4ed8-981a-b0204672ef20 2026-10-02 10:09:43,064 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/bfd4ed8d-349c-431c-b678-7e82a1f3bb88 2026-10-02 10:09:43,077 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28420747:ctest-vn4-65034267', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28420747', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11881467461126603986', 'uuid-lslong': '10345771931517369906'}, 'enable': 'true', 'created': '2026-10-02T10:09:41', 'last-modified': '2026-10-02T10:09:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.808605'} 2026-10-02 10:09:43,086 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-02 10:09:43,086 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-65034267 passed 2026-10-02 10:09:43,086 - DEBUG - ====Verifying policy data for ctest-vn4-65034267 in API_Server ====== 2026-10-02 10:09:43,086 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-02 10:09:43,093 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a1eea219-e16e-42d7-9caa-677776319523 2026-10-02 10:09:43,106 - DEBUG - Requesting: http://10.0.0.185:8082/project/c3bb4f3e-c9b2-45cb-ae85-f01dfca67414 2026-10-02 10:09:43,187 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/a4e373b4-86d0-44d2-8f93-90c1e94cbe32 2026-10-02 10:09:43,198 - DEBUG - ==>Verifying data for policy with id: a4309480-4fa5-4fd9-9090-0c038d612a75, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28420747', 'ctest-policy1-11479716'] 2026-10-02 10:09:43,198 - INFO - VN ctest-vn4-65034267 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-02 10:09:43,198 - DEBUG - Verifying the vn in opserver 2026-10-02 10:09:43,198 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28420747:ctest-vn4-65034267 virtual network link through opserver 10.0.0.185 2026-10-02 10:09:43,199 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-10-02 10:09:43,567 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-10-02 10:09:43,620 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28420747:ctest-vn4-65034267', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28420747:ctest-vn4-65034267?flat'} 2026-10-02 10:09:43,620 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28420747:ctest-vn4-65034267 is found in opserver 2026-10-02 10:09:43,631 - DEBUG - Do not have enough data to verify VN in agent 2026-10-02 10:09:43,636 - DEBUG - VRF ids for VN ctest-vn4-65034267: {} 2026-10-02 10:09:43,637 - DEBUG - ====Verifying data for ctest-policy1-11479716 in API_Server ====== 2026-10-02 10:09:43,637 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-02 10:09:43,643 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a1eea219-e16e-42d7-9caa-677776319523 2026-10-02 10:09:43,655 - DEBUG - Requesting: http://10.0.0.185:8082/project/c3bb4f3e-c9b2-45cb-ae85-f01dfca67414 2026-10-02 10:09:43,729 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/a4309480-4fa5-4fd9-9090-0c038d612a75 2026-10-02 10:09:43,739 - INFO - Verified policy ctest-policy1-11479716 in API Server, Result: True 2026-10-02 10:09:43,739 - INFO - Done with setup and verification, moving onto test .. 2026-10-02 10:09:43,750 - INFO - Deleting VN ctest-vn4-65034267 2026-10-02 10:09:43,886 - DEBUG - Response for deleting network () 2026-10-02 10:09:43,886 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/82748d28-1029-4ed8-981a-b0204672ef20 2026-10-02 10:09:43,891 - DEBUG - Response Code: 404 2026-10-02 10:09:43,891 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-02 10:09:43,897 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a1eea219-e16e-42d7-9caa-677776319523 2026-10-02 10:09:43,951 - DEBUG - Requesting: http://10.0.0.185:8082/project/c3bb4f3e-c9b2-45cb-ae85-f01dfca67414 2026-10-02 10:09:44,030 - INFO - Validated that VN ctest-vn4-65034267 is not found in API Server 2026-10-02 10:09:44,041 - DEBUG - VN ctest-vn4-65034267 is not present in Agent 10.0.0.185 2026-10-02 10:09:44,041 - INFO - Validated that VN ctest-vn4-65034267 is not in any agent 2026-10-02 10:09:44,059 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-65034267 info 2026-10-02 10:09:44,088 - INFO - Deleted policy ctest-policy1-11479716 2026-10-02 10:09:44,254 - DEBUG - policy ctest-policy1-11479716 is not found in API Server 2026-10-02 10:09:44,522 - DEBUG - No XMPP flaps were noticed during the test 2026-10-02 10:09:44,523 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-10-02 10:09:44,523 - INFO - -------------------------------------------------------------------------------- 2026-10-02 10:09:44,804 - DEBUG - No XMPP flaps were noticed during the test 2026-10-02 10:09:44,804 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-10-02 10:09:44,804 - INFO - -------------------------------------------------------------------------------- 2026-10-02 10:09:45,543 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-28420747, ID : c3bb4f3e-c9b2-45cb-ae85-f01dfca67414