Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1495847 - capsule-certs-generate throws NoMethodError post migration to 6.3
Summary: capsule-certs-generate throws NoMethodError post migration to 6.3
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: Martin Bacovsky
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-26 12:29 UTC by Jitendra Yejare
Modified: 2019-09-26 14:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 21138 0 None None None 2017-09-27 14:28:19 UTC

Description Jitendra Yejare 2017-09-26 12:29:06 UTC
Description of problem:
After upgrading satellite 6.2 to 6.3, generating capsule cert using 'capsule-certs-generate' is broken.
It throws NoMethodError:
------------------------------------------------------------
# capsule-certs-generate -v --foreman-proxy-fqdn <capsule_fqdn> --certs-tar <capsule_fqdn>_certs.tar

/usr/sbin/capsule-certs-generate:87:in `ensure in <main>': undefined method `cleanup' for nil:NilClass (NoMethodError)
	from /usr/sbin/capsule-certs-generate:87:in `<main>'
------------------------------------------------------------

Version-Release number of selected component (if applicable):
Satellite 6.3 snap 17

How reproducible:
Always

Steps to Reproduce:
1. Satellite and Capsule on 6.2
2. Upgrade Satellite
3. To upgrade capsule, generate latest capsule cert tar on upgrade satellite

Actual results:
capsule-certs-generate fails with NoMethodError:

------------------------------------------------------------
# capsule-certs-generate -v --foreman-proxy-fqdn <capsule_fqdn> --certs-tar <capsule_fqdn>_certs.tar

/usr/sbin/capsule-certs-generate:87:in `ensure in <main>': undefined method `cleanup' for nil:NilClass (NoMethodError)
	from /usr/sbin/capsule-certs-generate:87:in `<main>'
------------------------------------------------------------

Expected results:
capsule-certs-generate should be migrated properly, should be functional and shouldn't throw any incorrect errors.

Comment 2 Martin Bacovsky 2017-09-27 14:27:34 UTC
To reproduce it is necessary the 'initial_organization:' to be blank in the answers file before running capsule-certs-generate.

Comment 3 Martin Bacovsky 2017-09-27 14:28:17 UTC
Created redmine issue http://projects.theforeman.org/issues/21138 from this bug

Comment 4 Satellite Program 2017-09-27 16:08:29 UTC
Upstream bug assigned to mbacovsk

Comment 5 Satellite Program 2017-09-27 16:08:33 UTC
Upstream bug assigned to mbacovsk

Comment 6 Satellite Program 2017-09-27 22:08:25 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21138 has been resolved.

Comment 7 Jitendra Yejare 2017-10-04 10:04:38 UTC
Verified!

Satellite 6.3 snap 18.0


Capsule_certs_generate is now creating certs tar without NoMethodError.

But there is another bug we found which is not related to this bug is that capsule cert generate throws below error after generating cert file:

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
[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!
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

A separate issue has been filed to handle this issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1498412

Comment 8 Bryan Kearney 2018-02-21 17:32:38 UTC
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, 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-2018:0336

Comment 9 Bryan Kearney 2018-02-21 17:33:08 UTC
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, 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-2018:0336


Note You need to log in before you can comment on or make changes to this bug.