Skip to content

Instantly share code, notes, and snippets.

@goosemania
Created January 4, 2018 18:59
Show Gist options
  • Select an option

  • Save goosemania/d2a3e5e75a6584f70a74f0feb75ac6a0 to your computer and use it in GitHub Desktop.

Select an option

Save goosemania/d2a3e5e75a6584f70a74f0feb75ac6a0 to your computer and use it in GitHub Desktop.
Check if all repodata has been compressed + check trackers
# count number of units with compressed repodata (5 is id of Binary data)
mongo pulp_database --eval 'db.units_rpm.find({"repodata.primary": {$type: 5}}).count()'
# count total number of units
mongo pulp_database --eval 'db.units_rpm.count()'
# migration trackers status
mongo pulp_database --eval 'db.migration_trackers.find().shellPrint()'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment