2026-04-24 19:32:02,723 - INFO - Domain Default found not creating 2026-04-24 19:32:02,894 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-57528734 not found, creating it 2026-04-24 19:32:03,382 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-57528734, ID : 4703a01b-61ec-4e6d-ba3e-228718647acd 2026-04-24 19:32:04,951 - INFO - ================================================================================ 2026-04-24 19:32:04,951 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-24 19:32:05,225 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-24 19:32:05,225 - INFO - Initial checks done. Running the testcase now 2026-04-24 19:32:05,225 - INFO - 2026-04-24 19:32:05,225 - INFO - ================================================================================ 2026-04-24 19:32:05,225 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-24 19:32:05,225 - 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-04-24 19:32:05,523 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-24 19:32:05,523 - INFO - Initial checks done. Running the testcase now 2026-04-24 19:32:05,523 - INFO - 2026-04-24 19:32:05,891 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57528734:ctest-vn4-31569231, 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-57528734:ctest-vn4-31569231, 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-57528734:ctest-vn4-31569231, 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-57528734:ctest-vn4-31569231, 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-04-24 19:32:06,418 - DEBUG - Response for create_network : {'network': {'id': '302d75a3-80f9-4f11-8c85-5b23cc51cb6e', 'name': 'ctest-vn4-31569231', 'tenant_id': '4703a01b61ec4e6dba3e228718647acd', 'project_id': '4703a01b61ec4e6dba3e228718647acd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57528734', 'ctest-vn4-31569231'], 'port_security_enabled': True, 'description': ''}} 2026-04-24 19:32:06,577 - DEBUG - Response for create_subnet : {'subnet': {'id': '1e54aa47-fe57-49db-bb3c-a4da5bbe3a11', 'name': '', 'tenant_id': '4703a01b61ec4e6dba3e228718647acd', 'network_id': '302d75a3-80f9-4f11-8c85-5b23cc51cb6e', 'ip_version': 4, 'cidr': '19.150.192.0/26', 'allocation_pools': [{'start': '19.150.192.2', 'end': '19.150.192.62'}], 'gateway_ip': '19.150.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.150.192.2', 'tags': [], 'project_id': '4703a01b61ec4e6dba3e228718647acd'}} 2026-04-24 19:32:06,799 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dcaf3c94-c636-4120-a7fd-ef22777bb18f', 'name': '', 'tenant_id': '4703a01b61ec4e6dba3e228718647acd', 'network_id': '302d75a3-80f9-4f11-8c85-5b23cc51cb6e', 'ip_version': 6, 'cidr': '24e7:e4aa:4394:3194:c47a:c54c::/96', 'allocation_pools': [{'start': '24e7:e4aa:4394:3194:c47a:c54c:0:2', 'end': '24e7:e4aa:4394:3194:c47a:c54c:ffff:fffe'}], 'gateway_ip': '24e7:e4aa:4394:3194:c47a:c54c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24e7:e4aa:4394:3194:c47a:c54c:0:2', 'tags': [], 'project_id': '4703a01b61ec4e6dba3e228718647acd'}} 2026-04-24 19:32:06,821 - INFO - Created VN ctest-vn4-31569231 2026-04-24 19:32:06,872 - DEBUG - VN ctest-vn4-31569231 UUID is 302d75a3-80f9-4f11-8c85-5b23cc51cb6e 2026-04-24 19:32:07,099 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '302d75a3-80f9-4f11-8c85-5b23cc51cb6e', 'name': 'ctest-vn4-31569231', 'tenant_id': '4703a01b61ec4e6dba3e228718647acd', 'project_id': '4703a01b61ec4e6dba3e228718647acd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1e54aa47-fe57-49db-bb3c-a4da5bbe3a11', 'dcaf3c94-c636-4120-a7fd-ef22777bb18f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57528734', 'ctest-vn4-31569231'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57528734', 'ctest-policy1-95929560']], 'subnet_ipam': [{'subnet_cidr': '19.150.192.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '24e7:e4aa:4394:3194:c47a:c54c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-24 19:32:07,264 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-24 19:32:07,561 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-24 19:32:07,595 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2d726e48-9f9d-4743-a8bb-13f2812efb68 2026-04-24 19:32:07,606 - DEBUG - Requesting: http://10.0.0.50:8082/project/4703a01b-61ec-4e6d-ba3e-228718647acd 2026-04-24 19:32:07,686 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/302d75a3-80f9-4f11-8c85-5b23cc51cb6e 2026-04-24 19:32:07,700 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/302d75a3-80f9-4f11-8c85-5b23cc51cb6e 2026-04-24 19:32:07,709 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/60e8f90a-b99b-4cb4-a694-6dc7fadfa5da 2026-04-24 19:32:07,716 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/60e8f90a-b99b-4cb4-a694-6dc7fadfa5da 2026-04-24 19:32:07,723 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9d83aadd-1183-4281-b775-256d2127bd29 2026-04-24 19:32:07,729 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-24 19:32:07,729 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/302d75a3-80f9-4f11-8c85-5b23cc51cb6e 2026-04-24 19:32:07,737 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/60e8f90a-b99b-4cb4-a694-6dc7fadfa5da 2026-04-24 19:32:07,750 - INFO - Verified VN network id 11 for VN 302d75a3-80f9-4f11-8c85-5b23cc51cb6e 2026-04-24 19:32:07,750 - INFO - Verifications in API Server for VN ctest-vn4-31569231 passed 2026-04-24 19:32:07,750 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/302d75a3-80f9-4f11-8c85-5b23cc51cb6e 2026-04-24 19:32:07,759 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/60e8f90a-b99b-4cb4-a694-6dc7fadfa5da 2026-04-24 19:32:07,768 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/60e8f90a-b99b-4cb4-a694-6dc7fadfa5da 2026-04-24 19:32:07,775 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9d83aadd-1183-4281-b775-256d2127bd29 2026-04-24 19:32:07,788 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57528734:ctest-vn4-31569231', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-57528734', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3471560232876461841', 'uuid-lslong': '10125599546522323822'}, 'enable': 'true', 'created': '2026-04-24T19:32:06', 'last-modified': '2026-04-24T19:32:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.719628'} 2026-04-24 19:32:07,795 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-24 19:32:07,795 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-31569231 passed 2026-04-24 19:32:07,795 - DEBUG - ====Verifying policy data for ctest-vn4-31569231 in API_Server ====== 2026-04-24 19:32:07,795 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-24 19:32:07,802 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2d726e48-9f9d-4743-a8bb-13f2812efb68 2026-04-24 19:32:07,814 - DEBUG - Requesting: http://10.0.0.50:8082/project/4703a01b-61ec-4e6d-ba3e-228718647acd 2026-04-24 19:32:07,893 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/302d75a3-80f9-4f11-8c85-5b23cc51cb6e 2026-04-24 19:32:07,904 - DEBUG - ==>Verifying data for policy with id: 153a7163-aa56-4645-93c4-ebdd4ae2e24c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57528734', 'ctest-policy1-95929560'] 2026-04-24 19:32:07,904 - INFO - VN ctest-vn4-31569231 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-24 19:32:07,904 - DEBUG - Verifying the vn in opserver 2026-04-24 19:32:07,904 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57528734:ctest-vn4-31569231 virtual network link through opserver 10.0.0.50 2026-04-24 19:32:07,904 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-24 19:32:08,219 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-24 19:32:08,281 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57528734:ctest-vn4-31569231', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57528734:ctest-vn4-31569231?flat'} 2026-04-24 19:32:08,281 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57528734:ctest-vn4-31569231 is found in opserver 2026-04-24 19:32:08,292 - DEBUG - Do not have enough data to verify VN in agent 2026-04-24 19:32:08,296 - DEBUG - VRF ids for VN ctest-vn4-31569231: {} 2026-04-24 19:32:08,296 - DEBUG - ====Verifying data for ctest-policy1-95929560 in API_Server ====== 2026-04-24 19:32:08,296 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-24 19:32:08,302 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2d726e48-9f9d-4743-a8bb-13f2812efb68 2026-04-24 19:32:08,315 - DEBUG - Requesting: http://10.0.0.50:8082/project/4703a01b-61ec-4e6d-ba3e-228718647acd 2026-04-24 19:32:08,388 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/153a7163-aa56-4645-93c4-ebdd4ae2e24c 2026-04-24 19:32:08,397 - INFO - Verified policy ctest-policy1-95929560 in API Server, Result: True 2026-04-24 19:32:08,397 - INFO - Done with setup and verification, moving onto test .. 2026-04-24 19:32:08,405 - INFO - Deleting VN ctest-vn4-31569231 2026-04-24 19:32:08,580 - DEBUG - Response for deleting network () 2026-04-24 19:32:08,580 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/60e8f90a-b99b-4cb4-a694-6dc7fadfa5da 2026-04-24 19:32:08,585 - DEBUG - Response Code: 404 2026-04-24 19:32:08,585 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-24 19:32:08,591 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2d726e48-9f9d-4743-a8bb-13f2812efb68 2026-04-24 19:32:08,649 - DEBUG - Requesting: http://10.0.0.50:8082/project/4703a01b-61ec-4e6d-ba3e-228718647acd 2026-04-24 19:32:08,718 - INFO - Validated that VN ctest-vn4-31569231 is not found in API Server 2026-04-24 19:32:08,728 - DEBUG - VN ctest-vn4-31569231 is not present in Agent 10.0.0.50 2026-04-24 19:32:08,728 - INFO - Validated that VN ctest-vn4-31569231 is not in any agent 2026-04-24 19:32:08,742 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-31569231 info 2026-04-24 19:32:08,770 - INFO - Deleted policy ctest-policy1-95929560 2026-04-24 19:32:08,952 - DEBUG - policy ctest-policy1-95929560 is not found in API Server 2026-04-24 19:32:09,208 - DEBUG - No XMPP flaps were noticed during the test
2026-04-24 19:32:09,208 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-24 19:32:09,208 - INFO - -------------------------------------------------------------------------------- 2026-04-24 19:32:09,512 - DEBUG - No XMPP flaps were noticed during the test
2026-04-24 19:32:09,512 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-04-24 19:32:09,512 - INFO - -------------------------------------------------------------------------------- 2026-04-24 19:32:10,216 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-57528734, ID : 4703a01b-61ec-4e6d-ba3e-228718647acd