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

[Bug] Breaks trying to remove a subsystem when stack is removed before the subsystem is removed #427

Open
2gn opened this issue Nov 7, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@2gn
Copy link

2gn commented Nov 7, 2024

Steps to reproduce

  1. Create a stack
  2. Create a subsystem with the stack
  3. Remove the stack
  4. Try to remove the subsystem

It emits the error stack not found and the subsystem won't be removed, but disappears from the list.
And when you try to create another subsystem with the same name, it won't be made.

@taukakao taukakao added the bug Something isn't working label Nov 7, 2024
@taukakao
Copy link
Member

taukakao commented Nov 10, 2024

While this is clearly a bug that should be fixed. You can still delete the container by running:
podman rm apx-NAME
of course replacing "NAME" with the actual name of the subsystem like "mycontainer"

@jardon
Copy link
Member

jardon commented Nov 13, 2024

i see two bugs here:

  1. stacks should only be allowed to be removed if there are no subsystems that are built on it
  2. a subsystem shouldnt be removed from apx if the container hasnt been destroyed

jardon added a commit to jardon/apx that referenced this issue Nov 14, 2024
- add check for stack in use before removing subsystem
- add error message for in use stack in locales
jardon added a commit to jardon/apx that referenced this issue Nov 14, 2024
- add check for stack in use before removing subsystem
- add error message for in use stack in locales
jardon added a commit that referenced this issue Nov 14, 2024
- add check for stack in use before removing subsystem
- add error message for in use stack in locales
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants