Symptoms

Periodic task "Synchronize resource usage for APS application instance #XXXX (Azure Cloud Solution Provider)" fails with an exception:

Could not get resource usage for resource with UUID 'da82fbf2-aa4e-4ead-974f-78705fbdbf58': '500 Internal Server Error' received from 'GET https://192.168.10.10:10443/azure/aps/tenants/da82fbf2-aa4e-4ead-974f-78705fbdbf58': The tenant unexpectedly disappeared from the database. This might be an error in the application. Please contact the support.

with an exception in azure.log

2021-06-03 23:32:36,469 ERROR [com.odin.azure.server.ErrorsHandler] (azure task-90) <APS-APP> Error: com.odin.azure.model.exceptions.NotFoundException: The tenant unexpectedly disappeared from the database. This might be an error in the application. Please contact the support.
 at com.odin.azure.model.Tenant.getTenantData(Tenant.java:1504) [azure-endpoint-model-7.7.4-13.jar:7.7.4-13]
...
.....
2021-06-03 23:32:36,479 ERROR [com.odin.azure.server.ErrorsHandler] (azure task-90) <APS-APP> Error details: Cannot find a tenant with the identifier 'da82fbf2-aa4e-4ead-974f-78705fbdbf58' in the local database

where APS resource "da82fbf2-aa4e-4ead-974f-78705fbdbf58" is an Azure Tenant aps resource in "provisioning" stage.


Cause

Software related issue APSA-23691 "Filter out not provisioned tenants during usage gathering".

The application is trying to synchronize usage for Azure Tenant, which is in not ready.

Resolution

Wait for the Sales Order will be completed and Azure Tenant will be created.

Please contact your Technical Account Manager to clarify status of the bug.