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.
DescriptionTomas Strachota
2016-10-19 12:20:22 UTC
Description of problem:
When a package is uploaded to a repository in a custom product, the upload finishes successfully but the package isn't visible in neither UI nor CLI. It gets correctly uploaded into Pulp but it's not imported into Satellite.
Workaround:
Run foreman-rake katello:reindex after the upload
How reproducible:
100% on machines with timezone other than UTC
Steps to Reproduce:
1. Create a custom product and a repository
2. Upload a package to that repository
3. Click "Manage packages" to list packages in the repo
4. The list is empty even though the upload was successful
Actual results:
Packages aren't visible in Satellite
Expected results:
Uploaded packages should be immediately visible
Additional info:
The problem seems to be in Pulp/Mongo which doesn't interpret timezones in content search queries. Satellite's FinishUpload action plans FilteredIndexContent with filter set to "created > 5.minutes.ago.iso8601" to limit indexing only to recently created packages. Filtered query into Pulp in the latter action returns empty array when the time contains timezone component other than "Z".
("2016-10-19T11:42:02Z" vs "2016-10-19T13:42:02+02:00")
Verified in Satellite 6.2.5
Uploaded 10 rpms to a custom repository, all were immediately counted for and visible in the UI. See attached screenshot for verification (note the el7 packages in an el6 repo).
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/RHBA-2016:2940
Comment 13Oleksandr Shtaier
2017-04-26 16:01:47 UTC
Basic scenario is covered properly in test automation scripts, but specific steps (non-UTC timezone) are too destructive from Jenkins CI flow (adding specific configuration just for one test case seems as not proper idea)
Description of problem: When a package is uploaded to a repository in a custom product, the upload finishes successfully but the package isn't visible in neither UI nor CLI. It gets correctly uploaded into Pulp but it's not imported into Satellite. Workaround: Run foreman-rake katello:reindex after the upload How reproducible: 100% on machines with timezone other than UTC Steps to Reproduce: 1. Create a custom product and a repository 2. Upload a package to that repository 3. Click "Manage packages" to list packages in the repo 4. The list is empty even though the upload was successful Actual results: Packages aren't visible in Satellite Expected results: Uploaded packages should be immediately visible Additional info: The problem seems to be in Pulp/Mongo which doesn't interpret timezones in content search queries. Satellite's FinishUpload action plans FilteredIndexContent with filter set to "created > 5.minutes.ago.iso8601" to limit indexing only to recently created packages. Filtered query into Pulp in the latter action returns empty array when the time contains timezone component other than "Z". ("2016-10-19T11:42:02Z" vs "2016-10-19T13:42:02+02:00")