Bug #27776
closedFull Capsule sync doesn't fix the broken repository metadata.
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1745835
Description of problem:
When doing a force full Capsule sync, Satellite incorrectly running the regenerate metadata tasks ("Actions::Pulp::Repository::DistributorPublish") on itself instead of running it on the Capsule.
See the below output:
274: Actions::Pulp::Consumer::SyncCapsule (success) [ 4113.54s / 803.05s ]
Started at: 2019-08-27 02:41:15 UTC
Ended at: 2019-08-27 03:49:49 UTC
Real time: 4113.54s
Execution time (excluding suspended state): 803.05s
Input:
---
capsule_id: 2
repo_pulp_id: 80bd2431-8c57-45fe-a290-de4f311f6545
sync_options:
remove_missing: true
force_full: true
Output:
---
pulp_tasks:
- exception:
task_type: pulp.server.managers.repo.sync.sync
_href: "/pulp/api/v2/tasks/1cb5b017-950e-4356-bbce-d9ed3f53e1a9/"
task_id: 1cb5b017-950e-4356-bbce-d9ed3f53e1a9
tags:
- pulp:repository:80bd2431-8c57-45fe-a290-de4f311f6545
- pulp:action:sync
finish_time: '2019-08-27T02:42:03Z'
_ns: task_status
start_time: '2019-08-27T02:41:05Z'
traceback:
spawned_tasks:
- _href: "/pulp/api/v2/tasks/81c33bcf-7ea7-4e3d-88d2-b9109fe8840a/"
task_id: 81c33bcf-7ea7-4e3d-88d2-b9109fe8840a
progress_report:
yum_importer:
...
queue: reserved_resource_worker-0@hao-capsule.example.com.dq2 <====
state: finished
worker_name: reserved_resource_worker-0@hao-capsule.example.com <==== Sync task was running in the Capsule which is correct
Input:
---
pulp_id: 80bd2431-8c57-45fe-a290-de4f311f6545
distributor_type_id: yum_distributor
source_pulp_id:
override_config:
force_full: true
dependency:
matching_content:
...
Output:
---
pulp_tasks:
- exception:
task_type: pulp.server.managers.repo.publish.publish
_href: "/pulp/api/v2/tasks/539f81b0-529a-412d-a0dc-3bcc9b6a9831/"
task_id: 539f81b0-529a-412d-a0dc-3bcc9b6a9831
tags:
- pulp:repository:80bd2431-8c57-45fe-a290-de4f311f6545
- pulp:action:publish
finish_time: '2019-08-27T03:50:07Z'
_ns: task_status
start_time: '2019-08-27T03:50:05Z'
traceback:
spawned_tasks: []
progress_report:
...
queue: reserved_resource_worker-0@hao-satellite.example.com.dq2
state: finished
worker_name: reserved_resource_worker-0@hao-satellite.example.com <====== Regenerate metadata was running in the Satellite.
...
Version-Release number of selected component (if applicable):
Satellite 6.4 and 6.5
How reproducible:
always
Steps to Reproduce:
1. Perform full Capsule sync from the Satellite web ui.
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Samir Jha
- Pull request https://github.com/Katello/katello/pull/8329 added
Updated by Ian Ballou over 5 years ago
- Target version set to Katello 3.13.1
- Triaged changed from No to Yes
Updated by The Foreman Bot over 5 years ago
- Pull request https://github.com/Katello/katello/pull/8332 added
Updated by Jonathon Turel over 5 years ago
- Pull request deleted (
https://github.com/Katello/katello/pull/8329)
Updated by The Foreman Bot over 5 years ago
- Fixed in Releases Katello 3.14.0 added
Updated by Samir Jha over 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|ea10fe85b241077217511d5002b16d3f5d7ef167.