Project

General

Profile

Bug #21222

capsule-certs-generate throws errors for puppet-agent and puppetserver not installed

Added by Eric Helms almost 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Installer
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

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

Description of problem:
When we run capsule_certs_generate on upgraded satellite(to 6.3), it generates the capsule certs file but it throws below errors:

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
[ERROR 2017-10-03 17:21:39 verbose] rpm -q puppet-agent failed! Check the output for error!
[ERROR 2017-10-03 17:21:39 verbose] rpm -q puppetserver failed! Check the output for error!
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Version-Release number of selected component (if applicable):
Satellite 6.3.0 snap 18.0

How reproducible:
Always

Steps to Reproduce:
1. Upgrade satellite from satellite 6.2 to 6.3
2. After upgrade, attempt to generate capsule cert using capsule-certs-generate utility on satellite.

Actual results:

Capsule cert tar generates but the capsule-certs-generate utility throws errors:
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
[ERROR 2017-10-03 17:21:39 verbose] rpm -q puppet-agent failed! Check the output for error!
[ERROR 2017-10-03 17:21:39 verbose] rpm -q puppetserver failed! Check the output for error!
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Expected results:
Capsule-certs-generate utility should generate certs tar without any errors

Additional info:
1. We also observed these errors while fresh installing satellite 6.3, installer passes but same errors are raised.
2. I see that puppet-server rpm is present on the server instead of puppetserver rpm so it seems utility algorithm is searching for wrong rpm name.
3. There is no such puppet-agent rpm found in the satellite.

Associated revisions

Revision 0dda24c8 (diff)
Added by Eric Helms almost 4 years ago

Fixes #21222 - Don't log rpm -q output

When running rpm -q we only care about the result, not to log
the result of the execution. This could lead to ERROR output
when no real error is occurring.

History

#1 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Eric Helms
  • Pull request https://github.com/Katello/katello-installer/pull/546 added

#2 Updated by Eric Helms almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Justin Sherrill almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 250

Also available in: Atom PDF