2026-02-26 02:01:47,389 - INFO - Domain Default found not creating 2026-02-26 02:01:47,564 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-19578895 not found, creating it 2026-02-26 02:01:48,037 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-19578895, ID : 8ae70638-bf98-45c4-a944-255f4a66b4ca 2026-02-26 02:01:49,527 - INFO - ================================================================================ 2026-02-26 02:01:49,528 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-26 02:01:49,780 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-02-26 02:01:49,780 - INFO - Initial checks done. Running the testcase now 2026-02-26 02:01:49,780 - INFO - 2026-02-26 02:01:49,780 - INFO - ================================================================================ 2026-02-26 02:01:49,780 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-26 02:01:49,780 - 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 02:01:50,067 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-02-26 02:01:50,067 - INFO - Initial checks done. Running the testcase now 2026-02-26 02:01:50,067 - INFO - 2026-02-26 02:01:50,433 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19578895:ctest-vn4-18754314, 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-19578895:ctest-vn4-18754314, 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-19578895:ctest-vn4-18754314, 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-19578895:ctest-vn4-18754314, 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 02:01:50,945 - DEBUG - Response for create_network : {'network': {'id': '6cd722bd-a4e2-4278-b3ed-38a401856716', 'name': 'ctest-vn4-18754314', 'tenant_id': '8ae70638bf9845c4a944255f4a66b4ca', 'project_id': '8ae70638bf9845c4a944255f4a66b4ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19578895', 'ctest-vn4-18754314'], 'port_security_enabled': True, 'description': ''}} 2026-02-26 02:01:51,095 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7953cf7-7aa3-4f7a-bf00-6faef4c0aa13', 'name': '', 'tenant_id': '8ae70638bf9845c4a944255f4a66b4ca', 'network_id': '6cd722bd-a4e2-4278-b3ed-38a401856716', 'ip_version': 4, 'cidr': '204.206.90.128/26', 'allocation_pools': [{'start': '204.206.90.130', 'end': '204.206.90.190'}], 'gateway_ip': '204.206.90.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.206.90.130', 'tags': [], 'project_id': '8ae70638bf9845c4a944255f4a66b4ca'}} 2026-02-26 02:01:51,297 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eaf30ab4-fe4b-47d9-b5ef-3d599e77c383', 'name': '', 'tenant_id': '8ae70638bf9845c4a944255f4a66b4ca', 'network_id': '6cd722bd-a4e2-4278-b3ed-38a401856716', 'ip_version': 6, 'cidr': '317b:6bcb:930c:e484:c1db:6303::/96', 'allocation_pools': [{'start': '317b:6bcb:930c:e484:c1db:6303:0:2', 'end': '317b:6bcb:930c:e484:c1db:6303:ffff:fffe'}], 'gateway_ip': '317b:6bcb:930c:e484:c1db:6303:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '317b:6bcb:930c:e484:c1db:6303:0:2', 'tags': [], 'project_id': '8ae70638bf9845c4a944255f4a66b4ca'}} 2026-02-26 02:01:51,319 - INFO - Created VN ctest-vn4-18754314 2026-02-26 02:01:51,370 - DEBUG - VN ctest-vn4-18754314 UUID is 6cd722bd-a4e2-4278-b3ed-38a401856716 2026-02-26 02:01:51,578 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6cd722bd-a4e2-4278-b3ed-38a401856716', 'name': 'ctest-vn4-18754314', 'tenant_id': '8ae70638bf9845c4a944255f4a66b4ca', 'project_id': '8ae70638bf9845c4a944255f4a66b4ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d7953cf7-7aa3-4f7a-bf00-6faef4c0aa13', 'eaf30ab4-fe4b-47d9-b5ef-3d599e77c383'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19578895', 'ctest-vn4-18754314'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19578895', 'ctest-policy1-06744423']], 'subnet_ipam': [{'subnet_cidr': '204.206.90.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '317b:6bcb:930c:e484:c1db:6303::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-26 02:01:51,742 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-26 02:01:52,032 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-26 02:01:52,067 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e0bad988-196d-4f23-80db-d8d68d99880f 2026-02-26 02:01:52,079 - DEBUG - Requesting: http://10.0.0.242:8082/project/8ae70638-bf98-45c4-a944-255f4a66b4ca 2026-02-26 02:01:52,154 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6cd722bd-a4e2-4278-b3ed-38a401856716 2026-02-26 02:01:52,165 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6cd722bd-a4e2-4278-b3ed-38a401856716 2026-02-26 02:01:52,174 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/1248fae4-4d4d-416a-b87e-e0756d730e51 2026-02-26 02:01:52,181 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/1248fae4-4d4d-416a-b87e-e0756d730e51 2026-02-26 02:01:52,187 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8affa72d-f5eb-485b-b79f-a6f2e11b4930 2026-02-26 02:01:52,192 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 02:01:52,192 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6cd722bd-a4e2-4278-b3ed-38a401856716 2026-02-26 02:01:52,201 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/1248fae4-4d4d-416a-b87e-e0756d730e51 2026-02-26 02:01:52,216 - INFO - Verified VN network id 12 for VN 6cd722bd-a4e2-4278-b3ed-38a401856716 2026-02-26 02:01:52,216 - INFO - Verifications in API Server for VN ctest-vn4-18754314 passed 2026-02-26 02:01:52,217 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6cd722bd-a4e2-4278-b3ed-38a401856716 2026-02-26 02:01:52,225 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/1248fae4-4d4d-416a-b87e-e0756d730e51 2026-02-26 02:01:52,231 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/1248fae4-4d4d-416a-b87e-e0756d730e51 2026-02-26 02:01:52,237 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8affa72d-f5eb-485b-b79f-a6f2e11b4930 2026-02-26 02:01:52,250 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19578895:ctest-vn4-18754314', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-19578895', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7842775473999463032', 'uuid-lslong': '12965081179320837910'}, 'enable': 'true', 'created': '2026-02-26T02:01:50', 'last-modified': '2026-02-26T02:01:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694277'} 2026-02-26 02:01:52,256 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 02:01:52,256 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-18754314 passed 2026-02-26 02:01:52,256 - DEBUG - ====Verifying policy data for ctest-vn4-18754314 in API_Server ====== 2026-02-26 02:01:52,256 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-26 02:01:52,261 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e0bad988-196d-4f23-80db-d8d68d99880f 2026-02-26 02:01:52,271 - DEBUG - Requesting: http://10.0.0.242:8082/project/8ae70638-bf98-45c4-a944-255f4a66b4ca 2026-02-26 02:01:52,341 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6cd722bd-a4e2-4278-b3ed-38a401856716 2026-02-26 02:01:52,351 - DEBUG - ==>Verifying data for policy with id: 645e4542-5e36-4c35-944a-6af1fea0ccd4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19578895', 'ctest-policy1-06744423'] 2026-02-26 02:01:52,351 - INFO - VN ctest-vn4-18754314 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-26 02:01:52,351 - DEBUG - Verifying the vn in opserver 2026-02-26 02:01:52,351 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19578895:ctest-vn4-18754314 virtual network link through opserver 10.0.0.242 2026-02-26 02:01:52,351 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-26 02:01:52,646 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-26 02:01:52,709 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19578895:ctest-vn4-18754314', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19578895:ctest-vn4-18754314?flat'} 2026-02-26 02:01:52,709 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19578895:ctest-vn4-18754314 is found in opserver 2026-02-26 02:01:52,718 - DEBUG - Do not have enough data to verify VN in agent 2026-02-26 02:01:52,723 - DEBUG - VRF ids for VN ctest-vn4-18754314: {} 2026-02-26 02:01:52,723 - DEBUG - ====Verifying data for ctest-policy1-06744423 in API_Server ====== 2026-02-26 02:01:52,723 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-26 02:01:52,728 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e0bad988-196d-4f23-80db-d8d68d99880f 2026-02-26 02:01:52,738 - DEBUG - Requesting: http://10.0.0.242:8082/project/8ae70638-bf98-45c4-a944-255f4a66b4ca 2026-02-26 02:01:52,811 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/645e4542-5e36-4c35-944a-6af1fea0ccd4 2026-02-26 02:01:52,820 - INFO - Verified policy ctest-policy1-06744423 in API Server, Result: True 2026-02-26 02:01:52,820 - INFO - Done with setup and verification, moving onto test .. 2026-02-26 02:01:52,827 - INFO - Deleting VN ctest-vn4-18754314 2026-02-26 02:01:52,935 - DEBUG - Response for deleting network () 2026-02-26 02:01:52,936 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/1248fae4-4d4d-416a-b87e-e0756d730e51 2026-02-26 02:01:52,941 - DEBUG - Response Code: 404 2026-02-26 02:01:52,941 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-26 02:01:52,946 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e0bad988-196d-4f23-80db-d8d68d99880f 2026-02-26 02:01:53,000 - DEBUG - Requesting: http://10.0.0.242:8082/project/8ae70638-bf98-45c4-a944-255f4a66b4ca 2026-02-26 02:01:53,071 - INFO - Validated that VN ctest-vn4-18754314 is not found in API Server 2026-02-26 02:01:53,082 - DEBUG - VN ctest-vn4-18754314 is not present in Agent 10.0.0.242 2026-02-26 02:01:53,082 - INFO - Validated that VN ctest-vn4-18754314 is not in any agent 2026-02-26 02:01:53,095 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-18754314 info 2026-02-26 02:01:53,125 - INFO - Deleted policy ctest-policy1-06744423 2026-02-26 02:01:53,290 - DEBUG - policy ctest-policy1-06744423 is not found in API Server 2026-02-26 02:01:53,558 - DEBUG - No XMPP flaps were noticed during the test 2026-02-26 02:01:53,558 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-26 02:01:53,558 - INFO - -------------------------------------------------------------------------------- 2026-02-26 02:01:53,841 - DEBUG - No XMPP flaps were noticed during the test 2026-02-26 02:01:53,841 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-26 02:01:53,841 - INFO - -------------------------------------------------------------------------------- 2026-02-26 02:01:54,531 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-19578895, ID : 8ae70638-bf98-45c4-a944-255f4a66b4ca