Project

General

Profile

Actions

Bug #5106

closed

Non-Puppet proxies are shown in new host form Puppet proxy dropdowns

Added by Dominic Cleal about 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Host creation
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When creating a new host, smart proxies without the Puppet or Puppet CA features are listed in the "Puppet Master" and "Puppet CA" dropdown menus.

This seems to be an issue with the use of the "with_taxonomy_scope_override" scope as it forces an unscoped list of smart proxies, which means we lose the filtered view of proxies with particular features:

app/helpers/hosts_and_hostgroups_helper.rb
52:    proxies = SmartProxy.with_features("Puppet CA").with_taxonomy_scope_override(@location,@organization)

SmartProxy.with_features("Puppet CA") returns the Puppet CA proxies, but then calling .with_taxonomy_scope_override on that calls unscoped so it becomes a list of all proxies, filtered by location + org.

Marking for 1.5.0 as it's a regression.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #5660: All OS Mirrors are Shown in the Dropdown listClosedStephen Benjamin05/10/2014Actions
Actions

Also available in: Atom PDF