Project

General

Profile

Bug #25921

Apply Errata to a Content Host via incremental CV has to wait till Capsule sync of the CV finishes

Added by Pavel Moravec over 3 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Content Views
Target version:
Difficulty:
medium
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Description of problem:
Having a Content Host registered to a Capsule and assigned to a Content View. If one wants to apply an errata outside the C.V. current content, incremental C.V. version is created (and published via Capsule (repo) sync to the Capsule automatically). So far so good.

But when I click to "Apply Errata to Content Hosts Immediately after publishing" checkbox, BulkAction to install the errata is scheduled independently to the C.V. (repo) sync to the Capsule, and thus the attempt to install that errata to the Content Host is made before the Capsule gets synced content with the errata. And thus the errata apply fails.

This limits usage of fast patching systems registered via Capsule, in general.

The BulkAction / errata apply task simply must wait for completion of all C.V. repos synces to all Capsules. This "wait for all these tasks completions" can be weakened e.g. to check synces of Capsules that have a Content Host we apply the errata to, only.

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

How reproducible:
100%

Steps to Reproduce:
1. Create & publish (& promote) a C.V. with some bigger repo (e.g. RHEL7 base one) with exclude filter to purge away an errata (I used "skip any errata released after date ..").
2. Have a Content Host registered via an external Capsule and associated to the Content View.
3. Find some errata from the repo that isnt in the Content View (in my case, it was RHSA-2017:1365). Try to apply it to this Content Host and check on the "Apply Errata to Content Hosts Immediately after publishing".
4. Wait until the task finishes.
5. Check if the errata was applied to the Content Host and check the Host's /var/log/messages

Associated revisions

Revision dfc27450 (diff)
Added by Jonathon Turel almost 2 years ago

fixes #25921 - sync capsules before installing applicable errata during incremental update

History

#1 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7946 added

#2 Updated by Jonathon Turel over 3 years ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.12.0

#3 Updated by Jonathon Turel over 3 years ago

  • Target version changed from Katello 3.12.0 to Katello 3.12.1

#4 Updated by Samir Jha about 3 years ago

  • Target version changed from Katello 3.12.1 to Katello 3.13.0

#5 Updated by Jonathon Turel about 3 years ago

  • Target version changed from Katello 3.13.0 to Katello 3.14.0

#6 Updated by Jonathon Turel over 2 years ago

  • Target version changed from Katello 3.14.0 to Katello 3.15.0

#7 Updated by Jonathon Turel over 2 years ago

  • Target version changed from Katello 3.15.0 to Katello 3.16.0

#8 Updated by Ian Ballou over 2 years ago

  • Target version changed from Katello 3.16.0 to 1223

#9 Updated by Jonathon Turel about 2 years ago

  • Target version changed from 1223 to Katello 4.0.0

#10 Updated by The Foreman Bot about 2 years ago

  • Pull request https://github.com/Katello/katello/pull/8719 added

#11 Updated by Chris Roberts about 2 years ago

  • Target version changed from Katello 4.0.0 to Katello 3.17.0

#12 Updated by Pavel Moravec almost 2 years ago

  • Assignee changed from Pavel Moravec to Jonathon Turel
  • Pull request deleted (https://github.com/Katello/katello/pull/7946)

#13 Updated by The Foreman Bot almost 2 years ago

  • Fixed in Releases Katello 4.0.0 added

#14 Updated by Jonathon Turel almost 2 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF