Sorry if this is an old problem but I am unable to find any information.
I am trying to upgrade from 2.5.4 to 3.0.1 and get some warning with both versions (I think they were present in older version but I have never checked before)
First warning occurs when I do a puppet agent -t (or when the puppet service runs) The report parameter was renamed to config_reports and the API endpoint has changed from /reports to /config_reports. Please use the new API.
And I get the second warning when I open the dashboard Setting all_out_of_sync_disabled has no definition, please define it before using
frederic:
The report parameter was renamed to config_reports and the API
endpoint has changed from /reports to /config_reports. Please use
the new API.
The endpoint was renamed in Refactor #28594: drop reports api endpoint
Foreman but I am not sure why are you still running into this.
Perhaps an old proxy version or old configuration (ENC.rb)? @ekohl any
ideas?
the files are identical on the fresh install and the production
( /usr/share/foreman-installer/modules/puppetserver_foreman/files/enc.rb and
/usr/share/foreman-installer/modules/foreman/lib/puppet/functions/foreman/enc.rb
)
frederic:
And I get the second warning when I open the dashboard *Setting
all_out_of_sync_disabled has no definition, please define it
before using*
This looks like you have some value in |settings.yaml| which is no
longer supported, not sure. @ezr-ondrej any idea?
This is harmless, it is warning about reading a setting that doesn’t exists. That was always happening, but we’ve introduced a warning message so we know about such cases. Thanks for reporting!
I think foreman-installer will reset the file to the original (not sure about that). You should restart the foreman service after editing the file (not sure if it’s also called foreman on Debian tho).
For the first warning (The report parameter was renamed to config_reports and the API endpoint has changed from /reports to /config_reports. Please use the new API.)
I found old backups (end of 2020 and start of 2021)
I did not have the message when the server was runing 1.24.3 but it is present in 2.2.2
Maybe I forgot something or made a mistake in the upgrade to version 2.
This warning is quite old and foreman work very well but maybe someone will remember
how to get rid of it