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

create host from template: error Failed to create a compute XXX (Proxmox) instance YYY: undefined method `volid' for nil:NilClass #323

Open betonmoewe opened 1 month ago

betonmoewe commented 1 month ago

Describe the bug I am trying to create a new host in my ProxMox cluster from an existing tremplate using Foreman / Katello. Unfortunately without success ... the deployment cancels with the following error message: "Failed to create a compute sfravm-..... (Proxmox) instance sandy-kilborne...: undefined method `volid' for nil:NilClass Unfortunately I have no idea where this comes from

To Reproduce Steps to reproduce the behavior:

  1. go to 'create host'
  2. enter all needed information
  3. under os selecting "image based" and selecting the source image
  4. click "submit" -> error "unable to save"

Expected behavior Foreman should create a new virtual machine

Screenshots If applicable, add screenshots to help explain your problem.

Information:

Just tested with 0.15.1: Failed to create a compute sfravm-... (Proxmox) instance sheri-kroner....: ERF42-8301 [Foreman::Exception]: Failed to create file user-data: bash: -c: line 14: syntax error near unexpected token (' bash: -c: line 14: sudo: ['ALL=(ALL) ALL']'