foreman_fog_proxmox
foreman_fog_proxmox copied to clipboard
Associate VMs fails
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
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)
Hey, can you please test it again with version 0.14.3 ? @aristella
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.