2026-03-25 13:06:00,383 - INFO - Domain Default found not creating 2026-03-25 13:06:00,579 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06252321 not found, creating it 2026-03-25 13:06:01,029 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06252321, ID : 8fa41642-97d9-43ca-8c9b-506663441441 2026-03-25 13:06:03,166 - INFO - ================================================================================ 2026-03-25 13:06:03,166 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-25 13:06:03,423 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-03-25 13:06:03,423 - INFO - Initial checks done. Running the testcase now 2026-03-25 13:06:03,423 - INFO - 2026-03-25 13:06:03,424 - INFO - ================================================================================ 2026-03-25 13:06:03,424 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-25 13:06:03,424 - 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-03-25 13:06:03,715 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-03-25 13:06:03,715 - INFO - Initial checks done. Running the testcase now 2026-03-25 13:06:03,715 - INFO - 2026-03-25 13:06:04,068 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06252321:ctest-vn4-52234602, 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-06252321:ctest-vn4-52234602, 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-06252321:ctest-vn4-52234602, 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-06252321:ctest-vn4-52234602, 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-03-25 13:06:04,573 - DEBUG - Response for create_network : {'network': {'id': '4727d6fe-6c5b-4257-94d0-ddfaabeb1cd3', 'name': 'ctest-vn4-52234602', 'tenant_id': '8fa4164297d943ca8c9b506663441441', 'project_id': '8fa4164297d943ca8c9b506663441441', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06252321', 'ctest-vn4-52234602'], 'port_security_enabled': True, 'description': ''}} 2026-03-25 13:06:04,718 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c142990-f436-4f06-b326-5d58119ef6f1', 'name': '', 'tenant_id': '8fa4164297d943ca8c9b506663441441', 'network_id': '4727d6fe-6c5b-4257-94d0-ddfaabeb1cd3', 'ip_version': 4, 'cidr': '112.165.19.128/26', 'allocation_pools': [{'start': '112.165.19.130', 'end': '112.165.19.190'}], 'gateway_ip': '112.165.19.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.165.19.130', 'tags': [], 'project_id': '8fa4164297d943ca8c9b506663441441'}} 2026-03-25 13:06:04,887 - DEBUG - Response for create_subnet : {'subnet': {'id': '1dbea5db-1cbd-4bce-8af4-d34b290e1f56', 'name': '', 'tenant_id': '8fa4164297d943ca8c9b506663441441', 'network_id': '4727d6fe-6c5b-4257-94d0-ddfaabeb1cd3', 'ip_version': 6, 'cidr': '2637:bca6:f5a5:4805:b90e:9f21::/96', 'allocation_pools': [{'start': '2637:bca6:f5a5:4805:b90e:9f21:0:2', 'end': '2637:bca6:f5a5:4805:b90e:9f21:ffff:fffe'}], 'gateway_ip': '2637:bca6:f5a5:4805:b90e:9f21:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2637:bca6:f5a5:4805:b90e:9f21:0:2', 'tags': [], 'project_id': '8fa4164297d943ca8c9b506663441441'}} 2026-03-25 13:06:04,907 - INFO - Created VN ctest-vn4-52234602 2026-03-25 13:06:04,959 - DEBUG - VN ctest-vn4-52234602 UUID is 4727d6fe-6c5b-4257-94d0-ddfaabeb1cd3 2026-03-25 13:06:05,160 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4727d6fe-6c5b-4257-94d0-ddfaabeb1cd3', 'name': 'ctest-vn4-52234602', 'tenant_id': '8fa4164297d943ca8c9b506663441441', 'project_id': '8fa4164297d943ca8c9b506663441441', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c142990-f436-4f06-b326-5d58119ef6f1', '1dbea5db-1cbd-4bce-8af4-d34b290e1f56'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06252321', 'ctest-vn4-52234602'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06252321', 'ctest-policy1-25590137']], 'subnet_ipam': [{'subnet_cidr': '112.165.19.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2637:bca6:f5a5:4805:b90e:9f21::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-25 13:06:05,322 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-25 13:06:05,618 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-25 13:06:05,648 - DEBUG - Requesting: http://10.0.0.38:8082/domain/08658db1-ecf9-4e19-9d2a-05da57c96364 2026-03-25 13:06:05,659 - DEBUG - Requesting: http://10.0.0.38:8082/project/8fa41642-97d9-43ca-8c9b-506663441441 2026-03-25 13:06:05,732 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4727d6fe-6c5b-4257-94d0-ddfaabeb1cd3 2026-03-25 13:06:05,743 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4727d6fe-6c5b-4257-94d0-ddfaabeb1cd3 2026-03-25 13:06:05,753 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/99aa45ac-c659-4ba4-963e-dbc115aedf60 2026-03-25 13:06:05,760 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/99aa45ac-c659-4ba4-963e-dbc115aedf60 2026-03-25 13:06:05,767 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1f5402cd-fb9a-472f-9cef-8e175744f12a 2026-03-25 13:06:05,774 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-25 13:06:05,774 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4727d6fe-6c5b-4257-94d0-ddfaabeb1cd3 2026-03-25 13:06:05,786 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/99aa45ac-c659-4ba4-963e-dbc115aedf60 2026-03-25 13:06:05,800 - INFO - Verified VN network id 11 for VN 4727d6fe-6c5b-4257-94d0-ddfaabeb1cd3 2026-03-25 13:06:05,800 - INFO - Verifications in API Server for VN ctest-vn4-52234602 passed 2026-03-25 13:06:05,800 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4727d6fe-6c5b-4257-94d0-ddfaabeb1cd3 2026-03-25 13:06:05,809 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/99aa45ac-c659-4ba4-963e-dbc115aedf60 2026-03-25 13:06:05,815 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/99aa45ac-c659-4ba4-963e-dbc115aedf60 2026-03-25 13:06:05,822 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1f5402cd-fb9a-472f-9cef-8e175744f12a 2026-03-25 13:06:05,833 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06252321:ctest-vn4-52234602', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06252321', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5127303089012556375', 'uuid-lslong': '10723314781465025747'}, 'enable': 'true', 'created': '2026-03-25T13:06:04', 'last-modified': '2026-03-25T13:06:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694865'} 2026-03-25 13:06:05,839 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-25 13:06:05,840 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-52234602 passed 2026-03-25 13:06:05,840 - DEBUG - ====Verifying policy data for ctest-vn4-52234602 in API_Server ====== 2026-03-25 13:06:05,840 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-25 13:06:05,845 - DEBUG - Requesting: http://10.0.0.38:8082/domain/08658db1-ecf9-4e19-9d2a-05da57c96364 2026-03-25 13:06:05,855 - DEBUG - Requesting: http://10.0.0.38:8082/project/8fa41642-97d9-43ca-8c9b-506663441441 2026-03-25 13:06:05,923 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4727d6fe-6c5b-4257-94d0-ddfaabeb1cd3 2026-03-25 13:06:05,933 - DEBUG - ==>Verifying data for policy with id: 0c247d9d-20d4-48fa-a129-db1c910e5c0a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06252321', 'ctest-policy1-25590137'] 2026-03-25 13:06:05,933 - INFO - VN ctest-vn4-52234602 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-25 13:06:05,933 - DEBUG - Verifying the vn in opserver 2026-03-25 13:06:05,933 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06252321:ctest-vn4-52234602 virtual network link through opserver 10.0.0.38 2026-03-25 13:06:05,933 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-25 13:06:06,223 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-25 13:06:06,279 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06252321:ctest-vn4-52234602', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06252321:ctest-vn4-52234602?flat'} 2026-03-25 13:06:06,279 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06252321:ctest-vn4-52234602 is found in opserver 2026-03-25 13:06:06,288 - DEBUG - Do not have enough data to verify VN in agent 2026-03-25 13:06:06,292 - DEBUG - VRF ids for VN ctest-vn4-52234602: {} 2026-03-25 13:06:06,292 - DEBUG - ====Verifying data for ctest-policy1-25590137 in API_Server ====== 2026-03-25 13:06:06,292 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-25 13:06:06,297 - DEBUG - Requesting: http://10.0.0.38:8082/domain/08658db1-ecf9-4e19-9d2a-05da57c96364 2026-03-25 13:06:06,307 - DEBUG - Requesting: http://10.0.0.38:8082/project/8fa41642-97d9-43ca-8c9b-506663441441 2026-03-25 13:06:06,374 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/0c247d9d-20d4-48fa-a129-db1c910e5c0a 2026-03-25 13:06:06,383 - INFO - Verified policy ctest-policy1-25590137 in API Server, Result: True 2026-03-25 13:06:06,383 - INFO - Done with setup and verification, moving onto test .. 2026-03-25 13:06:06,406 - INFO - Deleting VN ctest-vn4-52234602 2026-03-25 13:06:06,507 - DEBUG - Response for deleting network () 2026-03-25 13:06:06,507 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/99aa45ac-c659-4ba4-963e-dbc115aedf60 2026-03-25 13:06:06,512 - DEBUG - Response Code: 404 2026-03-25 13:06:06,512 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-25 13:06:06,516 - DEBUG - Requesting: http://10.0.0.38:8082/domain/08658db1-ecf9-4e19-9d2a-05da57c96364 2026-03-25 13:06:06,567 - DEBUG - Requesting: http://10.0.0.38:8082/project/8fa41642-97d9-43ca-8c9b-506663441441 2026-03-25 13:06:06,639 - INFO - Validated that VN ctest-vn4-52234602 is not found in API Server 2026-03-25 13:06:06,647 - DEBUG - VN ctest-vn4-52234602 is not present in Agent 10.0.0.38 2026-03-25 13:06:06,647 - INFO - Validated that VN ctest-vn4-52234602 is not in any agent 2026-03-25 13:06:06,660 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-52234602 info 2026-03-25 13:06:06,682 - INFO - Deleted policy ctest-policy1-25590137 2026-03-25 13:06:06,847 - DEBUG - policy ctest-policy1-25590137 is not found in API Server 2026-03-25 13:06:07,103 - DEBUG - No XMPP flaps were noticed during the test 2026-03-25 13:06:07,104 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-25 13:06:07,104 - INFO - -------------------------------------------------------------------------------- 2026-03-25 13:06:07,391 - DEBUG - No XMPP flaps were noticed during the test 2026-03-25 13:06:07,391 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-25 13:06:07,391 - INFO - -------------------------------------------------------------------------------- 2026-03-25 13:06:08,069 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-06252321, ID : 8fa41642-97d9-43ca-8c9b-506663441441