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:
This is a story in the current sprint.
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.
mass ON_QA move
# 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.
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
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
Ivan, can you take look at this one? For the current issue refer to comment 10 above, which points to bug 790883#3 . Thanks :)
Fixed in commit 1e7ea9efe79a0a8ed059f1b39991b5d2c722cdd2
Tagged in katello-0.1.243-1
# 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
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'
Problem in UI fixed in commit ea34c2843b7ec2bdcb4776692807956677a12a6f
Bad comment ^^ problem fixed in commig a187470f894784623847c29260ca88d1f67f054c
# 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`)
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
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.
Fixed in commit e7b842ecf80f18f9f4519fbbc7714aa33f993bfe, will be available in katello-agent 1.0.3-1
note: I meant RHN channes
# 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 ---
Created attachment 571698 [details] Errata list - dashboard.
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
getting rid of 6.0.0 version since that doesn't exist