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 1507071 - Errata apply from errata page fails
Summary: Errata apply from errata page fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Errata Management
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Andrew Kofink
QA Contact: Lukas Pramuk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-27 15:17 UTC by Stanislav Tkachenko
Modified: 2019-04-01 20:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 17:01:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot (47.68 KB, image/png)
2017-10-27 15:17 UTC, Stanislav Tkachenko
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 21521 0 None None None 2017-10-31 18:19:16 UTC

Description Stanislav Tkachenko 2017-10-27 15:17:12 UTC
Created attachment 1344337 [details]
Screenshot

Description of problem:
When using bulk errata apply from errata page, it fails saying "No content has been provided", though content hosts were properly selected.

From production.log
2017-10-27 10:29:47 e01b768d [app] [I] Started PUT "/api/v2/hosts/bulk/install_content" for 10.36.117.171 at 2017-10-27 10:29:47 -0400
2017-10-27 10:29:47 e01b768d [app] [I] Processing by Katello::Api::V2::HostsBulkActionsController#install_content as JSON
2017-10-27 10:29:47 e01b768d [app] [E] Katello::HttpErrors::BadRequest: No content has been provided.
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5.16/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb:299:in `validate_content_action'

Version-Release number of selected component (if applicable):
Satellite 6.3 Snap 21:
* katello-3.4.5-5.el7sat.noarch
* foreman-1.15.6.1-1.el7sat.noarch
* satellite-6.3.0-21.0.beta.el7sat.noarch

How reproducible:
Always

Steps to Reproduce:
1. Add content hosts with outdated package and repository with available errata 
2. Go to Content -> Errata. Select an erratum -> Content Hosts tab.
3. Select Content Hosts and apply the erratum.


Actual results:
Error "No content host has been provided"

Expected results:
Errata should be applied to selected content hosts.

Additional info:

Comment 4 Stanislav Tkachenko 2017-10-30 13:14:02 UTC
Apparently it was fixed in snap 22:
* foreman-1.15.6.3-1.el7sat.noarch
* katello-3.4.5-6.el7sat.noarch
* satellite-6.3.0-21.0.beta.el7sat.noarch

Comment 5 Andrew Kofink 2017-10-31 18:19:15 UTC
Created redmine issue http://projects.theforeman.org/issues/21521 from this bug

Comment 6 Andrew Kofink 2017-11-08 14:47:50 UTC
This may have been fixed by BZ 1506846. I'm moving to ON_QA for verification.

Comment 7 Lukas Pramuk 2017-11-22 13:47:03 UTC
VERIFIED.

@satellite-6.3.0-21.0.beta.el7sat.noarch
foreman-1.15.6.9-1.el7sat.noarch
katello-3.4.5-6.el7sat.noarch

by manual reproducer described in comment#0

2. Selected RHBA-2017:2926 openssh bug fix update (RHEL7.4) 

3. Chose to apply it to 4 hosts (RHEL7.3)

4 task(s), 4 success, 0 fail

@HOSTs: # rpm -q openssh
openssh-7.4p1-13.el7_4.x86_64

>>> errata applied successfully on the selected hosts

Comment 8 Bryan Kearney 2018-02-21 17:01:35 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.