Complete removal of Puppet data is broken in 3.17
foreman-maintain plugin purge-puppet --remove-all-data
Running Remove Puppet feature
================================================================================
Check for Puppet capsules from the database: [OK]
--------------------------------------------------------------------------------
Remove Puppet feature: [OK]
--------------------------------------------------------------------------------
Remove Puppet data: [FAIL]
Failed executing foreman-rake purge:puppet, exit status 1:
rake aborted!
Puppet data could not be purged
/usr/share/foreman/lib/tasks/cleanup.rake:22:in `block (2 levels) in <top (required)>'
/usr/share/gems/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
Tasks: TOP => purge:puppet
(See full trace by running task with --trace)
--------------------------------------------------------------------------------
Scenario [Remove Puppet feature] failed.
The following steps ended up in failing state:
[puppet-remove-puppet-data]
Resolve the failed steps and rerun the command.
In case the failures are false positives, use
--whitelist="puppet-remove-puppet-data”
This is the solution to remove Puppet from Foreman 3.18:
- Remove puppet-plugins using foreman-installer:
sudo foreman-installer --no-enable-foreman-plugin-puppet --no-enable-foreman-cli-puppet --foreman-proxy-puppet false --foreman-proxy-puppetca false --no-enable-puppet --puppet-server false
- Remove Puppet plugin data
sudo foreman-maintain plugin purge-puppet --remove-all-data
This is the output from my system:
Running Remove Puppet feature
================================================================================
Check for Puppet capsules from the database: [OK]
--------------------------------------------------------------------------------
Remove Puppet feature: [OK]
--------------------------------------------------------------------------------
Remove Puppet data: [OK]
--------------------------------------------------------------------------------
Restart applicable services:
Restarting the following service(s):
redis, postgresql, pulpcore-api, pulpcore-content, [pulpcore-worker@1.service](mailto:pulpcore-worker@1.service), [pulpcore-worker@2.service](mailto:pulpcore-worker@2.service), [pulpcore-worker@3.service](mailto:pulpcore-worker@3.service), [pulpcore-worker@4.service](mailto:pulpcore-worker@4.service), [pulpcore-worker@5.service](mailto:pulpcore-worker@5.service), [pulpcore-worker@6.service](mailto:pulpcore-worker@6.service), tomcat, dynflow-sidekiq@orchestrator, foreman, httpd, puppetserver, dynflow-sidekiq@worker-1, dynflow-sidekiq@worker-hosts-queue-1, foreman-proxy
\ restarting puppetserver
Job for puppetserver.service failed because the control process exited with error code.
See "systemctl status puppetserver.service" and "journalctl -xeu puppetserver.service" for details.
- All services restarted [OK]
————————————————————————————————————————
- uninstall openvox-server if still present
sudo rpm -qa openvox-server
sudo dnf erase openvox-server
- Check foreman-installer
Re-run foreman-installer without any options.
Complete removal of Puppet data is broken in 3.17
This is the solution to remove Puppet from Foreman 3.18:
This is the output from my system:
Re-run foreman-installer without any options.