2026-04-27 02:30:57,568 - INFO - Domain Default found not creating 2026-04-27 02:30:57,738 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43643594 not found, creating it 2026-04-27 02:30:58,192 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43643594, ID : 45f8a514-3b37-4610-8665-09a477c5828a 2026-04-27 02:30:59,679 - INFO - ================================================================================ 2026-04-27 02:30:59,679 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-27 02:30:59,932 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2026-04-27 02:30:59,932 - INFO - Initial checks done. Running the testcase now 2026-04-27 02:30:59,932 - INFO - 2026-04-27 02:30:59,932 - INFO - ================================================================================ 2026-04-27 02:30:59,932 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-27 02:30:59,932 - 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-27 02:31:00,224 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2026-04-27 02:31:00,224 - INFO - Initial checks done. Running the testcase now 2026-04-27 02:31:00,224 - INFO - 2026-04-27 02:31:00,589 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43643594:ctest-vn4-14075296, 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-43643594:ctest-vn4-14075296, 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-43643594:ctest-vn4-14075296, 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-43643594:ctest-vn4-14075296, 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-27 02:31:01,120 - DEBUG - Response for create_network : {'network': {'id': '48605d99-89f7-4c53-8318-1b39633fb716', 'name': 'ctest-vn4-14075296', 'tenant_id': '45f8a5143b374610866509a477c5828a', 'project_id': '45f8a5143b374610866509a477c5828a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43643594', 'ctest-vn4-14075296'], 'port_security_enabled': True, 'description': ''}} 2026-04-27 02:31:01,352 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f3093074-b475-48a0-bbcb-7f6568ba9f02', 'name': '', 'tenant_id': '45f8a5143b374610866509a477c5828a', 'network_id': '48605d99-89f7-4c53-8318-1b39633fb716', 'ip_version': 4, 'cidr': '8.210.91.0/26', 'allocation_pools': [{'start': '8.210.91.2', 'end': '8.210.91.62'}], 'gateway_ip': '8.210.91.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.210.91.2', 'tags': [], 'project_id': '45f8a5143b374610866509a477c5828a'}} 2026-04-27 02:31:01,522 - DEBUG - Response for create_subnet : {'subnet': {'id': '142529d3-8298-48a7-8d98-a19f4a6ce3e9', 'name': '', 'tenant_id': '45f8a5143b374610866509a477c5828a', 'network_id': '48605d99-89f7-4c53-8318-1b39633fb716', 'ip_version': 6, 'cidr': '2593:4b8f:7898:8a90:5a1a:391d::/96', 'allocation_pools': [{'start': '2593:4b8f:7898:8a90:5a1a:391d:0:2', 'end': '2593:4b8f:7898:8a90:5a1a:391d:ffff:fffe'}], 'gateway_ip': '2593:4b8f:7898:8a90:5a1a:391d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2593:4b8f:7898:8a90:5a1a:391d:0:2', 'tags': [], 'project_id': '45f8a5143b374610866509a477c5828a'}} 2026-04-27 02:31:01,544 - INFO - Created VN ctest-vn4-14075296 2026-04-27 02:31:01,598 - DEBUG - VN ctest-vn4-14075296 UUID is 48605d99-89f7-4c53-8318-1b39633fb716 2026-04-27 02:31:01,819 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '48605d99-89f7-4c53-8318-1b39633fb716', 'name': 'ctest-vn4-14075296', 'tenant_id': '45f8a5143b374610866509a477c5828a', 'project_id': '45f8a5143b374610866509a477c5828a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f3093074-b475-48a0-bbcb-7f6568ba9f02', '142529d3-8298-48a7-8d98-a19f4a6ce3e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43643594', 'ctest-vn4-14075296'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43643594', 'ctest-policy1-37938606']], 'subnet_ipam': [{'subnet_cidr': '8.210.91.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2593:4b8f:7898:8a90:5a1a:391d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-27 02:31:01,982 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-04-27 02:31:02,279 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-04-27 02:31:02,320 - DEBUG - Requesting: http://10.0.0.242:8082/domain/524f4263-879b-42be-bdd6-35a05fa4fd34 2026-04-27 02:31:02,333 - DEBUG - Requesting: http://10.0.0.242:8082/project/45f8a514-3b37-4610-8665-09a477c5828a 2026-04-27 02:31:02,410 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/48605d99-89f7-4c53-8318-1b39633fb716 2026-04-27 02:31:02,422 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/48605d99-89f7-4c53-8318-1b39633fb716 2026-04-27 02:31:02,432 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/aed1a88f-f5ab-40df-89d1-391aa07b293f 2026-04-27 02:31:02,440 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/aed1a88f-f5ab-40df-89d1-391aa07b293f 2026-04-27 02:31:02,447 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/9db3d13a-366a-4f84-bd22-04b5cc2ad408 2026-04-27 02:31:02,456 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-27 02:31:02,456 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/48605d99-89f7-4c53-8318-1b39633fb716 2026-04-27 02:31:02,467 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/aed1a88f-f5ab-40df-89d1-391aa07b293f 2026-04-27 02:31:02,482 - INFO - Verified VN network id 11 for VN 48605d99-89f7-4c53-8318-1b39633fb716 2026-04-27 02:31:02,482 - INFO - Verifications in API Server for VN ctest-vn4-14075296 passed 2026-04-27 02:31:02,483 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/48605d99-89f7-4c53-8318-1b39633fb716 2026-04-27 02:31:02,492 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/aed1a88f-f5ab-40df-89d1-391aa07b293f 2026-04-27 02:31:02,500 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/aed1a88f-f5ab-40df-89d1-391aa07b293f 2026-04-27 02:31:02,506 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/9db3d13a-366a-4f84-bd22-04b5cc2ad408 2026-04-27 02:31:02,517 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43643594:ctest-vn4-14075296', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43643594', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5215271282521099347', 'uuid-lslong': '9446330151701821206'}, 'enable': 'true', 'created': '2026-04-27T02:31:01', 'last-modified': '2026-04-27T02:31:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.733501'} 2026-04-27 02:31:02,524 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-27 02:31:02,524 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-14075296 passed 2026-04-27 02:31:02,524 - DEBUG - ====Verifying policy data for ctest-vn4-14075296 in API_Server ====== 2026-04-27 02:31:02,524 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-04-27 02:31:02,530 - DEBUG - Requesting: http://10.0.0.242:8082/domain/524f4263-879b-42be-bdd6-35a05fa4fd34 2026-04-27 02:31:02,545 - DEBUG - Requesting: http://10.0.0.242:8082/project/45f8a514-3b37-4610-8665-09a477c5828a 2026-04-27 02:31:02,637 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/48605d99-89f7-4c53-8318-1b39633fb716 2026-04-27 02:31:02,648 - DEBUG - ==>Verifying data for policy with id: c1da7304-8c97-40c6-8a34-73d501d386f0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43643594', 'ctest-policy1-37938606'] 2026-04-27 02:31:02,648 - INFO - VN ctest-vn4-14075296 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-27 02:31:02,648 - DEBUG - Verifying the vn in opserver 2026-04-27 02:31:02,648 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43643594:ctest-vn4-14075296 virtual network link through opserver 10.0.0.242 2026-04-27 02:31:02,648 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-04-27 02:31:02,945 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-04-27 02:31:03,007 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43643594:ctest-vn4-14075296', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43643594:ctest-vn4-14075296?flat'} 2026-04-27 02:31:03,007 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43643594:ctest-vn4-14075296 is found in opserver 2026-04-27 02:31:03,016 - DEBUG - Do not have enough data to verify VN in agent 2026-04-27 02:31:03,020 - DEBUG - VRF ids for VN ctest-vn4-14075296: {} 2026-04-27 02:31:03,020 - DEBUG - ====Verifying data for ctest-policy1-37938606 in API_Server ====== 2026-04-27 02:31:03,020 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-04-27 02:31:03,025 - DEBUG - Requesting: http://10.0.0.242:8082/domain/524f4263-879b-42be-bdd6-35a05fa4fd34 2026-04-27 02:31:03,037 - DEBUG - Requesting: http://10.0.0.242:8082/project/45f8a514-3b37-4610-8665-09a477c5828a 2026-04-27 02:31:03,107 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/c1da7304-8c97-40c6-8a34-73d501d386f0 2026-04-27 02:31:03,116 - INFO - Verified policy ctest-policy1-37938606 in API Server, Result: True 2026-04-27 02:31:03,116 - INFO - Done with setup and verification, moving onto test .. 2026-04-27 02:31:03,124 - INFO - Deleting VN ctest-vn4-14075296 2026-04-27 02:31:03,235 - DEBUG - Response for deleting network () 2026-04-27 02:31:03,235 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/aed1a88f-f5ab-40df-89d1-391aa07b293f 2026-04-27 02:31:03,240 - DEBUG - Response Code: 404 2026-04-27 02:31:03,240 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-04-27 02:31:03,246 - DEBUG - Requesting: http://10.0.0.242:8082/domain/524f4263-879b-42be-bdd6-35a05fa4fd34 2026-04-27 02:31:03,299 - DEBUG - Requesting: http://10.0.0.242:8082/project/45f8a514-3b37-4610-8665-09a477c5828a 2026-04-27 02:31:03,365 - INFO - Validated that VN ctest-vn4-14075296 is not found in API Server 2026-04-27 02:31:03,374 - DEBUG - VN ctest-vn4-14075296 is not present in Agent 10.0.0.242 2026-04-27 02:31:03,374 - INFO - Validated that VN ctest-vn4-14075296 is not in any agent 2026-04-27 02:31:03,387 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-14075296 info 2026-04-27 02:31:03,413 - INFO - Deleted policy ctest-policy1-37938606 2026-04-27 02:31:03,578 - DEBUG - policy ctest-policy1-37938606 is not found in API Server 2026-04-27 02:31:03,835 - DEBUG - No XMPP flaps were noticed during the test
2026-04-27 02:31:03,835 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-27 02:31:03,835 - INFO - -------------------------------------------------------------------------------- 2026-04-27 02:31:04,124 - DEBUG - No XMPP flaps were noticed during the test
2026-04-27 02:31:04,124 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-04-27 02:31:04,124 - INFO - -------------------------------------------------------------------------------- 2026-04-27 02:31:04,815 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-43643594, ID : 45f8a514-3b37-4610-8665-09a477c5828a