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
because it's trying to write a file -> /etc/containers/registries.conf.d/10-my-registry/location/prod/config.conf and the sub directories (10-my-registry/location/prod/) do not exist.
What did you expect to happen?
the task should not fail when using paths in the registry name.
How can we reproduce it (as minimally and precisely as possible)?
create or upgrade a cluster using the crio-o container rutime and set crio_registries prefix or location with a path in the name.
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.9
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.9"
What happened?
when using the crio container runtime and enabling
crio_registries
:https://github.com/kubernetes-sigs/kubespray/blob/master/docs/cri-o.md#allcrioyml
if the registry
prefix
orlocation
variables contain paths (e.g.location: "my-registry/location/prod"
) thecontainer-engine/cri-o : Cri-o | write registries configs
task fails.Example:
when setting these inventory vars:
ansible task:
https://github.com/kubernetes-sigs/kubespray/blob/master/roles/container-engine/cri-o/tasks/main.yaml#L158
will fail with error:
because it's trying to write a file ->
/etc/containers/registries.conf.d/10-my-registry/location/prod/config.conf
and the sub directories (10-my-registry/location/prod/) do not exist.What did you expect to happen?
the task should not fail when using paths in the registry name.
How can we reproduce it (as minimally and precisely as possible)?
create or upgrade a cluster using the crio-o container rutime and set crio_registries prefix or location with a path in the name.
example vars:
OS
NAME="Red Hat Enterprise Linux"
VERSION="8.9 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.9"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.9 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.9
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.9"
Version of Ansible
ansible [core 2.14.14]
config file = /kubespray/ansible.cfg
...
python version = 3.11.5 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/opt/venv/bin/python3.11)
jinja version = 3.1.3
libyaml = True
Version of Python
Python 3.11.5
Version of Kubespray (commit)
10679eb
Network plugin used
cilium
Full inventory with variables
Command used to invoke ansible
ansible-playbook -i my_inventory cluster.yml
Output of ansible run
Anything else we need to know
No response
The text was updated successfully, but these errors were encountered: