2026-04-07 14:32:41,287 - INFO - Domain Default found not creating 2026-04-07 14:32:41,474 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48015928 not found, creating it 2026-04-07 14:32:41,957 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48015928, ID : 7f0e9155-b1ff-4416-b983-350b6affd3da 2026-04-07 14:32:43,470 - INFO - ================================================================================ 2026-04-07 14:32:43,470 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-07 14:32:43,724 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-07 14:32:43,724 - INFO - Initial checks done. Running the testcase now 2026-04-07 14:32:43,724 - INFO - 2026-04-07 14:32:43,724 - INFO - ================================================================================ 2026-04-07 14:32:43,724 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-07 14:32:43,724 - 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-07 14:32:44,011 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-07 14:32:44,011 - INFO - Initial checks done. Running the testcase now 2026-04-07 14:32:44,011 - INFO - 2026-04-07 14:32:44,376 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48015928:ctest-vn4-19686788, 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-48015928:ctest-vn4-19686788, 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-48015928:ctest-vn4-19686788, 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-48015928:ctest-vn4-19686788, 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-07 14:32:44,898 - DEBUG - Response for create_network : {'network': {'id': 'c7d223b4-3776-4ad8-9a25-c6b26c580e12', 'name': 'ctest-vn4-19686788', 'tenant_id': '7f0e9155b1ff4416b983350b6affd3da', 'project_id': '7f0e9155b1ff4416b983350b6affd3da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48015928', 'ctest-vn4-19686788'], 'port_security_enabled': True, 'description': ''}} 2026-04-07 14:32:45,095 - DEBUG - Response for create_subnet : {'subnet': {'id': '9015a131-506b-42ea-9781-1bb6956ccd54', 'name': '', 'tenant_id': '7f0e9155b1ff4416b983350b6affd3da', 'network_id': 'c7d223b4-3776-4ad8-9a25-c6b26c580e12', 'ip_version': 4, 'cidr': '1.153.76.128/26', 'allocation_pools': [{'start': '1.153.76.130', 'end': '1.153.76.190'}], 'gateway_ip': '1.153.76.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.153.76.130', 'tags': [], 'project_id': '7f0e9155b1ff4416b983350b6affd3da'}} 2026-04-07 14:32:45,274 - DEBUG - Response for create_subnet : {'subnet': {'id': '72cba92c-39d6-40f2-afd5-5c19cfeab4d5', 'name': '', 'tenant_id': '7f0e9155b1ff4416b983350b6affd3da', 'network_id': 'c7d223b4-3776-4ad8-9a25-c6b26c580e12', 'ip_version': 6, 'cidr': '2f32:2366:7550:37a7:21b0:4669::/96', 'allocation_pools': [{'start': '2f32:2366:7550:37a7:21b0:4669:0:2', 'end': '2f32:2366:7550:37a7:21b0:4669:ffff:fffe'}], 'gateway_ip': '2f32:2366:7550:37a7:21b0:4669:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f32:2366:7550:37a7:21b0:4669:0:2', 'tags': [], 'project_id': '7f0e9155b1ff4416b983350b6affd3da'}} 2026-04-07 14:32:45,296 - INFO - Created VN ctest-vn4-19686788 2026-04-07 14:32:45,347 - DEBUG - VN ctest-vn4-19686788 UUID is c7d223b4-3776-4ad8-9a25-c6b26c580e12 2026-04-07 14:32:45,548 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c7d223b4-3776-4ad8-9a25-c6b26c580e12', 'name': 'ctest-vn4-19686788', 'tenant_id': '7f0e9155b1ff4416b983350b6affd3da', 'project_id': '7f0e9155b1ff4416b983350b6affd3da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9015a131-506b-42ea-9781-1bb6956ccd54', '72cba92c-39d6-40f2-afd5-5c19cfeab4d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48015928', 'ctest-vn4-19686788'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48015928', 'ctest-policy1-89135484']], 'subnet_ipam': [{'subnet_cidr': '1.153.76.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f32:2366:7550:37a7:21b0:4669::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-07 14:32:45,711 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-07 14:32:46,011 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-07 14:32:46,046 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60dc5ca2-da47-4a48-996d-2e853aa4122e 2026-04-07 14:32:46,058 - DEBUG - Requesting: http://10.0.0.38:8082/project/7f0e9155-b1ff-4416-b983-350b6affd3da 2026-04-07 14:32:46,131 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c7d223b4-3776-4ad8-9a25-c6b26c580e12 2026-04-07 14:32:46,142 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c7d223b4-3776-4ad8-9a25-c6b26c580e12 2026-04-07 14:32:46,151 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d4c6aef1-4b28-4e7f-991b-1655274d3146 2026-04-07 14:32:46,159 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d4c6aef1-4b28-4e7f-991b-1655274d3146 2026-04-07 14:32:46,166 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/74d96c4b-3318-4970-8590-10569dbb5365 2026-04-07 14:32:46,171 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-07 14:32:46,171 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c7d223b4-3776-4ad8-9a25-c6b26c580e12 2026-04-07 14:32:46,179 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d4c6aef1-4b28-4e7f-991b-1655274d3146 2026-04-07 14:32:46,191 - INFO - Verified VN network id 11 for VN c7d223b4-3776-4ad8-9a25-c6b26c580e12 2026-04-07 14:32:46,191 - INFO - Verifications in API Server for VN ctest-vn4-19686788 passed 2026-04-07 14:32:46,192 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c7d223b4-3776-4ad8-9a25-c6b26c580e12 2026-04-07 14:32:46,200 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d4c6aef1-4b28-4e7f-991b-1655274d3146 2026-04-07 14:32:46,206 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d4c6aef1-4b28-4e7f-991b-1655274d3146 2026-04-07 14:32:46,212 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/74d96c4b-3318-4970-8590-10569dbb5365 2026-04-07 14:32:46,222 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48015928:ctest-vn4-19686788', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48015928', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14398610215588481752', 'uuid-lslong': '11107502525603384850'}, 'enable': 'true', 'created': '2026-04-07T14:32:44', 'last-modified': '2026-04-07T14:32:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.702962'} 2026-04-07 14:32:46,230 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-07 14:32:46,230 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-19686788 passed 2026-04-07 14:32:46,230 - DEBUG - ====Verifying policy data for ctest-vn4-19686788 in API_Server ====== 2026-04-07 14:32:46,230 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-07 14:32:46,236 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60dc5ca2-da47-4a48-996d-2e853aa4122e 2026-04-07 14:32:46,247 - DEBUG - Requesting: http://10.0.0.38:8082/project/7f0e9155-b1ff-4416-b983-350b6affd3da 2026-04-07 14:32:46,318 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c7d223b4-3776-4ad8-9a25-c6b26c580e12 2026-04-07 14:32:46,327 - DEBUG - ==>Verifying data for policy with id: 20db1152-17ae-4ff1-a81f-645d80d8ef5a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48015928', 'ctest-policy1-89135484'] 2026-04-07 14:32:46,327 - INFO - VN ctest-vn4-19686788 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-07 14:32:46,327 - DEBUG - Verifying the vn in opserver 2026-04-07 14:32:46,327 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48015928:ctest-vn4-19686788 virtual network link through opserver 10.0.0.38 2026-04-07 14:32:46,327 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-07 14:32:46,619 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-07 14:32:46,685 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48015928:ctest-vn4-19686788', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48015928:ctest-vn4-19686788?flat'} 2026-04-07 14:32:46,686 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48015928:ctest-vn4-19686788 is found in opserver 2026-04-07 14:32:46,695 - DEBUG - Do not have enough data to verify VN in agent 2026-04-07 14:32:46,700 - DEBUG - VRF ids for VN ctest-vn4-19686788: {} 2026-04-07 14:32:46,700 - DEBUG - ====Verifying data for ctest-policy1-89135484 in API_Server ====== 2026-04-07 14:32:46,700 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-07 14:32:46,706 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60dc5ca2-da47-4a48-996d-2e853aa4122e 2026-04-07 14:32:46,717 - DEBUG - Requesting: http://10.0.0.38:8082/project/7f0e9155-b1ff-4416-b983-350b6affd3da 2026-04-07 14:32:46,787 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/20db1152-17ae-4ff1-a81f-645d80d8ef5a 2026-04-07 14:32:46,795 - INFO - Verified policy ctest-policy1-89135484 in API Server, Result: True 2026-04-07 14:32:46,796 - INFO - Done with setup and verification, moving onto test .. 2026-04-07 14:32:46,805 - INFO - Deleting VN ctest-vn4-19686788 2026-04-07 14:32:46,924 - DEBUG - Response for deleting network () 2026-04-07 14:32:46,924 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d4c6aef1-4b28-4e7f-991b-1655274d3146 2026-04-07 14:32:46,930 - DEBUG - Response Code: 404 2026-04-07 14:32:46,930 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-07 14:32:46,935 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60dc5ca2-da47-4a48-996d-2e853aa4122e 2026-04-07 14:32:46,988 - DEBUG - Requesting: http://10.0.0.38:8082/project/7f0e9155-b1ff-4416-b983-350b6affd3da 2026-04-07 14:32:47,064 - INFO - Validated that VN ctest-vn4-19686788 is not found in API Server 2026-04-07 14:32:47,074 - DEBUG - VN ctest-vn4-19686788 is not present in Agent 10.0.0.38 2026-04-07 14:32:47,074 - INFO - Validated that VN ctest-vn4-19686788 is not in any agent 2026-04-07 14:32:47,089 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-19686788 info 2026-04-07 14:32:47,113 - INFO - Deleted policy ctest-policy1-89135484 2026-04-07 14:32:47,283 - DEBUG - policy ctest-policy1-89135484 is not found in API Server 2026-04-07 14:32:47,543 - DEBUG - No XMPP flaps were noticed during the test
2026-04-07 14:32:47,543 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-07 14:32:47,543 - INFO - -------------------------------------------------------------------------------- 2026-04-07 14:32:47,828 - DEBUG - No XMPP flaps were noticed during the test
2026-04-07 14:32:47,828 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-07 14:32:47,828 - INFO - -------------------------------------------------------------------------------- 2026-04-07 14:32:48,539 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-48015928, ID : 7f0e9155-b1ff-4416-b983-350b6affd3da