Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1378915 - Install Errata - Katello SSH Default contains incorrect syntax for job template
Install Errata - Katello SSH Default contains incorrect syntax for job template
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Remote Execution (Show other bugs)
6.2.2
Unspecified Unspecified
medium Severity medium (vote)
: 6.2.8
: Unused
Assigned To: Marek Hulan
jcallaha
: Triaged
: 1347479 (view as bug list)
Depends On:
Blocks: 1417113 1417118
  Show dependency treegraph
 
Reported: 2016-09-23 09:56 EDT by Will D
Modified: 2017-03-06 03:28 EST (History)
11 users (show)

See Also:
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 03:28:53 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 16124 None None None 2017-01-26 07:15 EST
Foreman Issue Tracker 16800 None None None 2016-10-05 07:19 EDT
Red Hat Product Errata RHBA-2017:0447 normal SHIPPED_LIVE Satellite 6.2.8 Async Bug Release 2017-03-06 08:23:41 EST

  None (edit)
Description Will D 2016-09-23 09:56:41 EDT
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 10:10:22 EDT
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 07:19:39 EDT
Created redmine issue http://projects.theforeman.org/issues/16800 from this bug
Comment 5 Bryan Kearney 2016-10-05 08:20:45 EDT
Upstream bug assigned to mhulan@redhat.com
Comment 6 Bryan Kearney 2016-10-05 08:20:48 EDT
Upstream bug assigned to mhulan@redhat.com
Comment 7 Bryan Kearney 2016-10-10 16:17:57 EDT
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 09:15:00 EST
*** Bug 1347479 has been marked as a duplicate of this bug. ***
Comment 13 jcallaha 2017-02-17 15:34:23 EST
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 15:35 EST
Created attachment 1255072 [details]
verification screenshot
Comment 16 errata-xmlrpc 2017-03-06 03:28:53 EST
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

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