Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1625264

Summary: Can not change checksum type of the Custom product.
Product: Red Hat Satellite Reporter: maneesh verma <mverma>
Component: RepositoriesAssignee: Andrew Kofink <akofink>
Status: CLOSED ERRATA QA Contact: Stephen Wadeley <swadeley>
Severity: high Docs Contact:
Priority: high    
Version: 6.4CC: akofink, mverma, swadeley
Target Milestone: 6.4.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-16 19:29:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description maneesh verma 2018-09-04 13:57:33 UTC
Description of problem:

Changing the custom product checksum type is failing with error message.

How reproducible:

Every time when we create a custom product.


Steps to Reproduce:
1. Create a custom product with a repository like EPEL.
2. Select the checksum type, and create the repository.
3. Go back to the repository and change the checksum type it will fail with an error.

Actual results:

Changing checksum type fails with error-

undefined method `default_capsule?' for nil:NilClass (NoMethodError)
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.22/app/models/katello/glue/pulp/repo.rb:221:in `yum_importer_values'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.22/app/mode


Expected results:

It should allow us to change the checksum type as the checksum type for 5Server repo is SHA1 and not SHA256.


Additional info:

Comment 2 Andrew Kofink 2018-09-06 20:25:59 UTC
Could you please upload the full trace?

Comment 9 Bryan Kearney 2018-10-16 19:29:43 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:2927