2026-08-22 14:26:54,842 - INFO - Domain Default found not creating 2026-08-22 14:26:55,015 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-26912254 not found, creating it 2026-08-22 14:26:55,503 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-26912254, ID : 7ebcc495-098a-4764-a0a9-05676d9cc95b 2026-08-22 14:26:57,127 - INFO - ================================================================================ 2026-08-22 14:26:57,127 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-22 14:26:57,403 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-08-22 14:26:57,403 - INFO - Initial checks done. Running the testcase now 2026-08-22 14:26:57,403 - INFO - 2026-08-22 14:26:57,403 - INFO - ================================================================================ 2026-08-22 14:26:57,403 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-22 14:26:57,403 - 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-22 14:26:57,699 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-08-22 14:26:57,699 - INFO - Initial checks done. Running the testcase now 2026-08-22 14:26:57,699 - INFO - 2026-08-22 14:26:58,105 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26912254:ctest-vn4-52988577, 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-26912254:ctest-vn4-52988577, 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-26912254:ctest-vn4-52988577, 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-26912254:ctest-vn4-52988577, 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-22 14:26:58,670 - DEBUG - Response for create_network : {'network': {'id': 'de32353a-c0be-4515-baf1-682b27c4531a', 'name': 'ctest-vn4-52988577', 'tenant_id': '7ebcc495098a4764a0a905676d9cc95b', 'project_id': '7ebcc495098a4764a0a905676d9cc95b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26912254', 'ctest-vn4-52988577'], 'port_security_enabled': True, 'description': ''}} 2026-08-22 14:26:58,841 - DEBUG - Response for create_subnet : {'subnet': {'id': '726bb2a9-a5fc-401e-8015-91f50a16c151', 'name': '', 'tenant_id': '7ebcc495098a4764a0a905676d9cc95b', 'network_id': 'de32353a-c0be-4515-baf1-682b27c4531a', 'ip_version': 4, 'cidr': '182.97.207.192/26', 'allocation_pools': [{'start': '182.97.207.194', 'end': '182.97.207.254'}], 'gateway_ip': '182.97.207.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.97.207.194', 'tags': [], 'project_id': '7ebcc495098a4764a0a905676d9cc95b'}} 2026-08-22 14:26:59,014 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd3a01e81-5520-4f09-836f-3bd8f3b9c0b7', 'name': '', 'tenant_id': '7ebcc495098a4764a0a905676d9cc95b', 'network_id': 'de32353a-c0be-4515-baf1-682b27c4531a', 'ip_version': 6, 'cidr': '33d3:9b71:a88a:be1a:e651:6f9e::/96', 'allocation_pools': [{'start': '33d3:9b71:a88a:be1a:e651:6f9e:0:2', 'end': '33d3:9b71:a88a:be1a:e651:6f9e:ffff:fffe'}], 'gateway_ip': '33d3:9b71:a88a:be1a:e651:6f9e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33d3:9b71:a88a:be1a:e651:6f9e:0:2', 'tags': [], 'project_id': '7ebcc495098a4764a0a905676d9cc95b'}} 2026-08-22 14:26:59,036 - INFO - Created VN ctest-vn4-52988577 2026-08-22 14:26:59,089 - DEBUG - VN ctest-vn4-52988577 UUID is de32353a-c0be-4515-baf1-682b27c4531a 2026-08-22 14:26:59,312 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'de32353a-c0be-4515-baf1-682b27c4531a', 'name': 'ctest-vn4-52988577', 'tenant_id': '7ebcc495098a4764a0a905676d9cc95b', 'project_id': '7ebcc495098a4764a0a905676d9cc95b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['726bb2a9-a5fc-401e-8015-91f50a16c151', 'd3a01e81-5520-4f09-836f-3bd8f3b9c0b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26912254', 'ctest-vn4-52988577'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26912254', 'ctest-policy1-79991345']], 'subnet_ipam': [{'subnet_cidr': '182.97.207.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33d3:9b71:a88a:be1a:e651:6f9e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-22 14:26:59,477 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-22 14:26:59,809 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-22 14:26:59,843 - DEBUG - Requesting: http://10.0.0.33:8082/domain/be17c20b-19f9-4365-9ab2-b39746d53e55 2026-08-22 14:26:59,857 - DEBUG - Requesting: http://10.0.0.33:8082/project/7ebcc495-098a-4764-a0a9-05676d9cc95b 2026-08-22 14:26:59,935 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/de32353a-c0be-4515-baf1-682b27c4531a 2026-08-22 14:26:59,949 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/de32353a-c0be-4515-baf1-682b27c4531a 2026-08-22 14:26:59,959 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/78881ba9-79a7-455d-8a53-601b1f58e670 2026-08-22 14:26:59,969 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/78881ba9-79a7-455d-8a53-601b1f58e670 2026-08-22 14:26:59,976 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/020590d9-a692-4eb4-a2ca-a441e1c6527b 2026-08-22 14:26:59,984 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-22 14:26:59,984 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/de32353a-c0be-4515-baf1-682b27c4531a 2026-08-22 14:26:59,995 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/78881ba9-79a7-455d-8a53-601b1f58e670 2026-08-22 14:27:00,013 - INFO - Verified VN network id 11 for VN de32353a-c0be-4515-baf1-682b27c4531a 2026-08-22 14:27:00,013 - INFO - Verifications in API Server for VN ctest-vn4-52988577 passed 2026-08-22 14:27:00,013 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/de32353a-c0be-4515-baf1-682b27c4531a 2026-08-22 14:27:00,025 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/78881ba9-79a7-455d-8a53-601b1f58e670 2026-08-22 14:27:00,035 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/78881ba9-79a7-455d-8a53-601b1f58e670 2026-08-22 14:27:00,043 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/020590d9-a692-4eb4-a2ca-a441e1c6527b 2026-08-22 14:27:00,059 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26912254:ctest-vn4-52988577', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26912254', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16010918151713604885', 'uuid-lslong': '13470662495001924378'}, 'enable': 'true', 'created': '2026-08-22T14:26:58', 'last-modified': '2026-08-22T14:26:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.775640'} 2026-08-22 14:27:00,065 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-22 14:27:00,065 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-52988577 passed 2026-08-22 14:27:00,065 - DEBUG - ====Verifying policy data for ctest-vn4-52988577 in API_Server ====== 2026-08-22 14:27:00,065 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-22 14:27:00,072 - DEBUG - Requesting: http://10.0.0.33:8082/domain/be17c20b-19f9-4365-9ab2-b39746d53e55 2026-08-22 14:27:00,085 - DEBUG - Requesting: http://10.0.0.33:8082/project/7ebcc495-098a-4764-a0a9-05676d9cc95b 2026-08-22 14:27:00,173 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/de32353a-c0be-4515-baf1-682b27c4531a 2026-08-22 14:27:00,190 - DEBUG - ==>Verifying data for policy with id: c3d30d58-68da-46fc-bcbe-beb61ca24316, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26912254', 'ctest-policy1-79991345'] 2026-08-22 14:27:00,190 - INFO - VN ctest-vn4-52988577 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-22 14:27:00,190 - DEBUG - Verifying the vn in opserver 2026-08-22 14:27:00,190 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26912254:ctest-vn4-52988577 virtual network link through opserver 10.0.0.33 2026-08-22 14:27:00,190 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-08-22 14:27:00,537 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-08-22 14:27:00,613 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26912254:ctest-vn4-52988577', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26912254:ctest-vn4-52988577?flat'} 2026-08-22 14:27:00,613 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26912254:ctest-vn4-52988577 is found in opserver 2026-08-22 14:27:00,626 - DEBUG - Do not have enough data to verify VN in agent 2026-08-22 14:27:00,633 - DEBUG - VRF ids for VN ctest-vn4-52988577: {} 2026-08-22 14:27:00,633 - DEBUG - ====Verifying data for ctest-policy1-79991345 in API_Server ====== 2026-08-22 14:27:00,633 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-22 14:27:00,640 - DEBUG - Requesting: http://10.0.0.33:8082/domain/be17c20b-19f9-4365-9ab2-b39746d53e55 2026-08-22 14:27:00,653 - DEBUG - Requesting: http://10.0.0.33:8082/project/7ebcc495-098a-4764-a0a9-05676d9cc95b 2026-08-22 14:27:00,744 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/c3d30d58-68da-46fc-bcbe-beb61ca24316 2026-08-22 14:27:00,759 - INFO - Verified policy ctest-policy1-79991345 in API Server, Result: True 2026-08-22 14:27:00,759 - INFO - Done with setup and verification, moving onto test .. 2026-08-22 14:27:00,773 - INFO - Deleting VN ctest-vn4-52988577 2026-08-22 14:27:00,997 - DEBUG - Response for deleting network () 2026-08-22 14:27:00,997 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/78881ba9-79a7-455d-8a53-601b1f58e670 2026-08-22 14:27:01,007 - DEBUG - Response Code: 404 2026-08-22 14:27:01,007 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-22 14:27:01,014 - DEBUG - Requesting: http://10.0.0.33:8082/domain/be17c20b-19f9-4365-9ab2-b39746d53e55 2026-08-22 14:27:01,073 - DEBUG - Requesting: http://10.0.0.33:8082/project/7ebcc495-098a-4764-a0a9-05676d9cc95b 2026-08-22 14:27:01,160 - INFO - Validated that VN ctest-vn4-52988577 is not found in API Server 2026-08-22 14:27:01,170 - DEBUG - VN ctest-vn4-52988577 is not present in Agent 10.0.0.33 2026-08-22 14:27:01,170 - INFO - Validated that VN ctest-vn4-52988577 is not in any agent 2026-08-22 14:27:01,188 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-52988577 info 2026-08-22 14:27:01,221 - INFO - Deleted policy ctest-policy1-79991345 2026-08-22 14:27:01,401 - DEBUG - policy ctest-policy1-79991345 is not found in API Server 2026-08-22 14:27:01,658 - DEBUG - No XMPP flaps were noticed during the test
2026-08-22 14:27:01,658 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-22 14:27:01,658 - INFO - -------------------------------------------------------------------------------- 2026-08-22 14:27:01,974 - DEBUG - No XMPP flaps were noticed during the test
2026-08-22 14:27:01,975 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-22 14:27:01,975 - INFO - -------------------------------------------------------------------------------- 2026-08-22 14:27:03,219 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-26912254, ID : 7ebcc495-098a-4764-a0a9-05676d9cc95b