red-hat-storage / ocs-ci

https://ocs-ci.readthedocs.io/en/latest/
MIT License
108 stars 166 forks source link

Check searching for already existing clusters with the same prefix fails when old cluster has been just destroyed #798

Closed mbukatov closed 5 years ago

mbukatov commented 5 years ago

When I execute a teardown a cluster and then immediately deploy a new one, new check searching for already existing clusters with the same prefix fails:

E               ocs_ci.ocs.exceptions.SameNamePrefixClusterAlreadyExistsException: Cluster with name prefix mbukatov* already exists. Please destroy the existing cluster for a new cluster deployment
ebenahar commented 5 years ago

@mbukatov we can check for the status of the instances and in case they are 'Terminating', allow deployment. WDYT?

mbukatov commented 5 years ago

@ebenahar That could help.