Project

General

Profile

Bug #34278

Puppet disable command fails on Capsule

Added by Amit Upadhye 4 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2034552

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:
  1. 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:
  2. 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

Associated revisions

Revision 4714a3e4 (diff)
Added by Amit Upadhye 4 months ago

Fixes #34278 - only stop services if available

Revision 6f7fb912 (diff)
Added by Amit Upadhye 3 months ago

Refs #34278 - run rake on Foreman only

History

#1 Updated by The Foreman Bot 4 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_maintain/pull/578 added

#2 Updated by Amit Upadhye 4 months ago

  • Status changed from Ready For Testing to Closed

#3 Updated by The Foreman Bot 3 months ago

  • Pull request https://github.com/theforeman/foreman_maintain/pull/585 added

Also available in: Atom PDF