dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Unable to provision RKE2 clusters using the harvester driver from the 'edit as yaml' mode

Open mantis-toboggan-md opened this issue 8 months ago • 0 comments

Setup

  • Rancher version: v2.10.3, Harvester 1.4.2
  • Rancher UI Extensions:
  • Browser type & version: ff

Describe the bug If a user switches to the 'edit as yaml' mode while creating an RKE2 harvester cluster, the cluster will not provision correctly. This is because when users create rke2 harvester clusters from the form view, the UI creates a secret and references it in the cluster spec. When creating from the 'edit as yaml' view this code does not run, and without the secret, the cluster agent will never connect (cluster stays in waiting status indefinitely)

https://github.com/rancher/dashboard/blob/master/shell/edit/provisioning.cattle.io.cluster/rke2.vue#L1516-L1534

To Reproduce You will need a rancher environment with a Harvester cluster present.

  1. Navigate to cluster management cluster list view and click 'create'
  2. Make sure the rke toggle is set to 'rke2' and select 'Harvester'
  3. Create a new credential or use existing
  4. Fill out mandatory fields
  5. Click 'edit as yaml'
  6. A popup will appear. Click 'save and continue'
  7. Click save from the yaml editor view

Result Cluster creation initially appears successful, but ultimately, the cluster agent never connects.

Expected Result If correct configuration is provided before switching to 'edit as yaml' clicking 'save' from the edit yaml view should result in a cluster successfully provisioning.

Screenshots

Additional context We have hit other issues with switching to the yaml view during rke2 cluster creation:

https://github.com/rancher/dashboard/issues/9724 https://github.com/rancher/dashboard/pull/9798 https://github.com/rancher/dashboard/issues/9248

mantis-toboggan-md avatar Mar 26 '25 23:03 mantis-toboggan-md