2026-04-30 00:51:54,290 - INFO - Domain Default found not creating 2026-04-30 00:51:54,484 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-97936945 not found, creating it 2026-04-30 00:51:54,990 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-97936945, ID : e39398c2-9e94-4560-97a6-12c311ab8d78 2026-04-30 00:51:56,607 - INFO - ================================================================================ 2026-04-30 00:51:56,607 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-30 00:51:56,885 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2026-04-30 00:51:56,885 - INFO - Initial checks done. Running the testcase now 2026-04-30 00:51:56,885 - INFO - 2026-04-30 00:51:56,885 - INFO - ================================================================================ 2026-04-30 00:51:56,885 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-30 00:51:56,885 - 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-30 00:51:57,183 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2026-04-30 00:51:57,183 - INFO - Initial checks done. Running the testcase now 2026-04-30 00:51:57,183 - INFO - 2026-04-30 00:51:57,548 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97936945:ctest-vn4-25282897, 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-97936945:ctest-vn4-25282897, 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-97936945:ctest-vn4-25282897, 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-97936945:ctest-vn4-25282897, 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-30 00:51:58,095 - DEBUG - Response for create_network : {'network': {'id': 'f7571027-7e83-4e2d-8b56-a82b5c608c65', 'name': 'ctest-vn4-25282897', 'tenant_id': 'e39398c29e94456097a612c311ab8d78', 'project_id': 'e39398c29e94456097a612c311ab8d78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97936945', 'ctest-vn4-25282897'], 'port_security_enabled': True, 'description': ''}} 2026-04-30 00:51:58,257 - DEBUG - Response for create_subnet : {'subnet': {'id': '75080707-4b80-4f80-a7c1-036378d45f34', 'name': '', 'tenant_id': 'e39398c29e94456097a612c311ab8d78', 'network_id': 'f7571027-7e83-4e2d-8b56-a82b5c608c65', 'ip_version': 4, 'cidr': '192.63.203.0/26', 'allocation_pools': [{'start': '192.63.203.2', 'end': '192.63.203.62'}], 'gateway_ip': '192.63.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.63.203.2', 'tags': [], 'project_id': 'e39398c29e94456097a612c311ab8d78'}} 2026-04-30 00:51:58,431 - DEBUG - Response for create_subnet : {'subnet': {'id': '4aa83cfc-1956-4d13-bd60-20f872c3d26e', 'name': '', 'tenant_id': 'e39398c29e94456097a612c311ab8d78', 'network_id': 'f7571027-7e83-4e2d-8b56-a82b5c608c65', 'ip_version': 6, 'cidr': '3aec:e60:5fce:13df:ef5c:f409::/96', 'allocation_pools': [{'start': '3aec:e60:5fce:13df:ef5c:f409:0:2', 'end': '3aec:e60:5fce:13df:ef5c:f409:ffff:fffe'}], 'gateway_ip': '3aec:e60:5fce:13df:ef5c:f409:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3aec:e60:5fce:13df:ef5c:f409:0:2', 'tags': [], 'project_id': 'e39398c29e94456097a612c311ab8d78'}} 2026-04-30 00:51:58,453 - INFO - Created VN ctest-vn4-25282897 2026-04-30 00:51:58,505 - DEBUG - VN ctest-vn4-25282897 UUID is f7571027-7e83-4e2d-8b56-a82b5c608c65 2026-04-30 00:51:58,728 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f7571027-7e83-4e2d-8b56-a82b5c608c65', 'name': 'ctest-vn4-25282897', 'tenant_id': 'e39398c29e94456097a612c311ab8d78', 'project_id': 'e39398c29e94456097a612c311ab8d78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75080707-4b80-4f80-a7c1-036378d45f34', '4aa83cfc-1956-4d13-bd60-20f872c3d26e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97936945', 'ctest-vn4-25282897'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97936945', 'ctest-policy1-02729245']], 'subnet_ipam': [{'subnet_cidr': '192.63.203.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3aec:e60:5fce:13df:ef5c:f409::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-30 00:51:58,893 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-04-30 00:51:59,197 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-04-30 00:51:59,234 - DEBUG - Requesting: http://10.0.0.130:8082/domain/9c531511-fe8c-4248-8b8c-a05bf70a3f10 2026-04-30 00:51:59,247 - DEBUG - Requesting: http://10.0.0.130:8082/project/e39398c2-9e94-4560-97a6-12c311ab8d78 2026-04-30 00:51:59,321 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/f7571027-7e83-4e2d-8b56-a82b5c608c65 2026-04-30 00:51:59,335 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/f7571027-7e83-4e2d-8b56-a82b5c608c65 2026-04-30 00:51:59,346 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/db77e759-3e52-4253-ab9c-88e8efc75b09 2026-04-30 00:51:59,354 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/db77e759-3e52-4253-ab9c-88e8efc75b09 2026-04-30 00:51:59,361 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/e4c1cfb4-262f-4df8-aa54-6b7224dceb65 2026-04-30 00:51:59,368 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-30 00:51:59,368 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/f7571027-7e83-4e2d-8b56-a82b5c608c65 2026-04-30 00:51:59,378 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/db77e759-3e52-4253-ab9c-88e8efc75b09 2026-04-30 00:51:59,394 - INFO - Verified VN network id 11 for VN f7571027-7e83-4e2d-8b56-a82b5c608c65 2026-04-30 00:51:59,394 - INFO - Verifications in API Server for VN ctest-vn4-25282897 passed 2026-04-30 00:51:59,394 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/f7571027-7e83-4e2d-8b56-a82b5c608c65 2026-04-30 00:51:59,407 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/db77e759-3e52-4253-ab9c-88e8efc75b09 2026-04-30 00:51:59,416 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/db77e759-3e52-4253-ab9c-88e8efc75b09 2026-04-30 00:51:59,426 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/e4c1cfb4-262f-4df8-aa54-6b7224dceb65 2026-04-30 00:51:59,439 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97936945:ctest-vn4-25282897', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-97936945', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17822731812154330669', 'uuid-lslong': '10040397323455990885'}, 'enable': 'true', 'created': '2026-04-30T00:51:58', 'last-modified': '2026-04-30T00:51:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.739813'} 2026-04-30 00:51:59,446 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-30 00:51:59,446 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-25282897 passed 2026-04-30 00:51:59,446 - DEBUG - ====Verifying policy data for ctest-vn4-25282897 in API_Server ====== 2026-04-30 00:51:59,446 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-04-30 00:51:59,452 - DEBUG - Requesting: http://10.0.0.130:8082/domain/9c531511-fe8c-4248-8b8c-a05bf70a3f10 2026-04-30 00:51:59,462 - DEBUG - Requesting: http://10.0.0.130:8082/project/e39398c2-9e94-4560-97a6-12c311ab8d78 2026-04-30 00:51:59,550 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/f7571027-7e83-4e2d-8b56-a82b5c608c65 2026-04-30 00:51:59,562 - DEBUG - ==>Verifying data for policy with id: f97bc7d8-28c2-4a1e-8ef0-8fe712b18740, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97936945', 'ctest-policy1-02729245'] 2026-04-30 00:51:59,562 - INFO - VN ctest-vn4-25282897 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-30 00:51:59,562 - DEBUG - Verifying the vn in opserver 2026-04-30 00:51:59,562 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97936945:ctest-vn4-25282897 virtual network link through opserver 10.0.0.130 2026-04-30 00:51:59,562 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-04-30 00:51:59,864 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-04-30 00:51:59,933 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97936945:ctest-vn4-25282897', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97936945:ctest-vn4-25282897?flat'} 2026-04-30 00:51:59,933 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97936945:ctest-vn4-25282897 is found in opserver 2026-04-30 00:51:59,942 - DEBUG - Do not have enough data to verify VN in agent 2026-04-30 00:51:59,947 - DEBUG - VRF ids for VN ctest-vn4-25282897: {} 2026-04-30 00:51:59,947 - DEBUG - ====Verifying data for ctest-policy1-02729245 in API_Server ====== 2026-04-30 00:51:59,947 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-04-30 00:51:59,952 - DEBUG - Requesting: http://10.0.0.130:8082/domain/9c531511-fe8c-4248-8b8c-a05bf70a3f10 2026-04-30 00:51:59,963 - DEBUG - Requesting: http://10.0.0.130:8082/project/e39398c2-9e94-4560-97a6-12c311ab8d78 2026-04-30 00:52:00,038 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/f97bc7d8-28c2-4a1e-8ef0-8fe712b18740 2026-04-30 00:52:00,048 - INFO - Verified policy ctest-policy1-02729245 in API Server, Result: True 2026-04-30 00:52:00,048 - INFO - Done with setup and verification, moving onto test .. 2026-04-30 00:52:00,056 - INFO - Deleting VN ctest-vn4-25282897 2026-04-30 00:52:00,180 - DEBUG - Response for deleting network () 2026-04-30 00:52:00,180 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/db77e759-3e52-4253-ab9c-88e8efc75b09 2026-04-30 00:52:00,186 - DEBUG - Response Code: 404 2026-04-30 00:52:00,186 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-04-30 00:52:00,191 - DEBUG - Requesting: http://10.0.0.130:8082/domain/9c531511-fe8c-4248-8b8c-a05bf70a3f10 2026-04-30 00:52:00,246 - DEBUG - Requesting: http://10.0.0.130:8082/project/e39398c2-9e94-4560-97a6-12c311ab8d78 2026-04-30 00:52:00,318 - INFO - Validated that VN ctest-vn4-25282897 is not found in API Server 2026-04-30 00:52:00,329 - DEBUG - VN ctest-vn4-25282897 is not present in Agent 10.0.0.130 2026-04-30 00:52:00,329 - INFO - Validated that VN ctest-vn4-25282897 is not in any agent 2026-04-30 00:52:00,341 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-25282897 info 2026-04-30 00:52:00,365 - INFO - Deleted policy ctest-policy1-02729245 2026-04-30 00:52:00,536 - DEBUG - policy ctest-policy1-02729245 is not found in API Server 2026-04-30 00:52:00,804 - DEBUG - No XMPP flaps were noticed during the test