rancher / dashboard

The Rancher UI

Home Page:https://rancher.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clusters Management UI does not display all vGPUs of the same profile

IsaSih opened this issue · comments

Setup
Rancher version:v2.8-head
Rancher UI Extensions:
Browser type & version: Chrome
Version 124.0.6367.78
Harvester Version: v1.3.0

Describe the bug
When you create a harvester cluster with vGPUs, only one of the vGPUs shows up in the list if you have more than one vGPU of the same profile enabled.
When you add another vGPU, the list doesn’t show any other available options.

To Reproduce

  1. Set up vGPU profiles (multiple) in Harvester
  2. Import Harvester into Rancher
  3. Go to Virtualization management -> Harvester UI for cluster -> vGPU Devices and enable 2 vGPUs of the same profile
  4. From Cluster Management, Create a new 1-node RKE2 cluster with Harvester as the downstream provider. Under Advanced options, add the first vGPU on the list of available vGpus. Then, try to add the second one.
  5. Observe the message displayed in the dropdown list

Result

Greenshot 2024-04-29 15 34 53
Greenshot 2024-04-29 15 46 29

Expected Result
All vGPUs of the same profile must be displayed in the dropdown list and be added to the cluster when provisioning a harvester cluster via Clusters Management

Additional Info
You can manually associate 2 vGPUs of the same profile directly to the VM from the dashboard UI, in Harvester UI -> Virtual Machines -> Edit config -> vGPU devices, but not from Cluster Management when provisioning the cluster
image
Greenshot 2024-04-29 15 46 33

Validated in Rancher v2.8-862f57beb6ff7caeab6b4e3c00c89912050cf317-head and Harvester v1.3.0.