https://rancher.com/ logo
Title
b

brainy-whale-94197

05/08/2023, 7:59 AM
Hi! I am trying to add a Windows worker node to a newly setup RKE2 cluster. I used the "windowsNodeCommand" which downloads and runs the ./install.ps1 script. I have enabled containers and installed containerd in the host, windows server 2022 ltsc. The node is not registering and my current last error log for rancher-wins looks like this:
1690 maj 08 09:38  Error       rancher-wins                    1 error syncing 'fleet-default/custom-59de284649bf-machine-plan': handler secret-watch: secret received was too old, requeuing
    1689 maj 08 09:38  Error       rancher-wins                    1 [K8s] received secret to process that was older than the last secret operated on. (454544841 vs 454545100)
    1649 maj 08 09:37  Information rancher-wins                    1 [Applyinator] Command powershell.exe [-File run.ps1] finished with err: <nil> and exit code: 0
    1647 maj 08 09:37  Information rancher-wins                    1 [38073db02ce4b06ae83a2f4510f5dfac2e35984539e2dbc642d2b99db5ec1883_0:stdout]: INFO: Succesfully started rke2
    1643 maj 08 09:37  Information rancher-wins                    1 [38073db02ce4b06ae83a2f4510f5dfac2e35984539e2dbc642d2b99db5ec1883_0:stdout]: INFO: Attempting to start rke2
    1642 maj 08 09:37  Information rancher-wins                    1 [38073db02ce4b06ae83a2f4510f5dfac2e35984539e2dbc642d2b99db5ec1883_0:stderr]: time="2023-05-08T09:37:44+02:00" level=fatal msg="The specifi...
    1641 maj 08 09:37  Information rancher-wins                    1 [38073db02ce4b06ae83a2f4510f5dfac2e35984539e2dbc642d2b99db5ec1883_0:stdout]: INFO: RKE2 agent service not found, enabling agent service       
    1640 maj 08 09:37  Information rancher-wins                    1 [38073db02ce4b06ae83a2f4510f5dfac2e35984539e2dbc642d2b99db5ec1883_0:stdout]: [INFO] install complete; you may want to run:  $env:PATH+=";c...
    1639 maj 08 09:37  Information rancher-wins                    1 [38073db02ce4b06ae83a2f4510f5dfac2e35984539e2dbc642d2b99db5ec1883_0:stdout]: [INFO] unpacking tarball file to c:/usr/local
    1638 maj 08 09:37  Information rancher-wins                    1 [38073db02ce4b06ae83a2f4510f5dfac2e35984539e2dbc642d2b99db5ec1883_0:stdout]: [INFO] verifying tarball
    1637 maj 08 09:37  Information rancher-wins                    1 [38073db02ce4b06ae83a2f4510f5dfac2e35984539e2dbc642d2b99db5ec1883_0:stdout]: [INFO] staging local binary tarball from C:\var\lib\rancher\a...
    1636 maj 08 09:37  Information rancher-wins                    1 [38073db02ce4b06ae83a2f4510f5dfac2e35984539e2dbc642d2b99db5ec1883_0:stdout]: Using stable channel of rke2 for installation
    1635 maj 08 09:37  Information rancher-wins                    1 [38073db02ce4b06ae83a2f4510f5dfac2e35984539e2dbc642d2b99db5ec1883_0:stdout]: [INFO] Windows feature: 'Containers' is installed. Installati...
    1631 maj 08 09:37  Information rancher-wins                    1 [38073db02ce4b06ae83a2f4510f5dfac2e35984539e2dbc642d2b99db5ec1883_0:stdout]: WARNING: Waiting for service 'rke2 (rke2)' to stop...
    1630 maj 08 09:37  Information rancher-wins                    1 [38073db02ce4b06ae83a2f4510f5dfac2e35984539e2dbc642d2b99db5ec1883_0:stdout]: WARNING: Waiting for service 'rke2 (rke2)' to stop...
    1629 maj 08 09:37  Information rancher-wins                    1 [38073db02ce4b06ae83a2f4510f5dfac2e35984539e2dbc642d2b99db5ec1883_0:stdout]: WARNING: Waiting for service 'rke2 (rke2)' to stop...
    1628 maj 08 09:37  Information rancher-wins                    1 [38073db02ce4b06ae83a2f4510f5dfac2e35984539e2dbc642d2b99db5ec1883_0:stdout]: WARNING: Waiting for service 'rke2 (rke2)' to stop...
    1623 maj 08 09:36  Information rancher-wins                    1 [38073db02ce4b06ae83a2f4510f5dfac2e35984539e2dbc642d2b99db5ec1883_0:stdout]: INFO: RKE2 agent service found, stopping now
    1621 maj 08 09:36  Information rancher-wins                    1 [38073db02ce4b06ae83a2f4510f5dfac2e35984539e2dbc642d2b99db5ec1883_0:stdout]: INFO: Checking if RKE2 agent service exists
    1614 maj 08 09:36  Information rancher-wins                    1 [Applyinator] Running command: powershell.exe [-File run.ps1]
am I missing some major step here? How can I debug this further and can I do some more actions than the inital setup command "windowsNodeCommand"? Great Thanks! for any help on this
Also, is the HyperV features needed or just containers?(
Add-WindowsFeature Containers,Hyper-V,Hyper-V-Tools,Hyper-V-PowerShell -Restart -IncludeManagementTools
) Thanks
Things works now. If anyone else have problems: Just run the add node command after enabling the "Containers" feature, no hyperv. And do not install containerd, it is included in RKE2 apparently