redkubes / otomi-core

Application Platform for Kubernetes

Home Page:https://otomi.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TTY console recreation 409 error

Ani1357 opened this issue · comments

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

  1. Go to otomi-console and create a TTY(shell) session
  2. Click on the bin icon to delete it
  3. Right after try to create a new TTY(shell) session
  4. See 409 error

Scenario2

  1. Go to otomi-console and create a TTY(shell) session
  2. Another user deletes the tty pod created by that session(or the pod gets evicted/killed for any reason)
  3. 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
  4. 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.