2026-02-26 11:12:40,966 - INFO - Domain Default found not creating 2026-02-26 11:12:41,165 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-01990043 not found, creating it 2026-02-26 11:12:41,759 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-01990043, ID : ee1866fd-fcf0-4ed6-8eef-0992b4f4384a 2026-02-26 11:12:43,268 - INFO - ================================================================================ 2026-02-26 11:12:43,268 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-26 11:12:43,541 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-02-26 11:12:43,542 - INFO - Initial checks done. Running the testcase now 2026-02-26 11:12:43,542 - INFO - 2026-02-26 11:12:43,542 - INFO - ================================================================================ 2026-02-26 11:12:43,542 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-26 11:12:43,542 - 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-26 11:12:43,829 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-02-26 11:12:43,829 - INFO - Initial checks done. Running the testcase now 2026-02-26 11:12:43,829 - INFO - 2026-02-26 11:12:44,177 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01990043:ctest-vn4-24302999, 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-01990043:ctest-vn4-24302999, 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-01990043:ctest-vn4-24302999, 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-01990043:ctest-vn4-24302999, 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-26 11:12:44,690 - DEBUG - Response for create_network : {'network': {'id': '0b63391e-7cb0-4030-90f3-b06d1d1fb701', 'name': 'ctest-vn4-24302999', 'tenant_id': 'ee1866fdfcf04ed68eef0992b4f4384a', 'project_id': 'ee1866fdfcf04ed68eef0992b4f4384a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01990043', 'ctest-vn4-24302999'], 'port_security_enabled': True, 'description': ''}} 2026-02-26 11:12:44,895 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8aac2d8-0f68-4c1e-9b42-56eb67c76f12', 'name': '', 'tenant_id': 'ee1866fdfcf04ed68eef0992b4f4384a', 'network_id': '0b63391e-7cb0-4030-90f3-b06d1d1fb701', 'ip_version': 4, 'cidr': '133.231.201.192/26', 'allocation_pools': [{'start': '133.231.201.194', 'end': '133.231.201.254'}], 'gateway_ip': '133.231.201.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.231.201.194', 'tags': [], 'project_id': 'ee1866fdfcf04ed68eef0992b4f4384a'}} 2026-02-26 11:12:45,072 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c88aa2c7-86b2-44d8-ae56-93eb62e457b5', 'name': '', 'tenant_id': 'ee1866fdfcf04ed68eef0992b4f4384a', 'network_id': '0b63391e-7cb0-4030-90f3-b06d1d1fb701', 'ip_version': 6, 'cidr': '3925:aad7:2454:e83f:428a:e81::/96', 'allocation_pools': [{'start': '3925:aad7:2454:e83f:428a:e81:0:2', 'end': '3925:aad7:2454:e83f:428a:e81:ffff:fffe'}], 'gateway_ip': '3925:aad7:2454:e83f:428a:e81:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3925:aad7:2454:e83f:428a:e81:0:2', 'tags': [], 'project_id': 'ee1866fdfcf04ed68eef0992b4f4384a'}} 2026-02-26 11:12:45,092 - INFO - Created VN ctest-vn4-24302999 2026-02-26 11:12:45,146 - DEBUG - VN ctest-vn4-24302999 UUID is 0b63391e-7cb0-4030-90f3-b06d1d1fb701 2026-02-26 11:12:45,350 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0b63391e-7cb0-4030-90f3-b06d1d1fb701', 'name': 'ctest-vn4-24302999', 'tenant_id': 'ee1866fdfcf04ed68eef0992b4f4384a', 'project_id': 'ee1866fdfcf04ed68eef0992b4f4384a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a8aac2d8-0f68-4c1e-9b42-56eb67c76f12', 'c88aa2c7-86b2-44d8-ae56-93eb62e457b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01990043', 'ctest-vn4-24302999'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01990043', 'ctest-policy1-39627982']], 'subnet_ipam': [{'subnet_cidr': '133.231.201.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3925:aad7:2454:e83f:428a:e81::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-26 11:12:45,518 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-26 11:12:45,816 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-26 11:12:45,850 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f0d66ddf-f2cb-43a4-af2c-1a3900330c77 2026-02-26 11:12:45,862 - DEBUG - Requesting: http://10.0.0.22:8082/project/ee1866fd-fcf0-4ed6-8eef-0992b4f4384a 2026-02-26 11:12:45,939 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0b63391e-7cb0-4030-90f3-b06d1d1fb701 2026-02-26 11:12:45,950 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0b63391e-7cb0-4030-90f3-b06d1d1fb701 2026-02-26 11:12:45,961 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2db80a73-30f2-4520-8119-1f23e9ce5bbd 2026-02-26 11:12:45,970 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2db80a73-30f2-4520-8119-1f23e9ce5bbd 2026-02-26 11:12:45,977 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5968794a-87ec-4b98-b5b1-6c2a21c655c5 2026-02-26 11:12:45,984 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 11:12:45,984 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0b63391e-7cb0-4030-90f3-b06d1d1fb701 2026-02-26 11:12:45,993 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2db80a73-30f2-4520-8119-1f23e9ce5bbd 2026-02-26 11:12:46,007 - INFO - Verified VN network id 11 for VN 0b63391e-7cb0-4030-90f3-b06d1d1fb701 2026-02-26 11:12:46,007 - INFO - Verifications in API Server for VN ctest-vn4-24302999 passed 2026-02-26 11:12:46,007 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0b63391e-7cb0-4030-90f3-b06d1d1fb701 2026-02-26 11:12:46,017 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2db80a73-30f2-4520-8119-1f23e9ce5bbd 2026-02-26 11:12:46,024 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2db80a73-30f2-4520-8119-1f23e9ce5bbd 2026-02-26 11:12:46,030 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5968794a-87ec-4b98-b5b1-6c2a21c655c5 2026-02-26 11:12:46,045 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01990043:ctest-vn4-24302999', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-01990043', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '820562360215289904', 'uuid-lslong': '10444885943488853761'}, 'enable': 'true', 'created': '2026-02-26T11:12:44', 'last-modified': '2026-02-26T11:12:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.719012'} 2026-02-26 11:12:46,053 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 11:12:46,053 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-24302999 passed 2026-02-26 11:12:46,053 - DEBUG - ====Verifying policy data for ctest-vn4-24302999 in API_Server ====== 2026-02-26 11:12:46,053 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-26 11:12:46,060 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f0d66ddf-f2cb-43a4-af2c-1a3900330c77 2026-02-26 11:12:46,071 - DEBUG - Requesting: http://10.0.0.22:8082/project/ee1866fd-fcf0-4ed6-8eef-0992b4f4384a 2026-02-26 11:12:46,146 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0b63391e-7cb0-4030-90f3-b06d1d1fb701 2026-02-26 11:12:46,156 - DEBUG - ==>Verifying data for policy with id: f397b55a-25a2-434d-9f91-211d8b009669, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01990043', 'ctest-policy1-39627982'] 2026-02-26 11:12:46,156 - INFO - VN ctest-vn4-24302999 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-26 11:12:46,156 - DEBUG - Verifying the vn in opserver 2026-02-26 11:12:46,156 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01990043:ctest-vn4-24302999 virtual network link through opserver 10.0.0.22 2026-02-26 11:12:46,156 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-26 11:12:46,449 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-26 11:12:46,516 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01990043:ctest-vn4-24302999', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01990043:ctest-vn4-24302999?flat'} 2026-02-26 11:12:46,516 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01990043:ctest-vn4-24302999 is found in opserver 2026-02-26 11:12:46,526 - DEBUG - Do not have enough data to verify VN in agent 2026-02-26 11:12:46,531 - DEBUG - VRF ids for VN ctest-vn4-24302999: {} 2026-02-26 11:12:46,531 - DEBUG - ====Verifying data for ctest-policy1-39627982 in API_Server ====== 2026-02-26 11:12:46,531 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-26 11:12:46,537 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f0d66ddf-f2cb-43a4-af2c-1a3900330c77 2026-02-26 11:12:46,549 - DEBUG - Requesting: http://10.0.0.22:8082/project/ee1866fd-fcf0-4ed6-8eef-0992b4f4384a 2026-02-26 11:12:46,621 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/f397b55a-25a2-434d-9f91-211d8b009669 2026-02-26 11:12:46,629 - INFO - Verified policy ctest-policy1-39627982 in API Server, Result: True 2026-02-26 11:12:46,630 - INFO - Done with setup and verification, moving onto test .. 2026-02-26 11:12:46,637 - INFO - Deleting VN ctest-vn4-24302999 2026-02-26 11:12:46,749 - DEBUG - Response for deleting network () 2026-02-26 11:12:46,750 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2db80a73-30f2-4520-8119-1f23e9ce5bbd 2026-02-26 11:12:46,755 - DEBUG - Response Code: 404 2026-02-26 11:12:46,755 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-26 11:12:46,761 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f0d66ddf-f2cb-43a4-af2c-1a3900330c77 2026-02-26 11:12:46,815 - DEBUG - Requesting: http://10.0.0.22:8082/project/ee1866fd-fcf0-4ed6-8eef-0992b4f4384a 2026-02-26 11:12:46,886 - INFO - Validated that VN ctest-vn4-24302999 is not found in API Server 2026-02-26 11:12:46,896 - DEBUG - VN ctest-vn4-24302999 is not present in Agent 10.0.0.22 2026-02-26 11:12:46,896 - INFO - Validated that VN ctest-vn4-24302999 is not in any agent 2026-02-26 11:12:46,913 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-24302999 info 2026-02-26 11:12:46,934 - INFO - Deleted policy ctest-policy1-39627982 2026-02-26 11:12:47,114 - DEBUG - policy ctest-policy1-39627982 is not found in API Server 2026-02-26 11:12:47,368 - DEBUG - No XMPP flaps were noticed during the test 2026-02-26 11:12:47,368 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-26 11:12:47,368 - INFO - -------------------------------------------------------------------------------- 2026-02-26 11:12:47,655 - DEBUG - No XMPP flaps were noticed during the test 2026-02-26 11:12:47,655 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-26 11:12:47,655 - INFO - -------------------------------------------------------------------------------- 2026-02-26 11:12:48,341 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-01990043, ID : ee1866fd-fcf0-4ed6-8eef-0992b4f4384a