Remote Execution fails to find hosts when "Display FQDN for hosts" is set to No

We are using Foreman 3.19.1 / Katello 4.21.0 and our hosts are registered using FQDN.

However, if we change the setting under AdministerSettingsGeneralDisplay FQDN for hosts to No, Remote Execution jobs fail to find the target hosts depending on how the job is initiated:

  1. Via the “All Hosts” page (New UI):
    Selecting a host and clicking Schedule a job works perfectly. The UI generates a search filter using the numeric host ID (e.g., id ^ (276)) which does not depend on the FQDN/non-FQDN setting.

  2. Via the individual Host Details page:
    Clicking into a specific server and then clicking Schedule a job fails. Instead of using the numeric ID, this page generates a search filter using the short hostname. Because the host is registered via FQDN, the search returns “Apply to 0 hosts”.

  3. Via the Old UI (All Hosts page):
    Testing with the legacy UI enabled makes the things worse; now it cannot run the job even from the All Hosts page, yielding 0 target hosts.

This looks like a bug to me. Has anyone else encountered this, or is there a known tracking issue for it?


Hi, yes, it is a valid issue and it is tracked under Bug #39630: REX Job Wizard shows "0 selected hosts" when triggered from Hosts Overview page with display_fqdn_for_hosts settings set to false - Foreman Remote Execution - Foreman