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

Intermittent: stacks/volumes rarely will fail to POST #21

Closed
bodom0015 opened this issue Apr 5, 2016 · 2 comments
Closed

Intermittent: stacks/volumes rarely will fail to POST #21

bodom0015 opened this issue Apr 5, 2016 · 2 comments
Assignees
Labels

Comments

@bodom0015
Copy link
Member

While I have not been able to reliably reproduce the behavior, I have noticed that sometimes creating a stack fails with a 404. More rarely, creating the stack is successful but creating and/or attaching its associated volumes may fail.

Obviously both cases are undesirable, but the volumes failing poses the bigger problem of leaving the user's project in a bad state: with no volumes allocated to a stack, the data will disappear when the stack is restarted. Furthermore the user is given no indication that the failure has occurred (unless they happen to be watching the Developer Console), giving them no chance to rectify the problem.

More investigation is needed as to why this issue occurs and how to prevent it.

@bodom0015 bodom0015 changed the title Intermittent: volumes rarely will fail to POST Intermittent: stacks/volumes rarely will fail to POST Apr 5, 2016
@bodom0015 bodom0015 added the bug label Apr 5, 2016
@bodom0015
Copy link
Member Author

It seems like this comes about when attempting to create a volume from the GUI with the same name as an existing volume. This was never enforced from the frontend, but could be done easily.

Steps to recreate:

  • Create a stack (i.e. Clowder-01) with an attached volume (i.e. mongo-01)
  • Create a duplicate of the same stack (i.e. Clowder-02) with an attached volume (i.e. mongo-02)
  • Delete Clowder-01 and its associated volume mongo-01
  • Now, creating a new Clowder stack will succeed (assuming the default name is changed), but creating its volume will fail (with 409: Conflict) since mongo-02 is the default name and that volume already exists.

Enforcing unique volume names from the wizard will hide this problem, but we should consider a better strategy for generating unique default names for stack and volumes.

@bodom0015 bodom0015 self-assigned this Apr 13, 2016
@bodom0015
Copy link
Member Author

To resolve this issue, we plan to remove unique naming as a requirement for creating stacks and volumes. This will be implemented as described in NDS-180.

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

No branches or pull requests

1 participant