2026-02-04 10:25:00,156 - INFO - Domain Default found not creating 2026-02-04 10:25:00,359 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40827964 not found, creating it 2026-02-04 10:25:00,854 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40827964, ID : 99017c25-833c-4c73-9a0a-3f1317889235 2026-02-04 10:25:02,460 - INFO - ================================================================================ 2026-02-04 10:25:02,460 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 10:25:02,720 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.193': '0'}} with 2026-02-04 10:25:02,720 - INFO - Initial checks done. Running the testcase now 2026-02-04 10:25:02,720 - INFO - 2026-02-04 10:25:02,720 - INFO - ================================================================================ 2026-02-04 10:25:02,720 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 10:25:02,720 - 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-04 10:25:03,022 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.193': '0'}} with 2026-02-04 10:25:03,022 - INFO - Initial checks done. Running the testcase now 2026-02-04 10:25:03,023 - INFO - 2026-02-04 10:25:03,398 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40827964:ctest-vn4-55095837, 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-40827964:ctest-vn4-55095837, 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-40827964:ctest-vn4-55095837, 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-40827964:ctest-vn4-55095837, 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-04 10:25:03,924 - DEBUG - Response for create_network : {'network': {'id': '3b9a569d-3e2f-40bf-a32b-cfebd3b066a3', 'name': 'ctest-vn4-55095837', 'tenant_id': '99017c25833c4c739a0a3f1317889235', 'project_id': '99017c25833c4c739a0a3f1317889235', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40827964', 'ctest-vn4-55095837'], 'port_security_enabled': True, 'description': ''}} 2026-02-04 10:25:04,118 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a42bfce-5408-4aaf-9ea9-bf0a1cb67f46', 'name': '', 'tenant_id': '99017c25833c4c739a0a3f1317889235', 'network_id': '3b9a569d-3e2f-40bf-a32b-cfebd3b066a3', 'ip_version': 4, 'cidr': '22.166.241.0/26', 'allocation_pools': [{'start': '22.166.241.2', 'end': '22.166.241.62'}], 'gateway_ip': '22.166.241.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.166.241.2', 'tags': [], 'project_id': '99017c25833c4c739a0a3f1317889235'}} 2026-02-04 10:25:04,292 - DEBUG - Response for create_subnet : {'subnet': {'id': '4be3f6a9-431a-488d-8f08-e7fc6a9f9e2f', 'name': '', 'tenant_id': '99017c25833c4c739a0a3f1317889235', 'network_id': '3b9a569d-3e2f-40bf-a32b-cfebd3b066a3', 'ip_version': 6, 'cidr': '2d66:579b:8f51:d46b:b53b:ce68::/96', 'allocation_pools': [{'start': '2d66:579b:8f51:d46b:b53b:ce68:0:2', 'end': '2d66:579b:8f51:d46b:b53b:ce68:ffff:fffe'}], 'gateway_ip': '2d66:579b:8f51:d46b:b53b:ce68:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d66:579b:8f51:d46b:b53b:ce68:0:2', 'tags': [], 'project_id': '99017c25833c4c739a0a3f1317889235'}} 2026-02-04 10:25:04,316 - INFO - Created VN ctest-vn4-55095837 2026-02-04 10:25:04,369 - DEBUG - VN ctest-vn4-55095837 UUID is 3b9a569d-3e2f-40bf-a32b-cfebd3b066a3 2026-02-04 10:25:04,589 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3b9a569d-3e2f-40bf-a32b-cfebd3b066a3', 'name': 'ctest-vn4-55095837', 'tenant_id': '99017c25833c4c739a0a3f1317889235', 'project_id': '99017c25833c4c739a0a3f1317889235', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a42bfce-5408-4aaf-9ea9-bf0a1cb67f46', '4be3f6a9-431a-488d-8f08-e7fc6a9f9e2f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40827964', 'ctest-vn4-55095837'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40827964', 'ctest-policy1-34413940']], 'subnet_ipam': [{'subnet_cidr': '22.166.241.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d66:579b:8f51:d46b:b53b:ce68::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-04 10:25:04,766 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-04 10:25:05,104 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-04 10:25:05,137 - DEBUG - Requesting: http://10.0.0.23:8082/domain/2edf6a3b-a264-4d20-81b7-144b6668e103 2026-02-04 10:25:05,154 - DEBUG - Requesting: http://10.0.0.23:8082/project/99017c25-833c-4c73-9a0a-3f1317889235 2026-02-04 10:25:05,224 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3b9a569d-3e2f-40bf-a32b-cfebd3b066a3 2026-02-04 10:25:05,236 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3b9a569d-3e2f-40bf-a32b-cfebd3b066a3 2026-02-04 10:25:05,246 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/453b0a25-9a3d-42dd-a6d0-40c149bdfb81 2026-02-04 10:25:05,253 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/453b0a25-9a3d-42dd-a6d0-40c149bdfb81 2026-02-04 10:25:05,259 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/60cc65b2-03d6-4988-9718-2cead25cd937 2026-02-04 10:25:05,265 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 10:25:05,265 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3b9a569d-3e2f-40bf-a32b-cfebd3b066a3 2026-02-04 10:25:05,275 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/453b0a25-9a3d-42dd-a6d0-40c149bdfb81 2026-02-04 10:25:05,290 - INFO - Verified VN network id 11 for VN 3b9a569d-3e2f-40bf-a32b-cfebd3b066a3 2026-02-04 10:25:05,291 - INFO - Verifications in API Server for VN ctest-vn4-55095837 passed 2026-02-04 10:25:05,291 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3b9a569d-3e2f-40bf-a32b-cfebd3b066a3 2026-02-04 10:25:05,300 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/453b0a25-9a3d-42dd-a6d0-40c149bdfb81 2026-02-04 10:25:05,307 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/453b0a25-9a3d-42dd-a6d0-40c149bdfb81 2026-02-04 10:25:05,313 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/60cc65b2-03d6-4988-9718-2cead25cd937 2026-02-04 10:25:05,324 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40827964:ctest-vn4-55095837', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40827964', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4294840428004327615', 'uuid-lslong': '11757719863956629155'}, 'enable': 'true', 'created': '2026-02-04T10:25:03', 'last-modified': '2026-02-04T10:25:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.764256'} 2026-02-04 10:25:05,331 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 10:25:05,331 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55095837 passed 2026-02-04 10:25:05,331 - DEBUG - ====Verifying policy data for ctest-vn4-55095837 in API_Server ====== 2026-02-04 10:25:05,332 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-04 10:25:05,337 - DEBUG - Requesting: http://10.0.0.23:8082/domain/2edf6a3b-a264-4d20-81b7-144b6668e103 2026-02-04 10:25:05,348 - DEBUG - Requesting: http://10.0.0.23:8082/project/99017c25-833c-4c73-9a0a-3f1317889235 2026-02-04 10:25:05,422 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3b9a569d-3e2f-40bf-a32b-cfebd3b066a3 2026-02-04 10:25:05,433 - DEBUG - ==>Verifying data for policy with id: 2bece396-f847-47fb-917c-a05944df04d0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40827964', 'ctest-policy1-34413940'] 2026-02-04 10:25:05,433 - INFO - VN ctest-vn4-55095837 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-04 10:25:05,433 - DEBUG - Verifying the vn in opserver 2026-02-04 10:25:05,433 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40827964:ctest-vn4-55095837 virtual network link through opserver 10.0.0.23 2026-02-04 10:25:05,433 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-04 10:25:05,739 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-04 10:25:05,810 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40827964:ctest-vn4-55095837', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40827964:ctest-vn4-55095837?flat'} 2026-02-04 10:25:05,810 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40827964:ctest-vn4-55095837 is found in opserver 2026-02-04 10:25:05,826 - DEBUG - Do not have enough data to verify VN in agent 2026-02-04 10:25:05,831 - DEBUG - VRF ids for VN ctest-vn4-55095837: {} 2026-02-04 10:25:05,832 - DEBUG - ====Verifying data for ctest-policy1-34413940 in API_Server ====== 2026-02-04 10:25:05,832 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-04 10:25:05,838 - DEBUG - Requesting: http://10.0.0.23:8082/domain/2edf6a3b-a264-4d20-81b7-144b6668e103 2026-02-04 10:25:05,849 - DEBUG - Requesting: http://10.0.0.23:8082/project/99017c25-833c-4c73-9a0a-3f1317889235 2026-02-04 10:25:05,920 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/2bece396-f847-47fb-917c-a05944df04d0 2026-02-04 10:25:05,930 - INFO - Verified policy ctest-policy1-34413940 in API Server, Result: True 2026-02-04 10:25:05,931 - INFO - Done with setup and verification, moving onto test .. 2026-02-04 10:25:05,940 - INFO - Deleting VN ctest-vn4-55095837 2026-02-04 10:25:06,085 - DEBUG - Response for deleting network () 2026-02-04 10:25:06,085 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/453b0a25-9a3d-42dd-a6d0-40c149bdfb81 2026-02-04 10:25:06,091 - DEBUG - Response Code: 404 2026-02-04 10:25:06,091 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-04 10:25:06,098 - DEBUG - Requesting: http://10.0.0.23:8082/domain/2edf6a3b-a264-4d20-81b7-144b6668e103 2026-02-04 10:25:06,150 - DEBUG - Requesting: http://10.0.0.23:8082/project/99017c25-833c-4c73-9a0a-3f1317889235 2026-02-04 10:25:06,231 - INFO - Validated that VN ctest-vn4-55095837 is not found in API Server 2026-02-04 10:25:06,242 - DEBUG - VN ctest-vn4-55095837 is not present in Agent 10.0.0.23 2026-02-04 10:25:06,242 - INFO - Validated that VN ctest-vn4-55095837 is not in any agent 2026-02-04 10:25:06,258 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55095837 info 2026-02-04 10:25:06,296 - INFO - Deleted policy ctest-policy1-34413940 2026-02-04 10:25:06,469 - DEBUG - policy ctest-policy1-34413940 is not found in API Server 2026-02-04 10:25:06,727 - DEBUG - No XMPP flaps were noticed during the test