Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A new cluster with the same name is not created during deletion of old one #134

Open
olegvn88 opened this issue Jun 26, 2018 · 1 comment

Comments

@olegvn88
Copy link

A new cluster with the same name is not created during deletion of old one. The previous one works with 0 workers.

Preconditions:
At least one cluster should be created.

Steps to reproduce:

To delete cluster:

  1. Open the Oshinko Spark Cluster Management home page.
  2. Click on the "Actions" button.
  3. Click on the "Delete Cluster" button, and click on the "Delete" button in the opened window window and immediately go to the next step.

To create a new one cluster with the same name:

  1. Click on "Deploy" button.
  2. Input Name of the cluster.
  3. Input the "Number of workers" value equals 2.
  4. Click on "Deploy" button.

Actual result: We've got an error message "object is being deleted: deploymentconfigs "sparkcluster-w" already exists", the old one cluster runs with 0 workers

Expected result: A new cluster must be created with 2 workers.

@crobby
Copy link
Member

crobby commented Sep 21, 2018

I think the actual behaviour we want here is to not be able to create a new cluster with the same name as an existing one until all of the original cluster is gone away. I think that would be consistent with typical behaviour in openshift. The webui should, before trying to create the new cluster, check to be sure that all of the objects needed will be able to be created without a name collision. If there is a naming collision, we should pass that back to the user. They can either wait or try a different name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants