2026-02-04 20:30:25,786 - INFO - Domain Default found not creating 2026-02-04 20:30:25,933 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-88562084 not found, creating it 2026-02-04 20:30:26,371 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-88562084, ID : a74a49fb-994b-4154-96cf-eef279817482 2026-02-04 20:30:27,756 - INFO - ================================================================================ 2026-02-04 20:30:27,756 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 20:30:28,009 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.17': '0'}} with 2026-02-04 20:30:28,009 - INFO - Initial checks done. Running the testcase now 2026-02-04 20:30:28,009 - INFO - 2026-02-04 20:30:28,009 - INFO - ================================================================================ 2026-02-04 20:30:28,009 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 20:30:28,009 - 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-04 20:30:28,297 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.17': '0'}} with 2026-02-04 20:30:28,297 - INFO - Initial checks done. Running the testcase now 2026-02-04 20:30:28,297 - INFO - 2026-02-04 20:30:28,637 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88562084:ctest-vn4-92866929, 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-88562084:ctest-vn4-92866929, 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-88562084:ctest-vn4-92866929, 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-88562084:ctest-vn4-92866929, 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-04 20:30:29,123 - DEBUG - Response for create_network : {'network': {'id': 'ee7b7107-6862-40cc-b997-b635f6c175c7', 'name': 'ctest-vn4-92866929', 'tenant_id': 'a74a49fb994b415496cfeef279817482', 'project_id': 'a74a49fb994b415496cfeef279817482', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88562084', 'ctest-vn4-92866929'], 'port_security_enabled': True, 'description': ''}} 2026-02-04 20:30:29,278 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a612baf-26a8-490a-af05-d3207c58a5fd', 'name': '', 'tenant_id': 'a74a49fb994b415496cfeef279817482', 'network_id': 'ee7b7107-6862-40cc-b997-b635f6c175c7', 'ip_version': 4, 'cidr': '3.84.82.64/26', 'allocation_pools': [{'start': '3.84.82.66', 'end': '3.84.82.126'}], 'gateway_ip': '3.84.82.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.84.82.66', 'tags': [], 'project_id': 'a74a49fb994b415496cfeef279817482'}} 2026-02-04 20:30:29,440 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac7dddf2-1792-4321-bd3b-881305eecf5f', 'name': '', 'tenant_id': 'a74a49fb994b415496cfeef279817482', 'network_id': 'ee7b7107-6862-40cc-b997-b635f6c175c7', 'ip_version': 6, 'cidr': '3f9f:fccf:c9dc:1732:da0e:1d37::/96', 'allocation_pools': [{'start': '3f9f:fccf:c9dc:1732:da0e:1d37:0:2', 'end': '3f9f:fccf:c9dc:1732:da0e:1d37:ffff:fffe'}], 'gateway_ip': '3f9f:fccf:c9dc:1732:da0e:1d37:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f9f:fccf:c9dc:1732:da0e:1d37:0:2', 'tags': [], 'project_id': 'a74a49fb994b415496cfeef279817482'}} 2026-02-04 20:30:29,457 - INFO - Created VN ctest-vn4-92866929 2026-02-04 20:30:29,508 - DEBUG - VN ctest-vn4-92866929 UUID is ee7b7107-6862-40cc-b997-b635f6c175c7 2026-02-04 20:30:29,686 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ee7b7107-6862-40cc-b997-b635f6c175c7', 'name': 'ctest-vn4-92866929', 'tenant_id': 'a74a49fb994b415496cfeef279817482', 'project_id': 'a74a49fb994b415496cfeef279817482', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a612baf-26a8-490a-af05-d3207c58a5fd', 'ac7dddf2-1792-4321-bd3b-881305eecf5f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88562084', 'ctest-vn4-92866929'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88562084', 'ctest-policy1-10046401']], 'subnet_ipam': [{'subnet_cidr': '3.84.82.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f9f:fccf:c9dc:1732:da0e:1d37::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-04 20:30:29,848 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-04 20:30:30,138 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-04 20:30:30,165 - DEBUG - Requesting: http://10.0.0.23:8082/domain/26d94d97-d5dc-4358-a3b7-f2370efce63d 2026-02-04 20:30:30,176 - DEBUG - Requesting: http://10.0.0.23:8082/project/a74a49fb-994b-4154-96cf-eef279817482 2026-02-04 20:30:30,245 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/ee7b7107-6862-40cc-b997-b635f6c175c7 2026-02-04 20:30:30,254 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/ee7b7107-6862-40cc-b997-b635f6c175c7 2026-02-04 20:30:30,262 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6a725941-7237-4d09-908c-77abc8597a64 2026-02-04 20:30:30,267 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6a725941-7237-4d09-908c-77abc8597a64 2026-02-04 20:30:30,272 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/36fe894f-7d52-4371-a0a9-8f68b3ee6b26 2026-02-04 20:30:30,277 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 20:30:30,278 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/ee7b7107-6862-40cc-b997-b635f6c175c7 2026-02-04 20:30:30,286 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6a725941-7237-4d09-908c-77abc8597a64 2026-02-04 20:30:30,298 - INFO - Verified VN network id 11 for VN ee7b7107-6862-40cc-b997-b635f6c175c7 2026-02-04 20:30:30,298 - INFO - Verifications in API Server for VN ctest-vn4-92866929 passed 2026-02-04 20:30:30,298 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/ee7b7107-6862-40cc-b997-b635f6c175c7 2026-02-04 20:30:30,308 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6a725941-7237-4d09-908c-77abc8597a64 2026-02-04 20:30:30,315 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6a725941-7237-4d09-908c-77abc8597a64 2026-02-04 20:30:30,321 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/36fe894f-7d52-4371-a0a9-8f68b3ee6b26 2026-02-04 20:30:30,330 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88562084:ctest-vn4-92866929', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88562084', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17184453079792238796', 'uuid-lslong': '13373357961389372871'}, 'enable': 'true', 'created': '2026-02-04T20:30:29', 'last-modified': '2026-02-04T20:30:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.671103'} 2026-02-04 20:30:30,336 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 20:30:30,336 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-92866929 passed 2026-02-04 20:30:30,336 - DEBUG - ====Verifying policy data for ctest-vn4-92866929 in API_Server ====== 2026-02-04 20:30:30,336 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-04 20:30:30,340 - DEBUG - Requesting: http://10.0.0.23:8082/domain/26d94d97-d5dc-4358-a3b7-f2370efce63d 2026-02-04 20:30:30,350 - DEBUG - Requesting: http://10.0.0.23:8082/project/a74a49fb-994b-4154-96cf-eef279817482 2026-02-04 20:30:30,414 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/ee7b7107-6862-40cc-b997-b635f6c175c7 2026-02-04 20:30:30,422 - DEBUG - ==>Verifying data for policy with id: 44c4b5d8-316e-48e3-94d8-ef46ba953fc9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88562084', 'ctest-policy1-10046401'] 2026-02-04 20:30:30,422 - INFO - VN ctest-vn4-92866929 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-04 20:30:30,422 - DEBUG - Verifying the vn in opserver 2026-02-04 20:30:30,422 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88562084:ctest-vn4-92866929 virtual network link through opserver 10.0.0.23 2026-02-04 20:30:30,423 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-04 20:30:30,713 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-04 20:30:30,767 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88562084:ctest-vn4-92866929', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88562084:ctest-vn4-92866929?flat'} 2026-02-04 20:30:30,767 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88562084:ctest-vn4-92866929 is found in opserver 2026-02-04 20:30:30,778 - DEBUG - Do not have enough data to verify VN in agent 2026-02-04 20:30:30,782 - DEBUG - VRF ids for VN ctest-vn4-92866929: {} 2026-02-04 20:30:30,783 - DEBUG - ====Verifying data for ctest-policy1-10046401 in API_Server ====== 2026-02-04 20:30:30,783 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-04 20:30:30,788 - DEBUG - Requesting: http://10.0.0.23:8082/domain/26d94d97-d5dc-4358-a3b7-f2370efce63d 2026-02-04 20:30:30,798 - DEBUG - Requesting: http://10.0.0.23:8082/project/a74a49fb-994b-4154-96cf-eef279817482 2026-02-04 20:30:30,864 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/44c4b5d8-316e-48e3-94d8-ef46ba953fc9 2026-02-04 20:30:30,874 - INFO - Verified policy ctest-policy1-10046401 in API Server, Result: True 2026-02-04 20:30:30,874 - INFO - Done with setup and verification, moving onto test .. 2026-02-04 20:30:30,881 - INFO - Deleting VN ctest-vn4-92866929 2026-02-04 20:30:30,981 - DEBUG - Response for deleting network () 2026-02-04 20:30:30,981 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/6a725941-7237-4d09-908c-77abc8597a64 2026-02-04 20:30:30,984 - DEBUG - Response Code: 404 2026-02-04 20:30:30,985 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-02-04 20:30:30,989 - DEBUG - Requesting: http://10.0.0.23:8082/domain/26d94d97-d5dc-4358-a3b7-f2370efce63d 2026-02-04 20:30:31,044 - DEBUG - Requesting: http://10.0.0.23:8082/project/a74a49fb-994b-4154-96cf-eef279817482 2026-02-04 20:30:31,114 - INFO - Validated that VN ctest-vn4-92866929 is not found in API Server 2026-02-04 20:30:31,123 - DEBUG - VN ctest-vn4-92866929 is not present in Agent 10.0.0.23 2026-02-04 20:30:31,123 - INFO - Validated that VN ctest-vn4-92866929 is not in any agent 2026-02-04 20:30:31,136 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-92866929 info 2026-02-04 20:30:31,158 - INFO - Deleted policy ctest-policy1-10046401 2026-02-04 20:30:31,320 - DEBUG - policy ctest-policy1-10046401 is not found in API Server 2026-02-04 20:30:31,573 - DEBUG - No XMPP flaps were noticed during the test