This message was deleted.
# general
a
This message was deleted.
s
Getting a "forbidden" on a Kubernetes API call means your user has no permission to execute the operation. As from the log, User "u-nxbq6gtuep" (probably a technical aut-generated user) has no rights to execute the equivalent of
kubectl get clusters
. My first bet is that maybe between the cleans something leftover remained in Rancher (old credentials, certificates belong to the cleaned cluster etc) and it tries to use that on the new instance. I would try to wipe the node (drop the vm disks, save vm, re-open settings and add new disk, start install). Dropping and re-adding the disk ensures they get a new UUID and a clean MBR / EFI, so zero chance of matching anything before. I usually create a snapshot of such vms before the first boot to avoid this procedure and have a guaranteed clean rollback state. After the node wipe and reinstall, i would go through Rancher with a microscope scanning for any leftovers, and after the cleanup i'd re-try the RKE2 cluster creation.
c
Thank you for the pointer. I had the same thought and tried reinstalling on a clean VM (from a clean snapshot). It also fails with the same error. What puzzle me is when I try to apply the same steps on the same node: • Delete node from Rancher • Run clean up according to: https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/manage-clusters/clean-cluster-nodes?k8s-distro=RKE2#cleaning-up-nodes • Onboard again It works after a few tries. I then repeat 1 more times, fail...Do you know anywhere I can look for the user
u-nxbq6gtuep
in the Rancher Local K8s(I guess) ?
Also I tried to delete the cluster and retry. The user shown in the log changes