Bug 770693 - Dashboard filters show incorrect results for Available Errata
Summary: Dashboard filters show incorrect results for Available Errata
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Ivan Necas
QA Contact: Garik Khachikyan
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2011-12-28 11:30 UTC by Kedar Bidarkar
Modified: 2019-09-25 21:08 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-15 19:08:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Errata list - dashboard. (106.56 KB, image/png)
2012-03-21 12:34 UTC, Garik Khachikyan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2012:0662 0 normal SHIPPED_LIVE new packages: katello-agent 2012-05-15 22:27:32 UTC

Description Kedar Bidarkar 2011-12-28 11:30:15 UTC
Description of problem:

The dashboard filters show incorrect results for Available Errata,
The 5results, 10results show random output.

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

How reproducible:
via UI, trying to filter the section under "Available Errata"

Steps to Reproduce:
1. 
2.
3.
  
Actual results:
Random number of output results under Available Errata Section

Expected results:
Show output the correct number of results.

Additional info:

Comment 1 Mike McCune 2012-01-04 16:15:19 UTC
This is a story in the current sprint.

Comment 2 Brad Buckingham 2012-01-18 17:56:46 UTC
The dashboard has been updated to support 'real' errata.  It will basically show N (5/15/30) errata that need to be installed on 1 or more systems.  At this time, the order is based on how the errata comes back from pulp sorted by the number of systems that need it.  In the future, we'll may want to look at allowing to sort by severity...etc.

In order to use this functionality, the user needs to use pulp-admin to bind repos to systems/consumers.  E.g. 

pulp-admin --username=admin --password=admin consumer bind --id=<consumer id>  --repoid=<pulp repo id> 

In the future, Katello will take care of this automatically; therefore, this is a 'temporary' caveat.

Comment 3 Mike McCune 2012-01-26 19:06:57 UTC
mass ON_QA move

Comment 6 Garik Khachikyan 2012-02-15 12:08:16 UTC
# REOPEN

seems for me as don't fixed.
Scenario:

1. create repo and sync (http://inecas.fedorapeople.org/fakerepos/zoo/)
2. prepare Dev env. and promote the repo content there
3. assure that you see the erratum: RHEA-2012:0002
4. register and subscribe a system to that product
5. `yum -y install walrus-0.71-1` in there
6. From this point that system should have an erratum and a package update: "Package walrus.noarch 0:5.21-1 will be an update"
7. Refer to the Katello-s Dashboard

there is still shown: no errata. the same for the "errata" section for that particular system.

Comment 9 Brad Buckingham 2012-02-15 16:35:36 UTC
Based on initial investigation, it appears that the pulp api used to retrieve errata for display on the dashboard is returning an empty result.  Created the following for pulp investigation:
   https://bugzilla.redhat.com/show_bug.cgi?id=790883

Comment 10 Brad Buckingham 2012-02-16 20:49:29 UTC
This may very well be an error in Katello.  See the following comment added to the pulp bz:

https://bugzilla.redhat.com/show_bug.cgi?id=790883#c3

Comment 11 Brad Buckingham 2012-02-16 21:00:57 UTC
Ivan, can you take look at this one?  For the current issue refer to comment 10 above, which points to bug 790883#3 . Thanks :)

Comment 12 Ivan Necas 2012-02-17 08:52:56 UTC
Fixed in commit 1e7ea9efe79a0a8ed059f1b39991b5d2c722cdd2

Comment 14 Ivan Necas 2012-02-22 08:18:06 UTC
Tagged in katello-0.1.243-1

Comment 15 Garik Khachikyan 2012-02-22 10:29:41 UTC
# REOPEN

I have to reopen the issue (regarding to comment#6):

There is still no errata shown there.

checked against:
---
katello-0.1.243-1.git.0.a066880.el6.noarch
katello-cli-0.1.57-1.git.0.4e2dd9a.el6.noarch
pulp-0.0.266-1.el6.noarch
candlepin-0.5.20-1.el6.noarch

Comment 16 Ivan Necas 2012-02-22 13:21:05 UTC
There was problem with the fake repo - the errata was assigned to the old package (walrus-0.71-1.noarch), instead of the updated. Therefore now errata was discovered (the updated package according the errata was already installed).

I create a new repo with fixed errata (pacakge walrus-5.21-1.noarch is listed as update). This repo is available on http://inecas.fedorapeople.org/fakerepos/zoo2/

Also note, that we don't now about the installed package unless rhsmcertd sends us updated package profile. To simulate that restart rhsmcertd on client.

After that you will see the available errata when running:

  katello errata system --name your_system


There is also a bug in UI,when trying displaying the errata in dasboard or system details:

The error occurred while evaluating nil.[]
#<NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.[]>
/home/inecas/Projects/RedHat/katello/src/app/views/dashboard/_errata.haml:31:in `_app_views_dashboard__errata_haml__1254496825_70320336610080_146294964'
/home/inecas/Projects/RedHat/katello/src/app/views/dashboard/_errata.haml:16:in `each'
/home/inecas/Projects/RedHat/katello/src/app/views/dashboard/_errata.haml:16:in `_app_views_dashboard__errata_haml__1254496825_70320336610080_146294964'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/template.rb:135:in `send'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/template.rb:135:in `render'

Comment 17 Ivan Necas 2012-02-22 13:41:51 UTC
Problem in UI fixed in commit ea34c2843b7ec2bdcb4776692807956677a12a6f

Comment 18 Ivan Necas 2012-02-22 13:42:18 UTC
Bad comment ^^ problem fixed in commig a187470f894784623847c29260ca88d1f67f054c

Comment 20 Garik Khachikyan 2012-03-19 10:50:18 UTC
# REOPEN 

Still: registering my system to a RHEL6 promoted environment *should* display info about at least 1 errata available (RHBA-2012:0360 openssl)
in my system i have: openssl-1.0.0-20.el6_2.1.x86_64
synced content has: 
---
openssl                                       x86_64                       1.0.0-20.el6_2.2                          rhel-6-server-rpms                       1.4 M
---

and as usual: Dashboard (also CLI) shows no erratas there.
---

Following request proves that erratas actually were promoted to Dev.
---
katello> errata info --id RHBA-2012:0360 --environment Dev --org ACME_Corporation --repo "Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server" --product "Red Hat Enterprise Linux Server" 
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                         Errata Information
---------------------------------------------------------------------------------------------------------------------------------------------------------------------

Id:                RHBA-2012:0360
Title:             openssl bug fix update
Description:
    OpenSSL is a toolkit that implements the Secure Sockets Layer (SSL) and
    Transport Layer Security (TLS) protocols, as well as a full strength
    general-purpose cryptography library.
    
    This update fixes the following bug:
    
    * The functions that implement Counter (CTR), Output Feedback (OFB), and Cipher
    Feedback (CFB) block cipher modes previously incorrectly reset the counter of
    the remaining bytes of a block that had not been used in the previous encryption
    or decryption operation. Consequently, calling the encryption function on a
    small amount of data, that was not aligned to the size of the block, led to
    incorrect data encryption or decryption in the aforementioned modes. An upstream
    patch has been applied to correct the underlying functions, and both encryption
    and decryption now work as expected in CTR, OFB, and CFB modes. (BZ#799256)
    
    All users of openssl are advised to upgrade to this updated package, which fixes
    this bug.
    
Type:              bugfix
Issued:            2012-03-06 00:00:00
Updated:           2012-03-06 00:00:00
Version:           1
Release:           
Status:            final
Reboot Suggested:  False
Affected Packages:
    openssl-1.0.0-20.el6_2.2.i686.rpm
    openssl-devel-1.0.0-20.el6_2.2.i686.rpm
    openssl-devel-1.0.0-20.el6_2.2.x86_64.rpm
    openssl-1.0.0-20.el6_2.2.x86_64.rpm
--

So seems we don't have a fix for the issue.
(and yes, I was running `service rhsmcertd restart`)

Comment 21 Garik Khachikyan 2012-03-19 10:51:28 UTC
forget the version of Katello:
---

katello-0.2.14-1.git.0.8140dc7.el6.noarch
katello-cli-0.2.13-1.git.2.77ff0c0.el6.noarch
pulp-1.0.0-5.el6.noarch
candlepin-0.5.26-1.el6.noarch
subscription-manager-0.99.8-1.el6.x86_64

Comment 22 Ivan Necas 2012-03-19 14:49:33 UTC
There is a problem with katello-agent when the machine is subscribed to some channels. Repositories for these channels have repofile equal to None (there obviously is no repofile fort hem), which causes problem in katello-agent, that expects repofile to be always a string.

Comment 23 Ivan Necas 2012-03-19 15:13:25 UTC
Fixed in commit e7b842ecf80f18f9f4519fbbc7714aa33f993bfe, will be available in katello-agent 1.0.3-1

Comment 25 Ivan Necas 2012-03-19 15:20:43 UTC
note: I meant RHN channes

Comment 27 Garik Khachikyan 2012-03-21 12:32:39 UTC
# VERIFIED

Finally!

Awesome list of available erratas are shown up now on Dashboard as well as for the particular system's "Errata" page.

Fixed under:
---
mod_wsgi-3.3-3.pulp.el6.x86_64
katello-common-0.2.15-1.git.0.16f633a.el6.noarch
pulp-selinux-server-1.0.0-6.el6.noarch
katello-repos-testing-0.2.1-1.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
candlepin-0.5.26-1.el6.noarch
candlepin-tomcat6-0.5.26-1.el6.noarch
katello-certs-tools-1.1.3-1.el6.noarch
qpid-cpp-server-0.12-6.el6.x86_64
katello-glue-foreman-0.2.15-1.git.0.16f633a.el6.noarch
katello-0.2.15-1.git.0.16f633a.el6.noarch
qpid-cpp-client-ssl-0.12-6.el6.x86_64
qpid-cpp-server-ssl-0.12-6.el6.x86_64
katello-cli-common-0.2.15-1.git.0.821013f.el6.noarch
katello-cli-0.2.15-1.git.0.821013f.el6.noarch
m2crypto-0.21.1.pulp-7.el6.x86_64
python-oauth2-1.5.170-2.pulp.el6.noarch
pulp-common-1.0.0-6.el6.noarch
qpid-cpp-client-0.12-6.el6.x86_64
katello-glue-pulp-0.2.15-1.git.0.16f633a.el6.noarch
katello-selinux-0.2.3-1.git.57.6c5edb8.el6.noarch
katello-qpid-client-key-pair-1.0-1.noarch
katello-agent-1.0.3-1.git.0.cccd0b4.el6.noarch
katello-cli-tests-0.2.5-1.git.0.58ae4b6.el6.noarch
python-qpid-0.12-1.el6.noarch
katello-glue-candlepin-0.2.15-1.git.0.16f633a.el6.noarch
pulp-1.0.0-6.el6.noarch
katello-repos-0.2.1-1.el6.noarch
katello-configure-0.2.15-1.git.4.94aa90a.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
---

Comment 28 Garik Khachikyan 2012-03-21 12:34:44 UTC
Created attachment 571698 [details]
Errata list - dashboard.

Comment 29 errata-xmlrpc 2012-05-15 19:08: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.

http://rhn.redhat.com/errata/RHEA-2012-0662.html

Comment 30 Mike McCune 2013-08-16 18:13:09 UTC
getting rid of 6.0.0 version since that doesn't exist


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