Bug 1378915

Summary: Install Errata - Katello SSH Default contains incorrect syntax for job template
Product: Red Hat Satellite Reporter: Will D <will_darton>
Component: Remote ExecutionAssignee: Marek Hulan <mhulan>
Status: CLOSED ERRATA QA Contact: jcallaha
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.2CC: bbuckingham, bkearney, dmoessne, egolov, gpayelka, inecas, jalviso, jcallaha, mhulan, mjahangi, pierre-yves.goubet
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-katello-3.0.0.98-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1417113 (view as bug list) Environment:
Last Closed: 2017-03-06 08:28:53 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:
Bug Depends On:    
Bug Blocks: 1417113, 1417118    
Attachments:
Description Flags
verification screenshot none

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 
   1:
Loaded plugins: package_upload, product-id, search-disabled-repos, security,
   2:
: subscription-manager
   3:
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
template:
# 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.

https://access.redhat.com/errata/RHBA-2017:0447