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

Podman: ERRO[0010] error while trying to remove a mgmt network "clab" has associated containers with it #2294

Open
mglantz opened this issue Nov 13, 2024 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@mglantz
Copy link

mglantz commented Nov 13, 2024

I'm using podman and when I'm using destroy, the mgmt network fails to get removed. Containers were all removed. Second time the command runs, there is no error message, even though the network is still there, I assume as it just calls it quits after seeing that no containers are there.

First time I run the destroy command:

$ sudo containerlab -r podman destroy -t lab1.yml
INFO[0000] Parsing & checking topology file: lab1.yml   
INFO[0000] Parsing & checking topology file: lab1.yml   
INFO[0000] Destroying lab: lab1                         
INFO[0010] Removing containerlab host entries from /etc/hosts file 
INFO[0010] Removing ssh config for containerlab nodes   
ERRO[0010] error while trying to remove a mgmt network "clab" has associated containers with it. Use -f to forcibly delete containers and pods: network is being used 

Podman output, showing that the mgmt network is still there

$ sudo podman network list
NETWORK ID    NAME        DRIVER
f78fe0e84430  clab        bridge
2f259bab93aa  podman      bridge

Second time it runs, I get:

$ sudo containerlab -r podman destroy -t lab1.yml
INFO[0000] Parsing & checking topology file: lab1.yml   
INFO[0000] no containerlab containers found             

When I delete the network manually, using sudo podman network rm that works without issues.

@hellt
Copy link
Member

hellt commented Nov 14, 2024

there is currently no bandwidth to allocate to podman support/dev...

@hellt hellt added the help wanted Extra attention is needed label Nov 14, 2024
@mglantz
Copy link
Author

mglantz commented Nov 14, 2024

Is there a guide on how to contribute / test development @hellt ? I had a look at the podman.go and have some theories I could test.

@hellt
Copy link
Member

hellt commented Nov 14, 2024

It is a free valley at this moment.

make build will build from your local workspace

Testing is lightly documented here https://containerlab.dev/manual/dev/test/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants