Description
Sometimes 04_setup_ironic.sh
fails like this:
+ sudo podman pod exists ironic-pod
+ sudo podman pod rm ironic-pod -f
Error: no such file or directory
make: *** [ironic] Error 125
The problem is that podman pod exists returns zero, but then the rm fails, this seems to be some podman DB corruption, exact cause unclear but in some cases it seems related to unplanned reboots.
We need to find/file an upstream bug for this, but until we find the root cause and fix, there are two known workarounds:
The simplest but most invasive fix is to remove the containers dir and reinstall podman, but note this will require re-downloading all images:
make clean && rm -fr /var/lib/containers && yum reinstall podman
The second option is to do go get github.com/br0xen/boltbrowser
then sudo ${HOME}/go/bin/boltbrowser /var/lib/containers/storage/libpod/bolt_state.db
and remove all the references to the pod and to the container interactively in that db (thanks to @celebdor for the tip on this one)