When attempting to uninstall a content pack in Aria Operations for Logs, the UI reports the following error:
Uninstalling Content Pack failed. Request failed 440 (client error 440)
The following error is seen in the log file /storage/core/loginsight/var/ui_runtime.log["https-openssl-apr-443-exec-10"/<IP Address> WARN] [com.vmware.loginsight.web.actions.misc.ContentPackActionBean] [Content pack 'com.vmware.vra.73' takes a long time to check for dependencies.]
["https-openssl-apr-443-exec-9"/<IP Address> ERROR] [com.vmware.loginsight.web.actions.misc.ContentPackActionBean] [Uninstalling content pack failed, com.vmware.vra.73]
com.vmware.loginsight.api.ApiException: Request failed. 440: Client Error (440)
at com.vmware.loginsight.api.ApiClient.handleNotSuccessfulResponse(ApiClient.java:616) ~[webservice-lib.jar:?]
at com.vmware.loginsight.api.ApiClient.request(ApiClient.java:469) ~[webservice-lib.jar:?]
at com.vmware.loginsight.api.ApiClient.request(ApiClient.java:358) ~[webservice-lib.jar:?]
[...]
This is a known issue under investigation under VMware by Broadcom engineering
As a workaround, the content packs can be deleted via API:
1. From an API client, run a POST to https://[Logs IP]:9543/api/v2/sessions
with the request body:
{
"username":"admin",
"password": "[admin_password]",
"provider":"Local"
}
Replace [Logs IP] and [admin_password] with correct values beforehand
2. Copy the session ID value from the response
3. From an API client, run a DELETE against https://[Logs IP]:9543/api/v2/content/contentpack/[content pack namespace]
add Authorization header with following value "Bearer [session ID from previous call]"
Observe the status code. If it is 200 OK, then the content pack should be removed from the system and not appear in the UI as well. The change should take effect immediately.
Note: If you do not know the content pack namespace, you can run a GET against https://[Logs IP]:9543/api/v2/content/contentpack/ to list all content packs and their namespaces registered with Log Insight