You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also can't exec into the mariadb container
[root@localhost core]# podman exec -it mariadb bash
exec failed: JSON specification file config.json not found
Error: exit status 1
[root@localhost core]#
I saw this too yesterday - commands like podman inspect didn't work (e.g. unknown container) on the mariadb container. Very strange. Didn't reproduce when I restarted the install.
I saw this too yesterday - commands like podman inspect didn't work (e.g. unknown container) on the mariadb container. Very strange. Didn't reproduce when I restarted the install.
I pushed openshift/installer#2249 which aims to help when podman ps shows a container but other commands e.g podman inspect and podman exec fail - @derekhiggins does that help in this case?
Unfortunately I've not been able to reproduce this myself, but looking at an env with a similar issue yesterday from @dantrainor I suspect this is flaky libpod issues again, hopefully the workaround in the installer allows us to automatically restart the service via systemd to recover though, pending better understanding of the actual root-cause.
Just in case and meanwhile the fixes are pushed to the images, I've been able to workaround it by restarting the running containers in the bootstrap VM as sudo podman rm $(sudo podman ps -q)
Just in case and meanwhile the fixes are pushed to the images, I've been able to workaround it by restarting the running containers in the bootstrap VM as sudo podman rm $(sudo podman ps -q)
Deleting all the containers may not be safe, it's a better idea to systemd restart ironic.service, or apply openshift/installer#2249 which results in an automated restart
Activity
derekhiggins commentedon Aug 20, 2019
Also can't exec into the mariadb container
[root@localhost core]# podman exec -it mariadb bash
exec failed: JSON specification file config.json not found
Error: exit status 1
[root@localhost core]#
hardys commentedon Aug 20, 2019
Hmm I've seen some similar issues before but assumed it was a race where mariadb wasn't yet up, e.g metal3-io/ironic-image#88 should fix it.
The config.json not found error looks suspicious, like podman just failed to even try starting mariadb.
Does restarting ironic.service fix it?
derekhiggins commentedon Aug 20, 2019
I'm stuck in this loop
yes after the ironic.service restart the dbsync works
hardys commentedon Aug 20, 2019
Hrm - what state is mariadb during this time?
I'm wondering why if it's failed systemd doesn't restart all-the-containers when we exit startironic.sh here:
https://github.com/openshift/installer/blob/master/data/data/bootstrap/baremetal/files/usr/local/bin/startironic.sh.template#L116
https://github.com/openshift/installer/blob/master/data/data/bootstrap/baremetal/systemd/units/ironic.service#L11
markmc commentedon Aug 20, 2019
I saw this too yesterday - commands like
podman inspectdidn't work (e.g. unknown container) on the mariadb container. Very strange. Didn't reproduce when I restarted the install.hardys commentedon Aug 20, 2019
Hmm, I had a lot of problems similar to that a while back, and it was due to bugs in the (pretty old) version of podman/libpod we had in the RHCOS image at that time - it got bumped via https://bugzilla.redhat.com/show_bug.cgi?id=1724660 and things have been working much better since.
derekhiggins commentedon Aug 20, 2019
The container was running but ironic couldn't use it, I'll see if I can get more if I see if again
the container was still running so we didn't exit.
hardys commentedon Aug 20, 2019
Interesting - FWIW I did look at using
podman healthcheck runinstead, but the way we have the Dockerfiles defined that doesn't currently work.hardys commentedon Aug 22, 2019
I pushed openshift/installer#2249 which aims to help when podman ps shows a container but other commands e.g podman inspect and podman exec fail - @derekhiggins does that help in this case?
Unfortunately I've not been able to reproduce this myself, but looking at an env with a similar issue yesterday from @dantrainor I suspect this is flaky libpod issues again, hopefully the workaround in the installer allows us to automatically restart the service via systemd to recover though, pending better understanding of the actual root-cause.
e-minguez commentedon Aug 23, 2019
Just in case and meanwhile the fixes are pushed to the images, I've been able to workaround it by restarting the running containers in the bootstrap VM as
sudo podman rm $(sudo podman ps -q)hardys commentedon Aug 27, 2019
Deleting all the containers may not be safe, it's a better idea to systemd restart ironic.service, or apply openshift/installer#2249 which results in an automated restart
baremetal: Use podman inspect to check ironic service status
hardys commentedon Aug 28, 2019
openshift/installer#2249 landed so this can now be closed I think
baremetal: Use podman inspect to check ironic service status