Connecting smart_proxy with Chef plugin to foreman

Problem:

  • Frish installed foreman 2.0.0 with chef plugin. In “About” it shows that foreman_chef version 0.9.0 is installed.
  • Frish installed foreman smart proxy on another server with chef plugin. The proxy is started and looks working.

Using the web interface I try to create a new smart proxy - Infrastructure -> Smart Proxies -> Create -> Name and URL are correct.

The error message is:
Features “chef” in this proxy are not recognized by Foreman. If these features come from a Smart Proxy plugin, make sure Foreman has the plugin installed too.

The same is in production.log:
2020-05-01T22:56:38 [E|app|f6aa52f6] Failed to save: Features “chef” in this proxy are not recognized by Foreman. If these features come from a Smart Proxy plugin, make sure Foreman has the plugin installed too.

No relevant messages in proxy.log:
2020-05-01T22:56:43 f6aa52f6 [I] Started GET /v2/features
2020-05-01T22:56:43 f6aa52f6 [I] Finished GET /v2/features with 200 (3.6 ms)

I stopped and started Foreman - it didn’t help. It still doesn’t want to add the proxy, but shows chef plugin installed and chef settings in Administer -> Settings -> Chef

Expected outcome:

Smart proxy is added

Foreman and Proxy versions:

Foreman 2.0.0
Foreman Proxy 2.0.0

Foreman and Proxy plugin versions:

Foreman Chef plugin 0.9.0
Smart proxy Chef plugin 0.2.0

Distribution and version:
Foreman - CentOS 7.8
Foreman Proxy - RHEL 7.8

I don’t know what I did, but somehow Chef is there:

foreman=# select * from features where name=‘Chef’;
id | name | created_at | updated_at
----±-----±---------------------------±---------------------------
15 | Chef | 2020-05-01 22:43:38.339443 | 2020-05-01 22:43:38.339443

and I was able to add the smart proxy… I think it was foreman-rake db:migrate