Description of problem: On Capsule the command to disable puppet plugin fails with "undefined method `services' for nil:NilClass". Version-Release number of selected component (if applicable): 7.0 snap 3 How reproducible: always Steps to Reproduce: 1. Have 7.0 Capsule registered to Satellite 2. Enable puppet: # satellite-installer --foreman-proxy-puppet true \ --foreman-proxy-puppetca true \ --foreman-proxy-content-puppet true \ --enable-puppet \ --puppet-server true \ --puppet-server-foreman-ssl-ca /etc/pki/katello/puppet/puppet_client_ca.crt \ --puppet-server-foreman-ssl-cert /etc/pki/katello/puppet/puppet_client.crt \ --puppet-server-foreman-ssl-key /etc/pki/katello/puppet/puppet_client.key 3. Try to disable puppet: # foreman-maintain plugin purge-puppet Actual results: Running Remove Puppet feature ================================================================================ Remove Puppet feature: [FAIL] undefined method `services' for nil:NilClass -------------------------------------------------------------------------------- Scenario [Remove Puppet feature] failed. The following steps ended up in failing state: [puppet-remove-puppet] Resolve the failed steps and rerun the command. In case the failures are false positives, use --whitelist="puppet-remove-puppet" Expected results: Successful run
Created redmine issue https://projects.theforeman.org/issues/34278 from this bug
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34278 has been resolved.
The original error was resolved, which uncovered another issue when using `--remove-all-data` option: # foreman-maintain plugin purge-puppet --remove-all-data Running Remove Puppet feature ================================================================================ Remove Puppet feature: [OK] -------------------------------------------------------------------------------- Remove Puppet data: [FAIL] Failed executing foreman-rake purge:puppet, exit status 127: sh: foreman-rake: command not found -------------------------------------------------------------------------------- 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"
Verified on 7.0 snap 9
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Satellite 6.11 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5498