Problem importing rke2 cluster

Hi

I have a problem importing a v1.24.7+rke2r1 cluster into Rancher v2.6.9.
The cluster is stuck on Pending and the only error I get on the cattle-cluster-agent on the master node is the following.

Error from server (BadRequest): container “cluster-register” in pod “cattle-cluster-agent-58cb9d87bd-zb4sr” is waiting to start: trying and failing to pull image

Can someone provide some assistance please ?

I managed to sort out the problem.
My nodes did not have access to the online repository.

To import rke2 cluster is quite easy if it come in front of you just have look into this and fix it ASAP.:

Installing rke2 cluster was done with the following steps:
sudo mkdir -p /etc/rancher/rke2 &&
sudo vi /etc/rancher/rke2/config.yaml
tls-san:

token:
server: https://:9345

curl -sfL https://raw.githubusercontent.com/rancher/rke2/master/install.sh -o install.sh &&
chmod +x install.sh

sudo INSTALL_RKE2_VERSION=v1.18.4-beta16+rke2 INSTALL_RKE2_TYPE=‘server’ INSTALL_RKE2_METHOD=‘installer’ ./install.sh

The contents of config.yaml should only include token and server values when adding additional server nodes. Also, if adding agent node, it’s the same but without tls-san value and then one change on the final command for: INSTALL_RKE2_TYPE='agent'