Bug 1382436

Summary: [RFE] Katello-agent/goferd needs atomic yum transactions
Product: Red Hat Satellite Reporter: Erinn Looney-Triggs <erinn.looneytriggs>
Component: katello-agentAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.2CC: bbuckingham, bkearney, cduryee, erinn.looneytriggs, jcallaha, mvanderw, oshtaier, zhunting
Target Milestone: UnspecifiedKeywords: FutureFeature, Reopened
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 19:05:56 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:
Embargoed:

Description Erinn Looney-Triggs 2016-10-06 17:26:38 UTC
Description of problem:
If the satellite server goes down in the middle of a host attempting to update packages, the host will error out and leave a number of incomplete transactions in the yum log. This is less than ideal.

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

katello-agent-2.5.0-5.el7sat.noarch

How reproducible:
Run a bunch of package updates on a system via satellite, in my case I had around 200, reboot satellite at some point, the client will fail with incomplete transactions.

Comment 1 Chris Duryee 2016-10-10 16:48:26 UTC
If the agent ran yum-complete-transaction upon startup or at a specified interval, would that solve this?

Comment 2 Erinn Looney-Triggs 2016-10-10 16:53:47 UTC
I would say, that would bandaid the problem, probably the better fix is for that agent to pull in all transactions and execute them in bulk, much like yum does itself. But I am not sure of the agent internals and how all of this goes down.

But yes, running yum-complete-transaction would help with the issue, it would probably need to be executed on a semi regular basis, not just when the agent starts.

Comment 4 Zach Huntington-Meath 2017-01-10 15:54:18 UTC
This issue is probably a result of updating katello-agent in a mass update. Going to mark as a duplicate of 1291960.

*** This bug has been marked as a duplicate of bug 1291960 ***

Comment 5 Erinn Looney-Triggs 2017-01-10 17:03:10 UTC
Umm, no, not if I am understanding this correctly, the one has nothing to do with the other. The packages aren't double installed, though that was an issue too, the transactions simply were not completed if the satellite connection was lost.

Comment 6 Bryan Kearney 2018-09-04 18:55:42 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.

Comment 7 Bryan Kearney 2018-09-04 19:05:56 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.