2026-06-01 02:07:27,982 - INFO - Domain Default found not creating 2026-06-01 02:07:28,197 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-37581324 not found, creating it 2026-06-01 02:07:28,703 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-37581324, ID : 974a37cc-af30-438e-992c-d22f127d6086 2026-06-01 02:07:30,458 - INFO - ================================================================================ 2026-06-01 02:07:30,459 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 02:07:30,734 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-01 02:07:30,734 - INFO - Initial checks done. Running the testcase now 2026-06-01 02:07:30,735 - INFO - 2026-06-01 02:07:30,735 - INFO - ================================================================================ 2026-06-01 02:07:30,735 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 02:07:30,735 - 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 02:07:31,041 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-01 02:07:31,041 - INFO - Initial checks done. Running the testcase now 2026-06-01 02:07:31,041 - INFO - 2026-06-01 02:07:31,379 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37581324:ctest-vn4-34107946, 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-37581324:ctest-vn4-34107946, 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-37581324:ctest-vn4-34107946, 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-37581324:ctest-vn4-34107946, 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 02:07:31,963 - DEBUG - Response for create_network : {'network': {'id': 'bcb90808-a0e9-4928-95a2-6330d902f623', 'name': 'ctest-vn4-34107946', 'tenant_id': '974a37ccaf30438e992cd22f127d6086', 'project_id': '974a37ccaf30438e992cd22f127d6086', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37581324', 'ctest-vn4-34107946'], 'port_security_enabled': True, 'description': ''}} 2026-06-01 02:07:32,198 - DEBUG - Response for create_subnet : {'subnet': {'id': 'baabff5d-eded-452d-bbd8-4b3258bdef83', 'name': '', 'tenant_id': '974a37ccaf30438e992cd22f127d6086', 'network_id': 'bcb90808-a0e9-4928-95a2-6330d902f623', 'ip_version': 4, 'cidr': '220.34.225.0/26', 'allocation_pools': [{'start': '220.34.225.2', 'end': '220.34.225.62'}], 'gateway_ip': '220.34.225.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.34.225.2', 'tags': [], 'project_id': '974a37ccaf30438e992cd22f127d6086'}} 2026-06-01 02:07:32,427 - DEBUG - Response for create_subnet : {'subnet': {'id': '55dff9d8-8fc2-487d-a98e-1a812aa65952', 'name': '', 'tenant_id': '974a37ccaf30438e992cd22f127d6086', 'network_id': 'bcb90808-a0e9-4928-95a2-6330d902f623', 'ip_version': 6, 'cidr': '301c:1dbc:520d:7794:4f88:f354::/96', 'allocation_pools': [{'start': '301c:1dbc:520d:7794:4f88:f354:0:2', 'end': '301c:1dbc:520d:7794:4f88:f354:ffff:fffe'}], 'gateway_ip': '301c:1dbc:520d:7794:4f88:f354:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '301c:1dbc:520d:7794:4f88:f354:0:2', 'tags': [], 'project_id': '974a37ccaf30438e992cd22f127d6086'}} 2026-06-01 02:07:32,450 - INFO - Created VN ctest-vn4-34107946 2026-06-01 02:07:32,505 - DEBUG - VN ctest-vn4-34107946 UUID is bcb90808-a0e9-4928-95a2-6330d902f623 2026-06-01 02:07:32,742 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bcb90808-a0e9-4928-95a2-6330d902f623', 'name': 'ctest-vn4-34107946', 'tenant_id': '974a37ccaf30438e992cd22f127d6086', 'project_id': '974a37ccaf30438e992cd22f127d6086', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['baabff5d-eded-452d-bbd8-4b3258bdef83', '55dff9d8-8fc2-487d-a98e-1a812aa65952'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37581324', 'ctest-vn4-34107946'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37581324', 'ctest-policy1-20827695']], 'subnet_ipam': [{'subnet_cidr': '220.34.225.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '301c:1dbc:520d:7794:4f88:f354::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-01 02:07:32,913 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-01 02:07:33,213 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-01 02:07:33,253 - DEBUG - Requesting: http://10.0.0.33:8082/domain/714a876e-c0fd-41c0-874e-86f112e821d3 2026-06-01 02:07:33,269 - DEBUG - Requesting: http://10.0.0.33:8082/project/974a37cc-af30-438e-992c-d22f127d6086 2026-06-01 02:07:33,351 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bcb90808-a0e9-4928-95a2-6330d902f623 2026-06-01 02:07:33,366 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bcb90808-a0e9-4928-95a2-6330d902f623 2026-06-01 02:07:33,377 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/53136faf-5a2c-435d-94b7-ea8443779488 2026-06-01 02:07:33,385 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/53136faf-5a2c-435d-94b7-ea8443779488 2026-06-01 02:07:33,394 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/899ab199-98df-4dd0-a42c-c23f1ac811e3 2026-06-01 02:07:33,402 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 02:07:33,402 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bcb90808-a0e9-4928-95a2-6330d902f623 2026-06-01 02:07:33,414 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/53136faf-5a2c-435d-94b7-ea8443779488 2026-06-01 02:07:33,433 - INFO - Verified VN network id 12 for VN bcb90808-a0e9-4928-95a2-6330d902f623 2026-06-01 02:07:33,433 - INFO - Verifications in API Server for VN ctest-vn4-34107946 passed 2026-06-01 02:07:33,433 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bcb90808-a0e9-4928-95a2-6330d902f623 2026-06-01 02:07:33,448 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/53136faf-5a2c-435d-94b7-ea8443779488 2026-06-01 02:07:33,456 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/53136faf-5a2c-435d-94b7-ea8443779488 2026-06-01 02:07:33,464 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/899ab199-98df-4dd0-a42c-c23f1ac811e3 2026-06-01 02:07:33,477 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37581324:ctest-vn4-34107946', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-37581324', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13598909382974327080', 'uuid-lslong': '10782289519328818723'}, 'enable': 'true', 'created': '2026-06-01T02:07:31', 'last-modified': '2026-06-01T02:07:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.769956'} 2026-06-01 02:07:33,484 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 02:07:33,484 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34107946 passed 2026-06-01 02:07:33,484 - DEBUG - ====Verifying policy data for ctest-vn4-34107946 in API_Server ====== 2026-06-01 02:07:33,484 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-01 02:07:33,490 - DEBUG - Requesting: http://10.0.0.33:8082/domain/714a876e-c0fd-41c0-874e-86f112e821d3 2026-06-01 02:07:33,502 - DEBUG - Requesting: http://10.0.0.33:8082/project/974a37cc-af30-438e-992c-d22f127d6086 2026-06-01 02:07:33,582 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bcb90808-a0e9-4928-95a2-6330d902f623 2026-06-01 02:07:33,595 - DEBUG - ==>Verifying data for policy with id: cde8cd4c-c18a-4192-b164-35481b00aabb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37581324', 'ctest-policy1-20827695'] 2026-06-01 02:07:33,595 - INFO - VN ctest-vn4-34107946 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-01 02:07:33,595 - DEBUG - Verifying the vn in opserver 2026-06-01 02:07:33,595 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37581324:ctest-vn4-34107946 virtual network link through opserver 10.0.0.33 2026-06-01 02:07:33,596 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-01 02:07:33,929 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-01 02:07:34,004 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37581324:ctest-vn4-34107946', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37581324:ctest-vn4-34107946?flat'} 2026-06-01 02:07:34,004 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37581324:ctest-vn4-34107946 is found in opserver 2026-06-01 02:07:34,015 - DEBUG - Do not have enough data to verify VN in agent 2026-06-01 02:07:34,022 - DEBUG - VRF ids for VN ctest-vn4-34107946: {} 2026-06-01 02:07:34,022 - DEBUG - ====Verifying data for ctest-policy1-20827695 in API_Server ====== 2026-06-01 02:07:34,022 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-01 02:07:34,030 - DEBUG - Requesting: http://10.0.0.33:8082/domain/714a876e-c0fd-41c0-874e-86f112e821d3 2026-06-01 02:07:34,042 - DEBUG - Requesting: http://10.0.0.33:8082/project/974a37cc-af30-438e-992c-d22f127d6086 2026-06-01 02:07:34,114 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/cde8cd4c-c18a-4192-b164-35481b00aabb 2026-06-01 02:07:34,125 - INFO - Verified policy ctest-policy1-20827695 in API Server, Result: True 2026-06-01 02:07:34,125 - INFO - Done with setup and verification, moving onto test .. 2026-06-01 02:07:34,135 - INFO - Deleting VN ctest-vn4-34107946 2026-06-01 02:07:34,290 - DEBUG - Response for deleting network () 2026-06-01 02:07:34,290 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/53136faf-5a2c-435d-94b7-ea8443779488 2026-06-01 02:07:34,296 - DEBUG - Response Code: 404 2026-06-01 02:07:34,297 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-01 02:07:34,303 - DEBUG - Requesting: http://10.0.0.33:8082/domain/714a876e-c0fd-41c0-874e-86f112e821d3 2026-06-01 02:07:34,355 - DEBUG - Requesting: http://10.0.0.33:8082/project/974a37cc-af30-438e-992c-d22f127d6086 2026-06-01 02:07:34,456 - INFO - Validated that VN ctest-vn4-34107946 is not found in API Server 2026-06-01 02:07:34,468 - DEBUG - VN ctest-vn4-34107946 is not present in Agent 10.0.0.33 2026-06-01 02:07:34,469 - INFO - Validated that VN ctest-vn4-34107946 is not in any agent 2026-06-01 02:07:34,486 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34107946 info 2026-06-01 02:07:34,523 - INFO - Deleted policy ctest-policy1-20827695 2026-06-01 02:07:34,693 - DEBUG - policy ctest-policy1-20827695 is not found in API Server 2026-06-01 02:07:34,963 - DEBUG - No XMPP flaps were noticed during the test 2026-06-01 02:07:34,963 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-01 02:07:34,963 - INFO - -------------------------------------------------------------------------------- 2026-06-01 02:07:35,250 - DEBUG - No XMPP flaps were noticed during the test 2026-06-01 02:07:35,250 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-06-01 02:07:35,250 - INFO - -------------------------------------------------------------------------------- 2026-06-01 02:07:35,980 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-37581324, ID : 974a37cc-af30-438e-992c-d22f127d6086