Bug #19179

New packages are not synced from the katello to capsule even after a successful capsule sync.

Added by John Mitsch 8 months ago. Updated 2 months ago.

Status:Closed
Priority:High
Assigned To:John Mitsch
Category:Foreman Proxy Content
Target version:Team Brad - Iteration 18
Difficulty: Pull request:https://github.com/Katello/katello/pull/6869
Bugzilla link:1432649
Story points-
Velocity based estimate-
ReleaseKatello 3.4.6Release relationshipAuto

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1432649

Description of problem:

New packages are not synced from the katello to capsule even after a successful capsule sync.

How reproducible:

Was not able to reproduce locally

Steps to Reproduce:

Actual results:

Sync completes with out any error but no new content is available on capsule server.
~~
Id: 933e3a70-0f0d-47f0-852a-5bec45004f34
Label: Actions::Katello::CapsuleContent::Sync
Name: Synchronize capsule content
Owner: admin
Execution type: Delayed
Start at: 2017-02-14 16:26:53 UTC
Start before: -
Started at: 2017-02-14 16:26:54 UTC
Ended at: 2017-02-14 16:37:00 UTC
State: stopped
Result: success
~
~

In capsule sync task, if we open any "Actions::Pulp::Consumer::SyncCapsule (success) " task we canclearly see that the sync is succesfully but no new packages are copied over the capsule server.

For example -
~~
pulp:repository:DIB-Install-Meta_Capsule_7-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_7_Server_RPMs_x86_64_7Server
- pulp:action:sync
.
.
<SNIP>
.
.
details:
rpm_total: 0 <<--- Count Remains 0 even there are new packages are available to sync
rpm_done: 0 <<--- Count Remains 0 even there are new packages are available to sync
drpm_total: 0
drpm_done: 0
size_total: 0
size_left: 0
items_left: 0
~
~

If we check the /var/lib/pulp/published/yum/master/yum_distributor/ the repository name is identical on both side. But if we check the symlinks and the metadata on capsule server, we can see that the directory still contains the old data.

Also, locate or find command for package search on file system does not yield any result.

Expected results:

Should sync the latest content on the capsule server.

Additional info:

Associated revisions

Revision 7fddb44d
Added by John Mitsch 4 months ago

Fixes #19179 - Add force full sync to proxy syncs
This allows users to force full syncs on foreman proxies with
content. This is helpful when the packages on the katello
server do not match the packages on the fpc and the user
wants to force a sync of the repos

History

#1 Updated by John Mitsch 8 months ago

  • Subject changed from New packages are not synced from the katello to capsule even after a successful capsule sync. to New packages are not synced from the katello to capsule even after a successful capsule sync.
  • Target version set to Team Brad - Iteration 13

#2 Updated by Eric Helms 8 months ago

  • Release set to Katello Backlog

#3 Updated by Brad Buckingham 7 months ago

  • Target version changed from Team Brad - Iteration 13 to Team Brad - Iteration 14

#4 Updated by Brad Buckingham 6 months ago

  • Target version changed from Team Brad - Iteration 14 to Team Brad - Iteration 15

#5 Updated by Brad Buckingham 5 months ago

  • Target version changed from Team Brad - Iteration 15 to Team Brad - Iteration 16

#6 Updated by Brad Buckingham 4 months ago

  • Target version changed from Team Brad - Iteration 16 to Team Brad - Iteration 17

#7 Updated by The Foreman Bot 4 months ago

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

#8 Updated by Brad Buckingham 4 months ago

  • Target version changed from Team Brad - Iteration 17 to Team Brad - Iteration 18

#9 Updated by John Mitsch 4 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#10 Updated by Brad Buckingham 4 months ago

  • Release changed from Katello Backlog to Katello 3.4.4

#11 Updated by Eric Helms 2 months ago

  • Release changed from Katello 3.4.4 to Katello 3.4.6

Also available in: Atom PDF