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.
Created attachment 1019444 [details] screenshot
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
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 """
Created attachment 1097343 [details] errata install success/fail screenshot
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.
Mike, Is there faulty errata that can be used to recreate this? -John
Created redmine issue http://projects.theforeman.org/issues/12922 from this bug
Upstream bug component is WebUI
Moving to POST since upstream bug http://projects.theforeman.org/issues/12922 has been closed ------------- John Mitsch Applied in changeset commit:katello|3bfc5f48ab4ba56c1fc5869d9ce4239d27f9b55d.
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.
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"}}
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