Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1612964 - Pulp monthly maintenance not being run
Summary: Pulp monthly maintenance not being run
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.3.2
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.4.0
Assignee: satellite6-bugs
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-06 15:53 UTC by Mike McCune
Modified: 2022-03-13 15:21 UTC (History)
15 users (show)

Fixed In Version: pulp-2.16.4.1-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1609928
Environment:
Last Closed: 2018-10-16 19:12:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Pulp Redmine 3887 0 High CLOSED - CURRENTRELEASE Restarting pulp_celerybeat weekly or so causes pulp.server.maintenance.monthly to not get scheduled 2018-09-18 18:32:06 UTC
Pulp Redmine 3893 0 High CLOSED - CURRENTRELEASE pulp.server.maintenance.monthly fails if applicability collection is too large 2018-10-12 07:01:31 UTC
Pulp Redmine 3908 0 Normal CLOSED - CURRENTRELEASE Add pulp-maintenance package 2018-09-18 17:32:02 UTC

Comment 3 pulp-infra@redhat.com 2018-08-07 05:33:51 UTC
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.

Comment 4 pulp-infra@redhat.com 2018-08-07 05:33:55 UTC
The Pulp upstream bug priority is at High. Updating the external tracker on this bug.

Comment 5 pulp-infra@redhat.com 2018-08-07 05:34:01 UTC
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.

Comment 6 pulp-infra@redhat.com 2018-08-07 05:34:05 UTC
The Pulp upstream bug priority is at High. Updating the external tracker on this bug.

Comment 7 pulp-infra@redhat.com 2018-08-08 21:01:38 UTC
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.

Comment 8 pulp-infra@redhat.com 2018-08-08 21:31:34 UTC
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.

Comment 9 pulp-infra@redhat.com 2018-08-09 18:03:56 UTC
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.

Comment 10 pulp-infra@redhat.com 2018-08-09 18:04:07 UTC
All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.

Comment 13 pulp-infra@redhat.com 2018-08-17 11:13:41 UTC
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.

Comment 14 pulp-infra@redhat.com 2018-08-17 11:13:45 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 16 Peter Ondrejka 2018-09-04 12:48:39 UTC
Verifie on Satellite 6.4 snap 20 using steps from the original bug:

rpm -q pulp-maintenance
pulp-maintenance-2.16.4.1-1.el7sat.noarch

file /etc/cron.weekly/pulp-maintenance 
/etc/cron.weekly/pulp-maintenance: POSIX shell script, ASCII text executable

cat /etc/cron.weekly/pulp-maintenance 
#!/bin/sh
celery -A pulp.server.async.app call pulp.server.maintenance.monthly.queue_monthly_maintenance

bash /etc/cron.weekly/pulp-maintenance 
c90490cc-a165-4e6c-92fb-d82076524330

from /var/log/messages:
Sep  4 08:45:01 hostname pulp: celery.worker.strategy:INFO: Received task: pulp.server.maintenance.monthly.queue_monthly_maintenance[c90490cc-a165-4e6c-92fb-d82076524330]
Sep  4 08:45:01 hostname pulp: celery.worker.strategy:INFO: Received task: pulp.server.maintenance.monthly.monthly_maintenance[da44445a-d1de-4ab1-a277-49d9c3151dc6]
Sep  4 08:45:01 hostname pulp: celery.app.trace:INFO: [c90490cc] Task pulp.server.maintenance.monthly.queue_monthly_maintenance[c90490cc-a165-4e6c-92fb-d82076524330] succeeded in 0.014720637002s: None
Sep  4 08:45:01 hostname mongod.27017[25022]: [conn1258] command pulp_database.repo_profile_applicability command: aggregate { aggregate: "repo_profile_applicability", pipeline: [ { $group: { rpa_profiles: { $addToSet: "$profile_hash" }, _id: null } }, { $project: { orphaned_profiles: { $setDifference: [ "$rpa_profiles", [] ] } } }, { $unwind: "$orphaned_profiles" }, { $project: { _id: "$orphaned_profiles" } }, { $out: "orphaned_profile_hash" } ], cursor: {}, allowDiskUse: true } planSummary: COLLSCAN keysExamined:0 docsExamined:0 cursorExhausted:1 numYields:1 nreturned:0 reslen:128 locks:{ Global: { acquireCount: { r: 24, w: 2, W: 2 } }, Database: { acquireCount: { r: 8, R: 2, W: 2 } }, Collection: { acquireCount: { r: 7 } } } protocol:op_query 116ms
Sep  4 08:45:01 hostname pulp: pulp.server.managers.consumer.applicability:INFO: [da44445a] Orphaned consumer profiles to process: 0
Sep  4 08:45:01 hostname pulp: celery.app.trace:INFO: [da44445a] Task pulp.server.maintenance.monthly.monthly_maintenance[da44445a-d1de-4ab1-a277-49d9c3151dc6] succeeded in 0.131129484042s: None

Comment 17 pulp-infra@redhat.com 2018-09-18 17:32:03 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 18 pulp-infra@redhat.com 2018-09-18 18:32:07 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 19 pulp-infra@redhat.com 2018-10-12 07:01:32 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 20 Bryan Kearney 2018-10-16 19:12:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2927


Note You need to log in before you can comment on or make changes to this bug.