Project

General

Profile

Actions

Bug #27776

closed

Full Capsule sync doesn't fix the broken repository metadata.

Added by Samir Jha over 5 years ago. Updated over 5 years ago.

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

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: <====
state: finished
worker_name: <==== 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:
state: finished
worker_name: <====== 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.

Actions

Also available in: Atom PDF