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

Cannot Create Proxmox Host #177

Closed HeroesLament closed 3 years ago

HeroesLament commented 3 years ago

error Describe the bug Creating Host Fails

To Reproduce Steps to reproduce the behavior:

  1. Attempt to create host.

Expected behavior Host is created suvvessfully.

Screenshots Screenshot attached.

Desktop (please complete the following information):

Additional context Failed to create a compute DC01 (Proxmox) instance jodi-ruggles.domain2.domain1: Expected([200]) <=> Actual(400 Bad Request) excon.error.response :body => "{\"errors\":{\"net0\":\"invalid format - missing key in comma-separated list property\n\"},\"data\":null}" :cookies => [ ] :headers => { "Cache-Control" => "max-age=0" "Connection" => "close" "Content-Length" => "97" "Content-Type" => "application/json;charset=UTF-8" "Date" => "Tue, 20 Oct 2020 19:39:39 GMT" "Expires" => "Tue, 20 Oct 2020 19:39:39 GMT" "Pragma" => "no-cache" "Server" => "pve-api-daemon/3.0" } :host => "10.0.10.10" :local_address => "10.0.10.108" :local_port => 53152 :path => "/api2/json/nodes/pxmx01/qemu" :port => 8006 :reason_phrase => "Parameter verification failed." :remote_ip => "10.0.10.10" :status => 400 :status_line => "HTTP/1.1 400 Parameter verification failed.\r\n"

HeroesLament commented 3 years ago

Actually self-resolved, I didn't have the foreman host set in either DNS or the Proxmox hosts file. I set it in the hosts file and it created perfectly. All good here.