Project

General

Profile

Actions

Bug #25921

closed

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

Added by Pavel Moravec over 5 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Content Views
Target version:
Difficulty:
medium
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Actions #1

Updated by The Foreman Bot over 5 years ago

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

Updated by Jonathon Turel over 5 years ago

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

Updated by Jonathon Turel about 5 years ago

  • Target version changed from Katello 3.12.0 to Katello 3.12.1
Actions #4

Updated by Samir Jha almost 5 years ago

  • Target version changed from Katello 3.12.1 to Katello 3.13.0
Actions #5

Updated by Jonathon Turel almost 5 years ago

  • Target version changed from Katello 3.13.0 to Katello 3.14.0
Actions #6

Updated by Jonathon Turel over 4 years ago

  • Target version changed from Katello 3.14.0 to Katello 3.15.0
Actions #7

Updated by Jonathon Turel over 4 years ago

  • Target version changed from Katello 3.15.0 to Katello 3.16.0
Actions #8

Updated by Ian Ballou about 4 years ago

  • Target version changed from Katello 3.16.0 to 1223
Actions #9

Updated by Jonathon Turel almost 4 years ago

  • Target version changed from 1223 to Katello 4.0.0
Actions #10

Updated by The Foreman Bot almost 4 years ago

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

Updated by Chris Roberts almost 4 years ago

  • Target version changed from Katello 4.0.0 to Katello 3.17.0
Actions #12

Updated by Pavel Moravec over 3 years ago

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

Updated by The Foreman Bot over 3 years ago

  • Fixed in Releases Katello 4.0.0 added
Actions #14

Updated by Jonathon Turel over 3 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF