2026-01-22 22:06:30,520 - INFO - Domain Default found not creating 2026-01-22 22:06:30,823 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-26260443 not found, creating it 2026-01-22 22:06:31,400 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-26260443, ID : 2c35c84c-82d6-47d8-866d-ee221a4bc643 2026-01-22 22:06:33,313 - INFO - ================================================================================ 2026-01-22 22:06:33,313 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 22:06:33,621 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.193': '0'}} with 2026-01-22 22:06:33,621 - INFO - Initial checks done. Running the testcase now 2026-01-22 22:06:33,622 - INFO - 2026-01-22 22:06:33,622 - INFO - ================================================================================ 2026-01-22 22:06:33,622 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 22:06:33,622 - 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-22 22:06:33,954 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.193': '0'}} with 2026-01-22 22:06:33,955 - INFO - Initial checks done. Running the testcase now 2026-01-22 22:06:33,955 - INFO - 2026-01-22 22:06:34,394 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26260443:ctest-vn4-45695002, 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-26260443:ctest-vn4-45695002, 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-26260443:ctest-vn4-45695002, 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-26260443:ctest-vn4-45695002, 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-22 22:06:35,119 - DEBUG - Response for create_network : {'network': {'id': 'acc7815e-85e0-47b5-9e78-7f344d848fc9', 'name': 'ctest-vn4-45695002', 'tenant_id': '2c35c84c82d647d8866dee221a4bc643', 'project_id': '2c35c84c82d647d8866dee221a4bc643', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26260443', 'ctest-vn4-45695002'], 'port_security_enabled': True, 'description': ''}} 2026-01-22 22:06:35,375 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a755c6c2-ef75-43dc-bf2a-dc67e6fa6a98', 'name': '', 'tenant_id': '2c35c84c82d647d8866dee221a4bc643', 'network_id': 'acc7815e-85e0-47b5-9e78-7f344d848fc9', 'ip_version': 4, 'cidr': '87.5.207.64/26', 'allocation_pools': [{'start': '87.5.207.66', 'end': '87.5.207.126'}], 'gateway_ip': '87.5.207.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.5.207.66', 'tags': [], 'project_id': '2c35c84c82d647d8866dee221a4bc643'}} 2026-01-22 22:06:35,613 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c4ab21f6-f372-49b6-9c69-db6382db0706', 'name': '', 'tenant_id': '2c35c84c82d647d8866dee221a4bc643', 'network_id': 'acc7815e-85e0-47b5-9e78-7f344d848fc9', 'ip_version': 6, 'cidr': '208a:36ca:f46f:c260:337:3f24::/96', 'allocation_pools': [{'start': '208a:36ca:f46f:c260:337:3f24:0:2', 'end': '208a:36ca:f46f:c260:337:3f24:ffff:fffe'}], 'gateway_ip': '208a:36ca:f46f:c260:337:3f24:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208a:36ca:f46f:c260:337:3f24:0:2', 'tags': [], 'project_id': '2c35c84c82d647d8866dee221a4bc643'}} 2026-01-22 22:06:35,638 - INFO - Created VN ctest-vn4-45695002 2026-01-22 22:06:35,698 - DEBUG - VN ctest-vn4-45695002 UUID is acc7815e-85e0-47b5-9e78-7f344d848fc9 2026-01-22 22:06:36,077 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'acc7815e-85e0-47b5-9e78-7f344d848fc9', 'name': 'ctest-vn4-45695002', 'tenant_id': '2c35c84c82d647d8866dee221a4bc643', 'project_id': '2c35c84c82d647d8866dee221a4bc643', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a755c6c2-ef75-43dc-bf2a-dc67e6fa6a98', 'c4ab21f6-f372-49b6-9c69-db6382db0706'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26260443', 'ctest-vn4-45695002'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26260443', 'ctest-policy1-46760165']], 'subnet_ipam': [{'subnet_cidr': '87.5.207.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '208a:36ca:f46f:c260:337:3f24::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-22 22:06:36,274 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-22 22:06:36,634 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-22 22:06:36,697 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e35fd34d-c78d-40e5-9dc1-4c6e4ec0e268 2026-01-22 22:06:36,715 - DEBUG - Requesting: http://10.0.0.50:8082/project/2c35c84c-82d6-47d8-866d-ee221a4bc643 2026-01-22 22:06:36,821 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/acc7815e-85e0-47b5-9e78-7f344d848fc9 2026-01-22 22:06:36,840 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/acc7815e-85e0-47b5-9e78-7f344d848fc9 2026-01-22 22:06:36,856 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8c31d4c9-313b-4487-8a75-2fcdb9318151 2026-01-22 22:06:36,872 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8c31d4c9-313b-4487-8a75-2fcdb9318151 2026-01-22 22:06:36,886 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a087c081-6015-4c01-a35a-a78163ef6b73 2026-01-22 22:06:36,906 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-22 22:06:36,906 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/acc7815e-85e0-47b5-9e78-7f344d848fc9 2026-01-22 22:06:36,930 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8c31d4c9-313b-4487-8a75-2fcdb9318151 2026-01-22 22:06:36,960 - INFO - Verified VN network id 11 for VN acc7815e-85e0-47b5-9e78-7f344d848fc9 2026-01-22 22:06:36,960 - INFO - Verifications in API Server for VN ctest-vn4-45695002 passed 2026-01-22 22:06:36,960 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/acc7815e-85e0-47b5-9e78-7f344d848fc9 2026-01-22 22:06:36,978 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8c31d4c9-313b-4487-8a75-2fcdb9318151 2026-01-22 22:06:36,991 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8c31d4c9-313b-4487-8a75-2fcdb9318151 2026-01-22 22:06:37,001 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a087c081-6015-4c01-a35a-a78163ef6b73 2026-01-22 22:06:37,024 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26260443:ctest-vn4-45695002', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26260443', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12450061937862002613', 'uuid-lslong': '11419016717813452745'}, 'enable': 'true', 'created': '2026-01-22T22:06:35', 'last-modified': '2026-01-22T22:06:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.008003'} 2026-01-22 22:06:37,035 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-22 22:06:37,035 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-45695002 passed 2026-01-22 22:06:37,035 - DEBUG - ====Verifying policy data for ctest-vn4-45695002 in API_Server ====== 2026-01-22 22:06:37,036 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-22 22:06:37,047 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e35fd34d-c78d-40e5-9dc1-4c6e4ec0e268 2026-01-22 22:06:37,064 - DEBUG - Requesting: http://10.0.0.50:8082/project/2c35c84c-82d6-47d8-866d-ee221a4bc643 2026-01-22 22:06:37,154 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/acc7815e-85e0-47b5-9e78-7f344d848fc9 2026-01-22 22:06:37,173 - DEBUG - ==>Verifying data for policy with id: c8d97b3b-12fd-4306-b587-13643e92924a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26260443', 'ctest-policy1-46760165'] 2026-01-22 22:06:37,174 - INFO - VN ctest-vn4-45695002 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-22 22:06:37,174 - DEBUG - Verifying the vn in opserver 2026-01-22 22:06:37,174 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26260443:ctest-vn4-45695002 virtual network link through opserver 10.0.0.50 2026-01-22 22:06:37,175 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-22 22:06:37,531 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-22 22:06:37,709 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26260443:ctest-vn4-45695002', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26260443:ctest-vn4-45695002?flat'} 2026-01-22 22:06:37,709 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26260443:ctest-vn4-45695002 is found in opserver 2026-01-22 22:06:37,733 - DEBUG - Do not have enough data to verify VN in agent 2026-01-22 22:06:37,743 - DEBUG - VRF ids for VN ctest-vn4-45695002: {} 2026-01-22 22:06:37,743 - DEBUG - ====Verifying data for ctest-policy1-46760165 in API_Server ====== 2026-01-22 22:06:37,744 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-22 22:06:37,755 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e35fd34d-c78d-40e5-9dc1-4c6e4ec0e268 2026-01-22 22:06:37,788 - DEBUG - Requesting: http://10.0.0.50:8082/project/2c35c84c-82d6-47d8-866d-ee221a4bc643 2026-01-22 22:06:37,904 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/c8d97b3b-12fd-4306-b587-13643e92924a 2026-01-22 22:06:37,926 - INFO - Verified policy ctest-policy1-46760165 in API Server, Result: True 2026-01-22 22:06:37,926 - INFO - Done with setup and verification, moving onto test .. 2026-01-22 22:06:37,943 - INFO - Deleting VN ctest-vn4-45695002 2026-01-22 22:06:38,133 - DEBUG - Response for deleting network () 2026-01-22 22:06:38,133 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8c31d4c9-313b-4487-8a75-2fcdb9318151 2026-01-22 22:06:38,139 - DEBUG - Response Code: 404 2026-01-22 22:06:38,140 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-22 22:06:38,149 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e35fd34d-c78d-40e5-9dc1-4c6e4ec0e268 2026-01-22 22:06:38,209 - DEBUG - Requesting: http://10.0.0.50:8082/project/2c35c84c-82d6-47d8-866d-ee221a4bc643 2026-01-22 22:06:38,321 - INFO - Validated that VN ctest-vn4-45695002 is not found in API Server 2026-01-22 22:06:38,345 - DEBUG - VN ctest-vn4-45695002 is not present in Agent 10.0.0.50 2026-01-22 22:06:38,345 - INFO - Validated that VN ctest-vn4-45695002 is not in any agent 2026-01-22 22:06:38,390 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-45695002 info 2026-01-22 22:06:38,430 - INFO - Deleted policy ctest-policy1-46760165 2026-01-22 22:06:38,617 - DEBUG - policy ctest-policy1-46760165 is not found in API Server 2026-01-22 22:06:38,941 - DEBUG - No XMPP flaps were noticed during the test 2026-01-22 22:06:38,942 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-01-22 22:06:38,942 - INFO - -------------------------------------------------------------------------------- 2026-01-22 22:06:39,298 - DEBUG - No XMPP flaps were noticed during the test 2026-01-22 22:06:39,299 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2026-01-22 22:06:39,299 - INFO - -------------------------------------------------------------------------------- 2026-01-22 22:06:40,301 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-26260443, ID : 2c35c84c-82d6-47d8-866d-ee221a4bc643