theforeman / foreman_fog_proxmox

Foreman plugin to add Proxmox compute resource based on fog-proxmox gem
GNU General Public License v3.0
102 stars 30 forks source link

Host cannot be deleted in Foreman if associated VM in Proxmox no longer exists #269

Closed Manisha15 closed 1 year ago

Manisha15 commented 1 year ago

If the vm associated with Foreman host does not exist in proxmox server then deleting the foreman host throws error.

Steps to Reproduce:

  1. Delete in foreman a host where the associated VM in Proxmox no longer exists.

Actual results: Foreman throws an error and does not delete the host.

Expected results: Host in Foreman is deleted.

Additional info: Host can only be deleted after disassociating it or if Destroy associated VM on host delete in settings is set to No.