Disconnected 4.12 install fails pivot due to missing podman credentials #1500
Replies: 12 comments 18 replies
-
Not much we can help with when no logs are available. Replace hostnames / IP with stubs maybe? |
Beta Was this translation helpful? Give feedback.
-
I have now reproduced this problem in my home lab. Not sure exactly which logs you need, but I tried to follow the pointers in the documentation for collecting information on the bootstrap node (no API up, so no oc adm must-gather). If you need anything else, please just let me know and I will collect it. Attached is the output of:
line 51 in release-image-pivot.service.log is the error that i described in the original post. I can complete installation if I do the following on the bootstrap node: mkdir /run/containers/62011 journalctl_b_xeu_bootkube_service.log.tgz |
Beta Was this translation helpful? Give feedback.
-
Tried this again today, with the fresh 4.12.0-0.okd-2023-03-18-084815 release, and also did a second test using the fedora-coreos-37.20230218.3.0-qemu.x86_64.qcow2 image, but the issue persists. Looking at the issue mentioned by @cgwalters above, I don't think the issue is the same here. If I understand things correctly, that fix patched a similar issue when trying to pull images from a public repo. In this case, it is a private repo but rpm-ostree is not able to find the necessary credentials to access it. Not sure if rpm-ostree should be looking elsewhere for the credentials file, or if okd should be placing credentials somewhere else where rpm-ostree would find them. |
Beta Was this translation helpful? Give feedback.
-
I can confirm same or similar issue. I'm performing a disconnected baremetal ipi installation. I've replicated
running |
Beta Was this translation helpful? Give feedback.
-
Still an issue with
|
Beta Was this translation helpful? Give feedback.
-
I can confirm the issue in IPI installation on vSphere in a disconnected environment with a private registry (quay instance as a mirror of quay.io) as you can see from the attached log
|
Beta Was this translation helpful? Give feedback.
-
Ah just found this Discussion. So does ostree needs another configuration additionally to "/etc/containers/registries.conf" ? |
Beta Was this translation helpful? Give feedback.
-
Nope, Still occur |
Beta Was this translation helpful? Give feedback.
-
The problem is still occur in 4.14.0-0.okd-2024-01-26-175629 when you try deploy AirGaped OKD cluster with only proxy "imageDigestSources on quay.io". The solution is still working: run commands on boot node sudo su
mkdir /run/containers/62011
cp /root/.docker/config.json /run/containers/62011/auth.json
chmod a+r /run/containers/62011/auth.json
chmod a+rx /run/containers
systemctl start release-image-pivot.service |
Beta Was this translation helpful? Give feedback.
-
Version "4.15.0-0.okd-2024-03-10-010116" is also affected. Without using the workaround, a disconnected cluster installation fails. |
Beta Was this translation helpful? Give feedback.
-
I did offer to spend time on this, but alas got usurped by real life. Having changed employers a few times since, I now have more time to spend on stuff that matters (with an employer that cares :)). @vrutkovs you still up for helping me along the way to bring a fix for this? |
Beta Was this translation helpful? Give feedback.
-
This is still an issue with SCOS OKS 4.16 |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
When installing in an UPI baremetal disconnected scenario, the release-image-pivot.service fails.
Digging into it, the first rpm-ostree call in the pre-pivot.sh script fails to find /run/containers//auth.json to authenticate to my private registry. The error given is "permission denied".
I worked around it by copying the /root/.docker/config.json to /run/containers//auth.json and changing permissions on both it and /run/containers directory, then running the script manually.
Version
4.12.0-0.okd-2023-02-04-212953, installing UPI baremetal and disconnected with a private registry.
How reproducible
Tried a number of reinstalls, happened every time.
Log bundle
Sorry, I'm not allowed to share logs or must-gather from this environment due to company policy.
Beta Was this translation helpful? Give feedback.
All reactions