2026-11-02 02:59:34,140 - INFO - Domain Default found not creating 2026-11-02 02:59:34,330 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-69400322 not found, creating it 2026-11-02 02:59:34,908 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-69400322, ID : 33fa8d41-2722-44bf-b9fc-bf5c941bbba1 2026-11-02 02:59:36,603 - INFO - ================================================================================ 2026-11-02 02:59:36,603 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-02 02:59:37,919 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.254': '0', '10.20.0.17': '0'}, '10.0.0.162': {'10.20.0.254': '0', '10.20.0.17': '0'}} with 2026-11-02 02:59:37,919 - INFO - Initial checks done. Running the testcase now 2026-11-02 02:59:37,919 - INFO - 2026-11-02 02:59:37,919 - INFO - ================================================================================ 2026-11-02 02:59:37,919 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-02 02:59:37,919 - 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-11-02 02:59:39,200 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.254': '0', '10.20.0.17': '0'}, '10.0.0.162': {'10.20.0.254': '0', '10.20.0.17': '0'}} with 2026-11-02 02:59:39,200 - INFO - Initial checks done. Running the testcase now 2026-11-02 02:59:39,200 - INFO - 2026-11-02 02:59:39,619 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69400322:ctest-vn4-01149144, 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-69400322:ctest-vn4-01149144, 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-69400322:ctest-vn4-01149144, 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-69400322:ctest-vn4-01149144, 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-11-02 02:59:40,311 - DEBUG - Response for create_network : {'network': {'id': 'dee893e7-da11-4661-974d-ec9a9b1bc4b0', 'name': 'ctest-vn4-01149144', 'tenant_id': '33fa8d41272244bfb9fcbf5c941bbba1', 'project_id': '33fa8d41272244bfb9fcbf5c941bbba1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69400322', 'ctest-vn4-01149144'], 'port_security_enabled': True, 'description': ''}} 2026-11-02 02:59:40,543 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5e32b5d-2231-4d1e-83af-428f40852a14', 'name': '', 'tenant_id': '33fa8d41272244bfb9fcbf5c941bbba1', 'network_id': 'dee893e7-da11-4661-974d-ec9a9b1bc4b0', 'ip_version': 4, 'cidr': '66.145.254.128/26', 'allocation_pools': [{'start': '66.145.254.130', 'end': '66.145.254.190'}], 'gateway_ip': '66.145.254.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.145.254.130', 'tags': [], 'project_id': '33fa8d41272244bfb9fcbf5c941bbba1'}} 2026-11-02 02:59:40,750 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e0ccf21-caff-4aa6-a5b2-32d20831e78d', 'name': '', 'tenant_id': '33fa8d41272244bfb9fcbf5c941bbba1', 'network_id': 'dee893e7-da11-4661-974d-ec9a9b1bc4b0', 'ip_version': 6, 'cidr': '2feb:6d74:6b5e:4e4c:ba28:1eaf::/96', 'allocation_pools': [{'start': '2feb:6d74:6b5e:4e4c:ba28:1eaf:0:2', 'end': '2feb:6d74:6b5e:4e4c:ba28:1eaf:ffff:fffe'}], 'gateway_ip': '2feb:6d74:6b5e:4e4c:ba28:1eaf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2feb:6d74:6b5e:4e4c:ba28:1eaf:0:2', 'tags': [], 'project_id': '33fa8d41272244bfb9fcbf5c941bbba1'}} 2026-11-02 02:59:40,772 - INFO - Created VN ctest-vn4-01149144 2026-11-02 02:59:40,784 - DEBUG - VN ctest-vn4-01149144 UUID is dee893e7-da11-4661-974d-ec9a9b1bc4b0 2026-11-02 02:59:40,990 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dee893e7-da11-4661-974d-ec9a9b1bc4b0', 'name': 'ctest-vn4-01149144', 'tenant_id': '33fa8d41272244bfb9fcbf5c941bbba1', 'project_id': '33fa8d41272244bfb9fcbf5c941bbba1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['e5e32b5d-2231-4d1e-83af-428f40852a14', '4e0ccf21-caff-4aa6-a5b2-32d20831e78d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69400322', 'ctest-vn4-01149144'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69400322', 'ctest-policy1-50861156']], 'subnet_ipam': [{'subnet_cidr': '66.145.254.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2feb:6d74:6b5e:4e4c:ba28:1eaf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-02 02:59:41,100 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-02 02:59:41,479 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-02 02:59:41,509 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5757b06b-c09b-4d3a-a3fa-720afb19f2b8 2026-11-02 02:59:41,535 - DEBUG - Requesting: http://10.0.0.50:8082/project/33fa8d41-2722-44bf-b9fc-bf5c941bbba1 2026-11-02 02:59:41,638 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dee893e7-da11-4661-974d-ec9a9b1bc4b0 2026-11-02 02:59:41,668 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dee893e7-da11-4661-974d-ec9a9b1bc4b0 2026-11-02 02:59:41,679 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/069570dd-6a19-4fcc-8e37-4b7593f99e2a 2026-11-02 02:59:41,688 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/069570dd-6a19-4fcc-8e37-4b7593f99e2a 2026-11-02 02:59:41,696 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/219b4a40-69c5-4403-a4a3-dc51e93187f9 2026-11-02 02:59:41,703 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-02 02:59:41,703 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dee893e7-da11-4661-974d-ec9a9b1bc4b0 2026-11-02 02:59:41,714 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/069570dd-6a19-4fcc-8e37-4b7593f99e2a 2026-11-02 02:59:41,737 - INFO - Verified VN network id 16 for VN dee893e7-da11-4661-974d-ec9a9b1bc4b0 2026-11-02 02:59:41,737 - INFO - Verifications in API Server for VN ctest-vn4-01149144 passed 2026-11-02 02:59:41,738 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dee893e7-da11-4661-974d-ec9a9b1bc4b0 2026-11-02 02:59:41,749 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/069570dd-6a19-4fcc-8e37-4b7593f99e2a 2026-11-02 02:59:41,757 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/069570dd-6a19-4fcc-8e37-4b7593f99e2a 2026-11-02 02:59:41,763 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/219b4a40-69c5-4403-a4a3-dc51e93187f9 2026-11-02 02:59:41,778 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69400322:ctest-vn4-01149144', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69400322', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16062250695022167649', 'uuid-lslong': '10902630421705245872'}, 'enable': 'true', 'created': '2026-11-02T02:59:40', 'last-modified': '2026-11-02T02:59:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.829960'} 2026-11-02 02:59:41,787 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-02 02:59:41,797 - DEBUG - Control-node 10.0.0.190 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69400322:ctest-vn4-01149144', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69400322', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16062250695022167649', 'uuid-lslong': '10902630421705245872'}, 'enable': 'true', 'created': '2026-11-02T02:59:40', 'last-modified': '2026-11-02T02:59:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.850085'} 2026-11-02 02:59:41,806 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-02 02:59:41,814 - DEBUG - Control-node 10.0.0.191 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69400322:ctest-vn4-01149144', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69400322', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16062250695022167649', 'uuid-lslong': '10902630421705245872'}, 'enable': 'true', 'created': '2026-11-02T02:59:40', 'last-modified': '2026-11-02T02:59:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.869042'} 2026-11-02 02:59:41,823 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-02 02:59:41,823 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-01149144 passed 2026-11-02 02:59:41,823 - DEBUG - ====Verifying policy data for ctest-vn4-01149144 in API_Server ====== 2026-11-02 02:59:41,823 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-02 02:59:41,830 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5757b06b-c09b-4d3a-a3fa-720afb19f2b8 2026-11-02 02:59:41,842 - DEBUG - Requesting: http://10.0.0.50:8082/project/33fa8d41-2722-44bf-b9fc-bf5c941bbba1 2026-11-02 02:59:41,933 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dee893e7-da11-4661-974d-ec9a9b1bc4b0 2026-11-02 02:59:41,951 - DEBUG - ==>Verifying data for policy with id: d82d4201-48e2-47db-b6c1-4a4b89bc18ad, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69400322', 'ctest-policy1-50861156'] 2026-11-02 02:59:41,951 - INFO - VN ctest-vn4-01149144 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-02 02:59:41,951 - DEBUG - Verifying the vn in opserver 2026-11-02 02:59:41,951 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69400322:ctest-vn4-01149144 virtual network link through opserver 10.0.0.50 2026-11-02 02:59:41,952 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-11-02 02:59:42,329 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-11-02 02:59:42,392 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69400322:ctest-vn4-01149144', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69400322:ctest-vn4-01149144?flat'} 2026-11-02 02:59:42,392 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69400322:ctest-vn4-01149144 virtual network link through opserver 10.0.0.190 2026-11-02 02:59:42,392 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-11-02 02:59:42,769 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-11-02 02:59:42,826 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69400322:ctest-vn4-01149144', 'href': 'http://10.0.0.190:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69400322:ctest-vn4-01149144?flat'} 2026-11-02 02:59:42,826 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69400322:ctest-vn4-01149144 virtual network link through opserver 10.0.0.191 2026-11-02 02:59:42,826 - DEBUG - Requesting: http://10.0.0.191:8081/analytics/uves/virtual-networks 2026-11-02 02:59:43,208 - DEBUG - Requesting: http://10.0.0.191:8081/analytics/uves/virtual-networks 2026-11-02 02:59:43,301 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69400322:ctest-vn4-01149144', 'href': 'http://10.0.0.191:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69400322:ctest-vn4-01149144?flat'} 2026-11-02 02:59:43,301 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69400322:ctest-vn4-01149144 is found in opserver 2026-11-02 02:59:43,324 - DEBUG - Do not have enough data to verify VN in agent 2026-11-02 02:59:43,336 - DEBUG - VRF ids for VN ctest-vn4-01149144: {} 2026-11-02 02:59:43,336 - DEBUG - ====Verifying data for ctest-policy1-50861156 in API_Server ====== 2026-11-02 02:59:43,336 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-02 02:59:43,343 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5757b06b-c09b-4d3a-a3fa-720afb19f2b8 2026-11-02 02:59:43,360 - DEBUG - Requesting: http://10.0.0.50:8082/project/33fa8d41-2722-44bf-b9fc-bf5c941bbba1 2026-11-02 02:59:43,487 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/d82d4201-48e2-47db-b6c1-4a4b89bc18ad 2026-11-02 02:59:43,500 - INFO - Verified policy ctest-policy1-50861156 in API Server, Result: True 2026-11-02 02:59:43,500 - INFO - Done with setup and verification, moving onto test .. 2026-11-02 02:59:43,517 - INFO - Deleting VN ctest-vn4-01149144 2026-11-02 02:59:43,738 - DEBUG - Response for deleting network () 2026-11-02 02:59:43,738 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/069570dd-6a19-4fcc-8e37-4b7593f99e2a 2026-11-02 02:59:43,745 - DEBUG - Response Code: 404 2026-11-02 02:59:43,745 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-02 02:59:43,757 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5757b06b-c09b-4d3a-a3fa-720afb19f2b8 2026-11-02 02:59:43,768 - DEBUG - Requesting: http://10.0.0.50:8082/project/33fa8d41-2722-44bf-b9fc-bf5c941bbba1 2026-11-02 02:59:43,878 - INFO - Validated that VN ctest-vn4-01149144 is not found in API Server 2026-11-02 02:59:43,888 - DEBUG - VN ctest-vn4-01149144 is not present in Agent 10.0.0.161 2026-11-02 02:59:43,897 - DEBUG - VN ctest-vn4-01149144 is not present in Agent 10.0.0.162 2026-11-02 02:59:43,897 - INFO - Validated that VN ctest-vn4-01149144 is not in any agent 2026-11-02 02:59:43,931 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-01149144 info 2026-11-02 02:59:43,974 - INFO - Deleted policy ctest-policy1-50861156 2026-11-02 02:59:44,177 - DEBUG - policy ctest-policy1-50861156 is not found in API Server 2026-11-02 02:59:45,467 - DEBUG - No XMPP flaps were noticed during the test