Closed keslerm closed 3 years ago
Some screenshots
And then failure while trying to create a host
https://github.com/theforeman/foreman/blob/develop/app/views/compute_resources_vms/show.html.erb#L17
The reason for this error seems to be a missing @vm
value. If I comment out the breadcrump element for the VM, another downstream error pops up, also indicating that no VM value is present.
The problems seems to be line https://github.com/theforeman/foreman_fog_proxmox/blob/6f0df776794e944a284c5c22200a6955cdcdb45f/app/models/foreman_fog_proxmox/proxmox_vm_queries.rb#L55
The uuid passed in to this method is the id parameter as printed above ("400"). This does not match the parser for the proxmox uuid (
Adding vmid = uuid if vmid.nil? || vmid.empty?
in the next line fixes this issue and renders the VM details.
And then failure while trying to create a host
Different bug. Duplicate with #199
Describe the bug On a totally fresh install of Foreman and the Proxmox plugin, after adding the Proxmox Compute resources, trying to click on any of the VMs presents an error.
To Reproduce Steps to reproduce the behavior:
Expected behavior To not have an error
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Stack trace