2026-01-19 11:58:00,550 - INFO - Domain Default found not creating 2026-01-19 11:58:00,746 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-04674558 not found, creating it 2026-01-19 11:58:01,203 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-04674558, ID : 11e879bc-57e2-42c3-9e03-c7931203fe44 2026-01-19 11:58:02,843 - INFO - ================================================================================ 2026-01-19 11:58:02,844 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-19 11:58:03,126 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.129': '0'}} with 2026-01-19 11:58:03,126 - INFO - Initial checks done. Running the testcase now 2026-01-19 11:58:03,126 - INFO - 2026-01-19 11:58:03,127 - INFO - ================================================================================ 2026-01-19 11:58:03,127 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-19 11:58:03,127 - 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-19 11:58:03,419 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.129': '0'}} with 2026-01-19 11:58:03,419 - INFO - Initial checks done. Running the testcase now 2026-01-19 11:58:03,419 - INFO - 2026-01-19 11:58:03,802 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04674558:ctest-vn4-11469917, 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-04674558:ctest-vn4-11469917, 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-04674558:ctest-vn4-11469917, 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-04674558:ctest-vn4-11469917, 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-19 11:58:04,334 - DEBUG - Response for create_network : {'network': {'id': 'ac6b250a-8921-4e60-8d34-e73a1500af02', 'name': 'ctest-vn4-11469917', 'tenant_id': '11e879bc57e242c39e03c7931203fe44', 'project_id': '11e879bc57e242c39e03c7931203fe44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04674558', 'ctest-vn4-11469917'], 'port_security_enabled': True, 'description': ''}} 2026-01-19 11:58:04,556 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb10d5b3-db56-435e-96cf-6cf233fdd37b', 'name': '', 'tenant_id': '11e879bc57e242c39e03c7931203fe44', 'network_id': 'ac6b250a-8921-4e60-8d34-e73a1500af02', 'ip_version': 4, 'cidr': '164.181.78.64/26', 'allocation_pools': [{'start': '164.181.78.66', 'end': '164.181.78.126'}], 'gateway_ip': '164.181.78.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.181.78.66', 'tags': [], 'project_id': '11e879bc57e242c39e03c7931203fe44'}} 2026-01-19 11:58:04,764 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b49c65db-6124-4d18-a8f5-f693f5f282db', 'name': '', 'tenant_id': '11e879bc57e242c39e03c7931203fe44', 'network_id': 'ac6b250a-8921-4e60-8d34-e73a1500af02', 'ip_version': 6, 'cidr': '3dfc:d018:8ce1:499d:a9ac:c966::/96', 'allocation_pools': [{'start': '3dfc:d018:8ce1:499d:a9ac:c966:0:2', 'end': '3dfc:d018:8ce1:499d:a9ac:c966:ffff:fffe'}], 'gateway_ip': '3dfc:d018:8ce1:499d:a9ac:c966:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3dfc:d018:8ce1:499d:a9ac:c966:0:2', 'tags': [], 'project_id': '11e879bc57e242c39e03c7931203fe44'}} 2026-01-19 11:58:04,788 - INFO - Created VN ctest-vn4-11469917 2026-01-19 11:58:04,848 - DEBUG - VN ctest-vn4-11469917 UUID is ac6b250a-8921-4e60-8d34-e73a1500af02 2026-01-19 11:58:05,072 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ac6b250a-8921-4e60-8d34-e73a1500af02', 'name': 'ctest-vn4-11469917', 'tenant_id': '11e879bc57e242c39e03c7931203fe44', 'project_id': '11e879bc57e242c39e03c7931203fe44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb10d5b3-db56-435e-96cf-6cf233fdd37b', 'b49c65db-6124-4d18-a8f5-f693f5f282db'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04674558', 'ctest-vn4-11469917'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04674558', 'ctest-policy1-76584644']], 'subnet_ipam': [{'subnet_cidr': '164.181.78.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3dfc:d018:8ce1:499d:a9ac:c966::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-19 11:58:05,249 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-19 11:58:05,584 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-19 11:58:05,621 - DEBUG - Requesting: http://10.0.0.141:8082/domain/6b9f818a-63c4-4ff0-b09f-4afdc9a631c1 2026-01-19 11:58:05,634 - DEBUG - Requesting: http://10.0.0.141:8082/project/11e879bc-57e2-42c3-9e03-c7931203fe44 2026-01-19 11:58:05,714 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ac6b250a-8921-4e60-8d34-e73a1500af02 2026-01-19 11:58:05,728 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ac6b250a-8921-4e60-8d34-e73a1500af02 2026-01-19 11:58:05,738 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/108af5c2-d202-471d-a59e-1cefa3311704 2026-01-19 11:58:05,747 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/108af5c2-d202-471d-a59e-1cefa3311704 2026-01-19 11:58:05,755 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/346502a2-7f36-4d4d-9252-8a062de8a82c 2026-01-19 11:58:05,762 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 11:58:05,763 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ac6b250a-8921-4e60-8d34-e73a1500af02 2026-01-19 11:58:05,774 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/108af5c2-d202-471d-a59e-1cefa3311704 2026-01-19 11:58:05,790 - INFO - Verified VN network id 11 for VN ac6b250a-8921-4e60-8d34-e73a1500af02 2026-01-19 11:58:05,790 - INFO - Verifications in API Server for VN ctest-vn4-11469917 passed 2026-01-19 11:58:05,790 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ac6b250a-8921-4e60-8d34-e73a1500af02 2026-01-19 11:58:05,801 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/108af5c2-d202-471d-a59e-1cefa3311704 2026-01-19 11:58:05,810 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/108af5c2-d202-471d-a59e-1cefa3311704 2026-01-19 11:58:05,818 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/346502a2-7f36-4d4d-9252-8a062de8a82c 2026-01-19 11:58:05,829 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04674558:ctest-vn4-11469917', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04674558', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12424064724212207200', 'uuid-lslong': '10175011694783278850'}, 'enable': 'true', 'created': '2026-01-19T11:58:04', 'last-modified': '2026-01-19T11:58:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.784215'} 2026-01-19 11:58:05,835 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 11:58:05,835 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-11469917 passed 2026-01-19 11:58:05,836 - DEBUG - ====Verifying policy data for ctest-vn4-11469917 in API_Server ====== 2026-01-19 11:58:05,836 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-19 11:58:05,842 - DEBUG - Requesting: http://10.0.0.141:8082/domain/6b9f818a-63c4-4ff0-b09f-4afdc9a631c1 2026-01-19 11:58:05,852 - DEBUG - Requesting: http://10.0.0.141:8082/project/11e879bc-57e2-42c3-9e03-c7931203fe44 2026-01-19 11:58:05,921 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ac6b250a-8921-4e60-8d34-e73a1500af02 2026-01-19 11:58:05,932 - DEBUG - ==>Verifying data for policy with id: 42d16a7d-a3ea-4626-a3a3-946312f76078, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04674558', 'ctest-policy1-76584644'] 2026-01-19 11:58:05,932 - INFO - VN ctest-vn4-11469917 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-19 11:58:05,932 - DEBUG - Verifying the vn in opserver 2026-01-19 11:58:05,932 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04674558:ctest-vn4-11469917 virtual network link through opserver 10.0.0.141 2026-01-19 11:58:05,932 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-19 11:58:06,240 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-19 11:58:06,308 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04674558:ctest-vn4-11469917', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04674558:ctest-vn4-11469917?flat'} 2026-01-19 11:58:06,308 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04674558:ctest-vn4-11469917 is found in opserver 2026-01-19 11:58:06,319 - DEBUG - Do not have enough data to verify VN in agent 2026-01-19 11:58:06,325 - DEBUG - VRF ids for VN ctest-vn4-11469917: {} 2026-01-19 11:58:06,325 - DEBUG - ====Verifying data for ctest-policy1-76584644 in API_Server ====== 2026-01-19 11:58:06,325 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-19 11:58:06,333 - DEBUG - Requesting: http://10.0.0.141:8082/domain/6b9f818a-63c4-4ff0-b09f-4afdc9a631c1 2026-01-19 11:58:06,347 - DEBUG - Requesting: http://10.0.0.141:8082/project/11e879bc-57e2-42c3-9e03-c7931203fe44 2026-01-19 11:58:06,417 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/42d16a7d-a3ea-4626-a3a3-946312f76078 2026-01-19 11:58:06,428 - INFO - Verified policy ctest-policy1-76584644 in API Server, Result: True 2026-01-19 11:58:06,428 - INFO - Done with setup and verification, moving onto test .. 2026-01-19 11:58:06,438 - INFO - Deleting VN ctest-vn4-11469917 2026-01-19 11:58:06,562 - DEBUG - Response for deleting network () 2026-01-19 11:58:06,562 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/108af5c2-d202-471d-a59e-1cefa3311704 2026-01-19 11:58:06,568 - DEBUG - Response Code: 404 2026-01-19 11:58:06,568 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-19 11:58:06,574 - DEBUG - Requesting: http://10.0.0.141:8082/domain/6b9f818a-63c4-4ff0-b09f-4afdc9a631c1 2026-01-19 11:58:06,626 - DEBUG - Requesting: http://10.0.0.141:8082/project/11e879bc-57e2-42c3-9e03-c7931203fe44 2026-01-19 11:58:06,698 - INFO - Validated that VN ctest-vn4-11469917 is not found in API Server 2026-01-19 11:58:06,708 - DEBUG - VN ctest-vn4-11469917 is not present in Agent 10.0.0.141 2026-01-19 11:58:06,708 - INFO - Validated that VN ctest-vn4-11469917 is not in any agent 2026-01-19 11:58:06,724 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-11469917 info 2026-01-19 11:58:06,748 - INFO - Deleted policy ctest-policy1-76584644 2026-01-19 11:58:06,913 - DEBUG - policy ctest-policy1-76584644 is not found in API Server 2026-01-19 11:58:07,175 - DEBUG - No XMPP flaps were noticed during the test
2026-01-19 11:58:07,175 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-19 11:58:07,175 - INFO - -------------------------------------------------------------------------------- 2026-01-19 11:58:07,469 - DEBUG - No XMPP flaps were noticed during the test
2026-01-19 11:58:07,469 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-01-19 11:58:07,469 - INFO - -------------------------------------------------------------------------------- 2026-01-19 11:58:08,168 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-04674558, ID : 11e879bc-57e2-42c3-9e03-c7931203fe44