ECS: Errore 40019 (http: 409): Il namespace non è vuoto. Il namespace non può essere eliminato in quanto non è vuoto
Summary: Questo articolo della knowledgebase spiega perché un utente non è in grado di eliminare un namespace.
Symptoms
Durante l'eliminazione del namespace dall'interfaccia utente, viene visualizzato questo avviso:Error 40019 (http: 409): Namespace not empty. Namespace cannot be deleted as its not empty. Please make sure all users and buckets are deleted from the namespace.
Cause
L'utente utilizza utenti di oggetti legacy, non utilizza IAM (Identity and Access Management) e non ha eliminato tutti gli utenti e i bucket associati al namespace.
Scenario 2
L'utente utilizza entità IAM insieme a utenti di oggetti legacy e non ha eliminato tutte le entità IAM associate al namespace (utenti, ruoli, gruppi, policy IAM).
Resolution
Scenario 1
1: utilizzare il comando svc_bucket list | grep <namespace name> Per visualizzare che nessun bucket è associato a questo namespace.
2: utilizzare il comando svc_user list | grep <namespace name> per vedere nessun utente è ancora associato a questo namespace.
3: Una volta rimossi tutti gli utenti e i bucket di oggetti legacy dal namespace, procedere con l'eliminazione nell'interfaccia utente.
Scenario 2
1: utilizzare il comando svc_bucket list | grep <namespace name> Per visualizzare che nessun bucket è associato a questo namespace.
2: utilizzare il comando svc_user list | grep <namespace name> per vedere nessun utente è ancora associato a questo namespace.
3: Cercare nei registri l'errore riportato di seguito per verificare che l'utente utilizzi entità IAM:# svc_log -f "Error 40019" -sr all -n all -sf -start "1 day ago"
169.254.1.1 ecsportalsvc.log.20221209-123634.gz 2022-12-27 09:32:59,779 [play-thread-11] ERROR Logger.java (line 608) Error 40019 (http: 409): Namespace not empty. Namespace cannot be deleted as its not empty. Please make sure all users and buckets are deleted from the namespace com.emc.ecs.client.exceptions.ServiceErrorException: Error 40019 (http: 409): Namespace not empty. Namespace cannot be deleted as its not empty. Please make sure all users and buckets are deleted from the namespace
# svc_log -f "namespace1" -sr objcontrolsvc -n all -sf | grep ERROR -A5 -B5
169.254.1.1 objcontrolsvc.log 2022-12-27T12:33:18,628 [qtp483722291-1018448-d4714582:17dcfd4591d:76a8b:1b1] ERROR ResourceClient.java (line 331) request id d4714582:17dcfd4591d:76a8b:1bc, command type REQUEST_NAMESPACE_DELETE failed with error code ERROR_NAMESPACE_NOT_EMPTY and message 'Namespace schemaType NAMESPACE_KEY namespaceId namespace1 has iam entities associated with it'
4: Una volta individuato questo errore, l'utente utilizza entità IAM con questo namespace. L'utente deve rimuovere tutte le entità IAM associate a questo namespace utilizzando l'utente root nell'interfaccia utente (utenti, ruoli, gruppi e policy definite dall'utente).
5: Una volta rimossi tutti gli utenti, i bucket e le entità IAM degli oggetti legacy dal namespace, procedere con l'eliminazione nell'interfaccia utente di