Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-24497

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

XMLWordPrintable

    • Sprint 134, Sprint 136
    • Important
    • No

      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:
      Satellite should wait for all component content views to publish successfully before auto publishing the related composite content view.

            iballou@redhat.com Ian Ballou
            rhn-support-hyu Hao Chang Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: