Facts API in Smart Proxy

Hello,

we have a simple API in Smart Proxy that returns facts (all or
individual) of the proxy server itself. This feature is not in use and
it is not even turned on by default by our installer.

Discovered nodes made use of the API until now, recent version 3.0 of
the image has its own API now, so this feature will be left unused.

I am going to push a PR to remove this feature completely. If you use
this feature, speak up and we can refactor it into external smart proxy
plugin. Otherwise we can just remove the code.

Thanks

··· -- Later, Lukas #lzap Zapletal

While we do use this feature at the moment, it is not something that we
heavily rely on, so as long as we can pull/refresh the facts of discovered
hosts from Foreman API, we'll be fine.

However, I'd like to understand the changes and planned new architecture
you are talking about in regards to discovery image, discovery plugin and
interractions between Foreman instance with discovered hosts. Is it
documented some place I can read? One of the things I mentioned to you
before is that we have not used discovery image itself but instead
installed smart proxy on our own netbooted OS. If we can't do that anymore,
then it is a blow to us and our plans.

Please let me know.
Thanks!

Hello,

> While we do use this feature at the moment, it is not something that we
> heavily rely on, so as long as we can pull/refresh the facts of discovered
> hosts from Foreman API, we'll be fine.

we are not removing this feature from discovered nodes at all, the API
has changed and it will be no longer available on regular Smart Proxy
installations (it was disabled by default).

> However, I'd like to understand the changes and planned new architecture
> you are talking about in regards to discovery image, discovery plugin and
> interractions between Foreman instance with discovered hosts. Is it
> documented some place I can read? One of the things I mentioned to you
> before is that we have not used discovery image itself but instead
> installed smart proxy on our own netbooted OS. If we can't do that anymore,
> then it is a blow to us and our plans.

There are changes in the discovered node API, the "reboot" API call was
renamed into a different namespace and also Smart Proxy now listens on
both 8448 (HTTP) and 8443 (HTTPS) with self-signed cert generated.

For more info about the new API visit:

https://github.com/theforeman/smart_proxy_discovery_image/tree/master/lib/smart_proxy_discovery_image

And our plugin documentation as well.

··· -- Later, Lukas #lzap Zapletal

Thanks!

You have also mentioned (in some other thread) that new power API replaces
BMC API. I hope the latter one does not go away though, is it?

> You have also mentioned (in some other thread) that new power API replaces
> BMC API. I hope the latter one does not go away though, is it?

No BMC API stays, we are removing "shell BMC" provider only.

··· -- Later, Lukas #lzap Zapletal