foreman_fog_proxmox icon indicating copy to clipboard operation
foreman_fog_proxmox copied to clipboard

Associate VMs fails

Open l00d3r opened this issue 2 years ago • 3 comments

I think it's because of case sensitivity on VM association as described here

Changing app/models/foreman_fog_proxmox/proxmox.rb

    def associated_host(vm)
      associate_by('mac', vm.mac)
    end

to

    def associated_host(vm)
      associate_by('mac', vm.interfaces.map(&:mac).map { |mac| Net::Validations.normalize_mac(mac) })
    end

allowed host association

l00d3r avatar Aug 03 '21 15:08 l00d3r

With proxmox plugin 0.14 and foreman 3.1 the above patch didn't work (I still cannot associate proxmox VMs due to mac case sensitive check)

aristella avatar Feb 27 '22 09:02 aristella

Hey, can you please test it again with version 0.14.3 ? @aristella

Manisha15 avatar Nov 15 '23 08:11 Manisha15

I am unable to associate VMs and I am using version 0.15.0. I get the following error: Oops, we're sorry but something went wrong undefined method match? for nil:NilClass

Additionally I have renamed all my VM's in proxmox in lowercase to avoid this issue and it still doesn't work so I am not sure if this issue is the same or something different.

I can provide more information required.

phantomdez avatar Jun 19 '24 19:06 phantomdez