Created redmine issue http://projects.theforeman.org/issues/18388 from this bug
Upstream bug assigned to email@example.com
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/18388 has been resolved.
Please add verifications steps for this bug to help QE verify
I registered a vmware host to satellite, along with it being reported by virt-who. I then shortened its hostname. Next, I associated the host to it's corresponding vm in the compute resource, and made it managed by satellite. Then, I created/registered a new host with a hostname that is an expansion of the first host's short name.
At this point, I ran the unify hosts task. As a result, the hosts were correctly not unified.
Continuing, I unregistered the original host and managed the second, then re-ran the command.
-bash-4.1# foreman-rake katello:unify_hosts USE_NAME=true
Host dhcp-10-12-211-60.fake.domain.com is registered with subscription-manager but is managed, please un-unmanage this host first.
Verified in Satellite 6.2.9 Snap 2.
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.