2026-01-28 21:11:40,359 - INFO - Domain Default found not creating 2026-01-28 21:11:40,569 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-91880463 not found, creating it 2026-01-28 21:11:41,046 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-91880463, ID : 9c7c6f99-a776-4093-a3d1-aaef05f754ec 2026-01-28 21:11:43,262 - INFO - ================================================================================ 2026-01-28 21:11:43,262 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 21:11:43,523 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.25': '0'}} with 2026-01-28 21:11:43,524 - INFO - Initial checks done. Running the testcase now 2026-01-28 21:11:43,524 - INFO - 2026-01-28 21:11:43,524 - INFO - ================================================================================ 2026-01-28 21:11:43,524 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 21:11:43,524 - 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-01-28 21:11:43,818 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.25': '0'}} with 2026-01-28 21:11:43,819 - INFO - Initial checks done. Running the testcase now 2026-01-28 21:11:43,819 - INFO - 2026-01-28 21:11:44,138 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91880463:ctest-vn4-02788098, 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-91880463:ctest-vn4-02788098, 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-91880463:ctest-vn4-02788098, 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-91880463:ctest-vn4-02788098, 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-01-28 21:11:44,656 - DEBUG - Response for create_network : {'network': {'id': 'd7a2fc85-d7da-4606-ad08-8716d9b92246', 'name': 'ctest-vn4-02788098', 'tenant_id': '9c7c6f99a7764093a3d1aaef05f754ec', 'project_id': '9c7c6f99a7764093a3d1aaef05f754ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91880463', 'ctest-vn4-02788098'], 'port_security_enabled': True, 'description': ''}} 2026-01-28 21:11:44,810 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e16a96a4-5101-4fab-bc57-7ed9c01af754', 'name': '', 'tenant_id': '9c7c6f99a7764093a3d1aaef05f754ec', 'network_id': 'd7a2fc85-d7da-4606-ad08-8716d9b92246', 'ip_version': 4, 'cidr': '90.224.35.192/26', 'allocation_pools': [{'start': '90.224.35.194', 'end': '90.224.35.254'}], 'gateway_ip': '90.224.35.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.224.35.194', 'tags': [], 'project_id': '9c7c6f99a7764093a3d1aaef05f754ec'}} 2026-01-28 21:11:45,013 - DEBUG - Response for create_subnet : {'subnet': {'id': '1bdee6a7-cf93-4c87-b0d5-bdad4eb16466', 'name': '', 'tenant_id': '9c7c6f99a7764093a3d1aaef05f754ec', 'network_id': 'd7a2fc85-d7da-4606-ad08-8716d9b92246', 'ip_version': 6, 'cidr': '33a8:d3ef:8593:7557:a62e:e909::/96', 'allocation_pools': [{'start': '33a8:d3ef:8593:7557:a62e:e909:0:2', 'end': '33a8:d3ef:8593:7557:a62e:e909:ffff:fffe'}], 'gateway_ip': '33a8:d3ef:8593:7557:a62e:e909:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33a8:d3ef:8593:7557:a62e:e909:0:2', 'tags': [], 'project_id': '9c7c6f99a7764093a3d1aaef05f754ec'}} 2026-01-28 21:11:45,032 - INFO - Created VN ctest-vn4-02788098 2026-01-28 21:11:45,086 - DEBUG - VN ctest-vn4-02788098 UUID is d7a2fc85-d7da-4606-ad08-8716d9b92246 2026-01-28 21:11:45,293 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd7a2fc85-d7da-4606-ad08-8716d9b92246', 'name': 'ctest-vn4-02788098', 'tenant_id': '9c7c6f99a7764093a3d1aaef05f754ec', 'project_id': '9c7c6f99a7764093a3d1aaef05f754ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e16a96a4-5101-4fab-bc57-7ed9c01af754', '1bdee6a7-cf93-4c87-b0d5-bdad4eb16466'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91880463', 'ctest-vn4-02788098'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91880463', 'ctest-policy1-86073481']], 'subnet_ipam': [{'subnet_cidr': '90.224.35.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33a8:d3ef:8593:7557:a62e:e909::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-28 21:11:45,461 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-28 21:11:45,764 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-28 21:11:45,801 - DEBUG - Requesting: http://10.0.0.242:8082/domain/a31b1a39-d592-4763-9c1e-78138a49fb25 2026-01-28 21:11:45,813 - DEBUG - Requesting: http://10.0.0.242:8082/project/9c7c6f99-a776-4093-a3d1-aaef05f754ec 2026-01-28 21:11:45,896 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/d7a2fc85-d7da-4606-ad08-8716d9b92246 2026-01-28 21:11:45,907 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/d7a2fc85-d7da-4606-ad08-8716d9b92246 2026-01-28 21:11:45,914 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/9a0185d5-fe07-4641-89d0-e0f6552a0160 2026-01-28 21:11:45,921 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/9a0185d5-fe07-4641-89d0-e0f6552a0160 2026-01-28 21:11:45,927 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/23a44358-30e5-40df-bbec-0cc82cf90986 2026-01-28 21:11:45,933 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 21:11:45,933 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/d7a2fc85-d7da-4606-ad08-8716d9b92246 2026-01-28 21:11:45,940 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/9a0185d5-fe07-4641-89d0-e0f6552a0160 2026-01-28 21:11:45,951 - INFO - Verified VN network id 11 for VN d7a2fc85-d7da-4606-ad08-8716d9b92246 2026-01-28 21:11:45,951 - INFO - Verifications in API Server for VN ctest-vn4-02788098 passed 2026-01-28 21:11:45,951 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/d7a2fc85-d7da-4606-ad08-8716d9b92246 2026-01-28 21:11:45,959 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/9a0185d5-fe07-4641-89d0-e0f6552a0160 2026-01-28 21:11:45,964 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/9a0185d5-fe07-4641-89d0-e0f6552a0160 2026-01-28 21:11:45,970 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/23a44358-30e5-40df-bbec-0cc82cf90986 2026-01-28 21:11:45,979 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91880463:ctest-vn4-02788098', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-91880463', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15538259316163888646', 'uuid-lslong': '12468364100587037254'}, 'enable': 'true', 'created': '2026-01-28T21:11:44', 'last-modified': '2026-01-28T21:11:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.709501'} 2026-01-28 21:11:45,984 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 21:11:45,984 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-02788098 passed 2026-01-28 21:11:45,984 - DEBUG - ====Verifying policy data for ctest-vn4-02788098 in API_Server ====== 2026-01-28 21:11:45,984 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-28 21:11:45,989 - DEBUG - Requesting: http://10.0.0.242:8082/domain/a31b1a39-d592-4763-9c1e-78138a49fb25 2026-01-28 21:11:45,997 - DEBUG - Requesting: http://10.0.0.242:8082/project/9c7c6f99-a776-4093-a3d1-aaef05f754ec 2026-01-28 21:11:46,062 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/d7a2fc85-d7da-4606-ad08-8716d9b92246 2026-01-28 21:11:46,071 - DEBUG - ==>Verifying data for policy with id: bc462b68-1e8b-4c3e-beab-8539e6fda63a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91880463', 'ctest-policy1-86073481'] 2026-01-28 21:11:46,071 - INFO - VN ctest-vn4-02788098 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-28 21:11:46,071 - DEBUG - Verifying the vn in opserver 2026-01-28 21:11:46,071 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91880463:ctest-vn4-02788098 virtual network link through opserver 10.0.0.242 2026-01-28 21:11:46,071 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-28 21:11:46,364 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-28 21:11:46,420 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91880463:ctest-vn4-02788098', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91880463:ctest-vn4-02788098?flat'} 2026-01-28 21:11:46,420 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91880463:ctest-vn4-02788098 is found in opserver 2026-01-28 21:11:46,429 - DEBUG - Do not have enough data to verify VN in agent 2026-01-28 21:11:46,433 - DEBUG - VRF ids for VN ctest-vn4-02788098: {} 2026-01-28 21:11:46,433 - DEBUG - ====Verifying data for ctest-policy1-86073481 in API_Server ====== 2026-01-28 21:11:46,433 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-28 21:11:46,437 - DEBUG - Requesting: http://10.0.0.242:8082/domain/a31b1a39-d592-4763-9c1e-78138a49fb25 2026-01-28 21:11:46,445 - DEBUG - Requesting: http://10.0.0.242:8082/project/9c7c6f99-a776-4093-a3d1-aaef05f754ec 2026-01-28 21:11:46,518 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/bc462b68-1e8b-4c3e-beab-8539e6fda63a 2026-01-28 21:11:46,526 - INFO - Verified policy ctest-policy1-86073481 in API Server, Result: True 2026-01-28 21:11:46,526 - INFO - Done with setup and verification, moving onto test .. 2026-01-28 21:11:46,532 - INFO - Deleting VN ctest-vn4-02788098 2026-01-28 21:11:46,647 - DEBUG - Response for deleting network () 2026-01-28 21:11:46,647 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/9a0185d5-fe07-4641-89d0-e0f6552a0160 2026-01-28 21:11:46,652 - DEBUG - Response Code: 404 2026-01-28 21:11:46,652 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-28 21:11:46,656 - DEBUG - Requesting: http://10.0.0.242:8082/domain/a31b1a39-d592-4763-9c1e-78138a49fb25 2026-01-28 21:11:46,706 - DEBUG - Requesting: http://10.0.0.242:8082/project/9c7c6f99-a776-4093-a3d1-aaef05f754ec 2026-01-28 21:11:46,772 - INFO - Validated that VN ctest-vn4-02788098 is not found in API Server 2026-01-28 21:11:46,781 - DEBUG - VN ctest-vn4-02788098 is not present in Agent 10.0.0.242 2026-01-28 21:11:46,781 - INFO - Validated that VN ctest-vn4-02788098 is not in any agent 2026-01-28 21:11:46,795 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-02788098 info 2026-01-28 21:11:46,823 - INFO - Deleted policy ctest-policy1-86073481 2026-01-28 21:11:46,989 - DEBUG - policy ctest-policy1-86073481 is not found in API Server 2026-01-28 21:11:47,242 - DEBUG - No XMPP flaps were noticed during the test