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.
DescriptionTaylor Shrauner-Biggs
2015-12-12 01:40:21 UTC
Description of problem: When running larger katello-disconnected commands (such as sort or publish with 100s of RPM repos), mongod throws this error:
"database error: too much data for sort() with no index. add an index or specify a smaller limit"
Version-Release number of selected component (if applicable):
pulp-katello-0.5-1.el7sat.noarch
ruby193-rubygem-katello-2.2.0.76-1.el7sat.noarch
katello-utils-2.2.5-1.el7sat.noarch
How reproducible: Usually
Steps to Reproduce:
1. Import a few hundred large RPM repositories with katello-disconnected.
2. Run a katello-disconnected publish.
3. Watch journalctl throw mongod and katello errors similar to above.
Actual results:
"database error: too much data for sort() with no index. add an index or specify a smaller limit"
Expected results:
No error, complete publishing of all RPMS.
Additional info:
This fixes the issue. Perhaps it should be added to setup phases of katello (migrate DB)?
[root@host ~]# mongo
MongoDB shell version: 2.4.9
connecting to: test
> use pulp_database
switched to db pulp_database
> db.units_rpm.ensureIndex( { name: 1, epoch: 1, version: 1, release: 1, arch: 1, checksumtype: 1, checksum: 1 } )
The katello-disconnected server synchronization and export functions are being moved into the Satellite server itself. With 6.2, the katello-disconnected command will no longer be delivered and instead will be replaced with a new export and import functions delivered via the UI and hammer CLI. This bug is being closed as "WONTFIX" since it relates only to the existing katello-disconnected tooling. Please check the Satellite docs with the release of Satellite 6.2 on how to use the new content export and import features.