Actions
Bug #37329
openCannot create new Host on Compute Resource Proxmox
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
Hi!
After upgrading Foreman from 3.8 to 3.10 it's no longer possible to create new Hosts on a Proxmox Compute Resource:
2024-04-09T09:51:38 [I|app|8a1ff425] Started POST "/hosts" for <redacted> at 2024-04-09 09:51:38 +0200
2024-04-09T09:51:38 [I|app|8a1ff425] Processing by HostsController#create as */*
2024-04-09T09:51:38 [I|app|8a1ff425] Parameters: {"authenticity_token"=>"mHcqMRFeN9fu5iHMbtHVxu3kSLanb8WfJp6P40myaKrwlYwwCxdU6rzQZeb2P4itIfpSI3wm-PH4ODyOrdA2iQ", "host"=>{"name"=>"perry-fernadez", "organization_id"=>"1", "location_id"=>"2", "hostgroup_id"=>"7", "puppetclass_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "identifier"=>"", "name"=>"perry-fernadez", "domain_id"=>"1", "subnet_id"=>"1", "ip"=>"<redacted>", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"id"=>"net0", "model"=>"virtio", "bridge"=>"vmbr0", "tag"=>"", "rate"=>"", "queues"=>"", "firewall"=>"0", "link_down"=>"0"}}}, "compute_attributes"=>{"type"=>"qemu", "vmid"=>"111", "node_id"=>"hv01", "start_after_create"=>"1", "pool"=>"", "config_attributes"=>{"description"=>"", "boot"=>"", "onboot"=>"1", "agent"=>"1", "kvm"=>"1", "vga"=>"std", "scsihw"=>"virtio-scsi-pci", "bios"=>"seabios", "cpu_type"=>"Nehalem", "sockets"=>"1", "cores"=>"", "vcpus"=>"", "cpulimit"=>"", "cpuunits"=>"", "numa"=>"0", "spectre"=>"0", "pcid"=>"0", "ssbd"=>"0", "ibpb"=>"0", "virt_ssbd"=>"0", "amd_ssbd"=>"0", "amd_no_ssb"=>"0", "md_clear"=>"0", "pdpe1gb"=>"0", "hv_tlbflush"=>"0", "aes"=>"0", "hv_evmcs"=>"0", "memory"=>"", "balloon"=>"", "shares"=>"", "ostype"=>"debian", "arch"=>"amd64", "swap"=>"", "nameserver"=>"", "searchdomain"=>""}, "volumes_attributes"=>{"0"=>{"_delete"=>"", "storage_type"=>"hard_disk", "storage"=>"MAIN_DS1", "controller"=>"virtio", "device"=>"0", "cache"=>"none", "size"=>"16", "id"=>"virtio0"}}}, "architecture_id"=>"1", "operatingsystem_id"=>"9", "provision_method"=>"build", "build"=>"1", "medium_id"=>"4", "ptable_id"=>"142", "pxe_loader"=>"PXELinux BIOS", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"5-Users", "enabled"=>"1", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]"}
2024-04-09T09:51:38 [W|api|8a1ff425] param host[puppetclass_*] has been deprecated in favor of host[puppet_attributes][puppetclass_*]
2024-04-09T09:53:18 [W|app|8a1ff425] Scoped order is ignored, it's forced to be batch order.
2024-04-09T09:53:19 [I|app|8a1ff425] Adding Compute instance for perry-fernadez.foo.bar
2024-04-09T09:53:19 [W|app|8a1ff425] create vm: args={"type"=>"qemu", "vmid"=>"111", "node_id"=>"hv01", "start_after_create"=>"1", "pool"=>"", "config_attributes"=>{"description"=>"", "boot"=>"", "onboot"=>"1", "agent"=>"1", "kvm"=>"1", "vga"=>"std", "scsihw"=>"virtio-scsi-pci", "bios"=>"seabios", "cpu_type"=>"Nehalem", "sockets"=>"1", "cores"=>"", "vcpus"=>"", "cpulimit"=>"", "cpuunits"=>"", "numa"=>"0", "spectre"=>"0", "pcid"=>"0", "ssbd"=>"0", "ibpb"=>"0", "virt_ssbd"=>"0", "amd_ssbd"=>"0", "amd_no_ssb"=>"0", "md_clear"=>"0", "pdpe1gb"=>"0", "hv_tlbflush"=>"0", "aes"=>"0", "hv_evmcs"=>"0", "memory"=>"", "balloon"=>"", "shares"=>"", "ostype"=>"debian", "arch"=>"amd64", "swap"=>"", "nameserver"=>"", "searchdomain"=>"", "name"=>"perry-fernadez.foo.bar"}, "volumes_attributes"=>{"0"=>{"storage_type"=>"hard_disk", "storage"=>"MAIN_DS1", "controller"=>"virtio", "device"=>"0", "cache"=>"none", "size"=>"16", "id"=>"virtio0"}}, "name"=>"perry-fernadez.foo.bar", "provision_method"=>"build", "firmware_type"=>:bios, "interfaces_attributes"=>{"0"=>{"id"=>"net0", "model"=>"virtio", "bridge"=>"vmbr0", "firewall"=>"0", "link_down"=>"0", "ip"=>"<redacted>", "ip6"=>""}}}
2024-04-09T09:53:19 [W|app|8a1ff425] failed to create vm: Expected([200]) <=> Actual(400 Bad Request)
8a1ff425 | excon.error.response
8a1ff425 | :body => "{\"errors\":{\"ostype\":\"value 'debian' does not have a value in the enumeration 'other, wxp, w2k, w2k3, w2k8, wvista, win7, win8, win10, win11, l24, l26, solaris'\",\"arch\":\"value 'amd64' does not have a value in the enumeration 'x86_64, aarch64'\"},\"data\":null}"
8a1ff425 | :cookies => [
8a1ff425 | ]
8a1ff425 | :headers => {
8a1ff425 | "Cache-Control" => "max-age=0"
8a1ff425 | "Connection" => "close"
8a1ff425 | "Content-Length" => "256"
8a1ff425 | "Content-Type" => "application/json;charset=UTF-8"
8a1ff425 | "Date" => "Tue, 09 Apr 2024 07:53:21 GMT"
8a1ff425 | "Expires" => "Tue, 09 Apr 2024 07:53:21 GMT"
8a1ff425 | "Pragma" => "no-cache"
8a1ff425 | "Server" => "pve-api-daemon/3.0"
8a1ff425 | }
8a1ff425 | :host => "hv01.foo.bar"
8a1ff425 | :local_address => "<redacted>"
8a1ff425 | :local_port => 42862
8a1ff425 | :method => "POST"
8a1ff425 | :omit_default_port => false
8a1ff425 | :path => "/api2/json/nodes/hv01/qemu"
8a1ff425 | :port => 8006
8a1ff425 | :query => nil
8a1ff425 | :reason_phrase => "Parameter verification failed."
8a1ff425 | :remote_ip => "<redacted>"
8a1ff425 | :scheme => "https"
8a1ff425 | :status => 400
8a1ff425 | :status_line => "HTTP/1.1 400 Parameter verification failed.\r\n"
8a1ff425 |
2024-04-09T09:53:19 [W|app|8a1ff425] Failed to create a compute Proxmox (Proxmox) instance perry-fernadez.foo.bar: Expected([200]) <=> Actual(400 Bad Request)
8a1ff425 | excon.error.response
8a1ff425 | :body => "{\"errors\":{\"ostype\":\"value 'debian' does not have a value in the enumeration 'other, wxp, w2k, w2k3, w2k8, wvista, win7, win8, win10, win11, l24, l26, solaris'\",\"arch\":\"value 'amd64' does not have a value in the enumeration 'x86_64, aarch64'\"},\"data\":null}"
8a1ff425 | :cookies => [
8a1ff425 | ]
8a1ff425 | :headers => {
8a1ff425 | "Cache-Control" => "max-age=0"
8a1ff425 | "Connection" => "close"
8a1ff425 | "Content-Length" => "256"
8a1ff425 | "Content-Type" => "application/json;charset=UTF-8"
8a1ff425 | "Date" => "Tue, 09 Apr 2024 07:53:21 GMT"
8a1ff425 | "Expires" => "Tue, 09 Apr 2024 07:53:21 GMT"
8a1ff425 | "Pragma" => "no-cache"
8a1ff425 | "Server" => "pve-api-daemon/3.0"
8a1ff425 | }
8a1ff425 | :host => "hv01.foo.bar"
8a1ff425 | :local_address => "<redacted>"
8a1ff425 | :local_port => 42862
8a1ff425 | :method => "POST"
8a1ff425 | :omit_default_port => false
8a1ff425 | :path => "/api2/json/nodes/hv01/qemu"
8a1ff425 | :port => 8006
8a1ff425 | :query => nil
8a1ff425 | :reason_phrase => "Parameter verification failed."
8a1ff425 | :remote_ip => "<redacted>"
8a1ff425 | :scheme => "https"
8a1ff425 | :status => 400
8a1ff425 | :status_line => "HTTP/1.1 400 Parameter verification failed.\r\n"
8a1ff425 |
8a1ff425 |
2024-04-09T09:53:19 [I|app|8a1ff425] Backtrace for 'Failed to create a compute Proxmox (Proxmox) instance perry-fernadez.foo.bar: Expected([200]) <=> Actual(400 Bad Request)
8a1ff425 | excon.error.response
8a1ff425 | :body => "{\"errors\":{\"ostype\":\"value 'debian' does not have a value in the enumeration 'other, wxp, w2k, w2k3, w2k8, wvista, win7, win8, win10, win11, l24, l26, solaris'\",\"arch\":\"value 'amd64' does not have a value in the enumeration 'x86_64, aarch64'\"},\"data\":null}"
8a1ff425 | :cookies => [
8a1ff425 | ]
8a1ff425 | :headers => {
8a1ff425 | "Cache-Control" => "max-age=0"
8a1ff425 | "Connection" => "close"
8a1ff425 | "Content-Length" => "256"
8a1ff425 | "Content-Type" => "application/json;charset=UTF-8"
8a1ff425 | "Date" => "Tue, 09 Apr 2024 07:53:21 GMT"
8a1ff425 | "Expires" => "Tue, 09 Apr 2024 07:53:21 GMT"
8a1ff425 | "Pragma" => "no-cache"
8a1ff425 | "Server" => "pve-api-daemon/3.0"
8a1ff425 | }
8a1ff425 | :host => "hv01.foo.bar"
8a1ff425 | :local_address => "<redacted>"
8a1ff425 | :local_port => 42862
8a1ff425 | :method => "POST"
8a1ff425 | :omit_default_port => false
8a1ff425 | :path => "/api2/json/nodes/hv01/qemu"
8a1ff425 | :port => 8006
8a1ff425 | :query => nil
8a1ff425 | :reason_phrase => "Parameter verification failed."
8a1ff425 | :remote_ip => "<redacted>"
8a1ff425 | :scheme => "https"
8a1ff425 | :status => 400
8a1ff425 | :status_line => "HTTP/1.1 400 Parameter verification failed.\r\n"
8a1ff425 |
8a1ff425 | ' error (Excon::Error::BadRequest): Expected([200]) <=> Actual(400 Bad Request)
8a1ff425 | excon.error.response
8a1ff425 | :body => "{\"errors\":{\"ostype\":\"value 'debian' does not have a value in the enumeration 'other, wxp, w2k, w2k3, w2k8, wvista, win7, win8, win10, win11, l24, l26, solaris'\",\"arch\":\"value 'amd64' does not have a value in the enumeration 'x86_64, aarch64'\"},\"data\":null}"
8a1ff425 | :cookies => [
8a1ff425 | ]
8a1ff425 | :headers => {
8a1ff425 | "Cache-Control" => "max-age=0"
8a1ff425 | "Connection" => "close"
8a1ff425 | "Content-Length" => "256"
8a1ff425 | "Content-Type" => "application/json;charset=UTF-8"
8a1ff425 | "Date" => "Tue, 09 Apr 2024 07:53:21 GMT"
8a1ff425 | "Expires" => "Tue, 09 Apr 2024 07:53:21 GMT"
8a1ff425 | "Pragma" => "no-cache"
8a1ff425 | "Server" => "pve-api-daemon/3.0"
8a1ff425 | }
8a1ff425 | :host => "hv01.foo.bar"
8a1ff425 | :local_address => "<redacted>"
8a1ff425 | :local_port => 42862
8a1ff425 | :method => "POST"
8a1ff425 | :omit_default_port => false
8a1ff425 | :path => "/api2/json/nodes/hv01/qemu"
8a1ff425 | :port => 8006
8a1ff425 | :query => nil
8a1ff425 | :reason_phrase => "Parameter verification failed."
8a1ff425 | :remote_ip => "<redacted>"
8a1ff425 | :scheme => "https"
8a1ff425 | :status => 400
8a1ff425 | :status_line => "HTTP/1.1 400 Parameter verification failed.\r\n"
8a1ff425 |
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/excon-0.110.0/lib/excon/middlewares/expects.rb:13:in `response_call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/excon-0.110.0/lib/excon/middlewares/response_parser.rb:12:in `response_call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/excon-0.110.0/lib/excon/connection.rb:467:in `response'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/excon-0.110.0/lib/excon/connection.rb:298:in `request'
8a1ff425 | /usr/share/foreman/lib/foreman/http_proxy/excon_connection_extension.rb:13:in `request'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/fog-core-2.4.0/lib/fog/core/connection.rb:79:in `request'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/fog-proxmox-0.15.0/lib/fog/proxmox/core.rb:98:in `request'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/fog-proxmox-0.15.0/lib/fog/proxmox/compute/requests/create_server.rb:28:in `create_server'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/fog-proxmox-0.15.0/lib/fog/proxmox/compute/models/server.rb:92:in `request'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/fog-proxmox-0.15.0/lib/fog/proxmox/compute/models/server.rb:99:in `save'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/fog-proxmox-0.15.0/lib/fog/proxmox/compute/models/servers.rb:74:in `create'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/foreman_fog_proxmox-0.15.0/app/models/foreman_fog_proxmox/proxmox_vm_commands.rb:49:in `create_vm'
8a1ff425 | /usr/share/foreman/app/models/concerns/orchestration/compute.rb:107:in `setCompute'
8a1ff425 | /usr/share/foreman/app/models/concerns/orchestration.rb:227:in `execute'
8a1ff425 | /usr/share/foreman/app/models/concerns/orchestration.rb:152:in `block in process'
8a1ff425 | /usr/share/foreman/app/models/concerns/orchestration.rb:144:in `each'
8a1ff425 | /usr/share/foreman/app/models/concerns/orchestration.rb:144:in `process'
8a1ff425 | /usr/share/foreman/app/models/concerns/orchestration.rb:44:in `around_save_orchestration'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.7/lib/active_record/autosave_association.rb:385:in `around_save_collection_association'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:137:in `run_callbacks'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:824:in `_run_save_callbacks'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.7/lib/active_record/callbacks.rb:457:in `create_or_update'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.7/lib/active_record/timestamp.rb:126:in `create_or_update'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.7/lib/active_record/persistence.rb:474:in `save'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.7/lib/active_record/validations.rb:47:in `save'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.7/lib/active_record/transactions.rb:298:in `block in save'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.7/lib/active_record/transactions.rb:354:in `block in with_transaction_returning_status'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.7/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `block in transaction'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.7/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.7/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.7/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `transaction'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.7/lib/active_record/transactions.rb:350:in `with_transaction_returning_status'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.7/lib/active_record/transactions.rb:298:in `save'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.7/lib/active_record/suppressor.rb:44:in `save'
8a1ff425 | /usr/share/foreman/app/models/concerns/foreman/sti.rb:26:in `save'
8a1ff425 | /usr/share/foreman/app/controllers/hosts_controller.rb:100:in `create'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/abstract_controller/base.rb:228:in `process_action'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_controller/metal/rendering.rb:30:in `process_action'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:117:in `block in run_callbacks'
8a1ff425 | /usr/share/foreman/app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
8a1ff425 | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
8a1ff425 | /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/audited-5.4.3/lib/audited/sweeper.rb:16:in `around'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/audited-5.4.3/lib/audited/sweeper.rb:16:in `around'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:126:in `block in run_callbacks'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:137:in `run_callbacks'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/abstract_controller/callbacks.rb:41:in `process_action'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_controller/metal/rescue.rb:22:in `process_action'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `block in instrument'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:203:in `instrument'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_controller/metal/instrumentation.rb:33:in `process_action'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_controller/metal/params_wrapper.rb:249:in `process_action'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.7/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/abstract_controller/base.rb:165:in `process'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionview-6.1.7.7/lib/action_view/rendering.rb:39:in `process'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_controller/metal.rb:190:in `dispatch'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_controller/metal.rb:254:in `dispatch'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/routing/route_set.rb:33:in `serve'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/journey/router.rb:50:in `block in serve'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/journey/router.rb:32:in `each'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/journey/router.rb:32:in `serve'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/routing/route_set.rb:842:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/apipie-dsl-2.6.2/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/apipie-rails-1.3.0/lib/apipie/static_dispatcher.rb:74:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/static.rb:24:in `call'
8a1ff425 | /usr/share/foreman/lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call'
8a1ff425 | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/apipie-rails-1.3.0/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.9/lib/rack/tempfile_reaper.rb:15:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.9/lib/rack/etag.rb:27:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.9/lib/rack/conditional_get.rb:40:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.9/lib/rack/head.rb:12:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/http/permissions_policy.rb:22:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/http/content_security_policy.rb:19:in `call'
8a1ff425 | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.9/lib/rack/session/abstract/id.rb:266:in `context'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.9/lib/rack/session/abstract/id.rb:260:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/cookies.rb:697:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:98:in `run_callbacks'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.7.7/lib/rails/rack/logger.rb:37:in `call_app'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.7.7/lib/rails/rack/logger.rb:28:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/sprockets-rails-3.4.2/lib/sprockets/rails/quiet_assets.rb:13:in `call'
8a1ff425 | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/request_store-1.6.0/lib/request_store/middleware.rb:19:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/request_id.rb:26:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.9/lib/rack/method_override.rb:24:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.9/lib/rack/runtime.rb:22:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.7/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/executor.rb:14:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.9/lib/rack/sendfile.rb:110:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/ssl.rb:77:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/actionpack-6.1.7.7/lib/action_dispatch/middleware/host_authorization.rb:142:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/secure_headers-6.5.0/lib/secure_headers/middleware.rb:11:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.7.7/lib/rails/engine.rb:539:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.7.7/lib/rails/railtie.rb:207:in `public_send'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.7.7/lib/rails/railtie.rb:207:in `method_missing'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.9/lib/rack/urlmap.rb:74:in `block in call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.9/lib/rack/urlmap.rb:58:in `each'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/rack-2.2.9/lib/rack/urlmap.rb:58:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/puma-6.4.2/lib/puma/configuration.rb:272:in `call'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/puma-6.4.2/lib/puma/request.rb:100:in `block in handle_request'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/puma-6.4.2/lib/puma/thread_pool.rb:378:in `with_force_shutdown'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/puma-6.4.2/lib/puma/request.rb:99:in `handle_request'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/puma-6.4.2/lib/puma/server.rb:464:in `process_client'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/puma-6.4.2/lib/puma/server.rb:245:in `block in run'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/puma-6.4.2/lib/puma/thread_pool.rb:155:in `block in spawn_thread'
8a1ff425 | /usr/share/foreman/vendor/ruby/2.7.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2024-04-09T09:53:19 [W|app|8a1ff425] Rolling back due to a problem: [#<Orchestration::Task:0x000055ba1f641750 @name="Set up compute instance perry-fernadez.foo.bar", @id="Set up compute instance perry-fernadez.foo.bar", @status="failed", @priority=3, @action=[#<Host::Managed id: nil, name: "perry-fernadez.foo.bar", last_compile: nil, last_report: nil, updated_at: nil, created_at: nil, root_pass: [FILTERED], architecture_id: 1, operatingsystem_id: 9, ptable_id: 142, medium_id: 4, build: true, comment: "", disk: "", installed_at: nil, model_id: nil, hostgroup_id: 7, owner_id: 5, owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: true, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: 1, puppet_proxy_id: 1, certname: nil, image_id: nil, organization_id: 1, location_id: 2, type: "Host::Managed", otp: nil, realm_id: nil, compute_profile_id: 3, provision_method: "build", grub_pass: nil, global_status: 0, lookup_value_matcher: [FILTERED], pxe_loader: "PXELinux BIOS", initiated_at: nil, build_errors: nil, creator_id: nil>, :setCompute], @created=1712649199.07182, @timestamp=2024-04-09 07:53:19.17993514 UTC>]
2024-04-09T09:53:19 [I|app|8a1ff425] Processed 1 tasks from queue 'Host::Managed Main', completed 0/10
2024-04-09T09:53:19 [E|app|8a1ff425] Task 'Set up compute instance perry-fernadez.foo.bar' *failed*
2024-04-09T09:53:19 [E|app|8a1ff425] Task 'Query instance details for perry-fernadez.foo.bar' *canceled*
2024-04-09T09:53:19 [E|app|8a1ff425] Task 'Create DHCP Settings for perry-fernadez.foo.bar' *canceled*
2024-04-09T09:53:19 [E|app|8a1ff425] Task 'Create IPv4 DNS record for perry-fernadez.foo.bar' *canceled*
2024-04-09T09:53:19 [E|app|8a1ff425] Task 'Create Reverse IPv4 DNS record for perry-fernadez.foo.bar' *canceled*
2024-04-09T09:53:19 [E|app|8a1ff425] Task 'Deploy TFTP PXELinux config for perry-fernadez.foo.bar' *canceled*
2024-04-09T09:53:19 [E|app|8a1ff425] Task 'Deploy TFTP PXEGrub2 config for perry-fernadez.foo.bar' *canceled*
2024-04-09T09:53:19 [E|app|8a1ff425] Task 'Deploy TFTP PXEGrub config for perry-fernadez.foo.bar' *canceled*
2024-04-09T09:53:19 [E|app|8a1ff425] Task 'Deploy TFTP iPXE config for perry-fernadez.foo.bar' *canceled*
2024-04-09T09:53:19 [E|app|8a1ff425] Task 'Fetch TFTP boot files for perry-fernadez.foo.bar' *canceled*
2024-04-09T09:53:19 [W|api|8a1ff425] param host[puppetclass_*] has been deprecated in favor of host[puppet_attributes][puppetclass_*]
2024-04-09T09:53:19 [W|api|8a1ff425] param host[puppetclass_*] has been deprecated in favor of host[puppet_attributes][puppetclass_*]
2024-04-09T09:53:19 [W|api|8a1ff425] param host[puppetclass_*] has been deprecated in favor of host[puppet_attributes][puppetclass_*]
2024-04-09T09:53:19 [E|app|8a1ff425] Failed to save: Failed to create a compute Proxmox (Proxmox) instance perry-fernadez.foo.bar: Expected([200]) <=> Actual(400 Bad Request)
8a1ff425 | excon.error.response
8a1ff425 | :body => "{\"errors\":{\"ostype\":\"value 'debian' does not have a value in the enumeration 'other, wxp, w2k, w2k3, w2k8, wvista, win7, win8, win10, win11, l24, l26, solaris'\",\"arch\":\"value 'amd64' does not have a value in the enumeration 'x86_64, aarch64'\"},\"data\":null}"
8a1ff425 | :cookies => [
8a1ff425 | ]
8a1ff425 | :headers => {
8a1ff425 | "Cache-Control" => "max-age=0"
8a1ff425 | "Connection" => "close"
8a1ff425 | "Content-Length" => "256"
8a1ff425 | "Content-Type" => "application/json;charset=UTF-8"
8a1ff425 | "Date" => "Tue, 09 Apr 2024 07:53:21 GMT"
8a1ff425 | "Expires" => "Tue, 09 Apr 2024 07:53:21 GMT"
8a1ff425 | "Pragma" => "no-cache"
8a1ff425 | "Server" => "pve-api-daemon/3.0"
8a1ff425 | }
8a1ff425 | :host => "hv01.foo.bar"
8a1ff425 | :local_address => "<redacted>"
8a1ff425 | :local_port => 42862
8a1ff425 | :method => "POST"
8a1ff425 | :omit_default_port => false
8a1ff425 | :path => "/api2/json/nodes/hv01/qemu"
8a1ff425 | :port => 8006
8a1ff425 | :query => nil
8a1ff425 | :reason_phrase => "Parameter verification failed."
8a1ff425 | :remote_ip => "<redacted>"
8a1ff425 | :scheme => "https"
8a1ff425 | :status => 400
8a1ff425 | :status_line => "HTTP/1.1 400 Parameter verification failed.\r\n"
8a1ff425 |
8a1ff425 |
2024-04-09T09:53:22 [I|app|8a1ff425] Rendered hosts/new.html.erb within layouts/application (Duration: 2866.1ms | Allocations: 332843)
2024-04-09T09:53:22 [I|app|8a1ff425] Rendered layouts/base.html.erb (Duration: 14.3ms | Allocations: 12091)
2024-04-09T09:53:22 [I|app|8a1ff425] Rendered layout layouts/application.html.erb (Duration: 2882.0ms | Allocations: 345417)
2024-04-09T09:53:22 [I|app|8a1ff425] Completed 200 OK in 103343ms (Views: 2850.1ms | ActiveRecord: 54.9ms | Allocations: 433238)
The compatibility matrix for "foreman_fog_proxmox" lists the latest compatible version as Proxmox VE 6.2. The latest Proxmox VE 6.4 was last updated in 2021. Is there any pull on updating this to Proxmox VE 8 or are we stuck on version 6 from 2021 to be able to use Foreman with Proxmox?
Best Regards
Karli Sjöberg
No data to display
Actions