Foreman 3.13, Proxmox plugin (on Ubuntu 22.04)

I am setting up a greenfield test lab with ubuntu 22.04, running foreman and proxmox ve 8.3.3. I’d like to be able to provision a image template for ubuntu 22.04 on the proxmox system.

I’ve installed and configured the proxmox plugin, configured the access token (checks green) and added the template to the profile I am attempting to use.

I believe I’ve the right provisioning templates set (using Proxmox UserData).

When attempting to build in short order Foreman will error out almost immediately with

ERF42-3445 [Foreman::Exception]: Unable to ssh into proxmox server: undefined method `split’ for nil:NilClass

The /var/log/foreman/production.log in debug mode shows the same issue.

I can see the logs on the proxmox side showing the vm being cloned and then destroyed almost 1 second later.

I’ve attempted to use some of the other provisioning templates to no avail (same issue).

I am a bit confused why it’s trying to ssh into the proxmox server (at least that is what the error appears to mean) and hoping someone can point me in a direction on this one.

Not sure about the issue as you describe it, but it seems like the Foreman plugin is not ready for Proxmox >= 8.0:

I have not used the proxmox plugin myself yet, but the plugin documentation mentions that your username for proxmox needs to be <username>@<something>.
Since the error you recieve is thrown here, caused by split on a nil object, I would guess you are missing the proxmox username?
From what I understand, the plugin tries to SSH into the proxmox when you have user-data/cloud-init config attached to a host to create and attach an ISO with the config to new host.

Ah, I did not see that (requires 8.0). That could easily be the case. I’ll see if I can do a test with 8.0.