Bug 1180233 - spacecmd errata_search doesn't work
Summary: spacecmd errata_search doesn't work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: API
Version: 570
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Matej Kollar
QA Contact: Pavel Studeník
URL:
Whiteboard:
Depends On:
Blocks: sat570-triage
TreeView+ depends on / blocked
 
Reported: 2015-01-08 16:40 UTC by Pavel Studeník
Modified: 2015-04-23 13:21 UTC (History)
5 users (show)

Fixed In Version: spacecmd-2.3.0-3.el6sat
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-23 13:21:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0281 0 normal SHIPPED_LIVE Satellite 5.7 bug fix update 2015-03-03 13:59:01 UTC

Description Pavel Studeník 2015-01-08 16:40:15 UTC
Description of problem:
I try to use spacecmd for searching errata but it doesn't work.

Parent Channel Button Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64) 	Red Hat, Inc. 	14479 	2821 	447 

spacecmd {SSM:0}> errata_search RHSA
ERROR: 'NoneType' object has no attribute 'split'

service oracle status
Oracle Net Listener (pid 18770) is running...
Oracle DB instance rhnsat (pid 18786) is running...

Version-Release number of selected component (if applicable):
spacecmd-2.3.0-2.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. # spacecmd
2. spacecmd {SSM:0}> errata_search RHSA
ERROR: 'NoneType' object has no attribute 'split'


Actual results:
error: ERROR: 'NoneType' object has no attribute 'split'


Expected results:
wokrs

Comment 1 Matej Kollar 2015-01-26 13:40:22 UTC
Upstream work:
Spacewalk.git: e83e3819e11a95434e9455b55d00b4d306ecffa1

Comment 4 Pavel Studeník 2015-02-11 15:07:13 UTC
Reproducer:

# spacecmd errata_search RHBA-2014:0084
INFO: Connected to https://localhost/rpc/api as admin
ERROR: 'NoneType' object has no attribute 'split'


Verified with spacecmd-2.3.0-3.el6sat.noarch

>> spacecmd errata_search RHBA-2014:0084
INFO: Connected to https://localhost/rpc/api as admin
RHBA-2014:0084  firefox bug fix update                               no_date

Comment 6 W.C. Epperson 2015-04-06 16:38:43 UTC
Any chance of the bugfix getting backported to Satellite 5.6?  This bug broke most of our patch management scenario, and we're on RHEL5, which doesn't support Satellite 5.7.

Comment 7 Tomas Lestach 2015-04-07 10:02:10 UTC
(In reply to W.C. Epperson from comment #6)
> Any chance of the bugfix getting backported to Satellite 5.6?

Hello, so far I know spacecmd wasn't released and supported for Satellite 5.6, so I'm afraid, there's nothing to backport. Please, make sure with Red Hat Support the statement is correct.

Comment 8 Clifford Perry 2015-04-07 12:13:05 UTC
(In reply to Tomas Lestach from comment #7)
> (In reply to W.C. Epperson from comment #6)
> > Any chance of the bugfix getting backported to Satellite 5.6?
> 
> Hello, so far I know spacecmd wasn't released and supported for Satellite
> 5.6, so I'm afraid, there's nothing to backport. Please, make sure with Red
> Hat Support the statement is correct.

Agreed. Spacecmd was released with Satellite 5.7 and is tested and supported for usage against 5.7 only. 

Usage of either Spacewalk's spacecmd, or the Satellite 5.7 spacecmd tooling with older versions of Satellite remain unsupported. We of course continue to support the Satellite APIs, independent of Satellite versions, should you find a bug in the server side APIs. Spacecmd interacts a LOT with the APIs. 

Cliff

Comment 9 W.C. Epperson 2015-04-07 12:38:01 UTC
Thanks, Tomas and Clifford.  I can see that you're correct and we missed this issue WRT the 5.7 update. I'm working with grabbing errata labels from the gui and feeding them to a modification of our update script for now.

Comment 10 Mathieu Bridon 2015-04-23 13:21:23 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://rhn.redhat.com/errata/RHBA-2015-0281.html


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