Namespace is created in error state after deleting and recreating project with same name.
search cancel

Namespace is created in error state after deleting and recreating project with same name.

book

Article ID: 445820

calendar_today

Updated On:

Products

VCF Automation

Issue/Introduction

  • Recreate project right after delete it.

  • Create namespace on this new project within 10 min after deleted.

  • Namespace status is showing as 'Error' with error like Project does not exist.


  • When you try to delete this namespace, the task does not run with error like below.

Environment

VCF Automation 9.1

Cause

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.

Resolution

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.