2026-09-02 14:22:50,703 - INFO - Domain Default found not creating 2026-09-02 14:22:50,897 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-24838817 not found, creating it 2026-09-02 14:22:51,413 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-24838817, ID : cbd6f77a-9b03-4f0e-80f7-d78e81e7c4a7 2026-09-02 14:22:53,266 - INFO - ================================================================================ 2026-09-02 14:22:53,266 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-02 14:22:53,540 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-09-02 14:22:53,540 - INFO - Initial checks done. Running the testcase now 2026-09-02 14:22:53,540 - INFO - 2026-09-02 14:22:53,541 - INFO - ================================================================================ 2026-09-02 14:22:53,541 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-02 14:22:53,541 - 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-09-02 14:22:53,828 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-09-02 14:22:53,828 - INFO - Initial checks done. Running the testcase now 2026-09-02 14:22:53,828 - INFO - 2026-09-02 14:22:54,275 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24838817:ctest-vn4-60634452, 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-24838817:ctest-vn4-60634452, 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-24838817:ctest-vn4-60634452, 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-24838817:ctest-vn4-60634452, 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-09-02 14:22:54,878 - DEBUG - Response for create_network : {'network': {'id': 'fb1b8e34-8911-44b7-9651-d6d8f91effed', 'name': 'ctest-vn4-60634452', 'tenant_id': 'cbd6f77a9b034f0e80f7d78e81e7c4a7', 'project_id': 'cbd6f77a9b034f0e80f7d78e81e7c4a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24838817', 'ctest-vn4-60634452'], 'port_security_enabled': True, 'description': ''}} 2026-09-02 14:22:55,065 - DEBUG - Response for create_subnet : {'subnet': {'id': '364f88e2-512f-45cd-8e2a-0c6d67029701', 'name': '', 'tenant_id': 'cbd6f77a9b034f0e80f7d78e81e7c4a7', 'network_id': 'fb1b8e34-8911-44b7-9651-d6d8f91effed', 'ip_version': 4, 'cidr': '194.182.62.64/26', 'allocation_pools': [{'start': '194.182.62.66', 'end': '194.182.62.126'}], 'gateway_ip': '194.182.62.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.182.62.66', 'tags': [], 'project_id': 'cbd6f77a9b034f0e80f7d78e81e7c4a7'}} 2026-09-02 14:22:55,273 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f90b08ad-8287-4d45-8d5b-5f740950678c', 'name': '', 'tenant_id': 'cbd6f77a9b034f0e80f7d78e81e7c4a7', 'network_id': 'fb1b8e34-8911-44b7-9651-d6d8f91effed', 'ip_version': 6, 'cidr': '3698:619f:b8b5:3bf5:20b3:a5bb::/96', 'allocation_pools': [{'start': '3698:619f:b8b5:3bf5:20b3:a5bb:0:2', 'end': '3698:619f:b8b5:3bf5:20b3:a5bb:ffff:fffe'}], 'gateway_ip': '3698:619f:b8b5:3bf5:20b3:a5bb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3698:619f:b8b5:3bf5:20b3:a5bb:0:2', 'tags': [], 'project_id': 'cbd6f77a9b034f0e80f7d78e81e7c4a7'}} 2026-09-02 14:22:55,299 - INFO - Created VN ctest-vn4-60634452 2026-09-02 14:22:55,357 - DEBUG - VN ctest-vn4-60634452 UUID is fb1b8e34-8911-44b7-9651-d6d8f91effed 2026-09-02 14:22:55,621 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fb1b8e34-8911-44b7-9651-d6d8f91effed', 'name': 'ctest-vn4-60634452', 'tenant_id': 'cbd6f77a9b034f0e80f7d78e81e7c4a7', 'project_id': 'cbd6f77a9b034f0e80f7d78e81e7c4a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['364f88e2-512f-45cd-8e2a-0c6d67029701', 'f90b08ad-8287-4d45-8d5b-5f740950678c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24838817', 'ctest-vn4-60634452'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24838817', 'ctest-policy1-60072582']], 'subnet_ipam': [{'subnet_cidr': '194.182.62.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3698:619f:b8b5:3bf5:20b3:a5bb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-02 14:22:55,797 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-02 14:22:56,190 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-02 14:22:56,225 - DEBUG - Requesting: http://10.0.0.161:8082/domain/759a9c83-c697-48bb-b428-5713b193674b 2026-09-02 14:22:56,241 - DEBUG - Requesting: http://10.0.0.161:8082/project/cbd6f77a-9b03-4f0e-80f7-d78e81e7c4a7 2026-09-02 14:22:56,324 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/fb1b8e34-8911-44b7-9651-d6d8f91effed 2026-09-02 14:22:56,342 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/fb1b8e34-8911-44b7-9651-d6d8f91effed 2026-09-02 14:22:56,356 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/5ea2cd1c-aad7-49e1-9064-2c9c12d28188 2026-09-02 14:22:56,366 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/5ea2cd1c-aad7-49e1-9064-2c9c12d28188 2026-09-02 14:22:56,376 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/0c28c964-1ef5-4b80-8c37-9de452b0f3d6 2026-09-02 14:22:56,387 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-02 14:22:56,387 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/fb1b8e34-8911-44b7-9651-d6d8f91effed 2026-09-02 14:22:56,399 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/5ea2cd1c-aad7-49e1-9064-2c9c12d28188 2026-09-02 14:22:56,419 - INFO - Verified VN network id 12 for VN fb1b8e34-8911-44b7-9651-d6d8f91effed 2026-09-02 14:22:56,419 - INFO - Verifications in API Server for VN ctest-vn4-60634452 passed 2026-09-02 14:22:56,420 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/fb1b8e34-8911-44b7-9651-d6d8f91effed 2026-09-02 14:22:56,432 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/5ea2cd1c-aad7-49e1-9064-2c9c12d28188 2026-09-02 14:22:56,441 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/5ea2cd1c-aad7-49e1-9064-2c9c12d28188 2026-09-02 14:22:56,450 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/0c28c964-1ef5-4b80-8c37-9de452b0f3d6 2026-09-02 14:22:56,467 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24838817:ctest-vn4-60634452', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-24838817', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18094212284180153527', 'uuid-lslong': '10831674806183591917'}, 'enable': 'true', 'created': '2026-09-02T14:22:54', 'last-modified': '2026-09-02T14:22:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.886879'} 2026-09-02 14:22:56,476 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-02 14:22:56,477 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-60634452 passed 2026-09-02 14:22:56,477 - DEBUG - ====Verifying policy data for ctest-vn4-60634452 in API_Server ====== 2026-09-02 14:22:56,477 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-02 14:22:56,484 - DEBUG - Requesting: http://10.0.0.161:8082/domain/759a9c83-c697-48bb-b428-5713b193674b 2026-09-02 14:22:56,502 - DEBUG - Requesting: http://10.0.0.161:8082/project/cbd6f77a-9b03-4f0e-80f7-d78e81e7c4a7 2026-09-02 14:22:56,591 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/fb1b8e34-8911-44b7-9651-d6d8f91effed 2026-09-02 14:22:56,604 - DEBUG - ==>Verifying data for policy with id: 8822a33b-83fb-4c48-8405-29be23a640ec, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24838817', 'ctest-policy1-60072582'] 2026-09-02 14:22:56,604 - INFO - VN ctest-vn4-60634452 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-02 14:22:56,604 - DEBUG - Verifying the vn in opserver 2026-09-02 14:22:56,605 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24838817:ctest-vn4-60634452 virtual network link through opserver 10.0.0.161 2026-09-02 14:22:56,605 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-09-02 14:22:56,987 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-09-02 14:22:57,046 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24838817:ctest-vn4-60634452', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24838817:ctest-vn4-60634452?flat'} 2026-09-02 14:22:57,046 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24838817:ctest-vn4-60634452 is found in opserver 2026-09-02 14:22:57,060 - DEBUG - Do not have enough data to verify VN in agent 2026-09-02 14:22:57,066 - DEBUG - VRF ids for VN ctest-vn4-60634452: {} 2026-09-02 14:22:57,067 - DEBUG - ====Verifying data for ctest-policy1-60072582 in API_Server ====== 2026-09-02 14:22:57,067 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-02 14:22:57,074 - DEBUG - Requesting: http://10.0.0.161:8082/domain/759a9c83-c697-48bb-b428-5713b193674b 2026-09-02 14:22:57,088 - DEBUG - Requesting: http://10.0.0.161:8082/project/cbd6f77a-9b03-4f0e-80f7-d78e81e7c4a7 2026-09-02 14:22:57,167 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/8822a33b-83fb-4c48-8405-29be23a640ec 2026-09-02 14:22:57,180 - INFO - Verified policy ctest-policy1-60072582 in API Server, Result: True 2026-09-02 14:22:57,180 - INFO - Done with setup and verification, moving onto test .. 2026-09-02 14:22:57,191 - INFO - Deleting VN ctest-vn4-60634452 2026-09-02 14:22:57,326 - DEBUG - Response for deleting network () 2026-09-02 14:22:57,326 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/5ea2cd1c-aad7-49e1-9064-2c9c12d28188 2026-09-02 14:22:57,332 - DEBUG - Response Code: 404 2026-09-02 14:22:57,333 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-02 14:22:57,340 - DEBUG - Requesting: http://10.0.0.161:8082/domain/759a9c83-c697-48bb-b428-5713b193674b 2026-09-02 14:22:57,397 - DEBUG - Requesting: http://10.0.0.161:8082/project/cbd6f77a-9b03-4f0e-80f7-d78e81e7c4a7 2026-09-02 14:22:57,483 - INFO - Validated that VN ctest-vn4-60634452 is not found in API Server 2026-09-02 14:22:57,496 - DEBUG - VN ctest-vn4-60634452 is not present in Agent 10.0.0.161 2026-09-02 14:22:57,496 - INFO - Validated that VN ctest-vn4-60634452 is not in any agent 2026-09-02 14:22:57,516 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-60634452 info 2026-09-02 14:22:57,551 - INFO - Deleted policy ctest-policy1-60072582 2026-09-02 14:22:57,733 - DEBUG - policy ctest-policy1-60072582 is not found in API Server 2026-09-02 14:22:58,007 - DEBUG - No XMPP flaps were noticed during the test