Fixes #16197 - Host#smart_proxies returns only the host proxies #3752
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Doing the following:
for realms. Let's keep the realms proxy off, so it's unreachable.
puppet_ca_proxy
remove the 'realm' attribute. The host is created just fine with no
realm
HostBuildStatus#check_all_statuses
is called. This checks the host_status (OK), templates_status(OK), and
smart_proxies_status(FAIL). The host cannot be rebuilt.
The reason
smart_proxies_status
fails is thatsmart_proxy_ids
tries to find whether Realm is set.
However, I have overridden the option, because I don't want to set a
Realm since I don't want to boot the Realm proxy I have.
Host#smart_proxies should not look in the host.hostgroup object to
retrieve values for the proxy, but instead retrieve those from itself