2026-11-03 03:00:43,886 - INFO - Domain Default found not creating 2026-11-03 03:00:44,035 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-99895125 not found, creating it 2026-11-03 03:00:44,483 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-99895125, ID : 561da1d5-0b08-45d0-896d-9d1268abe61c 2026-11-03 03:00:46,082 - INFO - ================================================================================ 2026-11-03 03:00:46,082 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-03 03:00:46,343 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-11-03 03:00:46,343 - INFO - Initial checks done. Running the testcase now 2026-11-03 03:00:46,343 - INFO - 2026-11-03 03:00:46,343 - INFO - ================================================================================ 2026-11-03 03:00:46,343 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-03 03:00:46,343 - 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-11-03 03:00:46,634 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-11-03 03:00:46,634 - INFO - Initial checks done. Running the testcase now 2026-11-03 03:00:46,634 - INFO - 2026-11-03 03:00:47,007 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99895125:ctest-vn4-42382378, 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-99895125:ctest-vn4-42382378, 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-99895125:ctest-vn4-42382378, 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-99895125:ctest-vn4-42382378, 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-11-03 03:00:47,524 - DEBUG - Response for create_network : {'network': {'id': '9785a38c-c608-4cb3-bfe1-1261f21459e5', 'name': 'ctest-vn4-42382378', 'tenant_id': '561da1d50b0845d0896d9d1268abe61c', 'project_id': '561da1d50b0845d0896d9d1268abe61c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99895125', 'ctest-vn4-42382378'], 'port_security_enabled': True, 'description': ''}} 2026-11-03 03:00:47,716 - DEBUG - Response for create_subnet : {'subnet': {'id': '7782fc8a-8fea-446d-bec1-f5d1bcdf48cb', 'name': '', 'tenant_id': '561da1d50b0845d0896d9d1268abe61c', 'network_id': '9785a38c-c608-4cb3-bfe1-1261f21459e5', 'ip_version': 4, 'cidr': '16.228.113.128/26', 'allocation_pools': [{'start': '16.228.113.130', 'end': '16.228.113.190'}], 'gateway_ip': '16.228.113.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.228.113.130', 'tags': [], 'project_id': '561da1d50b0845d0896d9d1268abe61c'}} 2026-11-03 03:00:47,897 - DEBUG - Response for create_subnet : {'subnet': {'id': '4004e96e-1926-46eb-af87-fb7055b2a4d5', 'name': '', 'tenant_id': '561da1d50b0845d0896d9d1268abe61c', 'network_id': '9785a38c-c608-4cb3-bfe1-1261f21459e5', 'ip_version': 6, 'cidr': '2825:19e5:4caa:9f71:ee35:5410::/96', 'allocation_pools': [{'start': '2825:19e5:4caa:9f71:ee35:5410:0:2', 'end': '2825:19e5:4caa:9f71:ee35:5410:ffff:fffe'}], 'gateway_ip': '2825:19e5:4caa:9f71:ee35:5410:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2825:19e5:4caa:9f71:ee35:5410:0:2', 'tags': [], 'project_id': '561da1d50b0845d0896d9d1268abe61c'}} 2026-11-03 03:00:47,914 - INFO - Created VN ctest-vn4-42382378 2026-11-03 03:00:47,964 - DEBUG - VN ctest-vn4-42382378 UUID is 9785a38c-c608-4cb3-bfe1-1261f21459e5 2026-11-03 03:00:48,150 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9785a38c-c608-4cb3-bfe1-1261f21459e5', 'name': 'ctest-vn4-42382378', 'tenant_id': '561da1d50b0845d0896d9d1268abe61c', 'project_id': '561da1d50b0845d0896d9d1268abe61c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['7782fc8a-8fea-446d-bec1-f5d1bcdf48cb', '4004e96e-1926-46eb-af87-fb7055b2a4d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99895125', 'ctest-vn4-42382378'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99895125', 'ctest-policy1-46231561']], 'subnet_ipam': [{'subnet_cidr': '16.228.113.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2825:19e5:4caa:9f71:ee35:5410::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-03 03:00:48,304 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-11-03 03:00:48,635 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-11-03 03:00:48,660 - DEBUG - Requesting: http://10.0.0.33:8082/domain/43d5604c-f18a-49b1-839d-f312dd59ff7d 2026-11-03 03:00:48,672 - DEBUG - Requesting: http://10.0.0.33:8082/project/561da1d5-0b08-45d0-896d-9d1268abe61c 2026-11-03 03:00:48,750 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9785a38c-c608-4cb3-bfe1-1261f21459e5 2026-11-03 03:00:48,760 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9785a38c-c608-4cb3-bfe1-1261f21459e5 2026-11-03 03:00:48,769 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e787a0b9-3521-4b68-92b3-8702537a2af8 2026-11-03 03:00:48,775 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e787a0b9-3521-4b68-92b3-8702537a2af8 2026-11-03 03:00:48,780 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1f0fafe5-ee11-4d05-bc40-43df6498115e 2026-11-03 03:00:48,785 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-03 03:00:48,785 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9785a38c-c608-4cb3-bfe1-1261f21459e5 2026-11-03 03:00:48,794 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e787a0b9-3521-4b68-92b3-8702537a2af8 2026-11-03 03:00:48,805 - INFO - Verified VN network id 12 for VN 9785a38c-c608-4cb3-bfe1-1261f21459e5 2026-11-03 03:00:48,805 - INFO - Verifications in API Server for VN ctest-vn4-42382378 passed 2026-11-03 03:00:48,805 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9785a38c-c608-4cb3-bfe1-1261f21459e5 2026-11-03 03:00:48,813 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e787a0b9-3521-4b68-92b3-8702537a2af8 2026-11-03 03:00:48,819 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e787a0b9-3521-4b68-92b3-8702537a2af8 2026-11-03 03:00:48,824 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/1f0fafe5-ee11-4d05-bc40-43df6498115e 2026-11-03 03:00:48,835 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99895125:ctest-vn4-42382378', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-99895125', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10918312696642817203', 'uuid-lslong': '13826352542886681061'}, 'enable': 'true', 'created': '2026-11-03T03:00:47', 'last-modified': '2026-11-03T03:00:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.710447'} 2026-11-03 03:00:48,841 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-03 03:00:48,842 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42382378 passed 2026-11-03 03:00:48,842 - DEBUG - ====Verifying policy data for ctest-vn4-42382378 in API_Server ====== 2026-11-03 03:00:48,842 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-11-03 03:00:48,847 - DEBUG - Requesting: http://10.0.0.33:8082/domain/43d5604c-f18a-49b1-839d-f312dd59ff7d 2026-11-03 03:00:48,856 - DEBUG - Requesting: http://10.0.0.33:8082/project/561da1d5-0b08-45d0-896d-9d1268abe61c 2026-11-03 03:00:48,925 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9785a38c-c608-4cb3-bfe1-1261f21459e5 2026-11-03 03:00:48,933 - DEBUG - ==>Verifying data for policy with id: a96ae373-2ac6-4198-a845-943497512d6d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99895125', 'ctest-policy1-46231561'] 2026-11-03 03:00:48,933 - INFO - VN ctest-vn4-42382378 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-03 03:00:48,934 - DEBUG - Verifying the vn in opserver 2026-11-03 03:00:48,934 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99895125:ctest-vn4-42382378 virtual network link through opserver 10.0.0.33 2026-11-03 03:00:48,934 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-11-03 03:00:49,257 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-11-03 03:00:49,303 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99895125:ctest-vn4-42382378', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99895125:ctest-vn4-42382378?flat'} 2026-11-03 03:00:49,303 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99895125:ctest-vn4-42382378 is found in opserver 2026-11-03 03:00:49,312 - DEBUG - Do not have enough data to verify VN in agent 2026-11-03 03:00:49,316 - DEBUG - VRF ids for VN ctest-vn4-42382378: {} 2026-11-03 03:00:49,317 - DEBUG - ====Verifying data for ctest-policy1-46231561 in API_Server ====== 2026-11-03 03:00:49,317 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-11-03 03:00:49,322 - DEBUG - Requesting: http://10.0.0.33:8082/domain/43d5604c-f18a-49b1-839d-f312dd59ff7d 2026-11-03 03:00:49,332 - DEBUG - Requesting: http://10.0.0.33:8082/project/561da1d5-0b08-45d0-896d-9d1268abe61c 2026-11-03 03:00:49,409 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/a96ae373-2ac6-4198-a845-943497512d6d 2026-11-03 03:00:49,419 - INFO - Verified policy ctest-policy1-46231561 in API Server, Result: True 2026-11-03 03:00:49,419 - INFO - Done with setup and verification, moving onto test .. 2026-11-03 03:00:49,427 - INFO - Deleting VN ctest-vn4-42382378 2026-11-03 03:00:49,535 - DEBUG - Response for deleting network () 2026-11-03 03:00:49,535 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e787a0b9-3521-4b68-92b3-8702537a2af8 2026-11-03 03:00:49,540 - DEBUG - Response Code: 404 2026-11-03 03:00:49,540 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-11-03 03:00:49,545 - DEBUG - Requesting: http://10.0.0.33:8082/domain/43d5604c-f18a-49b1-839d-f312dd59ff7d 2026-11-03 03:00:49,597 - DEBUG - Requesting: http://10.0.0.33:8082/project/561da1d5-0b08-45d0-896d-9d1268abe61c 2026-11-03 03:00:49,671 - INFO - Validated that VN ctest-vn4-42382378 is not found in API Server 2026-11-03 03:00:49,681 - DEBUG - VN ctest-vn4-42382378 is not present in Agent 10.0.0.33 2026-11-03 03:00:49,681 - INFO - Validated that VN ctest-vn4-42382378 is not in any agent 2026-11-03 03:00:49,695 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42382378 info 2026-11-03 03:00:49,719 - INFO - Deleted policy ctest-policy1-46231561 2026-11-03 03:00:49,892 - DEBUG - policy ctest-policy1-46231561 is not found in API Server 2026-11-03 03:00:50,146 - DEBUG - No XMPP flaps were noticed during the test