2026-02-03 21:22:01,308 - INFO - Domain Default found not creating 2026-02-03 21:22:01,450 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-65849339 not found, creating it 2026-02-03 21:22:01,890 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-65849339, ID : 5f251e86-3d84-405b-b040-3875a4feb309 2026-02-03 21:22:03,267 - INFO - ================================================================================ 2026-02-03 21:22:03,267 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 21:22:03,520 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.193': '0'}} with 2026-02-03 21:22:03,520 - INFO - Initial checks done. Running the testcase now 2026-02-03 21:22:03,520 - INFO - 2026-02-03 21:22:03,520 - INFO - ================================================================================ 2026-02-03 21:22:03,520 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 21:22:03,520 - 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-02-03 21:22:03,808 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.193': '0'}} with 2026-02-03 21:22:03,808 - INFO - Initial checks done. Running the testcase now 2026-02-03 21:22:03,808 - INFO - 2026-02-03 21:22:04,161 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65849339:ctest-vn4-92382415, 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-65849339:ctest-vn4-92382415, 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-65849339:ctest-vn4-92382415, 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-65849339:ctest-vn4-92382415, 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-02-03 21:22:04,658 - DEBUG - Response for create_network : {'network': {'id': 'f2ae05da-9b0f-4c91-90e5-075ce62d4664', 'name': 'ctest-vn4-92382415', 'tenant_id': '5f251e863d84405bb0403875a4feb309', 'project_id': '5f251e863d84405bb0403875a4feb309', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65849339', 'ctest-vn4-92382415'], 'port_security_enabled': True, 'description': ''}} 2026-02-03 21:22:04,848 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bbec21af-6c90-4d60-bc4f-377ac9d0f7ab', 'name': '', 'tenant_id': '5f251e863d84405bb0403875a4feb309', 'network_id': 'f2ae05da-9b0f-4c91-90e5-075ce62d4664', 'ip_version': 4, 'cidr': '51.185.46.0/26', 'allocation_pools': [{'start': '51.185.46.2', 'end': '51.185.46.62'}], 'gateway_ip': '51.185.46.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.185.46.2', 'tags': [], 'project_id': '5f251e863d84405bb0403875a4feb309'}} 2026-02-03 21:22:05,031 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ffc6a10-e237-4b90-93e0-404ac6bfcbd0', 'name': '', 'tenant_id': '5f251e863d84405bb0403875a4feb309', 'network_id': 'f2ae05da-9b0f-4c91-90e5-075ce62d4664', 'ip_version': 6, 'cidr': '27cb:625d:85f5:d9c0:e561:4499::/96', 'allocation_pools': [{'start': '27cb:625d:85f5:d9c0:e561:4499:0:2', 'end': '27cb:625d:85f5:d9c0:e561:4499:ffff:fffe'}], 'gateway_ip': '27cb:625d:85f5:d9c0:e561:4499:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27cb:625d:85f5:d9c0:e561:4499:0:2', 'tags': [], 'project_id': '5f251e863d84405bb0403875a4feb309'}} 2026-02-03 21:22:05,048 - INFO - Created VN ctest-vn4-92382415 2026-02-03 21:22:05,103 - DEBUG - VN ctest-vn4-92382415 UUID is f2ae05da-9b0f-4c91-90e5-075ce62d4664 2026-02-03 21:22:05,284 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f2ae05da-9b0f-4c91-90e5-075ce62d4664', 'name': 'ctest-vn4-92382415', 'tenant_id': '5f251e863d84405bb0403875a4feb309', 'project_id': '5f251e863d84405bb0403875a4feb309', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bbec21af-6c90-4d60-bc4f-377ac9d0f7ab', '4ffc6a10-e237-4b90-93e0-404ac6bfcbd0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65849339', 'ctest-vn4-92382415'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65849339', 'ctest-policy1-41466217']], 'subnet_ipam': [{'subnet_cidr': '51.185.46.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '27cb:625d:85f5:d9c0:e561:4499::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-03 21:22:05,439 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-03 21:22:05,732 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-03 21:22:05,759 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a165745d-cff5-44b6-8482-90b1e869727a 2026-02-03 21:22:05,772 - DEBUG - Requesting: http://10.0.0.50:8082/project/5f251e86-3d84-405b-b040-3875a4feb309 2026-02-03 21:22:05,854 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2ae05da-9b0f-4c91-90e5-075ce62d4664 2026-02-03 21:22:05,866 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2ae05da-9b0f-4c91-90e5-075ce62d4664 2026-02-03 21:22:05,877 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e3d7f23a-73fb-4d3f-9899-6ea727fb189b 2026-02-03 21:22:05,882 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e3d7f23a-73fb-4d3f-9899-6ea727fb189b 2026-02-03 21:22:05,889 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e9c18afb-8261-45e5-a1ec-c67f8c6880c7 2026-02-03 21:22:05,894 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 21:22:05,894 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2ae05da-9b0f-4c91-90e5-075ce62d4664 2026-02-03 21:22:05,902 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e3d7f23a-73fb-4d3f-9899-6ea727fb189b 2026-02-03 21:22:05,913 - INFO - Verified VN network id 11 for VN f2ae05da-9b0f-4c91-90e5-075ce62d4664 2026-02-03 21:22:05,913 - INFO - Verifications in API Server for VN ctest-vn4-92382415 passed 2026-02-03 21:22:05,913 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2ae05da-9b0f-4c91-90e5-075ce62d4664 2026-02-03 21:22:05,923 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e3d7f23a-73fb-4d3f-9899-6ea727fb189b 2026-02-03 21:22:05,930 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e3d7f23a-73fb-4d3f-9899-6ea727fb189b 2026-02-03 21:22:05,936 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e9c18afb-8261-45e5-a1ec-c67f8c6880c7 2026-02-03 21:22:05,947 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65849339:ctest-vn4-92382415', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65849339', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17486920839588695185', 'uuid-lslong': '10440759406708475492'}, 'enable': 'true', 'created': '2026-02-03T21:22:04', 'last-modified': '2026-02-03T21:22:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.689292'} 2026-02-03 21:22:05,955 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 21:22:05,955 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-92382415 passed 2026-02-03 21:22:05,955 - DEBUG - ====Verifying policy data for ctest-vn4-92382415 in API_Server ====== 2026-02-03 21:22:05,955 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-03 21:22:05,959 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a165745d-cff5-44b6-8482-90b1e869727a 2026-02-03 21:22:05,968 - DEBUG - Requesting: http://10.0.0.50:8082/project/5f251e86-3d84-405b-b040-3875a4feb309 2026-02-03 21:22:06,041 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f2ae05da-9b0f-4c91-90e5-075ce62d4664 2026-02-03 21:22:06,049 - DEBUG - ==>Verifying data for policy with id: 896eb66b-e4bd-4481-aa78-49d2927defe3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65849339', 'ctest-policy1-41466217'] 2026-02-03 21:22:06,050 - INFO - VN ctest-vn4-92382415 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-03 21:22:06,050 - DEBUG - Verifying the vn in opserver 2026-02-03 21:22:06,050 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65849339:ctest-vn4-92382415 virtual network link through opserver 10.0.0.50 2026-02-03 21:22:06,050 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-03 21:22:06,340 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-03 21:22:06,394 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65849339:ctest-vn4-92382415', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65849339:ctest-vn4-92382415?flat'} 2026-02-03 21:22:06,394 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65849339:ctest-vn4-92382415 is found in opserver 2026-02-03 21:22:06,402 - DEBUG - Do not have enough data to verify VN in agent 2026-02-03 21:22:06,406 - DEBUG - VRF ids for VN ctest-vn4-92382415: {} 2026-02-03 21:22:06,406 - DEBUG - ====Verifying data for ctest-policy1-41466217 in API_Server ====== 2026-02-03 21:22:06,407 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-03 21:22:06,411 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a165745d-cff5-44b6-8482-90b1e869727a 2026-02-03 21:22:06,420 - DEBUG - Requesting: http://10.0.0.50:8082/project/5f251e86-3d84-405b-b040-3875a4feb309 2026-02-03 21:22:06,485 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/896eb66b-e4bd-4481-aa78-49d2927defe3 2026-02-03 21:22:06,493 - INFO - Verified policy ctest-policy1-41466217 in API Server, Result: True 2026-02-03 21:22:06,494 - INFO - Done with setup and verification, moving onto test .. 2026-02-03 21:22:06,500 - INFO - Deleting VN ctest-vn4-92382415 2026-02-03 21:22:06,631 - DEBUG - Response for deleting network () 2026-02-03 21:22:06,631 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e3d7f23a-73fb-4d3f-9899-6ea727fb189b 2026-02-03 21:22:06,636 - DEBUG - Response Code: 404 2026-02-03 21:22:06,636 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-03 21:22:06,641 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a165745d-cff5-44b6-8482-90b1e869727a 2026-02-03 21:22:06,695 - DEBUG - Requesting: http://10.0.0.50:8082/project/5f251e86-3d84-405b-b040-3875a4feb309 2026-02-03 21:22:06,764 - INFO - Validated that VN ctest-vn4-92382415 is not found in API Server 2026-02-03 21:22:06,775 - DEBUG - VN ctest-vn4-92382415 is not present in Agent 10.0.0.50 2026-02-03 21:22:06,775 - INFO - Validated that VN ctest-vn4-92382415 is not in any agent 2026-02-03 21:22:06,787 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-92382415 info 2026-02-03 21:22:06,814 - INFO - Deleted policy ctest-policy1-41466217 2026-02-03 21:22:06,974 - DEBUG - policy ctest-policy1-41466217 is not found in API Server 2026-02-03 21:22:07,241 - DEBUG - No XMPP flaps were noticed during the test 2026-02-03 21:22:07,241 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-03 21:22:07,242 - INFO - -------------------------------------------------------------------------------- 2026-02-03 21:22:07,523 - DEBUG - No XMPP flaps were noticed during the test 2026-02-03 21:22:07,523 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-03 21:22:07,523 - INFO - -------------------------------------------------------------------------------- 2026-02-03 21:22:08,207 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-65849339, ID : 5f251e86-3d84-405b-b040-3875a4feb309