theforeman/foreman_fog_proxmox

Proxmox 8.0.X support

gertz22 opened this issue · 8 comments

Hello I want to ask about Proxmox 8.0.X support? looks like Proxmox version Unknown is not semver suitable.
Thank you.

I am guessing this is why I cannot get a listing of VMs or templates after setting up the compute resource. I was able to get a successful connection but couldn't associate VMs

Edit: Nevermind I was able to deploy a VM from it. I do have other issues but they are happening on proxmox 7.4 as well so I don't think this is really an issue with Version 8.x

Hello I want to ask about Proxmox 8.0.X support? looks like Proxmox version Unknown is not semver suitable. Thank you.

I get the same results. Unable to make to get the plugin to work with proxmox 8 .

Hello I want to ask about Proxmox 8.0.X support? looks like Proxmox version Unknown is not semver suitable. Thank you.

I get the same results. Unable to make to get the plugin to work with proxmox 8 .

Which version of the plugin are you using? Is it still throwing error with 0.14.3 version?

Hello I want to ask about Proxmox 8.0.X support? looks like Proxmox version Unknown is not semver suitable. Thank you.

I get the same results. Unable to make to get the plugin to work with proxmox 8 .

Which version of the plugin are you using? Is it still throwing error with 0.14.3 version?

After upgrading to Foreman 3.8 and Katello 4.10 from 3.7 I was able to add my proxmox 8.0 server as a computer resource. So far it appears to work. I have not done much testing but it looks promising. Thanks for making my day. I added proxmox 8 using the ticket access. When time permits, I will try using user token.

Toutzn commented

Yes, but not all CPU types are in the list. Also, if I select 2 sockets and 2 cores, in Proxmox it is placed with 2 socket and 1 cores.

Need all CPUs and Supported Kernel for FreeBSD. FreeBSD will work also with the Linux Kernel Config in ProxMox.

DEBIAN:
image

image

FREEBSD:
image

image

`
Running OS: Ubuntu 20.04LTS

Foreman 3.9.1

foreman_fog_proxmox 0.15.0
`

has anyone had any luck creating a VM on Proxmox 8.2?
I keep getting this error:

2024-05-16T22:23:45 [E|app|ad2d9ebf] Failed to save: Failed to create a compute PROXMOX (Proxmox) instance lela-longford.example.com: Expected([200]) <=> Actual(400 Bad Request) ad2d9ebf | excon.error.response ad2d9ebf | :body => "{"data":null,"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'"}}" ... ad2d9ebf | :reason_phrase => "Parameter verification failed."

using Foreman 3.10 and foreman_fog_proxmox 0.15.0

Hello I want to ask about Proxmox 8.0.X support? looks like Proxmox version Unknown is not semver suitable. Thank you.

I get the same results. Unable to make to get the plugin to work with proxmox 8 .

Which version of the plugin are you using? Is it still throwing error with 0.14.3 version?

I think i got that issue when using auth token instead of password credentials.
need to recheck.
creds did work.

has anyone had any luck creating a VM on Proxmox 8.2? I keep getting this error:

2024-05-16T22:23:45 [E|app|ad2d9ebf] Failed to save: Failed to create a compute PROXMOX (Proxmox) instance lela-longford.example.com: Expected([200]) <=> Actual(400 Bad Request) ad2d9ebf | excon.error.response ad2d9ebf | :body => "{"data":null,"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'"}}" ... ad2d9ebf | :reason_phrase => "Parameter verification failed."

using Foreman 3.10 and foreman_fog_proxmox 0.15.0

https://community.theforeman.org/t/ssl-error-on-create-image/37947/6

this helped me.
especially:

Deployment of hosts does not as it seems Proxmox API has significant changes.

Dirty workaround again

Edited foreman_fog_proxmox-0.15.0/app/helpers/proxmox_compute_selectors_helper.rb
Modified “def proxmox_archs_map” first line to read:

OpenStruct.new(id: 'x86_64', name: '64 bits')

NB! i386 is not even supported by API any more. And “arch” can only be set by root@pve. So I changed user at compute resource proxmox connection

Modified all def proxmox_ostypes_map except “Unmanaged” to read:

OpenStruct.new(id: ‘l26’, name: ‘Debian’)

NB! name: ‘Debian’ is only example. The workaround is id: ‘l26’.

"l26" is the new supported "os type" for every linux.
i interpret those values as "linux 2.4" and "linux > 2.6" eg. "6.x - 2.6 Kernel / 2.4 Kernel"