[discovery] Discovery rule VS Hostgroup taxonomies

discovery

#1

Problem:
Discovery rule needs to have exactly the same 1:1 organisations/locations assigned as the hostgroup used.
Expected outcome:
Should be enough for discovery rule to exist in a subset of hostgroup taxonomies.
Foreman and Proxy versions:
1.21.3
Foreman and Proxy plugin versions:
Discovery 14.0.1
Other relevant data:
Please consider this scenario:

  • hostgroup X assigned to locations A, B
  • user Y assigned only to location A
  • user Y creates discovery rule Z pointing to hostgroup X
  • ERROR, because user Y does not belong to location B (cannot assign and generally has no idea about it)
ERROR app : Failed to save: Locations Host group location LOCATION must also be associated to the discovery rule