Bug #21138
closedcapsule-certs-generate throws NoMethodError post migration to 6.3
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1495847
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.
Updated by The Foreman Bot about 7 years ago
- Status changed from New to Ready For Testing
- Assignee set to Martin Bacovsky
- Pull request https://github.com/Katello/katello-installer/pull/543 added
Updated by Justin Sherrill about 7 years ago
- Translation missing: en.field_release set to 250
Updated by Martin Bacovsky about 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello-installer|4d25f6d8f3ca810d61e2fa18e3b6698cc1f13828.