TTY console recreation 409 error
Ani1357 opened this issue · comments
Ani Argjiri commented
Describe the bug: (a clear and concise description of what the bug is)
409
error message appears when trying to recreate shell soon after one was deleted
To Reproduce
Steps to reproduce the behavior:
Scenario 1
- Go to otomi-console and create a TTY(shell) session
- Click on the bin icon to delete it
- Right after try to create a new TTY(shell) session
- See
409
error
Scenario2
- Go to otomi-console and create a TTY(shell) session
- Another user deletes the tty pod created by that session(or the pod gets evicted/killed for any reason)
- This will leave the
AuthorizationPolicies
untouched. Normally would be deleted from otomi-api as part of the clean up when the bin icon is clicked or on user logout - Try creating a new shell session and see the
409
error.
Expected behavior: (a clear and concise description of what you expected to happen)
Normal recreation should be possible otherwise a clear error message should appear.