https://rancher.com/ logo
Title
w

wonderful-elephant-56815

04/27/2023, 4:44 PM
Hi everyone, apologies if this is not the appropriate channel for this questions, if ins't please point me to the correct one πŸ™ . I've been banging my head for a while around this error when importing an RKE2 cluster into rancher 2.72.
Error while applying agent YAML, it will be retried automatically: exit status 1, Error from server (NotFound): the server could not find the requested resource
πŸ˜• My current setup is: Rancher 2.7.2 running on a RKE2 cluster 1.24, using a custom TLS (secret) with privateCA (Digicert) Second cluster is an RKE2 1.26
r

rough-farmer-49135

04/27/2023, 4:45 PM
Note that 1.24 has PSPs & Rancher uses them but those went away in 1.25 so there's a difference you need to put in config for that. Also is 1.26 supported by Rancher 2.7.2? I've heard people talk about 1.25 but I thought 1.26 wasn't supported quite yet.
w

wonderful-elephant-56815

04/27/2023, 4:47 PM
Interesting I though that limitation was only for the cluster where Rancher is running not for the ones manage. Maybe I miss understood.
r

rough-farmer-49135

04/27/2023, 4:52 PM
There's a different spot in the compatibility matrix for each, as I recall.
w

wonderful-elephant-56815

04/27/2023, 4:53 PM
Yes, my bad I miss understood the matrix 😞
r

rough-farmer-49135

04/27/2023, 4:53 PM
So if you drop downstream to 1.25 and make sure you have the flag for using PSPs on downstream set to false (which I don't remember) then that may fix you up.
βœ… 1
w

wonderful-elephant-56815

04/27/2023, 4:55 PM
Ty πŸ™ I'm testing that now
So I was able to downgrade the downstream cluster to 1.24 just to make sure they are in the version, and the error is the same 😞
r

rough-farmer-49135

04/27/2023, 5:58 PM
How confident are you in the downgrade? Did you completely remove RKE2 and create a new cluster and migrate workloads or something else?
I've not heard a lot of confidence about doing something other than removing & recreating for downgrading versions of Kubernetes.
w

wonderful-elephant-56815

04/27/2023, 5:59 PM
I wiped the cluster entirely so is a brand-new cluster
r

rough-farmer-49135

04/27/2023, 6:00 PM
Were you able to successfully delete the old cluster from Rancher first? I've heard of times where Rancher remembers a node even after the node being rebuilt and that getting in the way.
w

wonderful-elephant-56815

04/27/2023, 6:04 PM
I followed these steps: 1. Removed the downstream cluster from Rancher. βœ… 2. Wiped the downstream cluster and re-install RKE2 1.24 βœ… 3. Imported the new downstream using the new yaml from the Rancher βœ…
AgentDeployed	False	15 mins ago	[Error] Error while applying agent YAML, it will be retried automatically: exit status 1, Error from server (NotFound): the server could not find the requested resource
r

rough-farmer-49135

04/27/2023, 7:24 PM
I'm out of ideas, hopefully someone else pops in.
πŸ™ 1
You might try re-posting in general to get a response.
(just include a link to this one for others' info)
βœ… 1