VCF Automation 9.1
This problem is due to 10 min TTL cache on ccs service.
ccs service holds a cache that maps the project name to project id.
It has a 10-min TTL or performs a refresh when validating a project name it does not yet have.
When project was deleted and later recreated, this ccs cache was not invalidated since the lifecycle is driven by project-service.
Tenant manager follows by deleting and creating the assignments.
In the customer scenario, project was deleted and a new one was created with the same name.
The new Namespace was created before the project mapping cache was refreshed which hence held the stale id.
Namespace was created with the deleted id and tenant manager service rejected the request immediately.
This is by design.
1. Wait some time for creating new project which has same name with old(deleted) one.
2. If you already experience this issue and want to delete namespace which status is in 'Error' then wait 1 or 2 hours and try to delete it again.
If you can't delete failed namespace even after you wait for long time, please open a case from Broadcom Support.