2026-06-17 08:57:56,030 - INFO - Domain Default found not creating 2026-06-17 08:57:56,182 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-19816643 not found, creating it 2026-06-17 08:57:56,629 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-19816643, ID : 280f7e5f-cf10-496f-aa73-9fd654cdb14b 2026-06-17 08:57:58,108 - INFO - ================================================================================ 2026-06-17 08:57:58,108 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-17 08:57:58,372 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-17 08:57:58,372 - INFO - Initial checks done. Running the testcase now 2026-06-17 08:57:58,372 - INFO - 2026-06-17 08:57:58,372 - INFO - ================================================================================ 2026-06-17 08:57:58,372 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-17 08:57:58,372 - 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-06-17 08:57:58,662 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-17 08:57:58,662 - INFO - Initial checks done. Running the testcase now 2026-06-17 08:57:58,662 - INFO - 2026-06-17 08:57:59,073 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19816643:ctest-vn4-45568850, 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-19816643:ctest-vn4-45568850, 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-19816643:ctest-vn4-45568850, 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-19816643:ctest-vn4-45568850, 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-06-17 08:57:59,582 - DEBUG - Response for create_network : {'network': {'id': '8fdb2129-bd29-4502-a517-aaec33a1db69', 'name': 'ctest-vn4-45568850', 'tenant_id': '280f7e5fcf10496faa739fd654cdb14b', 'project_id': '280f7e5fcf10496faa739fd654cdb14b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19816643', 'ctest-vn4-45568850'], 'port_security_enabled': True, 'description': ''}} 2026-06-17 08:57:59,774 - DEBUG - Response for create_subnet : {'subnet': {'id': '1539e247-2737-4286-9135-2c614dc1b0ef', 'name': '', 'tenant_id': '280f7e5fcf10496faa739fd654cdb14b', 'network_id': '8fdb2129-bd29-4502-a517-aaec33a1db69', 'ip_version': 4, 'cidr': '181.134.62.192/26', 'allocation_pools': [{'start': '181.134.62.194', 'end': '181.134.62.254'}], 'gateway_ip': '181.134.62.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.134.62.194', 'tags': [], 'project_id': '280f7e5fcf10496faa739fd654cdb14b'}} 2026-06-17 08:57:59,928 - DEBUG - Response for create_subnet : {'subnet': {'id': '266447df-74cc-40f5-bddd-75e9c23ecc69', 'name': '', 'tenant_id': '280f7e5fcf10496faa739fd654cdb14b', 'network_id': '8fdb2129-bd29-4502-a517-aaec33a1db69', 'ip_version': 6, 'cidr': '3c14:8c7:de6:fbf4:2a00:8cd1::/96', 'allocation_pools': [{'start': '3c14:8c7:de6:fbf4:2a00:8cd1:0:2', 'end': '3c14:8c7:de6:fbf4:2a00:8cd1:ffff:fffe'}], 'gateway_ip': '3c14:8c7:de6:fbf4:2a00:8cd1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c14:8c7:de6:fbf4:2a00:8cd1:0:2', 'tags': [], 'project_id': '280f7e5fcf10496faa739fd654cdb14b'}} 2026-06-17 08:57:59,945 - INFO - Created VN ctest-vn4-45568850 2026-06-17 08:57:59,997 - DEBUG - VN ctest-vn4-45568850 UUID is 8fdb2129-bd29-4502-a517-aaec33a1db69 2026-06-17 08:58:00,187 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8fdb2129-bd29-4502-a517-aaec33a1db69', 'name': 'ctest-vn4-45568850', 'tenant_id': '280f7e5fcf10496faa739fd654cdb14b', 'project_id': '280f7e5fcf10496faa739fd654cdb14b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1539e247-2737-4286-9135-2c614dc1b0ef', '266447df-74cc-40f5-bddd-75e9c23ecc69'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19816643', 'ctest-vn4-45568850'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19816643', 'ctest-policy1-20665458']], 'subnet_ipam': [{'subnet_cidr': '181.134.62.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c14:8c7:de6:fbf4:2a00:8cd1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-17 08:58:00,345 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-17 08:58:00,666 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-17 08:58:00,692 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cf5e4dfc-6bab-40a5-b895-37a5d2e8113b 2026-06-17 08:58:00,703 - DEBUG - Requesting: http://10.0.0.50:8082/project/280f7e5f-cf10-496f-aa73-9fd654cdb14b 2026-06-17 08:58:00,777 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8fdb2129-bd29-4502-a517-aaec33a1db69 2026-06-17 08:58:00,788 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8fdb2129-bd29-4502-a517-aaec33a1db69 2026-06-17 08:58:00,796 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e46a3577-d402-4df1-a586-fecffed3c780 2026-06-17 08:58:00,803 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e46a3577-d402-4df1-a586-fecffed3c780 2026-06-17 08:58:00,809 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d30876b8-15d9-48eb-a22d-9d65b87b9ef6 2026-06-17 08:58:00,815 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-17 08:58:00,815 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8fdb2129-bd29-4502-a517-aaec33a1db69 2026-06-17 08:58:00,823 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e46a3577-d402-4df1-a586-fecffed3c780 2026-06-17 08:58:00,835 - INFO - Verified VN network id 11 for VN 8fdb2129-bd29-4502-a517-aaec33a1db69 2026-06-17 08:58:00,835 - INFO - Verifications in API Server for VN ctest-vn4-45568850 passed 2026-06-17 08:58:00,835 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8fdb2129-bd29-4502-a517-aaec33a1db69 2026-06-17 08:58:00,844 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e46a3577-d402-4df1-a586-fecffed3c780 2026-06-17 08:58:00,851 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e46a3577-d402-4df1-a586-fecffed3c780 2026-06-17 08:58:00,857 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d30876b8-15d9-48eb-a22d-9d65b87b9ef6 2026-06-17 08:58:00,867 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19816643:ctest-vn4-45568850', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-19816643', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10365915430474302722', 'uuid-lslong': '11896164872177703785'}, 'enable': 'true', 'created': '2026-06-17T08:57:59', 'last-modified': '2026-06-17T08:58:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.704749'} 2026-06-17 08:58:00,873 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-17 08:58:00,873 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-45568850 passed 2026-06-17 08:58:00,873 - DEBUG - ====Verifying policy data for ctest-vn4-45568850 in API_Server ====== 2026-06-17 08:58:00,873 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-17 08:58:00,879 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cf5e4dfc-6bab-40a5-b895-37a5d2e8113b 2026-06-17 08:58:00,889 - DEBUG - Requesting: http://10.0.0.50:8082/project/280f7e5f-cf10-496f-aa73-9fd654cdb14b 2026-06-17 08:58:00,970 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8fdb2129-bd29-4502-a517-aaec33a1db69 2026-06-17 08:58:00,981 - DEBUG - ==>Verifying data for policy with id: 1ffb2071-4854-4af9-bf9f-326414cedff8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19816643', 'ctest-policy1-20665458'] 2026-06-17 08:58:00,981 - INFO - VN ctest-vn4-45568850 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-17 08:58:00,981 - DEBUG - Verifying the vn in opserver 2026-06-17 08:58:00,981 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19816643:ctest-vn4-45568850 virtual network link through opserver 10.0.0.50 2026-06-17 08:58:00,981 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-17 08:58:01,299 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-17 08:58:01,366 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19816643:ctest-vn4-45568850', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19816643:ctest-vn4-45568850?flat'} 2026-06-17 08:58:01,366 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19816643:ctest-vn4-45568850 is found in opserver 2026-06-17 08:58:01,376 - DEBUG - Do not have enough data to verify VN in agent 2026-06-17 08:58:01,381 - DEBUG - VRF ids for VN ctest-vn4-45568850: {} 2026-06-17 08:58:01,381 - DEBUG - ====Verifying data for ctest-policy1-20665458 in API_Server ====== 2026-06-17 08:58:01,381 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-17 08:58:01,386 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cf5e4dfc-6bab-40a5-b895-37a5d2e8113b 2026-06-17 08:58:01,395 - DEBUG - Requesting: http://10.0.0.50:8082/project/280f7e5f-cf10-496f-aa73-9fd654cdb14b 2026-06-17 08:58:01,464 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/1ffb2071-4854-4af9-bf9f-326414cedff8 2026-06-17 08:58:01,474 - INFO - Verified policy ctest-policy1-20665458 in API Server, Result: True 2026-06-17 08:58:01,474 - INFO - Done with setup and verification, moving onto test .. 2026-06-17 08:58:01,485 - INFO - Deleting VN ctest-vn4-45568850 2026-06-17 08:58:01,599 - DEBUG - Response for deleting network () 2026-06-17 08:58:01,599 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e46a3577-d402-4df1-a586-fecffed3c780 2026-06-17 08:58:01,604 - DEBUG - Response Code: 404 2026-06-17 08:58:01,605 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-17 08:58:01,609 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cf5e4dfc-6bab-40a5-b895-37a5d2e8113b 2026-06-17 08:58:01,662 - DEBUG - Requesting: http://10.0.0.50:8082/project/280f7e5f-cf10-496f-aa73-9fd654cdb14b 2026-06-17 08:58:01,730 - INFO - Validated that VN ctest-vn4-45568850 is not found in API Server 2026-06-17 08:58:01,741 - DEBUG - VN ctest-vn4-45568850 is not present in Agent 10.0.0.50 2026-06-17 08:58:01,741 - INFO - Validated that VN ctest-vn4-45568850 is not in any agent 2026-06-17 08:58:01,756 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-45568850 info 2026-06-17 08:58:01,778 - INFO - Deleted policy ctest-policy1-20665458 2026-06-17 08:58:01,945 - DEBUG - policy ctest-policy1-20665458 is not found in API Server 2026-06-17 08:58:02,197 - DEBUG - No XMPP flaps were noticed during the test 2026-06-17 08:58:02,197 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-17 08:58:02,198 - INFO - -------------------------------------------------------------------------------- 2026-06-17 08:58:02,490 - DEBUG - No XMPP flaps were noticed during the test 2026-06-17 08:58:02,490 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-17 08:58:02,490 - INFO - -------------------------------------------------------------------------------- 2026-06-17 08:58:03,195 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-19816643, ID : 280f7e5f-cf10-496f-aa73-9fd654cdb14b