Bug 1369179

Summary: Incremental Update fails with --update-all-systems
Product: Red Hat Satellite Reporter: John Mitsch <jomitsch>
Component: Errata ManagementAssignee: John Mitsch <jomitsch>
Status: CLOSED WONTFIX QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: high    
Version: 6.2.0CC: bbuckingham, jcallaha, pondrejk
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/16232
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 17:44:29 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:
Attachments:
Description Flags
error_info none

Description John Mitsch 2016-08-22 15:19:20 UTC
This is NOT identical to https://bugzilla.redhat.com/show_bug.cgi?id=1315278 please do not mark it as a clone. A newer change (https://bugzilla.redhat.com/show_bug.cgi?id=1304891) broke this functionality after 1315278 was fixed.

Description of problem:
Incremental update using cli does not update systems when --update-all-systems=true is passed

Version-Release number of selected component (if applicable):
Satellite 6.2 GA - satellite-6.2.0-21.1.el7sat.noarch

How reproducible:
Always

Steps to Reproduce:
hammer> content-view version incremental-update --content-view-version-id=2 --errata-ids=b135a87f-49fd-4925-8923-495f894b6c60 --lifecycle-environment-ids=1 --update-all-hosts=true

[Foreman] Password for admin: 
An error occurred incrementally updating the content view:
  Forbidden - server refused to process the request

Actual results:
The incremental update errors and does not complete

Expected results:
The incremental update finishes but the systems are updated

Additional info:

Comment 1 John Mitsch 2016-08-22 15:25:33 UTC
Created redmine issue http://projects.theforeman.org/issues/16232 from this bug

Comment 2 Bryan Kearney 2016-08-22 16:18:40 UTC
Upstream bug assigned to jomitsch

Comment 3 Bryan Kearney 2016-08-22 16:18:41 UTC
Upstream bug assigned to jomitsch

Comment 5 Bryan Kearney 2016-08-25 18:18:56 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/16232 has been closed

Comment 7 Peter Ondrejka 2016-11-29 09:28:10 UTC
Created attachment 1225748 [details]
error_info

Reproducible on Satellite 6.3 snap 6 (katello-3.2.0-3.rc3.el7.noarch).

Having an erratum applicable to 2 hosts, running:

hammer content-view version incremental-update --content-view-version-id=3 --errata-ids=30bba983-97d6-4dd8-bb0e-bee462d968ab --lifecycle-environment-ids=1 --update-all-hosts=true

leads to:

Incremental Update incomplete.
Error: A sub task failed

In UI, the Tasks summary shows that sub-tasks for installing applicable errata to both hosts failed with 

Katello::Errors::PulpError: No handler for: {'type': u'erratum'}

See the attachment for information from the Error tab.

Comment 8 John Mitsch 2017-03-09 20:05:17 UTC
Peter,

I think you ran into a pulp error not related to the katello fix. I wasn't able to reproduce, and I was able to update 2 hosts using the above hammer command w/o errors.

tested on upstream katello and satellite-6.2.8-4.0.el7sat.noarch

Can we try to verify this again?

Comment 14 Bryan Kearney 2018-09-04 17:44:29 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.