Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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

Summary: Pulp monthly maintenance not being run
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.3.2CC: andrew.schofield, bmbouter, cwelton, daviddavis, dkliban, egolov, ggainey, ipanova, jentrena, kabbott, mmccune, rchan, rjerrido, sthirugn, ttereshc
Target Milestone: 6.4.0Keywords: PrioBumpField, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pulp-2.16.4.1-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1609928 Environment:
Last Closed: 2018-10-16 19:12:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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