2026-02-09 17:01:21,587 - INFO - Domain Default found not creating 2026-02-09 17:01:21,750 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-52324872 not found, creating it 2026-02-09 17:01:22,221 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-52324872, ID : 3c923129-8148-4370-9129-3e30aa36426e 2026-02-09 17:01:23,689 - INFO - ================================================================================ 2026-02-09 17:01:23,690 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 17:01:23,956 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-09 17:01:23,956 - INFO - Initial checks done. Running the testcase now 2026-02-09 17:01:23,957 - INFO - 2026-02-09 17:01:23,957 - INFO - ================================================================================ 2026-02-09 17:01:23,957 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 17:01:23,957 - 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-09 17:01:24,258 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-09 17:01:24,258 - INFO - Initial checks done. Running the testcase now 2026-02-09 17:01:24,259 - INFO - 2026-02-09 17:01:24,622 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52324872:ctest-vn4-42677959, 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-52324872:ctest-vn4-42677959, 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-52324872:ctest-vn4-42677959, 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-52324872:ctest-vn4-42677959, 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-09 17:01:25,142 - DEBUG - Response for create_network : {'network': {'id': 'd8aaf123-4fa9-4b18-a4d1-d0e64846a013', 'name': 'ctest-vn4-42677959', 'tenant_id': '3c9231298148437091293e30aa36426e', 'project_id': '3c9231298148437091293e30aa36426e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52324872', 'ctest-vn4-42677959'], 'port_security_enabled': True, 'description': ''}} 2026-02-09 17:01:25,311 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d313c59-9e1b-447d-b3a5-7121c618e4c7', 'name': '', 'tenant_id': '3c9231298148437091293e30aa36426e', 'network_id': 'd8aaf123-4fa9-4b18-a4d1-d0e64846a013', 'ip_version': 4, 'cidr': '142.190.82.128/26', 'allocation_pools': [{'start': '142.190.82.130', 'end': '142.190.82.190'}], 'gateway_ip': '142.190.82.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.190.82.130', 'tags': [], 'project_id': '3c9231298148437091293e30aa36426e'}} 2026-02-09 17:01:25,458 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a0a8cc7a-0cab-43fd-bb08-7f5cb961fccc', 'name': '', 'tenant_id': '3c9231298148437091293e30aa36426e', 'network_id': 'd8aaf123-4fa9-4b18-a4d1-d0e64846a013', 'ip_version': 6, 'cidr': '225b:8e89:78b1:c961:38a7:3da2::/96', 'allocation_pools': [{'start': '225b:8e89:78b1:c961:38a7:3da2:0:2', 'end': '225b:8e89:78b1:c961:38a7:3da2:ffff:fffe'}], 'gateway_ip': '225b:8e89:78b1:c961:38a7:3da2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '225b:8e89:78b1:c961:38a7:3da2:0:2', 'tags': [], 'project_id': '3c9231298148437091293e30aa36426e'}} 2026-02-09 17:01:25,476 - INFO - Created VN ctest-vn4-42677959 2026-02-09 17:01:25,528 - DEBUG - VN ctest-vn4-42677959 UUID is d8aaf123-4fa9-4b18-a4d1-d0e64846a013 2026-02-09 17:01:25,719 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8aaf123-4fa9-4b18-a4d1-d0e64846a013', 'name': 'ctest-vn4-42677959', 'tenant_id': '3c9231298148437091293e30aa36426e', 'project_id': '3c9231298148437091293e30aa36426e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d313c59-9e1b-447d-b3a5-7121c618e4c7', 'a0a8cc7a-0cab-43fd-bb08-7f5cb961fccc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52324872', 'ctest-vn4-42677959'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52324872', 'ctest-policy1-00541503']], 'subnet_ipam': [{'subnet_cidr': '142.190.82.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '225b:8e89:78b1:c961:38a7:3da2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-09 17:01:25,892 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-09 17:01:26,187 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-09 17:01:26,216 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5eb5de91-00e3-4cee-a993-b6d4ac99880c 2026-02-09 17:01:26,228 - DEBUG - Requesting: http://10.0.0.22:8082/project/3c923129-8148-4370-9129-3e30aa36426e 2026-02-09 17:01:26,301 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d8aaf123-4fa9-4b18-a4d1-d0e64846a013 2026-02-09 17:01:26,312 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d8aaf123-4fa9-4b18-a4d1-d0e64846a013 2026-02-09 17:01:26,321 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/851b3b6e-270f-4c6e-a007-d815723e5520 2026-02-09 17:01:26,327 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/851b3b6e-270f-4c6e-a007-d815723e5520 2026-02-09 17:01:26,333 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/120fe664-2e50-4b15-b85e-1e020cf7dbd2 2026-02-09 17:01:26,339 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 17:01:26,340 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d8aaf123-4fa9-4b18-a4d1-d0e64846a013 2026-02-09 17:01:26,348 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/851b3b6e-270f-4c6e-a007-d815723e5520 2026-02-09 17:01:26,370 - INFO - Verified VN network id 11 for VN d8aaf123-4fa9-4b18-a4d1-d0e64846a013 2026-02-09 17:01:26,370 - INFO - Verifications in API Server for VN ctest-vn4-42677959 passed 2026-02-09 17:01:26,370 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d8aaf123-4fa9-4b18-a4d1-d0e64846a013 2026-02-09 17:01:26,379 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/851b3b6e-270f-4c6e-a007-d815723e5520 2026-02-09 17:01:26,388 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/851b3b6e-270f-4c6e-a007-d815723e5520 2026-02-09 17:01:26,395 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/120fe664-2e50-4b15-b85e-1e020cf7dbd2 2026-02-09 17:01:26,405 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52324872:ctest-vn4-42677959', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-52324872', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15612556192195889944', 'uuid-lslong': '11876503379826352147'}, 'enable': 'true', 'created': '2026-02-09T17:01:25', 'last-modified': '2026-02-09T17:01:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.707271'} 2026-02-09 17:01:26,410 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 17:01:26,410 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42677959 passed 2026-02-09 17:01:26,410 - DEBUG - ====Verifying policy data for ctest-vn4-42677959 in API_Server ====== 2026-02-09 17:01:26,410 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-09 17:01:26,415 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5eb5de91-00e3-4cee-a993-b6d4ac99880c 2026-02-09 17:01:26,425 - DEBUG - Requesting: http://10.0.0.22:8082/project/3c923129-8148-4370-9129-3e30aa36426e 2026-02-09 17:01:26,491 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d8aaf123-4fa9-4b18-a4d1-d0e64846a013 2026-02-09 17:01:26,500 - DEBUG - ==>Verifying data for policy with id: ec279172-4c5f-409c-9f51-f66c618a92c1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52324872', 'ctest-policy1-00541503'] 2026-02-09 17:01:26,500 - INFO - VN ctest-vn4-42677959 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-09 17:01:26,500 - DEBUG - Verifying the vn in opserver 2026-02-09 17:01:26,500 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52324872:ctest-vn4-42677959 virtual network link through opserver 10.0.0.22 2026-02-09 17:01:26,500 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-09 17:01:26,794 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-09 17:01:26,852 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52324872:ctest-vn4-42677959', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52324872:ctest-vn4-42677959?flat'} 2026-02-09 17:01:26,852 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52324872:ctest-vn4-42677959 is found in opserver 2026-02-09 17:01:26,861 - DEBUG - Do not have enough data to verify VN in agent 2026-02-09 17:01:26,866 - DEBUG - VRF ids for VN ctest-vn4-42677959: {} 2026-02-09 17:01:26,866 - DEBUG - ====Verifying data for ctest-policy1-00541503 in API_Server ====== 2026-02-09 17:01:26,866 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-09 17:01:26,871 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5eb5de91-00e3-4cee-a993-b6d4ac99880c 2026-02-09 17:01:26,881 - DEBUG - Requesting: http://10.0.0.22:8082/project/3c923129-8148-4370-9129-3e30aa36426e 2026-02-09 17:01:26,955 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/ec279172-4c5f-409c-9f51-f66c618a92c1 2026-02-09 17:01:26,966 - INFO - Verified policy ctest-policy1-00541503 in API Server, Result: True 2026-02-09 17:01:26,966 - INFO - Done with setup and verification, moving onto test .. 2026-02-09 17:01:26,974 - INFO - Deleting VN ctest-vn4-42677959 2026-02-09 17:01:27,083 - DEBUG - Response for deleting network () 2026-02-09 17:01:27,083 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/851b3b6e-270f-4c6e-a007-d815723e5520 2026-02-09 17:01:27,093 - DEBUG - Response Code: 404 2026-02-09 17:01:27,093 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-09 17:01:27,098 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5eb5de91-00e3-4cee-a993-b6d4ac99880c 2026-02-09 17:01:27,148 - DEBUG - Requesting: http://10.0.0.22:8082/project/3c923129-8148-4370-9129-3e30aa36426e 2026-02-09 17:01:27,224 - INFO - Validated that VN ctest-vn4-42677959 is not found in API Server 2026-02-09 17:01:27,235 - DEBUG - VN ctest-vn4-42677959 is not present in Agent 10.0.0.22 2026-02-09 17:01:27,235 - INFO - Validated that VN ctest-vn4-42677959 is not in any agent 2026-02-09 17:01:27,250 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42677959 info 2026-02-09 17:01:27,271 - INFO - Deleted policy ctest-policy1-00541503 2026-02-09 17:01:27,436 - DEBUG - policy ctest-policy1-00541503 is not found in API Server 2026-02-09 17:01:27,689 - DEBUG - No XMPP flaps were noticed during the test
2026-02-09 17:01:27,689 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-09 17:01:27,689 - INFO - -------------------------------------------------------------------------------- 2026-02-09 17:01:27,981 - DEBUG - No XMPP flaps were noticed during the test
2026-02-09 17:01:27,981 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-09 17:01:27,981 - INFO - -------------------------------------------------------------------------------- 2026-02-09 17:01:28,645 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-52324872, ID : 3c923129-8148-4370-9129-3e30aa36426e