Bug 1378915 - Install Errata - Katello SSH Default contains incorrect syntax for job template
Summary: Install Errata - Katello SSH Default contains incorrect syntax for job template
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Remote Execution
Version: 6.2.2
Hardware: Unspecified
OS: Unspecified
Target Milestone: Unspecified
Assignee: Marek Hulan
QA Contact: jcallaha
: 1347479 (view as bug list)
Depends On:
Blocks: 1417113 1417118
TreeView+ depends on / blocked
Reported: 2016-09-23 13:56 UTC by Will D
Modified: 2020-09-10 09:48 UTC (History)
11 users (show)

Fixed In Version: rubygem-katello-
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1417113 (view as bug list)
Last Closed: 2017-03-06 08:28:53 UTC
Target Upstream Version:

Attachments (Terms of Use)
verification screenshot (94.58 KB, image/png)
2017-02-17 20:35 UTC, jcallaha
no flags Details

System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 16124 0 None None None 2017-01-26 12:15:41 UTC
Foreman Issue Tracker 16800 0 None None None 2016-10-05 11:19:41 UTC
Red Hat Product Errata RHBA-2017:0447 0 normal SHIPPED_LIVE Satellite 6.2.8 Async Bug Release 2017-03-06 13:23:41 UTC

Description Will D 2016-09-23 13:56:41 UTC
Description of problem:
Install Errata - Katello SSH Default Job template contains incorrect syntax
Job Template contains:
# Action
  yum -y update --advisories=RHSA-2016:1626

Job Template should contain:
# Action
  yum -y update --advisory=RHSA-2016:1626

Version-Release number of selected component (if applicable):
Satellite 6.2.2 

How reproducible:
Every time

Steps to Reproduce:
1. Choose Content Host
2. Select Errata
3. Select Install via Remote Execution
4. Schedule

Actual results:
Action fails with 
Loaded plugins: package_upload, product-id, search-disabled-repos, security,
: subscription-manager
Command line error: no such option: --advisories

Expected results:
yum update executes successfully with supplied advisory

Additional info:

Comment 1 Will D 2016-09-23 14:10:22 UTC
Should also note the syntax for multiple advisories is incorrect as well
# Action
  yum -y update --advisories=RHSA-2016:1406,RHSA-2016:0855

from man yum-security
yum -y update --advisory RHSA-2016:1406 --advisory RHSA-2016:0855

Comment 4 Marek Hulan 2016-10-05 11:19:39 UTC
Created redmine issue http://projects.theforeman.org/issues/16800 from this bug

Comment 5 Bryan Kearney 2016-10-05 12:20:45 UTC
Upstream bug assigned to mhulan

Comment 6 Bryan Kearney 2016-10-05 12:20:48 UTC
Upstream bug assigned to mhulan

Comment 7 Bryan Kearney 2016-10-10 20:17:57 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16800 has been resolved.

Comment 12 Ivan Necas 2017-02-17 14:15:00 UTC
*** Bug 1347479 has been marked as a duplicate of this bug. ***

Comment 13 jcallaha 2017-02-17 20:34:23 UTC
Verified in Satellite 6.2.8 Snap 2

I was able to successfully install a desired errata against a remote system using the pre-defined job template. See attached screenshot for verification.

Comment 14 jcallaha 2017-02-17 20:35:03 UTC
Created attachment 1255072 [details]
verification screenshot

Comment 16 errata-xmlrpc 2017-03-06 08:28:53 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.


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