2026-09-09 15:24:59,756 - INFO - Domain Default found not creating 2026-09-09 15:24:59,914 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48490102 not found, creating it 2026-09-09 15:25:00,415 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48490102, ID : af3356e5-7466-4c2f-82b1-9bb99a7400d3 2026-09-09 15:25:02,014 - INFO - ================================================================================ 2026-09-09 15:25:02,014 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-09 15:25:02,275 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.17': '0'}} with 2026-09-09 15:25:02,275 - INFO - Initial checks done. Running the testcase now 2026-09-09 15:25:02,275 - INFO - 2026-09-09 15:25:02,275 - INFO - ================================================================================ 2026-09-09 15:25:02,275 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-09 15:25:02,276 - 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-09-09 15:25:02,579 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.17': '0'}} with 2026-09-09 15:25:02,580 - INFO - Initial checks done. Running the testcase now 2026-09-09 15:25:02,580 - INFO - 2026-09-09 15:25:02,980 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48490102:ctest-vn4-42633827, 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-48490102:ctest-vn4-42633827, 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-48490102:ctest-vn4-42633827, 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-48490102:ctest-vn4-42633827, 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-09-09 15:25:03,550 - DEBUG - Response for create_network : {'network': {'id': '88006b83-f290-4609-b521-4b5e90013f49', 'name': 'ctest-vn4-42633827', 'tenant_id': 'af3356e574664c2f82b19bb99a7400d3', 'project_id': 'af3356e574664c2f82b19bb99a7400d3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48490102', 'ctest-vn4-42633827'], 'port_security_enabled': True, 'description': ''}} 2026-09-09 15:25:03,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '24d67dbf-1363-47e1-8003-f1c9b268c2f1', 'name': '', 'tenant_id': 'af3356e574664c2f82b19bb99a7400d3', 'network_id': '88006b83-f290-4609-b521-4b5e90013f49', 'ip_version': 4, 'cidr': '38.61.96.0/26', 'allocation_pools': [{'start': '38.61.96.2', 'end': '38.61.96.62'}], 'gateway_ip': '38.61.96.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.61.96.2', 'tags': [], 'project_id': 'af3356e574664c2f82b19bb99a7400d3'}} 2026-09-09 15:25:04,161 - DEBUG - Response for create_subnet : {'subnet': {'id': '3969ff40-0d34-4b89-870b-e168f72c7ab6', 'name': '', 'tenant_id': 'af3356e574664c2f82b19bb99a7400d3', 'network_id': '88006b83-f290-4609-b521-4b5e90013f49', 'ip_version': 6, 'cidr': '3cc9:13a5:77be:4996:d7b5:c8d4::/96', 'allocation_pools': [{'start': '3cc9:13a5:77be:4996:d7b5:c8d4:0:2', 'end': '3cc9:13a5:77be:4996:d7b5:c8d4:ffff:fffe'}], 'gateway_ip': '3cc9:13a5:77be:4996:d7b5:c8d4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3cc9:13a5:77be:4996:d7b5:c8d4:0:2', 'tags': [], 'project_id': 'af3356e574664c2f82b19bb99a7400d3'}} 2026-09-09 15:25:04,200 - INFO - Created VN ctest-vn4-42633827 2026-09-09 15:25:04,263 - DEBUG - VN ctest-vn4-42633827 UUID is 88006b83-f290-4609-b521-4b5e90013f49 2026-09-09 15:25:04,511 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '88006b83-f290-4609-b521-4b5e90013f49', 'name': 'ctest-vn4-42633827', 'tenant_id': 'af3356e574664c2f82b19bb99a7400d3', 'project_id': 'af3356e574664c2f82b19bb99a7400d3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['24d67dbf-1363-47e1-8003-f1c9b268c2f1', '3969ff40-0d34-4b89-870b-e168f72c7ab6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48490102', 'ctest-vn4-42633827'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48490102', 'ctest-policy1-20173601']], 'subnet_ipam': [{'subnet_cidr': '38.61.96.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3cc9:13a5:77be:4996:d7b5:c8d4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-09 15:25:04,699 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-09 15:25:05,028 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-09 15:25:05,061 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a8976d84-25ad-4b4f-947b-cb8048bfcd01 2026-09-09 15:25:05,074 - DEBUG - Requesting: http://10.0.0.185:8082/project/af3356e5-7466-4c2f-82b1-9bb99a7400d3 2026-09-09 15:25:05,168 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/88006b83-f290-4609-b521-4b5e90013f49 2026-09-09 15:25:05,183 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/88006b83-f290-4609-b521-4b5e90013f49 2026-09-09 15:25:05,195 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/707e05e2-c057-4187-8b8c-8e09b5b5accd 2026-09-09 15:25:05,203 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/707e05e2-c057-4187-8b8c-8e09b5b5accd 2026-09-09 15:25:05,212 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/00f8bda8-e3ee-41a6-9110-1c7703b5e5c8 2026-09-09 15:25:05,219 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-09 15:25:05,219 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/88006b83-f290-4609-b521-4b5e90013f49 2026-09-09 15:25:05,230 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/707e05e2-c057-4187-8b8c-8e09b5b5accd 2026-09-09 15:25:05,250 - INFO - Verified VN network id 12 for VN 88006b83-f290-4609-b521-4b5e90013f49 2026-09-09 15:25:05,250 - INFO - Verifications in API Server for VN ctest-vn4-42633827 passed 2026-09-09 15:25:05,250 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/88006b83-f290-4609-b521-4b5e90013f49 2026-09-09 15:25:05,263 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/707e05e2-c057-4187-8b8c-8e09b5b5accd 2026-09-09 15:25:05,271 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/707e05e2-c057-4187-8b8c-8e09b5b5accd 2026-09-09 15:25:05,280 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/00f8bda8-e3ee-41a6-9110-1c7703b5e5c8 2026-09-09 15:25:05,296 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48490102:ctest-vn4-42633827', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48490102', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9799951003612628489', 'uuid-lslong': '13051796064611417929'}, 'enable': 'true', 'created': '2026-09-09T15:25:03', 'last-modified': '2026-09-09T15:25:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.812244'} 2026-09-09 15:25:05,304 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-09 15:25:05,304 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42633827 passed 2026-09-09 15:25:05,305 - DEBUG - ====Verifying policy data for ctest-vn4-42633827 in API_Server ====== 2026-09-09 15:25:05,305 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-09 15:25:05,311 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a8976d84-25ad-4b4f-947b-cb8048bfcd01 2026-09-09 15:25:05,325 - DEBUG - Requesting: http://10.0.0.185:8082/project/af3356e5-7466-4c2f-82b1-9bb99a7400d3 2026-09-09 15:25:05,406 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/88006b83-f290-4609-b521-4b5e90013f49 2026-09-09 15:25:05,419 - DEBUG - ==>Verifying data for policy with id: ed92acfd-474d-4e97-bdbe-e37d08ded5f4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48490102', 'ctest-policy1-20173601'] 2026-09-09 15:25:05,419 - INFO - VN ctest-vn4-42633827 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-09 15:25:05,419 - DEBUG - Verifying the vn in opserver 2026-09-09 15:25:05,419 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48490102:ctest-vn4-42633827 virtual network link through opserver 10.0.0.185 2026-09-09 15:25:05,419 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-09-09 15:25:05,747 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-09-09 15:25:05,812 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48490102:ctest-vn4-42633827', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48490102:ctest-vn4-42633827?flat'} 2026-09-09 15:25:05,812 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48490102:ctest-vn4-42633827 is found in opserver 2026-09-09 15:25:05,823 - DEBUG - Do not have enough data to verify VN in agent 2026-09-09 15:25:05,827 - DEBUG - VRF ids for VN ctest-vn4-42633827: {} 2026-09-09 15:25:05,828 - DEBUG - ====Verifying data for ctest-policy1-20173601 in API_Server ====== 2026-09-09 15:25:05,828 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-09 15:25:05,834 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a8976d84-25ad-4b4f-947b-cb8048bfcd01 2026-09-09 15:25:05,849 - DEBUG - Requesting: http://10.0.0.185:8082/project/af3356e5-7466-4c2f-82b1-9bb99a7400d3 2026-09-09 15:25:05,927 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/ed92acfd-474d-4e97-bdbe-e37d08ded5f4 2026-09-09 15:25:05,938 - INFO - Verified policy ctest-policy1-20173601 in API Server, Result: True 2026-09-09 15:25:05,938 - INFO - Done with setup and verification, moving onto test .. 2026-09-09 15:25:05,948 - INFO - Deleting VN ctest-vn4-42633827 2026-09-09 15:25:06,088 - DEBUG - Response for deleting network () 2026-09-09 15:25:06,089 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/707e05e2-c057-4187-8b8c-8e09b5b5accd 2026-09-09 15:25:06,094 - DEBUG - Response Code: 404 2026-09-09 15:25:06,095 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-09 15:25:06,101 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a8976d84-25ad-4b4f-947b-cb8048bfcd01 2026-09-09 15:25:06,156 - DEBUG - Requesting: http://10.0.0.185:8082/project/af3356e5-7466-4c2f-82b1-9bb99a7400d3 2026-09-09 15:25:06,235 - INFO - Validated that VN ctest-vn4-42633827 is not found in API Server 2026-09-09 15:25:06,249 - DEBUG - VN ctest-vn4-42633827 is not present in Agent 10.0.0.185 2026-09-09 15:25:06,249 - INFO - Validated that VN ctest-vn4-42633827 is not in any agent 2026-09-09 15:25:06,263 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42633827 info 2026-09-09 15:25:06,292 - INFO - Deleted policy ctest-policy1-20173601 2026-09-09 15:25:06,458 - DEBUG - policy ctest-policy1-20173601 is not found in API Server 2026-09-09 15:25:06,716 - DEBUG - No XMPP flaps were noticed during the test 2026-09-09 15:25:06,717 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-09-09 15:25:06,717 - INFO - -------------------------------------------------------------------------------- 2026-09-09 15:25:07,023 - DEBUG - No XMPP flaps were noticed during the test 2026-09-09 15:25:07,023 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-09 15:25:07,023 - INFO - -------------------------------------------------------------------------------- 2026-09-09 15:25:07,765 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-48490102, ID : af3356e5-7466-4c2f-82b1-9bb99a7400d3