Bug #11870

Multiple hosts created when saltstack minion_id differs from FQDN.

Added by Jim Dubinsky about 6 years ago. Updated over 1 year ago.

Foreman Integration
Target version:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:


We have minion_ids that are frequently just the uppercase version of the first part of the hostname. When a minion_id is the FQDN, it seems that all information comes through into the foreman host list. When using the partial hostname, or one that doesn't match the FQDN, we don't see the OS/OS release info or the Model info (such as VMWare). This does come through when we use the FQDN. The state.highstate report info seems to come through no matter whether the minion_id matches the FQDN or not. With the single part hostname, regardless of whether the minion_id is upper or lower case.

Can this be remedied to support full functionality even when the salt minion_id doesn't match the host's FQDN?

We use saltstack with foreman and the smart proxy.
Installed via rpm:
(on Foreman host)

(On salt master, which is different from foreman host)

Related issues

Has duplicate Salt - Bug #16156: Foreman Salt - duplication issueDuplicate2016-08-17


#1 Updated by Jim Dubinsky about 6 years ago

Interestingly, the requisite facts/grainsa are all visible from the hammer cli, just not in the hosts list part of the webui.

#2 Updated by Stephen Benjamin about 5 years ago

  • Subject changed from OS/release information not gathered when saltstack minion_id differs from FQDN. to Multiple hosts created when saltstack minion_id differs from FQDN.

Another user reported this as well, and there's lots of odd behavior when a minion id differs from the FQDN.

Not sure how easy it is to fix, because the SaltStack reports contain the minion ID in the report name:

There's no way to get the FQDN AFAIK from the saltstack report. Maybe we can add a minion id to the host
and match up reports/grains that way.

#3 Updated by Stephen Benjamin about 5 years ago

  • Has duplicate Bug #16156: Foreman Salt - duplication issue added

#4 Updated by Nicolas Rodriguez almost 5 years ago

Hi there! Got the same here. My hosts have or as minion_id.
I've made a patch on that adds a salt_minion_id on the host and it works pretty well.

#5 Updated by Ido Kaplan almost 5 years ago


I have installed Foreman Salt Proxy plugin via the foreman-installer.

How can I apply the patch?


#6 Updated by Anonymous almost 5 years ago

Nicolas, could you open a pull request with your changes?

#7 Updated by Ido Kaplan almost 5 years ago

Hi Nicolas,

I will very appreciate if your can share your changes.
I really need it.


#8 Updated by Mihai Cindea over 1 year ago

For anyone who is still having this issue:
While trying to craft a patch for report_importer.rb I realized that actually this is solvable just by setting "Append domain names to the host" to "No" in Settings in Foreman UI
Feel free to poke me if you have any issues.

Also available in: Atom PDF