Skip to content

Warn about unrecognized smart proxy features#554

Draft
adamruzicka wants to merge 1 commit into
theforeman:masterfrom
adamruzicka:unknown-proxy-features
Draft

Warn about unrecognized smart proxy features#554
adamruzicka wants to merge 1 commit into
theforeman:masterfrom
adamruzicka:unknown-proxy-features

Conversation

@adamruzicka

Copy link
Copy Markdown
Contributor

Companion to theforeman/foreman#11017

Why are you introducing these changes? (Problem description, related links)

Currently if the proxy offers more features than Foreman knows, those would go silently ignored (unless all of the proxy's features are unknown to Foreman), which makes it hard to spot misconfigured deployments.

What are the changes introduced in this pull request?

After registering a proxy, fctl will check if all the proxy's features are recognized by Foreman and warn if not.

How to test this pull request

Steps to reproduce:

  1. Somehow force a deployment where the proxy has features which Foreman doesn't know
  2. See the warning

Checklist

  • Tests added/updated (if applicable)
    • figure out how to do this
  • Documentation updated (if applicable)
    • this doesn't really need docs

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@adamruzicka adamruzicka force-pushed the unknown-proxy-features branch from 540d0d5 to a2f7446 Compare June 10, 2026 15:46
@adamruzicka

Copy link
Copy Markdown
Contributor Author

figure out how to do this [tests]

This would require a test that would intentionally break things just to check that this would then emit a warning. I'm open to idea, but at this point I'm leaning towards not having tests for this here.

msg: >-
Proxy {{ foreman_proxy_name }} has features not recognized by Foreman:
{{ _foreman_proxy_registration.entity.smart_proxies[0].unrecognized_features | join(', ') }}.
If these features come from a Smart Proxy plugin, make sure Foreman has the plugin installed too.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think a user can act on this cleanly. Plugins are not a thing we expose here in foremanctl. We present the user with features. I like the general idea of where you are going with this, but it feels like a post_install check that should happen once at the end of deploy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants