Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1215838 - Client Errata Install Tasks containing errors are still marked as a Success
Client Errata Install Tasks containing errors are still marked as a Success
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: WebUI (Show other bugs)
6.1.0
Unspecified Unspecified
unspecified Severity high (vote)
: 6.1.7
: Unused
Assigned To: Katello Bug Bin
jcallaha
http://projects.theforeman.org/issues...
: Triaged
Depends On:
Blocks: rhci-common-installer
  Show dependency treegraph
 
Reported: 2015-04-27 17:39 EDT by Mike McCune
Modified: 2017-02-23 15:07 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-02-15 10:51:36 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
screenshot (71.81 KB, image/png)
2015-04-27 17:39 EDT, Mike McCune
no flags Details
errata install success/fail screenshot (150.78 KB, image/png)
2015-11-20 17:10 EST, Mike McCune
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 12922 None None None 2016-04-22 12:57 EDT
Red Hat Product Errata RHSA-2016:0174 normal SHIPPED_LIVE Moderate: Satellite 6.1.7 security, bug and enhancement fix update 2016-02-15 15:50:32 EST

  None (edit)
Description Mike McCune 2015-04-27 17:39:03 EDT
Download a repo with a broken package (corruption or checksum mismatch) and the Task will still be green/success with a message:

 Output:
   New packages: 23 (426 KB).
   Failed to download 1 package.

but the user won't see this until they view the details of the task.

This is misleading and should be in a Warning state.
Comment 1 Mike McCune 2015-04-27 17:39:59 EDT
Created attachment 1019444 [details]
screenshot
Comment 2 Mike McCune 2015-04-27 17:42:08 EDT
An example repo with an intentionally corrupted RPM can be found here:

https://mmccune.fedorapeople.org/repos/broken-checksum/

the package 'thar' has been truncated to only be 50k when it should be ~97K

https://mmccune.fedorapeople.org/repos/broken-checksum/thar-8.9.8-1.noarch.rpm
Comment 5 Mike McCune 2015-11-20 17:09:19 EST
additionally also saw the same behavior installing errata on a host, shows up green/success but actually failed. 


"""
Label: Actions::Katello::System::Erratum::Install
Name: Install erratum
Owner: admin
Started at: 2015-11-20 20:35:08 UTC
Ended at: 2015-11-20 21:02:45 UTC
State: stopped
Result: success 


 Output:

Test Transaction Errors:   installing package kernel-2.6.32-504.16.2.el6.x86_64 needs 22MB on the /boot filesystem
  installing package kernel-2.6.32-431.20.3.el6.x86_64 needs 50MB on the /boot filesystem
  installing package kernel-2.6.32-431.1.2.el6.x86_64 needs 78MB on the /boot filesystem
  installing package kernel-2.6.32-504.8.1.el6.x86_64 needs 106MB on the /boot filesystem
  installing package kernel-2.6.32-431.11.2.el6.x86_64 needs 134MB on the /boot filesystem
  installing package kernel-2.6.32-504.12.2.el6.x86_64 needs 162MB on the /boot filesystem
"""
Comment 6 Mike McCune 2015-11-20 17:10 EST
Created attachment 1097343 [details]
errata install success/fail screenshot
Comment 7 Mike McCune 2015-11-24 11:18:27 EST
Ignore the first part of this bug in the description, this was resolved by:

https://bugzilla.redhat.com/show_bug.cgi?id=1246054

but the latter half needs to be resolved as we are not properly telling the user an errata installation failed.
Comment 8 John Mitsch 2015-12-11 14:44:29 EST
Mike,

Is there faulty errata that can be used to recreate this?

-John
Comment 9 John Mitsch 2015-12-22 13:49:53 EST
Created redmine issue http://projects.theforeman.org/issues/12922 from this bug
Comment 10 Bryan Kearney 2015-12-22 14:01:24 EST
Upstream bug component is WebUI
Comment 11 Bryan Kearney 2016-01-04 16:01:50 EST
Moving to POST since upstream bug http://projects.theforeman.org/issues/12922 has been closed
-------------
John Mitsch
Applied in changeset commit:katello|3bfc5f48ab4ba56c1fc5869d9ce4239d27f9b55d.
Comment 12 John Mitsch 2016-01-06 17:22:35 EST
The upstream fix addressed a failed repo sync, but not a failed errata install. Since these are two separate issues and as far as I can see have to be addressed separately, I opened up a new bug at https://bugzilla.redhat.com/show_bug.cgi?id=1296334 for the errata install failing.
Comment 14 jcallaha 2016-02-04 16:10:13 EST
Verified in Satellite 6.1.7 compose.

A warning state is now presented.

An error occurred during the sync 
{"expected_size"=>95920, "error_code"=>"size_mismatch", "actual_size"=>51200, "unit_key"=>{"name"=>"thar", "checksum"=>"04fe527d62daf452d3b359ae1d174a3459e3d4f015b3dfe459154a65ecb64f39", "epoch"=>"0", "version"=>"8.9.8", "release"=>"1", "arch"=>"noarch", "checksumtype"=>"sha256"}}
Comment 16 errata-xmlrpc 2016-02-15 10:51:36 EST
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-2016:0174

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