Bug 910078 - Errata info CLI query too complex
Summary: Errata info CLI query too complex
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: jcallaha
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks: 1130651
TreeView+ depends on / blocked
 
Reported: 2013-02-11 18:18 UTC by Aaron Weitekamp
Modified: 2017-02-23 21:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 05:07:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 8275 0 None None None 2016-04-22 15:03:36 UTC
Red Hat Product Errata RHSA-2015:1592 0 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 09:04:35 UTC

Description Aaron Weitekamp 2013-02-11 18:18:01 UTC
Description of problem:
Getting errata info on a particular errata using the katello CLI seems overly complex. It's much quicker to do a web search for errata info than to use the katello CLI.

Katello CLI tools require not only the errata ID, but also repo name and product or product ID. A sysadmin needs to copy the errata ID from step 1, copy the repo from step 2 and copy the product list from step 3 and paste this into step 4. This is difficult if the lists are long.
 # katello -u admin -p **** errata system_group --name=<my_sys_grp>
 # katello -u admin -p **** repo list --org=<my_org>
 # katello -u admin -p **** product list
 # katello -u admin -p **** errata info --repo="Red Hat Enterprise Linux 6 Server RPMs i386 6.3" --product="Red Hat Enterprise Linux Server" --id=RHBA-2011:1395

In contrast, the first hit from a web search on "RHBA-2011:1395" returns http://rhn.redhat.com/errata/RHBA-2011-1395.html


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

How reproducible:
always

Comment 2 Mike McCune 2013-03-20 15:06:26 UTC
1) We need to offer better searching from the CLI similar to Content Search in our webui

2) since errata should be unique by ID we also should also not require repo and product. If the errata exists in multiple repositories we should just show that in the details of the errata

Comment 3 Mike McCune 2013-08-16 18:22:43 UTC
getting rid of 6.0.0 version since that doesn't exist

Comment 5 Justin Sherrill 2014-11-05 01:10:31 UTC
in 6.1 you'll be able to do:

hammer -u admin -p changeme erratum info  --id='RHEA-2012:0056'

You also can do just:

hammer -u admin -p changeme erratum list

to recieve errata across all orgs you have access to.  (optionally you can pass org id).

Comment 6 Justin Sherrill 2014-11-05 01:20:31 UTC
The previous erratum info hammer command only showed about 4 or 5 fields, so I will add these fields as part of this bz:

+        field :severity, _("Severity")
+        field :updated, _("Updated")
+        field :description, _("Description")
+        field :summary, _("Summary")
+        field :solution, _("Solution")

Comment 7 Justin Sherrill 2014-11-05 01:21:05 UTC
Created redmine issue http://projects.theforeman.org/issues/8275 from this bug

Comment 8 Bryan Kearney 2014-11-06 17:01:16 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/8275 has been closed
-------------
Justin Sherrill
Applied in changeset commit:hammer-cli-katello|c377a7ba5b3d0470ce8fa7787388bad871b4cd96.

Comment 9 jcallaha 2014-11-14 16:32:55 UTC
*** This bug is verified in upstream. This fix should eventually land in future downstream builds ***
RHEL65 / RHEL7

Version Tested:
foreman-proxy-1.8.0-0.develop.201411121327gitab6edc2.el7.noarch
yttrium.idmqe.lab.eng.bos.redhat.com-foreman-proxy-1.0-1.noarch
foreman-gce-1.8.0-0.develop.201411131139git5cd6de6.el7.noarch
foreman-selinux-1.8.0-0.develop.201410280941git10de1c5.el7.noarch
foreman-vmware-1.8.0-0.develop.201411131139git5cd6de6.el7.noarch
foreman-release-1.8.0-0.develop.201411131139git5cd6de6.el7.noarch
ruby193-rubygem-foreman_discovery-1.4.0-2.el7.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3-2.201409091410git163c264.git.0.988ca80.el7.noarch
foreman-postgresql-1.8.0-0.develop.201411131139git5cd6de6.el7.noarch
ruby193-rubygem-foreman_docker-0.2.0-2.el7.noarch
rubygem-hammer_cli_foreman-0.1.3-1.201411121216git9381fc5.el7.noarch
foreman-1.8.0-0.develop.201411131139git5cd6de6.el7.noarch
foreman-ovirt-1.8.0-0.develop.201411131139git5cd6de6.el7.noarch
ruby193-rubygem-foreman-tasks-0.6.9-1.el7.noarch
foreman-libvirt-1.8.0-0.develop.201411131139git5cd6de6.el7.noarch
foreman-compute-1.8.0-0.develop.201411131139git5cd6de6.el7.noarch
ruby193-rubygem-foreman_bootdisk-4.0.0-1.el7.noarch
yttrium.idmqe.lab.eng.bos.redhat.com-foreman-client-1.0-1.noarch
ruby193-rubygem-foreman_hooks-0.3.7-2.el7.noarch

Comment 10 Bryan Kearney 2015-08-11 13:35:47 UTC
This bug is slated to be released with Satellite 6.1.

Comment 11 errata-xmlrpc 2015-08-12 05:07:11 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-2015:1592


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