2026-03-16 14:51:06,269 - INFO - Domain Default found not creating 2026-03-16 14:51:06,477 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-14088464 not found, creating it 2026-03-16 14:51:06,992 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-14088464, ID : 7bdc15f8-3bac-410e-b7ad-2b9443c568df 2026-03-16 14:51:08,602 - INFO - ================================================================================ 2026-03-16 14:51:08,602 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-16 14:51:08,865 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2026-03-16 14:51:08,865 - INFO - Initial checks done. Running the testcase now 2026-03-16 14:51:08,865 - INFO - 2026-03-16 14:51:08,866 - INFO - ================================================================================ 2026-03-16 14:51:08,866 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-16 14:51:08,866 - 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-03-16 14:51:09,156 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2026-03-16 14:51:09,156 - INFO - Initial checks done. Running the testcase now 2026-03-16 14:51:09,156 - INFO - 2026-03-16 14:51:09,527 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14088464:ctest-vn4-53535454, 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-14088464:ctest-vn4-53535454, 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-14088464:ctest-vn4-53535454, 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-14088464:ctest-vn4-53535454, 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-03-16 14:51:10,093 - DEBUG - Response for create_network : {'network': {'id': '0c49401b-0d1f-4e8c-b496-7fed993cbcb7', 'name': 'ctest-vn4-53535454', 'tenant_id': '7bdc15f83bac410eb7ad2b9443c568df', 'project_id': '7bdc15f83bac410eb7ad2b9443c568df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14088464', 'ctest-vn4-53535454'], 'port_security_enabled': True, 'description': ''}} 2026-03-16 14:51:10,320 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e080741-8e8e-4295-a64b-4511b739e464', 'name': '', 'tenant_id': '7bdc15f83bac410eb7ad2b9443c568df', 'network_id': '0c49401b-0d1f-4e8c-b496-7fed993cbcb7', 'ip_version': 4, 'cidr': '177.148.5.0/26', 'allocation_pools': [{'start': '177.148.5.2', 'end': '177.148.5.62'}], 'gateway_ip': '177.148.5.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.148.5.2', 'tags': [], 'project_id': '7bdc15f83bac410eb7ad2b9443c568df'}} 2026-03-16 14:51:10,486 - DEBUG - Response for create_subnet : {'subnet': {'id': '96b46868-7479-4770-9792-2e18f5c1d3c1', 'name': '', 'tenant_id': '7bdc15f83bac410eb7ad2b9443c568df', 'network_id': '0c49401b-0d1f-4e8c-b496-7fed993cbcb7', 'ip_version': 6, 'cidr': '32f6:3b4a:9c0b:5a92:8578:4bea::/96', 'allocation_pools': [{'start': '32f6:3b4a:9c0b:5a92:8578:4bea:0:2', 'end': '32f6:3b4a:9c0b:5a92:8578:4bea:ffff:fffe'}], 'gateway_ip': '32f6:3b4a:9c0b:5a92:8578:4bea:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32f6:3b4a:9c0b:5a92:8578:4bea:0:2', 'tags': [], 'project_id': '7bdc15f83bac410eb7ad2b9443c568df'}} 2026-03-16 14:51:10,509 - INFO - Created VN ctest-vn4-53535454 2026-03-16 14:51:10,562 - DEBUG - VN ctest-vn4-53535454 UUID is 0c49401b-0d1f-4e8c-b496-7fed993cbcb7 2026-03-16 14:51:10,787 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c49401b-0d1f-4e8c-b496-7fed993cbcb7', 'name': 'ctest-vn4-53535454', 'tenant_id': '7bdc15f83bac410eb7ad2b9443c568df', 'project_id': '7bdc15f83bac410eb7ad2b9443c568df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9e080741-8e8e-4295-a64b-4511b739e464', '96b46868-7479-4770-9792-2e18f5c1d3c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14088464', 'ctest-vn4-53535454'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14088464', 'ctest-policy1-64262371']], 'subnet_ipam': [{'subnet_cidr': '177.148.5.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32f6:3b4a:9c0b:5a92:8578:4bea::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-16 14:51:10,959 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-16 14:51:11,267 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-16 14:51:11,303 - DEBUG - Requesting: http://10.0.0.50:8082/domain/01d2d517-3db6-4280-be25-e30fbf87d121 2026-03-16 14:51:11,317 - DEBUG - Requesting: http://10.0.0.50:8082/project/7bdc15f8-3bac-410e-b7ad-2b9443c568df 2026-03-16 14:51:11,395 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c49401b-0d1f-4e8c-b496-7fed993cbcb7 2026-03-16 14:51:11,410 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c49401b-0d1f-4e8c-b496-7fed993cbcb7 2026-03-16 14:51:11,421 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/21521700-bf8c-42c6-a67f-41e3e6e164a0 2026-03-16 14:51:11,430 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/21521700-bf8c-42c6-a67f-41e3e6e164a0 2026-03-16 14:51:11,440 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/db49dcc2-be26-4739-bc91-b6d1f61dace9 2026-03-16 14:51:11,449 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-16 14:51:11,449 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c49401b-0d1f-4e8c-b496-7fed993cbcb7 2026-03-16 14:51:11,459 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/21521700-bf8c-42c6-a67f-41e3e6e164a0 2026-03-16 14:51:11,476 - INFO - Verified VN network id 11 for VN 0c49401b-0d1f-4e8c-b496-7fed993cbcb7 2026-03-16 14:51:11,476 - INFO - Verifications in API Server for VN ctest-vn4-53535454 passed 2026-03-16 14:51:11,476 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c49401b-0d1f-4e8c-b496-7fed993cbcb7 2026-03-16 14:51:11,489 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/21521700-bf8c-42c6-a67f-41e3e6e164a0 2026-03-16 14:51:11,497 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/21521700-bf8c-42c6-a67f-41e3e6e164a0 2026-03-16 14:51:11,507 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/db49dcc2-be26-4739-bc91-b6d1f61dace9 2026-03-16 14:51:11,521 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14088464:ctest-vn4-53535454', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-14088464', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '885309286683463308', 'uuid-lslong': '13012728831788498103'}, 'enable': 'true', 'created': '2026-03-16T14:51:10', 'last-modified': '2026-03-16T14:51:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.757190'} 2026-03-16 14:51:11,526 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-16 14:51:11,527 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-53535454 passed 2026-03-16 14:51:11,527 - DEBUG - ====Verifying policy data for ctest-vn4-53535454 in API_Server ====== 2026-03-16 14:51:11,527 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-16 14:51:11,533 - DEBUG - Requesting: http://10.0.0.50:8082/domain/01d2d517-3db6-4280-be25-e30fbf87d121 2026-03-16 14:51:11,548 - DEBUG - Requesting: http://10.0.0.50:8082/project/7bdc15f8-3bac-410e-b7ad-2b9443c568df 2026-03-16 14:51:11,621 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c49401b-0d1f-4e8c-b496-7fed993cbcb7 2026-03-16 14:51:11,632 - DEBUG - ==>Verifying data for policy with id: e7b1c035-77cf-432e-9800-067feab593ab, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14088464', 'ctest-policy1-64262371'] 2026-03-16 14:51:11,632 - INFO - VN ctest-vn4-53535454 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-16 14:51:11,632 - DEBUG - Verifying the vn in opserver 2026-03-16 14:51:11,632 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14088464:ctest-vn4-53535454 virtual network link through opserver 10.0.0.50 2026-03-16 14:51:11,632 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-16 14:51:11,944 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-16 14:51:12,020 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14088464:ctest-vn4-53535454', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14088464:ctest-vn4-53535454?flat'} 2026-03-16 14:51:12,020 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14088464:ctest-vn4-53535454 is found in opserver 2026-03-16 14:51:12,031 - DEBUG - Do not have enough data to verify VN in agent 2026-03-16 14:51:12,037 - DEBUG - VRF ids for VN ctest-vn4-53535454: {} 2026-03-16 14:51:12,038 - DEBUG - ====Verifying data for ctest-policy1-64262371 in API_Server ====== 2026-03-16 14:51:12,038 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-16 14:51:12,045 - DEBUG - Requesting: http://10.0.0.50:8082/domain/01d2d517-3db6-4280-be25-e30fbf87d121 2026-03-16 14:51:12,058 - DEBUG - Requesting: http://10.0.0.50:8082/project/7bdc15f8-3bac-410e-b7ad-2b9443c568df 2026-03-16 14:51:12,131 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/e7b1c035-77cf-432e-9800-067feab593ab 2026-03-16 14:51:12,142 - INFO - Verified policy ctest-policy1-64262371 in API Server, Result: True 2026-03-16 14:51:12,142 - INFO - Done with setup and verification, moving onto test .. 2026-03-16 14:51:12,155 - INFO - Deleting VN ctest-vn4-53535454 2026-03-16 14:51:12,295 - DEBUG - Response for deleting network () 2026-03-16 14:51:12,295 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/21521700-bf8c-42c6-a67f-41e3e6e164a0 2026-03-16 14:51:12,300 - DEBUG - Response Code: 404 2026-03-16 14:51:12,300 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-16 14:51:12,307 - DEBUG - Requesting: http://10.0.0.50:8082/domain/01d2d517-3db6-4280-be25-e30fbf87d121 2026-03-16 14:51:12,360 - DEBUG - Requesting: http://10.0.0.50:8082/project/7bdc15f8-3bac-410e-b7ad-2b9443c568df 2026-03-16 14:51:12,435 - INFO - Validated that VN ctest-vn4-53535454 is not found in API Server 2026-03-16 14:51:12,444 - DEBUG - VN ctest-vn4-53535454 is not present in Agent 10.0.0.50 2026-03-16 14:51:12,444 - INFO - Validated that VN ctest-vn4-53535454 is not in any agent 2026-03-16 14:51:12,458 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-53535454 info 2026-03-16 14:51:12,482 - INFO - Deleted policy ctest-policy1-64262371 2026-03-16 14:51:12,654 - DEBUG - policy ctest-policy1-64262371 is not found in API Server 2026-03-16 14:51:12,912 - DEBUG - No XMPP flaps were noticed during the test
2026-03-16 14:51:12,912 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-16 14:51:12,913 - INFO - -------------------------------------------------------------------------------- 2026-03-16 14:51:13,210 - DEBUG - No XMPP flaps were noticed during the test
2026-03-16 14:51:13,210 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-03-16 14:51:13,210 - INFO - -------------------------------------------------------------------------------- 2026-03-16 14:51:13,930 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-14088464, ID : 7bdc15f8-3bac-410e-b7ad-2b9443c568df