Project

General

Profile

Actions

Bug #38856

closed

Composite content view auto publish will be triggered while other component content views are still publishing

Added by Ian Ballou 9 months ago. Updated 4 months ago.

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

Description

Composite content view auto publish will be triggered while other component content views are still publishing
Cloned from 15931860

Description of problem:
Each component content view will auto publish its associated composite content view without waiting other component content view to publish successfully.

This may lead to the following error when publishing the composite content view:
~~
Error:
RuntimeError
The repository's publication is missing. Please run a 'complete sync' on Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server.
\---
- "/usr/share/gems/gems/katello-4.9.0.23/app/services/katello/pulp3/repository.rb:533:in
`fail_missing_publication'"
- "/usr/share/gems/gems/katello-4.9.0.23/app/services/katello/pulp3/repository.rb:265:in
`create_distribution'"
- "/usr/share/gems/gems/katello-4.9.0.23/app/services/katello/pulp3/repository.rb:248:in
`refresh_distributions'"
- "/usr/share/gems/gems/katello-4.9.0.23/app/lib/actions/pulp3/repository/refresh_distribution.rb:26:in
`invoke_external_task'"
- "/usr/share/gems/gems/dynflow-1.7.0/lib/dynflow/action/polling.rb:84:in `initiate_external_action'"
- "/usr/share/gems/gems/dynflow-1.7.0/lib/dynflow/action/polling.rb:19:in `run'"
- "/usr/share/gems/gems/dynflow-1.7.0/lib/dynflow/action/cancellable.rb:14:in `run'"
- "/usr/share/gems/gems/katello-4.9.0.23/app/lib/actions/pulp3/abstract_async_task.rb:10:in
`run'"
- "/usr/share/gems/gems/dynflow-1.7.0/lib/dynflow/action.rb:588:in `block (3 levels)
in execute_run'"
~~

How reproducible:
Always

Steps to Reproduce:
1. Create a content view (CV_1) and 2 repositories to it. Recommend to add a bigger repositories so that CV publish will take awhile. Add an errata date range filter.
2. Create another content view (CV_2) and add a repository to it. Recommend to add a smaller repository so that CV publish will finish first.
3. Create a composite content view (CCV_1) and add CV_1 and CV_2 to it. Enable "Auto Publish".
4. Publish CV_1 and CV_2 together.

Actual results:
CCV_1 publish task triggered by CV_2 failed with the error above.

Expected results:
Katello should wait for all component content views to publish successfully before auto publishing the related composite content view.

Actions #1

Updated by Ian Ballou 9 months ago

  • Category set to Content Views
  • Assignee set to Ian Ballou
  • Target version changed from Katello 4.20.0 to Katello 4.19.0
  • Difficulty set to hard
  • Triaged changed from No to Yes
Actions #2

Updated by The Foreman Bot 9 months ago

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

Updated by Samir Jha 7 months ago

  • Target version changed from Katello 4.19.0 to Katello 4.20.0
Actions #4

Updated by The Foreman Bot 6 months ago

  • Pull request https://github.com/Katello/katello/pull/11621 added
Actions #5

Updated by The Foreman Bot 6 months ago

  • Pull request deleted (https://github.com/Katello/katello/pull/11540, https://github.com/Katello/katello/pull/11621)
Actions #6

Updated by The Foreman Bot 5 months ago

  • Pull request https://github.com/Katello/katello/pull/11621 added
Actions #7

Updated by The Foreman Bot 4 months ago

  • Fixed in Releases Katello 4.21.0 added
Actions #8

Updated by Anonymous 4 months ago

  • Status changed from Ready For Testing to Closed
Actions #9

Updated by Zach Huntington-Meath 4 months ago

  • Target version changed from Katello 4.20.0 to Katello 4.21.0
Actions

Also available in: Atom PDF