2026-04-21 12:14:09,618 - INFO - Domain Default found not creating 2026-04-21 12:14:09,809 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-03072167 not found, creating it 2026-04-21 12:14:10,258 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-03072167, ID : bb4cbcf2-31b4-431a-a381-6e2b07076444 2026-04-21 12:14:11,736 - INFO - ================================================================================ 2026-04-21 12:14:11,736 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-21 12:14:11,992 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-21 12:14:11,992 - INFO - Initial checks done. Running the testcase now 2026-04-21 12:14:11,992 - INFO - 2026-04-21 12:14:11,992 - INFO - ================================================================================ 2026-04-21 12:14:11,992 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-21 12:14:11,992 - 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-04-21 12:14:12,279 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-21 12:14:12,279 - INFO - Initial checks done. Running the testcase now 2026-04-21 12:14:12,279 - INFO - 2026-04-21 12:14:12,632 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03072167:ctest-vn4-17031218, 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-03072167:ctest-vn4-17031218, 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-03072167:ctest-vn4-17031218, 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-03072167:ctest-vn4-17031218, 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-04-21 12:14:13,177 - DEBUG - Response for create_network : {'network': {'id': '38ff0d8f-bb6f-46a7-8d88-457d102e2467', 'name': 'ctest-vn4-17031218', 'tenant_id': 'bb4cbcf231b4431aa3816e2b07076444', 'project_id': 'bb4cbcf231b4431aa3816e2b07076444', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03072167', 'ctest-vn4-17031218'], 'port_security_enabled': True, 'description': ''}} 2026-04-21 12:14:13,401 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef3afe06-1b58-47ef-b77c-c73a84b8d136', 'name': '', 'tenant_id': 'bb4cbcf231b4431aa3816e2b07076444', 'network_id': '38ff0d8f-bb6f-46a7-8d88-457d102e2467', 'ip_version': 4, 'cidr': '188.192.163.64/26', 'allocation_pools': [{'start': '188.192.163.66', 'end': '188.192.163.126'}], 'gateway_ip': '188.192.163.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.192.163.66', 'tags': [], 'project_id': 'bb4cbcf231b4431aa3816e2b07076444'}} 2026-04-21 12:14:13,597 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b381be2b-a5b9-4379-af06-cdfbb46e56d9', 'name': '', 'tenant_id': 'bb4cbcf231b4431aa3816e2b07076444', 'network_id': '38ff0d8f-bb6f-46a7-8d88-457d102e2467', 'ip_version': 6, 'cidr': '3ea9:e166:3248:45b4:6433:5267::/96', 'allocation_pools': [{'start': '3ea9:e166:3248:45b4:6433:5267:0:2', 'end': '3ea9:e166:3248:45b4:6433:5267:ffff:fffe'}], 'gateway_ip': '3ea9:e166:3248:45b4:6433:5267:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ea9:e166:3248:45b4:6433:5267:0:2', 'tags': [], 'project_id': 'bb4cbcf231b4431aa3816e2b07076444'}} 2026-04-21 12:14:13,617 - INFO - Created VN ctest-vn4-17031218 2026-04-21 12:14:13,671 - DEBUG - VN ctest-vn4-17031218 UUID is 38ff0d8f-bb6f-46a7-8d88-457d102e2467 2026-04-21 12:14:13,895 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '38ff0d8f-bb6f-46a7-8d88-457d102e2467', 'name': 'ctest-vn4-17031218', 'tenant_id': 'bb4cbcf231b4431aa3816e2b07076444', 'project_id': 'bb4cbcf231b4431aa3816e2b07076444', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef3afe06-1b58-47ef-b77c-c73a84b8d136', 'b381be2b-a5b9-4379-af06-cdfbb46e56d9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03072167', 'ctest-vn4-17031218'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03072167', 'ctest-policy1-31132829']], 'subnet_ipam': [{'subnet_cidr': '188.192.163.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ea9:e166:3248:45b4:6433:5267::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-21 12:14:14,067 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-21 12:14:14,517 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-21 12:14:14,560 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ff37e0d-8f7a-4c4e-85f1-324549c1004b 2026-04-21 12:14:14,572 - DEBUG - Requesting: http://10.0.0.38:8082/project/bb4cbcf2-31b4-431a-a381-6e2b07076444 2026-04-21 12:14:14,644 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/38ff0d8f-bb6f-46a7-8d88-457d102e2467 2026-04-21 12:14:14,656 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/38ff0d8f-bb6f-46a7-8d88-457d102e2467 2026-04-21 12:14:14,666 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/98047e27-7344-41fa-9f09-73dde8e61404 2026-04-21 12:14:14,672 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/98047e27-7344-41fa-9f09-73dde8e61404 2026-04-21 12:14:14,677 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/43fac0e2-82c3-40ae-b35f-0785468e4572 2026-04-21 12:14:14,683 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-21 12:14:14,683 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/38ff0d8f-bb6f-46a7-8d88-457d102e2467 2026-04-21 12:14:14,693 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/98047e27-7344-41fa-9f09-73dde8e61404 2026-04-21 12:14:14,711 - INFO - Verified VN network id 11 for VN 38ff0d8f-bb6f-46a7-8d88-457d102e2467 2026-04-21 12:14:14,711 - INFO - Verifications in API Server for VN ctest-vn4-17031218 passed 2026-04-21 12:14:14,711 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/38ff0d8f-bb6f-46a7-8d88-457d102e2467 2026-04-21 12:14:14,721 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/98047e27-7344-41fa-9f09-73dde8e61404 2026-04-21 12:14:14,729 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/98047e27-7344-41fa-9f09-73dde8e61404 2026-04-21 12:14:14,735 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/43fac0e2-82c3-40ae-b35f-0785468e4572 2026-04-21 12:14:14,748 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03072167:ctest-vn4-17031218', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03072167', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4107016296161298087', 'uuid-lslong': '10198477759625176167'}, 'enable': 'true', 'created': '2026-04-21T12:14:13', 'last-modified': '2026-04-21T12:14:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.882896'} 2026-04-21 12:14:14,753 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-21 12:14:14,754 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-17031218 passed 2026-04-21 12:14:14,754 - DEBUG - ====Verifying policy data for ctest-vn4-17031218 in API_Server ====== 2026-04-21 12:14:14,754 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-21 12:14:14,759 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ff37e0d-8f7a-4c4e-85f1-324549c1004b 2026-04-21 12:14:14,770 - DEBUG - Requesting: http://10.0.0.38:8082/project/bb4cbcf2-31b4-431a-a381-6e2b07076444 2026-04-21 12:14:14,847 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/38ff0d8f-bb6f-46a7-8d88-457d102e2467 2026-04-21 12:14:14,857 - DEBUG - ==>Verifying data for policy with id: e454df47-d745-4bc3-a432-29a495d3f316, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03072167', 'ctest-policy1-31132829'] 2026-04-21 12:14:14,857 - INFO - VN ctest-vn4-17031218 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-21 12:14:14,857 - DEBUG - Verifying the vn in opserver 2026-04-21 12:14:14,857 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03072167:ctest-vn4-17031218 virtual network link through opserver 10.0.0.38 2026-04-21 12:14:14,857 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-21 12:14:15,161 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-21 12:14:15,319 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03072167:ctest-vn4-17031218', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03072167:ctest-vn4-17031218?flat'} 2026-04-21 12:14:15,319 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03072167:ctest-vn4-17031218 is found in opserver 2026-04-21 12:14:15,328 - DEBUG - Do not have enough data to verify VN in agent 2026-04-21 12:14:15,332 - DEBUG - VRF ids for VN ctest-vn4-17031218: {} 2026-04-21 12:14:15,332 - DEBUG - ====Verifying data for ctest-policy1-31132829 in API_Server ====== 2026-04-21 12:14:15,332 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-21 12:14:15,338 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ff37e0d-8f7a-4c4e-85f1-324549c1004b 2026-04-21 12:14:15,348 - DEBUG - Requesting: http://10.0.0.38:8082/project/bb4cbcf2-31b4-431a-a381-6e2b07076444 2026-04-21 12:14:15,421 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/e454df47-d745-4bc3-a432-29a495d3f316 2026-04-21 12:14:15,432 - INFO - Verified policy ctest-policy1-31132829 in API Server, Result: True 2026-04-21 12:14:15,432 - INFO - Done with setup and verification, moving onto test .. 2026-04-21 12:14:15,442 - INFO - Deleting VN ctest-vn4-17031218 2026-04-21 12:14:15,561 - DEBUG - Response for deleting network () 2026-04-21 12:14:15,561 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/98047e27-7344-41fa-9f09-73dde8e61404 2026-04-21 12:14:15,566 - DEBUG - Response Code: 404 2026-04-21 12:14:15,566 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-21 12:14:15,571 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ff37e0d-8f7a-4c4e-85f1-324549c1004b 2026-04-21 12:14:15,623 - DEBUG - Requesting: http://10.0.0.38:8082/project/bb4cbcf2-31b4-431a-a381-6e2b07076444 2026-04-21 12:14:15,692 - INFO - Validated that VN ctest-vn4-17031218 is not found in API Server 2026-04-21 12:14:15,701 - DEBUG - VN ctest-vn4-17031218 is not present in Agent 10.0.0.38 2026-04-21 12:14:15,701 - INFO - Validated that VN ctest-vn4-17031218 is not in any agent 2026-04-21 12:14:15,715 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-17031218 info 2026-04-21 12:14:15,736 - INFO - Deleted policy ctest-policy1-31132829 2026-04-21 12:14:15,899 - DEBUG - policy ctest-policy1-31132829 is not found in API Server 2026-04-21 12:14:16,151 - DEBUG - No XMPP flaps were noticed during the test