Bug #16520
closedassociate VM - MAC compare is case senstive
Description
Something that just caught me out, when associating a Xen VM with a foreman Host. The MAC comparison is case sensitive. I ended up with with the MAC in XenCenter recorded as "02:00:89:DE:AB:43" but the MAC recorded in Foreman as "02:00:89:de:ab:43", this caused the error 'No Host found to associate this vm with". Changing the MAC to be lower case is XenCentre solved the issue. It would be better if this comparison was case insensitive.
Updated by Anonymous about 8 years ago
- Project changed from Xen to Foreman
- Category set to Compute resources
associate_by() is in Foreman core
Updated by Anonymous about 8 years ago
Dan, could you test https://github.com/theforeman/foreman-xen/pull/46?
Updated by Adam Winberg almost 7 years ago
Just got hit with this with Vsphere, where MAC address has been set manually in vcenter using uppercase, and Foreman uses lowercase. Thus I cant associate the VM with the host in Foreman ("No host found to associate this VM with").
This is on RHEL7, Foreman 1.16.0.
Updated by Dominik Hlavac Duran almost 6 years ago
- Assignee set to Dominik Hlavac Duran
Updated by The Foreman Bot almost 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/6535 added
Updated by Dominik Hlavac Duran over 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset 04327448282cf335b463644adae12521592ccfbb.