theforeman / foreman_fog_proxmox

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

Proxmox 8.1.x support #319

Closed boesr closed 2 months ago

boesr commented 2 months ago

Describe the bug We recently updated our proxmox infrastructure to version 8.1.10 and foreman to version 3.9.1. The plugin version is 0.15.0.

The connection in Compute Resources shows successful, but as soon as you select the Compute Resource when navigating to it via Compute Profiles (Compute Profiles -> profile-name -> Proxmox Compute Resource) an error

Oops, we're sorry but something went wrong undefined method `identity' for nil:NilClass

is shown. Same when selecting "Virtual Machine" in the Host creation.

To Reproduce Steps to reproduce the behavior:

  1. Click "Create Host"
  2. Select Proxmox Compute Resource in "Deploy on"
  3. Select "Virtual Machine" Tab
  4. Oops, we're sorry but something went wrong undefined methodidentity' for nil:NilClass`

Expected behavior The virtual machine can be configured.

Screenshots /

Additional context Plugin is installed via dnf on Rocky 8. Also tested the connection with Foreman 3.8 and 3.10. It is probably an incompatibility with Proxmox 8.1.x.

Seems like /api2/json/nodes/virt01/network?type=any_bridge returns no objects and thus the identity functions fails

boesr commented 2 months ago

Nevermind it was a permission problem. The proxmox update seems to have broken the user (admin role was assigned, but the permission did not work).

For everyone finding this: try to delete the user and add them again in proxmox