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
Private registry configuration input is not validated causing the cluster provisioning to fail due to images not being pulled. Additionally, the user is instructed to enter the registry endpoint in the incorrect format (placeholder text).
To Reproduce
Navigate to Cluster Management -> Clusters
Toggle RKE2 and click to provision with any infrastructure provider
Click Cluster Configuration -> Registries and select 3rd option (advanced)
Enter the hostname of the private registry, e.g. nexus.acmegroup.com
Click on Add Mirrors
Enter an asterisk "*" in the field "registry hostname" (to overwrite the default registry)
Observe the placeholder text in the empty "mirror endpoints" field, indicating to use hostname:port format
Enter the hostname of the private registry in the field, e.g. nexus.acmegroup.com
Create Cluster
Result
Cluster provisioning is kicked off but eventually fails because images can't be pulled
Dec 03 09:26:51 test rancher-system-agent[3747]: time="2021-12-03T09:26:51+01:00" level=info msg="Extracting image rancher/system-agent-installer-rke2:v1.21.6-rke2r1 to directory /var/lib/rancher/agent/work/20211203-092651-applied.plan/61ce39c3bee4e3baedd2ef4935e19588b1039527516787e0583ccdc91ef77e1d_0"
Dec 03 09:26:51 test rancher-system-agent[3747]: time="2021-12-03T09:26:51+01:00" level=info msg="Using private registry config file at /etc/rancher/agent/registries.yaml"
Dec 03 09:26:51 test rancher-system-agent[3747]: time="2021-12-03T09:26:51+01:00" level=info msg="Pulling image index.docker.io/rancher/system-agent-installer-rke2:v1.21.6-rke2r1"
Dec 03 09:26:51 test rancher-system-agent[3747]: time="2021-12-03T09:26:51+01:00" level=debug msg="Registry endpoint URL modified: https://index.docker.io/v2/ => nexus.acmegroup.net"
Dec 03 09:26:51 test rancher-system-agent[3747]: time="2021-12-03T09:26:51+01:00" level=error msg="error while staging: Get \"nexus.acmegroup.net\": unsupported scheme in registry endpoint: failed to get image index.docker.io/rancher/system-agent-installer-rke2:v1.21.6-rke2r1"
Expected Result
RKE2 requires the mirror endpoint to be a URI, e.g. https://nexus.acmegroup.com and not a hostname, e.g. nexus.acmegroup.com. Hence:
Input in the "mirror endpoints" field must be validated to be in the URI format with http/https scheme
Placeholder help text in the "mirror endpoints" field must show the correct format
The text was updated successfully, but these errors were encountered:
Setup
Describe the bug
Private registry configuration input is not validated causing the cluster provisioning to fail due to images not being pulled. Additionally, the user is instructed to enter the registry endpoint in the incorrect format (placeholder text).
To Reproduce
nexus.acmegroup.com
hostname:port
formatnexus.acmegroup.com
Result
Cluster provisioning is kicked off but eventually fails because images can't be pulled
Expected Result
RKE2 requires the mirror endpoint to be a URI, e.g.
https://nexus.acmegroup.com
and not a hostname, e.g.nexus.acmegroup.com
. Hence:http/https
schemeThe text was updated successfully, but these errors were encountered: