2026-06-23 15:05:28,024 - INFO - Domain Default found not creating 2026-06-23 15:05:28,176 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-60988900 not found, creating it 2026-06-23 15:05:28,617 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-60988900, ID : 67d875c3-3e62-4b50-8323-a1092464224d 2026-06-23 15:05:30,008 - INFO - ================================================================================ 2026-06-23 15:05:30,008 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-23 15:05:30,278 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-23 15:05:30,278 - INFO - Initial checks done. Running the testcase now 2026-06-23 15:05:30,278 - INFO - 2026-06-23 15:05:30,278 - INFO - ================================================================================ 2026-06-23 15:05:30,278 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-23 15:05:30,278 - 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-23 15:05:30,565 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-23 15:05:30,565 - INFO - Initial checks done. Running the testcase now 2026-06-23 15:05:30,565 - INFO - 2026-06-23 15:05:30,938 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60988900:ctest-vn4-13984076, 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-60988900:ctest-vn4-13984076, 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-60988900:ctest-vn4-13984076, 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-60988900:ctest-vn4-13984076, 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-23 15:05:31,406 - DEBUG - Response for create_network : {'network': {'id': '8f9adcb6-128a-4835-92a6-5fd1079ef057', 'name': 'ctest-vn4-13984076', 'tenant_id': '67d875c33e624b508323a1092464224d', 'project_id': '67d875c33e624b508323a1092464224d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60988900', 'ctest-vn4-13984076'], 'port_security_enabled': True, 'description': ''}} 2026-06-23 15:05:31,601 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eef35ffc-61dd-4e53-93fe-19ac33c6c25c', 'name': '', 'tenant_id': '67d875c33e624b508323a1092464224d', 'network_id': '8f9adcb6-128a-4835-92a6-5fd1079ef057', 'ip_version': 4, 'cidr': '28.175.128.192/26', 'allocation_pools': [{'start': '28.175.128.194', 'end': '28.175.128.254'}], 'gateway_ip': '28.175.128.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.175.128.194', 'tags': [], 'project_id': '67d875c33e624b508323a1092464224d'}} 2026-06-23 15:05:31,796 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b9b9d3c-6b28-4b74-89c9-e9258a080ec8', 'name': '', 'tenant_id': '67d875c33e624b508323a1092464224d', 'network_id': '8f9adcb6-128a-4835-92a6-5fd1079ef057', 'ip_version': 6, 'cidr': '3017:2e5e:2a89:49b6:4762:84b9::/96', 'allocation_pools': [{'start': '3017:2e5e:2a89:49b6:4762:84b9:0:2', 'end': '3017:2e5e:2a89:49b6:4762:84b9:ffff:fffe'}], 'gateway_ip': '3017:2e5e:2a89:49b6:4762:84b9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3017:2e5e:2a89:49b6:4762:84b9:0:2', 'tags': [], 'project_id': '67d875c33e624b508323a1092464224d'}} 2026-06-23 15:05:31,812 - INFO - Created VN ctest-vn4-13984076 2026-06-23 15:05:31,864 - DEBUG - VN ctest-vn4-13984076 UUID is 8f9adcb6-128a-4835-92a6-5fd1079ef057 2026-06-23 15:05:32,033 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8f9adcb6-128a-4835-92a6-5fd1079ef057', 'name': 'ctest-vn4-13984076', 'tenant_id': '67d875c33e624b508323a1092464224d', 'project_id': '67d875c33e624b508323a1092464224d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eef35ffc-61dd-4e53-93fe-19ac33c6c25c', '0b9b9d3c-6b28-4b74-89c9-e9258a080ec8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60988900', 'ctest-vn4-13984076'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60988900', 'ctest-policy1-69026219']], 'subnet_ipam': [{'subnet_cidr': '28.175.128.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3017:2e5e:2a89:49b6:4762:84b9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-23 15:05:32,188 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-23 15:05:32,508 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-23 15:05:32,530 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2c8c38b6-fed6-483c-8b47-2f5c398c2907 2026-06-23 15:05:32,541 - DEBUG - Requesting: http://10.0.0.50:8082/project/67d875c3-3e62-4b50-8323-a1092464224d 2026-06-23 15:05:32,608 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8f9adcb6-128a-4835-92a6-5fd1079ef057 2026-06-23 15:05:32,619 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8f9adcb6-128a-4835-92a6-5fd1079ef057 2026-06-23 15:05:32,627 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d4eeefa0-f34e-4738-aec5-9889f219fb2c 2026-06-23 15:05:32,633 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d4eeefa0-f34e-4738-aec5-9889f219fb2c 2026-06-23 15:05:32,638 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/62d572cf-568c-46ed-bd59-05a8e11503ea 2026-06-23 15:05:32,645 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-23 15:05:32,645 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8f9adcb6-128a-4835-92a6-5fd1079ef057 2026-06-23 15:05:32,653 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d4eeefa0-f34e-4738-aec5-9889f219fb2c 2026-06-23 15:05:32,665 - INFO - Verified VN network id 11 for VN 8f9adcb6-128a-4835-92a6-5fd1079ef057 2026-06-23 15:05:32,665 - INFO - Verifications in API Server for VN ctest-vn4-13984076 passed 2026-06-23 15:05:32,665 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8f9adcb6-128a-4835-92a6-5fd1079ef057 2026-06-23 15:05:32,673 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d4eeefa0-f34e-4738-aec5-9889f219fb2c 2026-06-23 15:05:32,679 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d4eeefa0-f34e-4738-aec5-9889f219fb2c 2026-06-23 15:05:32,684 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/62d572cf-568c-46ed-bd59-05a8e11503ea 2026-06-23 15:05:32,693 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60988900:ctest-vn4-13984076', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-60988900', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10347825768390346805', 'uuid-lslong': '10567238927052107863'}, 'enable': 'true', 'created': '2026-06-23T15:05:31', 'last-modified': '2026-06-23T15:05:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.682516'} 2026-06-23 15:05:32,698 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-23 15:05:32,698 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-13984076 passed 2026-06-23 15:05:32,698 - DEBUG - ====Verifying policy data for ctest-vn4-13984076 in API_Server ====== 2026-06-23 15:05:32,698 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-23 15:05:32,703 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2c8c38b6-fed6-483c-8b47-2f5c398c2907 2026-06-23 15:05:32,711 - DEBUG - Requesting: http://10.0.0.50:8082/project/67d875c3-3e62-4b50-8323-a1092464224d 2026-06-23 15:05:32,774 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8f9adcb6-128a-4835-92a6-5fd1079ef057 2026-06-23 15:05:32,782 - DEBUG - ==>Verifying data for policy with id: e4d690d4-a0e4-4c3b-80b4-7f15ce106a0c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60988900', 'ctest-policy1-69026219'] 2026-06-23 15:05:32,782 - INFO - VN ctest-vn4-13984076 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-23 15:05:32,782 - DEBUG - Verifying the vn in opserver 2026-06-23 15:05:32,782 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60988900:ctest-vn4-13984076 virtual network link through opserver 10.0.0.50 2026-06-23 15:05:32,782 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-23 15:05:33,094 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-23 15:05:33,140 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60988900:ctest-vn4-13984076', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60988900:ctest-vn4-13984076?flat'} 2026-06-23 15:05:33,140 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60988900:ctest-vn4-13984076 is found in opserver 2026-06-23 15:05:33,149 - DEBUG - Do not have enough data to verify VN in agent 2026-06-23 15:05:33,154 - DEBUG - VRF ids for VN ctest-vn4-13984076: {} 2026-06-23 15:05:33,155 - DEBUG - ====Verifying data for ctest-policy1-69026219 in API_Server ====== 2026-06-23 15:05:33,155 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-23 15:05:33,160 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2c8c38b6-fed6-483c-8b47-2f5c398c2907 2026-06-23 15:05:33,169 - DEBUG - Requesting: http://10.0.0.50:8082/project/67d875c3-3e62-4b50-8323-a1092464224d 2026-06-23 15:05:33,235 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/e4d690d4-a0e4-4c3b-80b4-7f15ce106a0c 2026-06-23 15:05:33,243 - INFO - Verified policy ctest-policy1-69026219 in API Server, Result: True 2026-06-23 15:05:33,243 - INFO - Done with setup and verification, moving onto test .. 2026-06-23 15:05:33,249 - INFO - Deleting VN ctest-vn4-13984076 2026-06-23 15:05:33,369 - DEBUG - Response for deleting network () 2026-06-23 15:05:33,369 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d4eeefa0-f34e-4738-aec5-9889f219fb2c 2026-06-23 15:05:33,373 - DEBUG - Response Code: 404 2026-06-23 15:05:33,374 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-23 15:05:33,379 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2c8c38b6-fed6-483c-8b47-2f5c398c2907 2026-06-23 15:05:33,428 - DEBUG - Requesting: http://10.0.0.50:8082/project/67d875c3-3e62-4b50-8323-a1092464224d 2026-06-23 15:05:33,494 - INFO - Validated that VN ctest-vn4-13984076 is not found in API Server 2026-06-23 15:05:33,503 - DEBUG - VN ctest-vn4-13984076 is not present in Agent 10.0.0.50 2026-06-23 15:05:33,503 - INFO - Validated that VN ctest-vn4-13984076 is not in any agent 2026-06-23 15:05:33,516 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-13984076 info 2026-06-23 15:05:33,535 - INFO - Deleted policy ctest-policy1-69026219 2026-06-23 15:05:33,700 - DEBUG - policy ctest-policy1-69026219 is not found in API Server 2026-06-23 15:05:33,956 - DEBUG - No XMPP flaps were noticed during the test
2026-06-23 15:05:33,956 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-06-23 15:05:33,956 - INFO - -------------------------------------------------------------------------------- 2026-06-23 15:05:34,245 - DEBUG - No XMPP flaps were noticed during the test
2026-06-23 15:05:34,245 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-23 15:05:34,245 - INFO - -------------------------------------------------------------------------------- 2026-06-23 15:05:34,918 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-60988900, ID : 67d875c3-3e62-4b50-8323-a1092464224d