Paul Smyth wrote:
I've used packages on Ubuntu, afaik.
Migrate settings log contains this:
/usr/share/foreman-proxy/extra/migrate_settings.rb:16:in `load_past_migrations!': Migration state file /usr/share/foreman-proxy/config/migration_state can't be found (RuntimeError)
from /usr/share/foreman-proxy/extra/migrate_settings.rb:264:in `<main>'
Thanks, this looks like a bug in the Debian package I introduced in 38a2776. Running touch /etc/foreman-proxy/migration_state
should fix this for future upgrades.
Adding this has now broken two components instead of one
Disabling all modules in the group ['puppet_proxy_legacy', 'puppet'] due to a failure in one of them: Provider 'puppet_proxy_legacy' settings conflict with the main plugin's settings: [:puppet_conf, :puppet_ssl_ca]
/usr/share/foreman-proxy/lib/proxy/plugin_initializer.rb:276:in `merge_settings'
/usr/share/foreman-proxy/lib/proxy/plugin_initializer.rb:245:in `load_settings'
/usr/share/foreman-proxy/lib/proxy/plugin_initializer.rb:81:in `block in load_provider_settings'
/usr/share/foreman-proxy/lib/proxy/plugin_initializer.rb:80:in `each'
/usr/share/foreman-proxy/lib/proxy/plugin_initializer.rb:80:in `load_provider_settings'
/usr/share/foreman-proxy/lib/proxy/plugin_initializer.rb:155:in `block in initialize_plugins'
/usr/share/foreman-proxy/lib/proxy/plugin_initializer.rb:155:in `each'
/usr/share/foreman-proxy/lib/proxy/plugin_initializer.rb:155:in `initialize_plugins'
/usr/share/foreman-proxy/lib/launcher.rb:122:in `launch'
/usr/share/foreman-proxy/bin/smart-proxy:6:in `<main>'
This is despite the fact that I've corrected puppet_proxy_legacy.yml to contain the correct entries and confirmed they match puppet.conf
It's likely that you have duplicate entries now between config files, entries that shouldn't be in puppet.yml, though it's hard to tell without seeing all of the configs. There are quite a few steps to the migration, not only that change.
I'd suggest running:
touch /etc/foreman-proxy/migration_state
ruby /usr/share/foreman-proxy/extra/migrate_settings.rb
mkdir ~/foreman-proxy-configs-backup
cp -a /etc/foreman-proxy/settings.d/* ~/foreman-proxy-configs-backup/
cp /usr/share/foreman-proxy/tmp/result/settings.d/*.yml /etc/foreman-proxy/settings.d/
chgrp foreman-proxy /etc/foreman-proxy/settings.d/*.yml
service foreman-proxy restart
This should run the proper migrations and activate them.