Description of problem: When trying to associate a vmware VM the following is hit: Error: No host found to associate this VM with Version-Release number of selected component (if applicable): 6.2.12-6 Additional info: Resolution: In vi /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb change: From this: 454- def associated_host(vm) 455: associate_by("mac", vm.mac) 456- end To this: 454- def associated_host(vm) 455: associate_by('mac', vm.interfaces.map(&:mac).map { |mac| Net::Validations.normalize_mac(mac) }) 456- end It looks like this line would need to be changed for all other compute resource options as well.
So far this change works just fine for vmware and libvirt compute resources, from tests done internally and by the customer.
Connecting redmine issue http://projects.theforeman.org/issues/16520 from this bug
Upstream bug assigned to dhlavacd
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/16520 has been resolved.
*** Bug 1706998 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:3172