2026-06-01 18:30:50,089 - INFO - Domain Default found not creating 2026-06-01 18:30:50,258 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-30611527 not found, creating it 2026-06-01 18:30:50,727 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-30611527, ID : e1e87ef0-1070-48da-95f8-a5d99984412e 2026-06-01 18:30:52,270 - INFO - ================================================================================ 2026-06-01 18:30:52,270 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 18:30:52,532 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.129': '0'}} with 2026-06-01 18:30:52,532 - INFO - Initial checks done. Running the testcase now 2026-06-01 18:30:52,532 - INFO - 2026-06-01 18:30:52,532 - INFO - ================================================================================ 2026-06-01 18:30:52,532 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 18:30:52,532 - 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-06-01 18:30:52,825 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.129': '0'}} with 2026-06-01 18:30:52,825 - INFO - Initial checks done. Running the testcase now 2026-06-01 18:30:52,825 - INFO - 2026-06-01 18:30:53,198 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30611527:ctest-vn4-97525204, 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-30611527:ctest-vn4-97525204, 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-30611527:ctest-vn4-97525204, 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-30611527:ctest-vn4-97525204, 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-06-01 18:30:53,710 - DEBUG - Response for create_network : {'network': {'id': '2932526b-1548-481b-810b-2346607a2e71', 'name': 'ctest-vn4-97525204', 'tenant_id': 'e1e87ef0107048da95f8a5d99984412e', 'project_id': 'e1e87ef0107048da95f8a5d99984412e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30611527', 'ctest-vn4-97525204'], 'port_security_enabled': True, 'description': ''}} 2026-06-01 18:30:53,948 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6b27608-8327-480b-b0f9-704c47185756', 'name': '', 'tenant_id': 'e1e87ef0107048da95f8a5d99984412e', 'network_id': '2932526b-1548-481b-810b-2346607a2e71', 'ip_version': 4, 'cidr': '18.250.151.64/26', 'allocation_pools': [{'start': '18.250.151.66', 'end': '18.250.151.126'}], 'gateway_ip': '18.250.151.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.250.151.66', 'tags': [], 'project_id': 'e1e87ef0107048da95f8a5d99984412e'}} 2026-06-01 18:30:54,133 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f6d13a4-9048-4285-bfc5-592bc6fce88c', 'name': '', 'tenant_id': 'e1e87ef0107048da95f8a5d99984412e', 'network_id': '2932526b-1548-481b-810b-2346607a2e71', 'ip_version': 6, 'cidr': '3278:f06e:e9f:f283:35f6:371c::/96', 'allocation_pools': [{'start': '3278:f06e:e9f:f283:35f6:371c:0:2', 'end': '3278:f06e:e9f:f283:35f6:371c:ffff:fffe'}], 'gateway_ip': '3278:f06e:e9f:f283:35f6:371c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3278:f06e:e9f:f283:35f6:371c:0:2', 'tags': [], 'project_id': 'e1e87ef0107048da95f8a5d99984412e'}} 2026-06-01 18:30:54,153 - INFO - Created VN ctest-vn4-97525204 2026-06-01 18:30:54,204 - DEBUG - VN ctest-vn4-97525204 UUID is 2932526b-1548-481b-810b-2346607a2e71 2026-06-01 18:30:54,439 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2932526b-1548-481b-810b-2346607a2e71', 'name': 'ctest-vn4-97525204', 'tenant_id': 'e1e87ef0107048da95f8a5d99984412e', 'project_id': 'e1e87ef0107048da95f8a5d99984412e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6b27608-8327-480b-b0f9-704c47185756', '1f6d13a4-9048-4285-bfc5-592bc6fce88c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30611527', 'ctest-vn4-97525204'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30611527', 'ctest-policy1-95622680']], 'subnet_ipam': [{'subnet_cidr': '18.250.151.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3278:f06e:e9f:f283:35f6:371c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-01 18:30:54,600 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 18:30:54,911 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 18:30:54,950 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7ba7df23-fae8-4bab-923d-f6ff17267c16 2026-06-01 18:30:54,965 - DEBUG - Requesting: http://10.0.0.38:8082/project/e1e87ef0-1070-48da-95f8-a5d99984412e 2026-06-01 18:30:55,041 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2932526b-1548-481b-810b-2346607a2e71 2026-06-01 18:30:55,054 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2932526b-1548-481b-810b-2346607a2e71 2026-06-01 18:30:55,065 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cadbebb1-f62a-40cd-9884-be9eab9de4d5 2026-06-01 18:30:55,074 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cadbebb1-f62a-40cd-9884-be9eab9de4d5 2026-06-01 18:30:55,082 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/eb4ae04f-eec1-4939-b461-ced446971c5a 2026-06-01 18:30:55,091 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 18:30:55,092 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2932526b-1548-481b-810b-2346607a2e71 2026-06-01 18:30:55,104 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cadbebb1-f62a-40cd-9884-be9eab9de4d5 2026-06-01 18:30:55,122 - INFO - Verified VN network id 11 for VN 2932526b-1548-481b-810b-2346607a2e71 2026-06-01 18:30:55,123 - INFO - Verifications in API Server for VN ctest-vn4-97525204 passed 2026-06-01 18:30:55,123 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2932526b-1548-481b-810b-2346607a2e71 2026-06-01 18:30:55,133 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cadbebb1-f62a-40cd-9884-be9eab9de4d5 2026-06-01 18:30:55,140 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cadbebb1-f62a-40cd-9884-be9eab9de4d5 2026-06-01 18:30:55,149 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/eb4ae04f-eec1-4939-b461-ced446971c5a 2026-06-01 18:30:55,169 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30611527:ctest-vn4-97525204', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30611527', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2968525724262615067', 'uuid-lslong': '9298564640809823857'}, 'enable': 'true', 'created': '2026-06-01T18:30:53', 'last-modified': '2026-06-01T18:30:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.761244'} 2026-06-01 18:30:55,176 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 18:30:55,176 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-97525204 passed 2026-06-01 18:30:55,177 - DEBUG - ====Verifying policy data for ctest-vn4-97525204 in API_Server ====== 2026-06-01 18:30:55,177 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 18:30:55,183 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7ba7df23-fae8-4bab-923d-f6ff17267c16 2026-06-01 18:30:55,196 - DEBUG - Requesting: http://10.0.0.38:8082/project/e1e87ef0-1070-48da-95f8-a5d99984412e 2026-06-01 18:30:55,268 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2932526b-1548-481b-810b-2346607a2e71 2026-06-01 18:30:55,279 - DEBUG - ==>Verifying data for policy with id: e1f7bd93-4fbb-4fea-86c0-a65f20c7db50, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30611527', 'ctest-policy1-95622680'] 2026-06-01 18:30:55,279 - INFO - VN ctest-vn4-97525204 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-01 18:30:55,279 - DEBUG - Verifying the vn in opserver 2026-06-01 18:30:55,279 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30611527:ctest-vn4-97525204 virtual network link through opserver 10.0.0.38 2026-06-01 18:30:55,279 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-01 18:30:55,581 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-01 18:30:55,660 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30611527:ctest-vn4-97525204', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30611527:ctest-vn4-97525204?flat'} 2026-06-01 18:30:55,660 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30611527:ctest-vn4-97525204 is found in opserver 2026-06-01 18:30:55,671 - DEBUG - Do not have enough data to verify VN in agent 2026-06-01 18:30:55,676 - DEBUG - VRF ids for VN ctest-vn4-97525204: {} 2026-06-01 18:30:55,676 - DEBUG - ====Verifying data for ctest-policy1-95622680 in API_Server ====== 2026-06-01 18:30:55,676 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 18:30:55,683 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7ba7df23-fae8-4bab-923d-f6ff17267c16 2026-06-01 18:30:55,695 - DEBUG - Requesting: http://10.0.0.38:8082/project/e1e87ef0-1070-48da-95f8-a5d99984412e 2026-06-01 18:30:55,767 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/e1f7bd93-4fbb-4fea-86c0-a65f20c7db50 2026-06-01 18:30:55,777 - INFO - Verified policy ctest-policy1-95622680 in API Server, Result: True 2026-06-01 18:30:55,777 - INFO - Done with setup and verification, moving onto test .. 2026-06-01 18:30:55,786 - INFO - Deleting VN ctest-vn4-97525204 2026-06-01 18:30:55,929 - DEBUG - Response for deleting network () 2026-06-01 18:30:55,929 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cadbebb1-f62a-40cd-9884-be9eab9de4d5 2026-06-01 18:30:55,935 - DEBUG - Response Code: 404 2026-06-01 18:30:55,935 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 18:30:55,941 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7ba7df23-fae8-4bab-923d-f6ff17267c16 2026-06-01 18:30:55,995 - DEBUG - Requesting: http://10.0.0.38:8082/project/e1e87ef0-1070-48da-95f8-a5d99984412e 2026-06-01 18:30:56,074 - INFO - Validated that VN ctest-vn4-97525204 is not found in API Server 2026-06-01 18:30:56,084 - DEBUG - VN ctest-vn4-97525204 is not present in Agent 10.0.0.38 2026-06-01 18:30:56,084 - INFO - Validated that VN ctest-vn4-97525204 is not in any agent 2026-06-01 18:30:56,100 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-97525204 info 2026-06-01 18:30:56,134 - INFO - Deleted policy ctest-policy1-95622680 2026-06-01 18:30:56,296 - DEBUG - policy ctest-policy1-95622680 is not found in API Server 2026-06-01 18:30:56,553 - DEBUG - No XMPP flaps were noticed during the test
2026-06-01 18:30:56,553 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-01 18:30:56,553 - INFO - -------------------------------------------------------------------------------- 2026-06-01 18:30:56,842 - DEBUG - No XMPP flaps were noticed during the test
2026-06-01 18:30:56,842 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-01 18:30:56,842 - INFO - -------------------------------------------------------------------------------- 2026-06-01 18:30:57,540 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-30611527, ID : e1e87ef0-1070-48da-95f8-a5d99984412e