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 1696273 - Katello::Content uses removed Katello::Glue::Candlepin::Product.import_product_content
Summary: Katello::Content uses removed Katello::Glue::Candlepin::Product.import_produc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.5.0
Assignee: Jonathon Turel
QA Contact: Mike McCune
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-04 12:50 UTC by Evgeni Golov
Modified: 2019-11-05 22:48 UTC (History)
2 users (show)

Fixed In Version: tfm-rubygem-katello-3.10.0.43-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-14 12:40:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 26535 0 High Closed Katello::Content uses removed Katello::Glue::Candlepin::Product.import_product_content 2020-03-13 17:44:44 UTC
Red Hat Product Errata RHSA-2019:1222 0 None None None 2019-05-14 12:40:43 UTC

Description Evgeni Golov 2019-04-04 12:50:57 UTC
In #25981, we removed <code>import_product_content</code> from <code>Katello::Glue::Candlepin::Product</code>, however, this method is still used in <code>Katello::Content</code>:

<pre>
    def self.import_all
      Organization.all.each do |org|
        org.products.each do |product|
          begin
            product_json = Katello::Resources::Candlepin::Product.get(org.label,
                                                                  product.cp_id,
                                                                  %w(productContent)).first
            product_content_attrs = product_json['productContent']
            Katello::Glue::Candlepin::Product.import_product_content(product, product_content_attrs)
          rescue RestClient::NotFound
            Rails.logger.warn _("Product with ID %s not found in Candlepin. Skipping content import for it.") % product.cp_id
          end
        end
      end
    end
</pre>

I *think* this code is only called in the <code>katello:reimport</code> rake task, but that one will fail now.

Comment 1 Evgeni Golov 2019-04-04 12:51:00 UTC
Created from redmine issue https://projects.theforeman.org/issues/26535

Comment 2 Evgeni Golov 2019-04-04 12:51:03 UTC
Upstream bug assigned to None

Comment 6 Brad Buckingham 2019-04-05 18:12:59 UTC
The PR was merged yesterday, but seems automation did not move BZ to POST.  Doing it now.

Comment 10 Mike McCune 2019-04-18 04:28:29 UTC
VERIFIED in Snap 23

# foreman-rake katello:reimport
Importing Katello::Erratum
Importing Katello::PackageGroup
Importing Katello::PuppetModule
Importing Katello::Rpm
Importing Katello::Srpm
Importing Katello::ModuleStream
Importing Katello::YumMetadataFile
Importing Katello::Deb
Importing Katello::FileUnit
Importing Katello::Subscription
Importing Katello::Pool
Importing Katello::DockerManifest
Importing Katello::DockerManifestList
Importing Katello::DockerTag
Importing Katello::ContentViewPuppetEnvironment
Importing Katello::Content
Importing Katello::OstreeBranch
Importing Activation Key Subscriptions
Importing Linked Repositories

Comment 12 errata-xmlrpc 2019-05-14 12:40: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-2019:1222


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