2026-04-02 14:25:09,150 - INFO - Domain Default found not creating 2026-04-02 14:25:09,325 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-32200406 not found, creating it 2026-04-02 14:25:09,760 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-32200406, ID : 93d9de47-c0f8-4fa5-a2b2-5d0299d1bda9 2026-04-02 14:25:11,877 - INFO - ================================================================================ 2026-04-02 14:25:11,877 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-02 14:25:12,130 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-02 14:25:12,130 - INFO - Initial checks done. Running the testcase now 2026-04-02 14:25:12,130 - INFO - 2026-04-02 14:25:12,130 - INFO - ================================================================================ 2026-04-02 14:25:12,130 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-02 14:25:12,130 - 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-02 14:25:12,419 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-02 14:25:12,419 - INFO - Initial checks done. Running the testcase now 2026-04-02 14:25:12,419 - INFO - 2026-04-02 14:25:12,749 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32200406:ctest-vn4-15891554, 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-32200406:ctest-vn4-15891554, 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-32200406:ctest-vn4-15891554, 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-32200406:ctest-vn4-15891554, 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-02 14:25:13,257 - DEBUG - Response for create_network : {'network': {'id': '3150cfb1-90ac-46c8-8dc1-41a40dde2074', 'name': 'ctest-vn4-15891554', 'tenant_id': '93d9de47c0f84fa5a2b25d0299d1bda9', 'project_id': '93d9de47c0f84fa5a2b25d0299d1bda9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32200406', 'ctest-vn4-15891554'], 'port_security_enabled': True, 'description': ''}} 2026-04-02 14:25:13,450 - DEBUG - Response for create_subnet : {'subnet': {'id': '6dc832ee-d7c9-499b-9b1f-e742a2f45a6a', 'name': '', 'tenant_id': '93d9de47c0f84fa5a2b25d0299d1bda9', 'network_id': '3150cfb1-90ac-46c8-8dc1-41a40dde2074', 'ip_version': 4, 'cidr': '203.183.180.192/26', 'allocation_pools': [{'start': '203.183.180.194', 'end': '203.183.180.254'}], 'gateway_ip': '203.183.180.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.183.180.194', 'tags': [], 'project_id': '93d9de47c0f84fa5a2b25d0299d1bda9'}} 2026-04-02 14:25:13,640 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f43bbb9-5ab0-4287-ae80-ac78f4f924e5', 'name': '', 'tenant_id': '93d9de47c0f84fa5a2b25d0299d1bda9', 'network_id': '3150cfb1-90ac-46c8-8dc1-41a40dde2074', 'ip_version': 6, 'cidr': '295b:4681:9237:109:c1cd:4efd::/96', 'allocation_pools': [{'start': '295b:4681:9237:109:c1cd:4efd:0:2', 'end': '295b:4681:9237:109:c1cd:4efd:ffff:fffe'}], 'gateway_ip': '295b:4681:9237:109:c1cd:4efd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '295b:4681:9237:109:c1cd:4efd:0:2', 'tags': [], 'project_id': '93d9de47c0f84fa5a2b25d0299d1bda9'}} 2026-04-02 14:25:13,660 - INFO - Created VN ctest-vn4-15891554 2026-04-02 14:25:13,713 - DEBUG - VN ctest-vn4-15891554 UUID is 3150cfb1-90ac-46c8-8dc1-41a40dde2074 2026-04-02 14:25:13,919 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3150cfb1-90ac-46c8-8dc1-41a40dde2074', 'name': 'ctest-vn4-15891554', 'tenant_id': '93d9de47c0f84fa5a2b25d0299d1bda9', 'project_id': '93d9de47c0f84fa5a2b25d0299d1bda9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6dc832ee-d7c9-499b-9b1f-e742a2f45a6a', '5f43bbb9-5ab0-4287-ae80-ac78f4f924e5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32200406', 'ctest-vn4-15891554'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32200406', 'ctest-policy1-32545532']], 'subnet_ipam': [{'subnet_cidr': '203.183.180.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '295b:4681:9237:109:c1cd:4efd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-02 14:25:14,078 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-02 14:25:14,373 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-02 14:25:14,408 - DEBUG - Requesting: http://10.0.0.50:8082/domain/812c6bd6-3913-4112-acaa-6c88ccb0fdb8 2026-04-02 14:25:14,419 - DEBUG - Requesting: http://10.0.0.50:8082/project/93d9de47-c0f8-4fa5-a2b2-5d0299d1bda9 2026-04-02 14:25:14,493 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3150cfb1-90ac-46c8-8dc1-41a40dde2074 2026-04-02 14:25:14,505 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3150cfb1-90ac-46c8-8dc1-41a40dde2074 2026-04-02 14:25:14,515 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c524b871-412d-476c-a164-0dc73b0905dc 2026-04-02 14:25:14,522 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c524b871-412d-476c-a164-0dc73b0905dc 2026-04-02 14:25:14,529 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/01e2dad5-ddfe-46a3-8bfd-36f6e315c6e3 2026-04-02 14:25:14,535 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-02 14:25:14,535 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3150cfb1-90ac-46c8-8dc1-41a40dde2074 2026-04-02 14:25:14,544 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c524b871-412d-476c-a164-0dc73b0905dc 2026-04-02 14:25:14,556 - INFO - Verified VN network id 11 for VN 3150cfb1-90ac-46c8-8dc1-41a40dde2074 2026-04-02 14:25:14,557 - INFO - Verifications in API Server for VN ctest-vn4-15891554 passed 2026-04-02 14:25:14,557 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3150cfb1-90ac-46c8-8dc1-41a40dde2074 2026-04-02 14:25:14,566 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c524b871-412d-476c-a164-0dc73b0905dc 2026-04-02 14:25:14,573 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c524b871-412d-476c-a164-0dc73b0905dc 2026-04-02 14:25:14,581 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/01e2dad5-ddfe-46a3-8bfd-36f6e315c6e3 2026-04-02 14:25:14,594 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32200406:ctest-vn4-15891554', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-32200406', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3553568467538691784', 'uuid-lslong': '10214517602716098676'}, 'enable': 'true', 'created': '2026-04-02T14:25:13', 'last-modified': '2026-04-02T14:25:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.703446'} 2026-04-02 14:25:14,599 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-02 14:25:14,600 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15891554 passed 2026-04-02 14:25:14,600 - DEBUG - ====Verifying policy data for ctest-vn4-15891554 in API_Server ====== 2026-04-02 14:25:14,600 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-02 14:25:14,605 - DEBUG - Requesting: http://10.0.0.50:8082/domain/812c6bd6-3913-4112-acaa-6c88ccb0fdb8 2026-04-02 14:25:14,615 - DEBUG - Requesting: http://10.0.0.50:8082/project/93d9de47-c0f8-4fa5-a2b2-5d0299d1bda9 2026-04-02 14:25:14,688 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3150cfb1-90ac-46c8-8dc1-41a40dde2074 2026-04-02 14:25:14,697 - DEBUG - ==>Verifying data for policy with id: 3cea0b8e-e601-4222-8a4d-48989936ff56, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32200406', 'ctest-policy1-32545532'] 2026-04-02 14:25:14,697 - INFO - VN ctest-vn4-15891554 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-02 14:25:14,697 - DEBUG - Verifying the vn in opserver 2026-04-02 14:25:14,697 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32200406:ctest-vn4-15891554 virtual network link through opserver 10.0.0.50 2026-04-02 14:25:14,697 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-02 14:25:14,988 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-02 14:25:15,052 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32200406:ctest-vn4-15891554', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32200406:ctest-vn4-15891554?flat'} 2026-04-02 14:25:15,052 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32200406:ctest-vn4-15891554 is found in opserver 2026-04-02 14:25:15,062 - DEBUG - Do not have enough data to verify VN in agent 2026-04-02 14:25:15,067 - DEBUG - VRF ids for VN ctest-vn4-15891554: {} 2026-04-02 14:25:15,067 - DEBUG - ====Verifying data for ctest-policy1-32545532 in API_Server ====== 2026-04-02 14:25:15,067 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-02 14:25:15,072 - DEBUG - Requesting: http://10.0.0.50:8082/domain/812c6bd6-3913-4112-acaa-6c88ccb0fdb8 2026-04-02 14:25:15,083 - DEBUG - Requesting: http://10.0.0.50:8082/project/93d9de47-c0f8-4fa5-a2b2-5d0299d1bda9 2026-04-02 14:25:15,154 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/3cea0b8e-e601-4222-8a4d-48989936ff56 2026-04-02 14:25:15,165 - INFO - Verified policy ctest-policy1-32545532 in API Server, Result: True 2026-04-02 14:25:15,165 - INFO - Done with setup and verification, moving onto test .. 2026-04-02 14:25:15,173 - INFO - Deleting VN ctest-vn4-15891554 2026-04-02 14:25:15,288 - DEBUG - Response for deleting network () 2026-04-02 14:25:15,288 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c524b871-412d-476c-a164-0dc73b0905dc 2026-04-02 14:25:15,293 - DEBUG - Response Code: 404 2026-04-02 14:25:15,293 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-02 14:25:15,298 - DEBUG - Requesting: http://10.0.0.50:8082/domain/812c6bd6-3913-4112-acaa-6c88ccb0fdb8 2026-04-02 14:25:15,350 - DEBUG - Requesting: http://10.0.0.50:8082/project/93d9de47-c0f8-4fa5-a2b2-5d0299d1bda9 2026-04-02 14:25:15,418 - INFO - Validated that VN ctest-vn4-15891554 is not found in API Server 2026-04-02 14:25:15,428 - DEBUG - VN ctest-vn4-15891554 is not present in Agent 10.0.0.50 2026-04-02 14:25:15,428 - INFO - Validated that VN ctest-vn4-15891554 is not in any agent 2026-04-02 14:25:15,440 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15891554 info 2026-04-02 14:25:15,466 - INFO - Deleted policy ctest-policy1-32545532 2026-04-02 14:25:15,625 - DEBUG - policy ctest-policy1-32545532 is not found in API Server 2026-04-02 14:25:15,878 - DEBUG - No XMPP flaps were noticed during the test 2026-04-02 14:25:15,878 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-04-02 14:25:15,878 - INFO - -------------------------------------------------------------------------------- 2026-04-02 14:25:16,178 - DEBUG - No XMPP flaps were noticed during the test 2026-04-02 14:25:16,178 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-04-02 14:25:16,178 - INFO - -------------------------------------------------------------------------------- 2026-04-02 14:25:16,893 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-32200406, ID : 93d9de47-c0f8-4fa5-a2b2-5d0299d1bda9