2026-08-24 04:32:24,214 - INFO - Domain Default found not creating 2026-08-24 04:32:24,375 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-38258186 not found, creating it 2026-08-24 04:32:24,848 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-38258186, ID : 65c1ea59-f37f-4822-acfc-6972e551c70c 2026-08-24 04:32:26,577 - INFO - ================================================================================ 2026-08-24 04:32:26,577 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-24 04:32:26,852 - DEBUG - Nothing to compare xmpp stats {'10.0.0.188': {'10.20.0.209': '0'}} with 2026-08-24 04:32:26,852 - INFO - Initial checks done. Running the testcase now 2026-08-24 04:32:26,852 - INFO - 2026-08-24 04:32:26,852 - INFO - ================================================================================ 2026-08-24 04:32:26,852 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-24 04:32:26,853 - 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-08-24 04:32:27,134 - DEBUG - Nothing to compare xmpp stats {'10.0.0.188': {'10.20.0.209': '0'}} with 2026-08-24 04:32:27,134 - INFO - Initial checks done. Running the testcase now 2026-08-24 04:32:27,134 - INFO - 2026-08-24 04:32:27,568 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38258186:ctest-vn4-89040484, 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-38258186:ctest-vn4-89040484, 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-38258186:ctest-vn4-89040484, 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-38258186:ctest-vn4-89040484, 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-08-24 04:32:28,095 - DEBUG - Response for create_network : {'network': {'id': 'e41e322b-21f1-4082-93a7-56b459146a68', 'name': 'ctest-vn4-89040484', 'tenant_id': '65c1ea59f37f4822acfc6972e551c70c', 'project_id': '65c1ea59f37f4822acfc6972e551c70c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38258186', 'ctest-vn4-89040484'], 'port_security_enabled': True, 'description': ''}} 2026-08-24 04:32:28,340 - DEBUG - Response for create_subnet : {'subnet': {'id': '3223bd22-f67a-455a-8842-e089232f37cc', 'name': '', 'tenant_id': '65c1ea59f37f4822acfc6972e551c70c', 'network_id': 'e41e322b-21f1-4082-93a7-56b459146a68', 'ip_version': 4, 'cidr': '55.91.24.192/26', 'allocation_pools': [{'start': '55.91.24.194', 'end': '55.91.24.254'}], 'gateway_ip': '55.91.24.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.91.24.194', 'tags': [], 'project_id': '65c1ea59f37f4822acfc6972e551c70c'}} 2026-08-24 04:32:28,525 - DEBUG - Response for create_subnet : {'subnet': {'id': '2abda2e4-cdda-4268-b5fa-8f54d94d6da8', 'name': '', 'tenant_id': '65c1ea59f37f4822acfc6972e551c70c', 'network_id': 'e41e322b-21f1-4082-93a7-56b459146a68', 'ip_version': 6, 'cidr': '2504:31ff:e43:926b:fc3a:838::/96', 'allocation_pools': [{'start': '2504:31ff:e43:926b:fc3a:838:0:2', 'end': '2504:31ff:e43:926b:fc3a:838:ffff:fffe'}], 'gateway_ip': '2504:31ff:e43:926b:fc3a:838:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2504:31ff:e43:926b:fc3a:838:0:2', 'tags': [], 'project_id': '65c1ea59f37f4822acfc6972e551c70c'}} 2026-08-24 04:32:28,547 - INFO - Created VN ctest-vn4-89040484 2026-08-24 04:32:28,605 - DEBUG - VN ctest-vn4-89040484 UUID is e41e322b-21f1-4082-93a7-56b459146a68 2026-08-24 04:32:28,838 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e41e322b-21f1-4082-93a7-56b459146a68', 'name': 'ctest-vn4-89040484', 'tenant_id': '65c1ea59f37f4822acfc6972e551c70c', 'project_id': '65c1ea59f37f4822acfc6972e551c70c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3223bd22-f67a-455a-8842-e089232f37cc', '2abda2e4-cdda-4268-b5fa-8f54d94d6da8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38258186', 'ctest-vn4-89040484'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38258186', 'ctest-policy1-89818708']], 'subnet_ipam': [{'subnet_cidr': '55.91.24.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2504:31ff:e43:926b:fc3a:838::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-24 04:32:29,013 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-08-24 04:32:29,384 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-08-24 04:32:29,414 - DEBUG - Requesting: http://10.0.0.188:8082/domain/a50a8990-58af-4da4-8cb1-9f88b28629ea 2026-08-24 04:32:29,427 - DEBUG - Requesting: http://10.0.0.188:8082/project/65c1ea59-f37f-4822-acfc-6972e551c70c 2026-08-24 04:32:29,509 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/e41e322b-21f1-4082-93a7-56b459146a68 2026-08-24 04:32:29,521 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/e41e322b-21f1-4082-93a7-56b459146a68 2026-08-24 04:32:29,531 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/23dcb629-7bba-4065-b697-1b23a4da2531 2026-08-24 04:32:29,539 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/23dcb629-7bba-4065-b697-1b23a4da2531 2026-08-24 04:32:29,546 - DEBUG - Requesting: http://10.0.0.188:8082/route-target/0f67de2e-7ef1-4c6c-8e42-96cd99ab2a39 2026-08-24 04:32:29,553 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-24 04:32:29,553 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/e41e322b-21f1-4082-93a7-56b459146a68 2026-08-24 04:32:29,563 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/23dcb629-7bba-4065-b697-1b23a4da2531 2026-08-24 04:32:29,580 - INFO - Verified VN network id 11 for VN e41e322b-21f1-4082-93a7-56b459146a68 2026-08-24 04:32:29,580 - INFO - Verifications in API Server for VN ctest-vn4-89040484 passed 2026-08-24 04:32:29,580 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/e41e322b-21f1-4082-93a7-56b459146a68 2026-08-24 04:32:29,593 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/23dcb629-7bba-4065-b697-1b23a4da2531 2026-08-24 04:32:29,601 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/23dcb629-7bba-4065-b697-1b23a4da2531 2026-08-24 04:32:29,609 - DEBUG - Requesting: http://10.0.0.188:8082/route-target/0f67de2e-7ef1-4c6c-8e42-96cd99ab2a39 2026-08-24 04:32:29,623 - DEBUG - Control-node 10.0.0.188 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38258186:ctest-vn4-89040484', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-38258186', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16437630850783330434', 'uuid-lslong': '10639567977274698344'}, 'enable': 'true', 'created': '2026-08-24T04:32:28', 'last-modified': '2026-08-24T04:32:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.829913'} 2026-08-24 04:32:29,631 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-24 04:32:29,631 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-89040484 passed 2026-08-24 04:32:29,631 - DEBUG - ====Verifying policy data for ctest-vn4-89040484 in API_Server ====== 2026-08-24 04:32:29,631 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-08-24 04:32:29,637 - DEBUG - Requesting: http://10.0.0.188:8082/domain/a50a8990-58af-4da4-8cb1-9f88b28629ea 2026-08-24 04:32:29,649 - DEBUG - Requesting: http://10.0.0.188:8082/project/65c1ea59-f37f-4822-acfc-6972e551c70c 2026-08-24 04:32:29,726 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/e41e322b-21f1-4082-93a7-56b459146a68 2026-08-24 04:32:29,736 - DEBUG - ==>Verifying data for policy with id: 6494638e-4ca3-4b61-8df4-37216c93e986, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38258186', 'ctest-policy1-89818708'] 2026-08-24 04:32:29,737 - INFO - VN ctest-vn4-89040484 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-24 04:32:29,737 - DEBUG - Verifying the vn in opserver 2026-08-24 04:32:29,737 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38258186:ctest-vn4-89040484 virtual network link through opserver 10.0.0.188 2026-08-24 04:32:29,737 - DEBUG - Requesting: http://10.0.0.188:8081/analytics/uves/virtual-networks 2026-08-24 04:32:30,110 - DEBUG - Requesting: http://10.0.0.188:8081/analytics/uves/virtual-networks 2026-08-24 04:32:30,171 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38258186:ctest-vn4-89040484', 'href': 'http://10.0.0.188:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38258186:ctest-vn4-89040484?flat'} 2026-08-24 04:32:30,171 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38258186:ctest-vn4-89040484 is found in opserver 2026-08-24 04:32:30,183 - DEBUG - Do not have enough data to verify VN in agent 2026-08-24 04:32:30,188 - DEBUG - VRF ids for VN ctest-vn4-89040484: {} 2026-08-24 04:32:30,188 - DEBUG - ====Verifying data for ctest-policy1-89818708 in API_Server ====== 2026-08-24 04:32:30,189 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-08-24 04:32:30,194 - DEBUG - Requesting: http://10.0.0.188:8082/domain/a50a8990-58af-4da4-8cb1-9f88b28629ea 2026-08-24 04:32:30,207 - DEBUG - Requesting: http://10.0.0.188:8082/project/65c1ea59-f37f-4822-acfc-6972e551c70c 2026-08-24 04:32:30,286 - DEBUG - Requesting: http://10.0.0.188:8082/network-policy/6494638e-4ca3-4b61-8df4-37216c93e986 2026-08-24 04:32:30,297 - INFO - Verified policy ctest-policy1-89818708 in API Server, Result: True 2026-08-24 04:32:30,297 - INFO - Done with setup and verification, moving onto test .. 2026-08-24 04:32:30,307 - INFO - Deleting VN ctest-vn4-89040484 2026-08-24 04:32:30,447 - DEBUG - Response for deleting network () 2026-08-24 04:32:30,447 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/23dcb629-7bba-4065-b697-1b23a4da2531 2026-08-24 04:32:30,454 - DEBUG - Response Code: 404 2026-08-24 04:32:30,454 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-08-24 04:32:30,461 - DEBUG - Requesting: http://10.0.0.188:8082/domain/a50a8990-58af-4da4-8cb1-9f88b28629ea 2026-08-24 04:32:30,519 - DEBUG - Requesting: http://10.0.0.188:8082/project/65c1ea59-f37f-4822-acfc-6972e551c70c 2026-08-24 04:32:30,603 - INFO - Validated that VN ctest-vn4-89040484 is not found in API Server 2026-08-24 04:32:30,617 - DEBUG - VN ctest-vn4-89040484 is not present in Agent 10.0.0.188 2026-08-24 04:32:30,617 - INFO - Validated that VN ctest-vn4-89040484 is not in any agent 2026-08-24 04:32:30,632 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-89040484 info 2026-08-24 04:32:30,663 - INFO - Deleted policy ctest-policy1-89818708 2026-08-24 04:32:30,837 - DEBUG - policy ctest-policy1-89818708 is not found in API Server 2026-08-24 04:32:31,095 - DEBUG - No XMPP flaps were noticed during the test
2026-08-24 04:32:31,095 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-08-24 04:32:31,095 - INFO - -------------------------------------------------------------------------------- 2026-08-24 04:32:31,390 - DEBUG - No XMPP flaps were noticed during the test
2026-08-24 04:32:31,390 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-08-24 04:32:31,390 - INFO - -------------------------------------------------------------------------------- 2026-08-24 04:32:32,229 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-38258186, ID : 65c1ea59-f37f-4822-acfc-6972e551c70c