theforeman / foreman_fog_proxmox

Foreman plugin to add Proxmox compute resource based on fog-proxmox gem
GNU General Public License v3.0
106 stars 31 forks source link

Can't get the local storage of my hypervisor when creating a host #175

Closed claneys closed 3 years ago

claneys commented 3 years ago

Describe the bug I'm on Foreman 2.2 (foreman-2.2.0-0.31.rc3.el8.noarch) and use the latest version of the proxmox plugin 0.12.4. Our Foreman instance has several proxmox compute resources set, 6 for the moment with 3 independents and 3 in the same cluster. When I try to create a host deploying on the cluster of 3 nodes, I want to configure the CD-ROM device to use an ISO from the local storage of the node, but when I select the local storage I see the ISO available from our first compute resource in the list which is not the good one and is even not in the proxmox cluster configuration wanted. It is a completely other proxmox instance on a separate network.

To Reproduce Steps to reproduce the behavior:

  1. Create several proxmox compute resources
  2. Try to create a VM
  3. Select a node other than the first declared one
  4. See ISO from local storage that are not corresponding to the selected node on which the VM would be deployed.

Expected behavior Should list the ISO of the selected proxmox node instead of the first of the list configured in Foreman.

tristanrobert commented 3 years ago

When you select a node, the storages lists (disks and cdrom images) are refreshed by this ajax function.