Bug 1169946

Summary: hammer Erratum list fails
Product: Red Hat Satellite Reporter: sthirugn <sthirugn>
Component: HammerAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: sthirugn <sthirugn>
Severity: high Docs Contact:
Priority: unspecified    
Version: NightlyCC: bkearney
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 05:20:11 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: 1130651, 1188301    

Description sthirugn@redhat.com 2014-12-02 20:15:36 UTC
Description of problem:
hammer Erratum list fails 

Version-Release number of selected component (if applicable):
* candlepin-0.9.34-1.el7.noarch
* candlepin-common-1.0.14-1.el7.noarch
* candlepin-selinux-0.9.34-1.el7.noarch
* candlepin-tomcat-0.9.34-1.el7.noarch
* elasticsearch-0.90.10-7.el7.noarch
* foreman-1.8.0-0.develop.201411191140git2312ccc.el7.noarch
* foreman-compute-1.8.0-0.develop.201411191140git2312ccc.el7.noarch
* foreman-gce-1.8.0-0.develop.201411191140git2312ccc.el7.noarch
* foreman-libvirt-1.8.0-0.develop.201411191140git2312ccc.el7.noarch
* foreman-ovirt-1.8.0-0.develop.201411191140git2312ccc.el7.noarch
* foreman-postgresql-1.8.0-0.develop.201411191140git2312ccc.el7.noarch
* foreman-proxy-1.8.0-0.develop.201411121327gitab6edc2.el7.noarch
* foreman-release-1.8.0-0.develop.201411191140git2312ccc.el7.noarch
* foreman-selinux-1.8.0-0.develop.201410280941git10de1c5.el7.noarch
* foreman-vmware-1.8.0-0.develop.201411191140git2312ccc.el7.noarch
* katello-2.1.0-1.201411061509gitb0b8f43.el7.noarch
* katello-certs-tools-2.0.1-1.el7.noarch
* katello-default-ca-1.0-1.noarch
* katello-installer-2.1.0-1.201411172212git9d6f424.el7.noarch
* katello-repos-2.1.1-1.el7.noarch
* katello-server-ca-1.0-1.noarch
* openldap-2.4.39-3.el7.x86_64
* pulp-docker-plugins-0.2.1-0.2.beta.el7.noarch
* pulp-katello-0.3-3.el7.noarch
* pulp-nodes-common-2.5.0-0.7.beta.el7.noarch
* pulp-nodes-parent-2.5.0-0.7.beta.el7.noarch
* pulp-puppet-plugins-2.5.0-0.7.beta.el7.noarch
* pulp-puppet-tools-2.5.0-0.7.beta.el7.noarch
* pulp-rpm-plugins-2.5.0-0.7.beta.el7.noarch
* pulp-selinux-2.5.0-0.7.beta.el7.noarch
* pulp-server-2.5.0-0.7.beta.el7.noarch
* python-ldap-2.4.6-6.el7.x86_64
* ruby193-rubygem-ldap_fluff-0.3.3-1.el7.noarch
* ruby193-rubygem-net-ldap-0.3.1-2.el7.noarch
* ruby193-rubygem-runcible-1.3.0-1.el7.noarch

How reproducible:
Always

Steps to Reproduce:
# hammer> erratum list
undefined method `key?' for #<JSON::Ext::Generator::State:0x007f3d947f1ec0>

# hammer> erratum list --organization=Default_Organization
undefined method `key?' for #<JSON::Ext::Generator::State:0x007f3d94e4ad58>

# hammer> erratum list --organization=Default_Organization --product=prod1
Error: repository not found

# hammer> erratum list --organization=Default_Organization --product=prod1 --repository=rhel65
undefined method `key?' for #<JSON::Ext::Generator::State:0x0000000ebdb8a8>

hammer> erratum list --organization=Default_Organization --content-view=cv2
undefined method `key?' for #<JSON::Ext::Generator::State:0x007f3d94c90b48>


Actual results:
(see above)

Expected results:
erratum list functioning properly

Additional info:

Comment 1 RHEL Program Management 2014-12-02 20:23:56 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Stephen Benjamin 2015-01-13 13:57:06 UTC
Fixed upstream by http://projects.theforeman.org/issues/8848 in katello|a878e89ede2d167666fb83767bb8085fa5d1a2e9

Comment 4 sthirugn@redhat.com 2015-01-20 22:01:23 UTC
Verified in today's nightly.

*** This bug is verified in upstream. This fix should eventually land in future downstream builds ***

Version Tested:
* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.38-1.el6.noarch
* candlepin-common-1.0.18-1.el6.noarch
* candlepin-selinux-0.9.38-1.el6.noarch
* candlepin-tomcat6-0.9.38-1.el6.noarch
* elasticsearch-0.90.10-7.el6.noarch
* foreman-1.8.0-0.develop.201501201225git4cbb4a2.el6.noarch
* foreman-compute-1.8.0-0.develop.201501201225git4cbb4a2.el6.noarch
* foreman-gce-1.8.0-0.develop.201501201225git4cbb4a2.el6.noarch
* foreman-libvirt-1.8.0-0.develop.201501201225git4cbb4a2.el6.noarch
* foreman-ovirt-1.8.0-0.develop.201501201225git4cbb4a2.el6.noarch
* foreman-postgresql-1.8.0-0.develop.201501201225git4cbb4a2.el6.noarch
* foreman-proxy-1.8.0-0.develop.201501141626gite3020e6.el6.noarch
* foreman-release-1.8.0-0.develop.201501201225git4cbb4a2.el6.noarch
* foreman-selinux-1.8.0-0.develop.201412151103gite2863e4.el6.noarch
* foreman-vmware-1.8.0-0.develop.201501201225git4cbb4a2.el6.noarch
* katello-2.1.0-1.201411061509gitb0b8f43.el6.noarch
* katello-certs-tools-2.0.1-1.el6.noarch
* katello-default-ca-1.0-1.noarch
* katello-installer-2.2.0-1.201501192014git5d5c035.el6.noarch
* katello-installer-base-2.2.0-1.201501192014git5d5c035.el6.noarch
* katello-repos-2.1.1-1.el6.noarch
* katello-server-ca-1.0-1.noarch
* openldap-2.4.23-34.el6_5.1.x86_64
* openldap-devel-2.4.23-34.el6_5.1.x86_64
* pulp-docker-plugins-0.2.1-0.2.beta.el6.noarch
* pulp-katello-0.3-3.el6.noarch
* pulp-nodes-common-2.5.1-1.el6.noarch
* pulp-nodes-parent-2.5.1-1.el6.noarch
* pulp-puppet-plugins-2.5.1-1.el6.noarch
* pulp-puppet-tools-2.5.1-1.el6.noarch
* pulp-rpm-plugins-2.5.1-1.el6.noarch
* pulp-selinux-2.5.1-1.el6.noarch
* pulp-server-2.5.1-1.el6.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-ldap_fluff-0.3.3-1.el6.noarch
* ruby193-rubygem-net-ldap-0.10.0-1.el6.noarch
* ruby193-rubygem-runcible-1.3.0-1.el6.noarch

Comment 5 Bryan Kearney 2015-08-11 13:33:04 UTC
This bug is slated to be released with Satellite 6.1.

Comment 6 errata-xmlrpc 2015-08-12 05:20: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