Bug 1194447

Summary: Errata not showing for registered content hosts
Product: Red Hat Satellite Reporter: sthirugn <sthirugn>
Component: Content ManagementAssignee: Jason Montleon <jmontleo>
Status: CLOSED ERRATA QA Contact: sthirugn <sthirugn>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bbuckingham, jalviso, jortel, jsherril
Target Milestone: UnspecifiedKeywords: Triaged
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:26:28 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    

Description sthirugn@redhat.com 2015-02-19 20:10:50 UTC
Description of problem:
Errata not showing for registered content hosts

Version-Release number of selected component (if applicable):
Satellite-6.1.0-RHEL-6-20150217

How reproducible:
Always

Steps to Reproduce:
1. Upload manifest,enable and sync 'Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server'
2. When I look in this product I see '2849 Errata'
3. Create content view with the above repo, publish it
4. Create Activation key with the above content view
5. Subscribe/Register a content host (I tried a rhel 6.5, 6.6 content-hosts)
6. Install katello-agent and verify its status in UI - Green
7. Navigate to UI -> Hosts -> Content hosts -> Select the Content Host -> Errata tab.  No Errata is showing up.  Also I tried to change the Dropdown to 'Current Environment', 'Previous Synced Environment', 'Library Content' but nothing helped, I dont see any errata.

Actual results:
No Errata is showing up

Expected results:
Errata should show up for the content hosts

Additional info:

Comment 2 Justin Sherrill 2015-02-19 21:05:52 UTC
Note this error is seen in /var/log/messages




    Feb 19 11:43:46 mgmt5 goferd: [INFO][MainThread] gofer.agent.plugin:568 - plugin [katelloplugin] loaded using: /usr/lib/gofer/plugins/katelloplugin.py
    Feb 19 11:43:46 mgmt5 goferd: [ERROR][MainThread] gofer.agent.plugin:582 - plugin "katelloplugin", import failed
    Feb 19 11:43:46 mgmt5 goferd: [ERROR][MainThread] gofer.agent.plugin:582 - Traceback (most recent call last):
    Feb 19 11:43:46 mgmt5 goferd: [ERROR][MainThread] gofer.agent.plugin:582 -   File "/usr/lib/python2.6/site-packages/gofer/agent/plugin.py", line 578, in _import
    Feb 19 11:43:46 mgmt5 goferd: [ERROR][MainThread] gofer.agent.plugin:582 -     Initializer.run()
    Feb 19 11:43:46 mgmt5 goferd: [ERROR][MainThread] gofer.agent.plugin:582 -   File "/usr/lib/python2.6/site-packages/gofer/agent/plugin.py", line 77, in run
    Feb 19 11:43:46 mgmt5 goferd: [ERROR][MainThread] gofer.agent.plugin:582 -     function()
    Feb 19 11:43:46 mgmt5 goferd: [ERROR][MainThread] gofer.agent.plugin:582 -   File "/usr/lib/gofer/plugins/katelloplugin.py", line 134, in init_plugin
    Feb 19 11:43:46 mgmt5 goferd: [ERROR][MainThread] gofer.agent.plugin:582 -     setup_plugin()
    Feb 19 11:43:46 mgmt5 goferd: [ERROR][MainThread] gofer.agent.plugin:582 -   File "/usr/lib/gofer/plugins/katelloplugin.py", line 117, in setup_plugin
    Feb 19 11:43:46 mgmt5 goferd: [ERROR][MainThread] gofer.agent.plugin:582 -     cfg = plugin.cfg()
    Feb 19 11:43:46 mgmt5 goferd: [ERROR][MainThread] gofer.agent.plugin:582 - TypeError: 'PluginDescriptor' object is not callable
    Feb 19 11:43:46 mgmt5 goferd: [INFO][MainThread] gofer.agent.main:136 - agent started.


the code for katello-agent to support 2.6 has not made it into katello-agent yet, i'm fairly certain this is the reason

Comment 4 Brad Buckingham 2015-02-20 13:20:46 UTC
Hi Jeff,  Can you confirm if the changes you are making to katello-agent for Sat6.1 will address the issue raised above?  Thanks!  If so, we can link this BZ up to your PR.

Comment 5 Justin Sherrill 2015-02-24 13:23:54 UTC
relevant prs:

https://github.com/Katello/katello-agent/pull/18
https://github.com/Katello/katello-agent/pull/17

These were the prs that i built test rpms for sthirugn, and they seemed to work.  Moving to post, but leave need info for jortel to confirm.

To jason:  I would just rebase this entire repository, as there are other changes needed such as:

https://github.com/Katello/katello-agent/pull/20
and
https://github.com/Katello/katello-agent/pull/19

Comment 8 sthirugn@redhat.com 2015-03-03 20:26:52 UTC
Verified.

Version Tested:
Satellite-6.1.0-RHEL-6-20150224.0

Comment 10 Jeff Ortel 2015-06-15 14:42:16 UTC
(In reply to Brad Buckingham from comment #4)
> Hi Jeff,  Can you confirm if the changes you are making to katello-agent for
> Sat6.1 will address the issue raised above?  Thanks!  If so, we can link
> this BZ up to your PR.

The bug is verified so assuming the PR is no longer relevant.

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

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