2026-04-03 17:10:24,862 - INFO - Domain Default found not creating 2026-04-03 17:10:25,032 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-28964748 not found, creating it 2026-04-03 17:10:25,538 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-28964748, ID : 9cb17a05-2979-4c2a-8185-d9fb39cc1d93 2026-04-03 17:10:26,986 - INFO - ================================================================================ 2026-04-03 17:10:26,986 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-03 17:10:28,256 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0', '10.20.0.17': '0'}, '10.0.0.240': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2026-04-03 17:10:28,256 - INFO - Initial checks done. Running the testcase now 2026-04-03 17:10:28,256 - INFO - 2026-04-03 17:10:28,256 - INFO - ================================================================================ 2026-04-03 17:10:28,256 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-03 17:10:28,256 - 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-04-03 17:10:29,551 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0', '10.20.0.17': '0'}, '10.0.0.240': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2026-04-03 17:10:29,551 - INFO - Initial checks done. Running the testcase now 2026-04-03 17:10:29,551 - INFO - 2026-04-03 17:10:29,877 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28964748:ctest-vn4-22431614, 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-28964748:ctest-vn4-22431614, 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-28964748:ctest-vn4-22431614, 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-28964748:ctest-vn4-22431614, 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-04-03 17:10:30,463 - DEBUG - Response for create_network : {'network': {'id': 'fee230d3-2355-4582-8a17-f10ba1d715e8', 'name': 'ctest-vn4-22431614', 'tenant_id': '9cb17a0529794c2a8185d9fb39cc1d93', 'project_id': '9cb17a0529794c2a8185d9fb39cc1d93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28964748', 'ctest-vn4-22431614'], 'port_security_enabled': True, 'description': ''}} 2026-04-03 17:10:30,795 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f1525325-8fa5-448d-950b-3e8b2d76c242', 'name': '', 'tenant_id': '9cb17a0529794c2a8185d9fb39cc1d93', 'network_id': 'fee230d3-2355-4582-8a17-f10ba1d715e8', 'ip_version': 4, 'cidr': '223.214.31.128/26', 'allocation_pools': [{'start': '223.214.31.130', 'end': '223.214.31.190'}], 'gateway_ip': '223.214.31.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.214.31.130', 'tags': [], 'project_id': '9cb17a0529794c2a8185d9fb39cc1d93'}} 2026-04-03 17:10:30,971 - DEBUG - Response for create_subnet : {'subnet': {'id': '0afb990a-1333-4663-842a-f5abe23b2c68', 'name': '', 'tenant_id': '9cb17a0529794c2a8185d9fb39cc1d93', 'network_id': 'fee230d3-2355-4582-8a17-f10ba1d715e8', 'ip_version': 6, 'cidr': '3e66:6a96:910e:9213:9514:9412::/96', 'allocation_pools': [{'start': '3e66:6a96:910e:9213:9514:9412:0:2', 'end': '3e66:6a96:910e:9213:9514:9412:ffff:fffe'}], 'gateway_ip': '3e66:6a96:910e:9213:9514:9412:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e66:6a96:910e:9213:9514:9412:0:2', 'tags': [], 'project_id': '9cb17a0529794c2a8185d9fb39cc1d93'}} 2026-04-03 17:10:30,996 - INFO - Created VN ctest-vn4-22431614 2026-04-03 17:10:31,008 - DEBUG - VN ctest-vn4-22431614 UUID is fee230d3-2355-4582-8a17-f10ba1d715e8 2026-04-03 17:10:31,205 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fee230d3-2355-4582-8a17-f10ba1d715e8', 'name': 'ctest-vn4-22431614', 'tenant_id': '9cb17a0529794c2a8185d9fb39cc1d93', 'project_id': '9cb17a0529794c2a8185d9fb39cc1d93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f1525325-8fa5-448d-950b-3e8b2d76c242', '0afb990a-1333-4663-842a-f5abe23b2c68'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28964748', 'ctest-vn4-22431614'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28964748', 'ctest-policy1-23234295']], 'subnet_ipam': [{'subnet_cidr': '223.214.31.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e66:6a96:910e:9213:9514:9412::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-03 17:10:31,323 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-03 17:10:31,618 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-03 17:10:31,648 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3366d1ce-0fb9-4373-a4f2-6bb9715d4849 2026-04-03 17:10:31,664 - DEBUG - Requesting: http://10.0.0.22:8082/project/9cb17a05-2979-4c2a-8185-d9fb39cc1d93 2026-04-03 17:10:31,771 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fee230d3-2355-4582-8a17-f10ba1d715e8 2026-04-03 17:10:31,786 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fee230d3-2355-4582-8a17-f10ba1d715e8 2026-04-03 17:10:31,796 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/261010f0-548e-4755-8bc3-02de56d66e00 2026-04-03 17:10:31,804 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/261010f0-548e-4755-8bc3-02de56d66e00 2026-04-03 17:10:31,811 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/eb9329ef-ec79-41de-88a6-1d4ea0ef3a32 2026-04-03 17:10:31,818 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-03 17:10:31,818 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fee230d3-2355-4582-8a17-f10ba1d715e8 2026-04-03 17:10:31,827 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/261010f0-548e-4755-8bc3-02de56d66e00 2026-04-03 17:10:31,843 - INFO - Verified VN network id 12 for VN fee230d3-2355-4582-8a17-f10ba1d715e8 2026-04-03 17:10:31,843 - INFO - Verifications in API Server for VN ctest-vn4-22431614 passed 2026-04-03 17:10:31,843 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fee230d3-2355-4582-8a17-f10ba1d715e8 2026-04-03 17:10:31,855 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/261010f0-548e-4755-8bc3-02de56d66e00 2026-04-03 17:10:31,864 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/261010f0-548e-4755-8bc3-02de56d66e00 2026-04-03 17:10:31,871 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/eb9329ef-ec79-41de-88a6-1d4ea0ef3a32 2026-04-03 17:10:31,882 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28964748:ctest-vn4-22431614', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28964748', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18366295913759327618', 'uuid-lslong': '9950686933960562152'}, 'enable': 'true', 'created': '2026-04-03T17:10:30', 'last-modified': '2026-04-03T17:10:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.716913'} 2026-04-03 17:10:31,890 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-03 17:10:31,895 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28964748:ctest-vn4-22431614', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28964748', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18366295913759327618', 'uuid-lslong': '9950686933960562152'}, 'enable': 'true', 'created': '2026-04-03T17:10:30', 'last-modified': '2026-04-03T17:10:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.735446'} 2026-04-03 17:10:31,901 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-03 17:10:31,907 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28964748:ctest-vn4-22431614', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28964748', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18366295913759327618', 'uuid-lslong': '9950686933960562152'}, 'enable': 'true', 'created': '2026-04-03T17:10:30', 'last-modified': '2026-04-03T17:10:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.745784'} 2026-04-03 17:10:31,913 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-03 17:10:31,913 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-22431614 passed 2026-04-03 17:10:31,913 - DEBUG - ====Verifying policy data for ctest-vn4-22431614 in API_Server ====== 2026-04-03 17:10:31,913 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-03 17:10:31,918 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3366d1ce-0fb9-4373-a4f2-6bb9715d4849 2026-04-03 17:10:31,931 - DEBUG - Requesting: http://10.0.0.22:8082/project/9cb17a05-2979-4c2a-8185-d9fb39cc1d93 2026-04-03 17:10:32,035 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fee230d3-2355-4582-8a17-f10ba1d715e8 2026-04-03 17:10:32,045 - DEBUG - ==>Verifying data for policy with id: 9204c958-cccb-435d-b449-80b50dd092bb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28964748', 'ctest-policy1-23234295'] 2026-04-03 17:10:32,045 - INFO - VN ctest-vn4-22431614 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-03 17:10:32,045 - DEBUG - Verifying the vn in opserver 2026-04-03 17:10:32,045 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28964748:ctest-vn4-22431614 virtual network link through opserver 10.0.0.22 2026-04-03 17:10:32,046 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-04-03 17:10:32,338 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-04-03 17:10:32,405 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28964748:ctest-vn4-22431614', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28964748:ctest-vn4-22431614?flat'} 2026-04-03 17:10:32,405 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28964748:ctest-vn4-22431614 virtual network link through opserver 10.0.0.38 2026-04-03 17:10:32,405 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-03 17:10:32,707 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-03 17:10:32,774 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28964748:ctest-vn4-22431614', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28964748:ctest-vn4-22431614?flat'} 2026-04-03 17:10:32,774 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28964748:ctest-vn4-22431614 virtual network link through opserver 10.0.0.141 2026-04-03 17:10:32,774 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-04-03 17:10:33,069 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-04-03 17:10:33,137 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28964748:ctest-vn4-22431614', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28964748:ctest-vn4-22431614?flat'} 2026-04-03 17:10:33,137 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28964748:ctest-vn4-22431614 is found in opserver 2026-04-03 17:10:33,157 - DEBUG - Do not have enough data to verify VN in agent 2026-04-03 17:10:33,167 - DEBUG - VRF ids for VN ctest-vn4-22431614: {} 2026-04-03 17:10:33,167 - DEBUG - ====Verifying data for ctest-policy1-23234295 in API_Server ====== 2026-04-03 17:10:33,167 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-03 17:10:33,173 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3366d1ce-0fb9-4373-a4f2-6bb9715d4849 2026-04-03 17:10:33,184 - DEBUG - Requesting: http://10.0.0.22:8082/project/9cb17a05-2979-4c2a-8185-d9fb39cc1d93 2026-04-03 17:10:33,270 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/9204c958-cccb-435d-b449-80b50dd092bb 2026-04-03 17:10:33,280 - INFO - Verified policy ctest-policy1-23234295 in API Server, Result: True 2026-04-03 17:10:33,280 - INFO - Done with setup and verification, moving onto test .. 2026-04-03 17:10:33,290 - INFO - Deleting VN ctest-vn4-22431614 2026-04-03 17:10:33,487 - DEBUG - Response for deleting network () 2026-04-03 17:10:33,487 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/261010f0-548e-4755-8bc3-02de56d66e00 2026-04-03 17:10:33,495 - DEBUG - Response Code: 404 2026-04-03 17:10:33,496 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-04-03 17:10:33,501 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3366d1ce-0fb9-4373-a4f2-6bb9715d4849 2026-04-03 17:10:33,511 - DEBUG - Requesting: http://10.0.0.22:8082/project/9cb17a05-2979-4c2a-8185-d9fb39cc1d93 2026-04-03 17:10:33,590 - INFO - Validated that VN ctest-vn4-22431614 is not found in API Server 2026-04-03 17:10:33,606 - DEBUG - VN ctest-vn4-22431614 is not present in Agent 10.0.0.19 2026-04-03 17:10:33,618 - DEBUG - VN ctest-vn4-22431614 is not present in Agent 10.0.0.240 2026-04-03 17:10:33,618 - INFO - Validated that VN ctest-vn4-22431614 is not in any agent 2026-04-03 17:10:33,646 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-22431614 info 2026-04-03 17:10:33,682 - INFO - Deleted policy ctest-policy1-23234295 2026-04-03 17:10:33,871 - DEBUG - policy ctest-policy1-23234295 is not found in API Server 2026-04-03 17:10:35,132 - DEBUG - No XMPP flaps were noticed during the test