Bug 1570068
| Summary: | Unable to export a Red Hat Repository | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Onkar <omankame> |
| Component: | Repositories | Assignee: | Christine Fouant <cfouant> |
| Status: | CLOSED ERRATA | QA Contact: | Jitendra Yejare <jyejare> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.3.0 | CC: | akarsale, apatel, bbuckingham, cdonnell, cduryee, cfouant, dchaudha, dhlavacd, egolov, gapatil, greartes, jalviso, janarula, kgaikwad, nitthoma, omankame, rabajaj, rbeyel, rdickens, sghai, tstrachota, vdeshpan |
| Target Milestone: | 6.4.0 | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | tfm-rubygem-katello-3.7.0.26-1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-10-16 19:06:36 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Onkar
2018-04-20 14:59:58 UTC
Onkar, After setting the repository to immediate, did you then perform a complete sync of the repository? If not, we would not expect this to work until you did. (no on_demand or background, as they do not immediately download all units into the repo for consumption.) Onkar, Do you have an internal reproducer that we can look at? It looks like "upstream_password" was set on the repo without "upstream_username". This is an error and Pulp correctly raised an error message, but Katello did not send the message back to the user.
After this happens, any update to the repository's settings (for example, changing from on_demand to immediate) will silently error out until the original issue is fixed.
To check if this issue is happening, run "foreman-rake katello:change_download_policy DOWNLOAD_POLICY=immediate" to set all repos to immediate, and then check in /var/log/messages for Pulp errors with the string "Configuration errors:". This should show what the underlying issue is.
In this case, the error was "PulpDataException('Configuration errors:\nThe configuration parameter <basic_auth_password> requires the <basic_auth_username> parameter to also be set.',)", so I set the repo having issues to have a blank upstream username/pass (hammer repository update --id 3 --upstream-password "" --upstream-username ""), and then resynced it. It then downloaded all of its units and I was able to successfully export.
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/24115 has been resolved. I received the following error while exporting Redhat 7 Server repository : # hammer -u admin -p changeme repository export --id 4 [.................................... ] [37%] Error: 751: unexpected token at '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>500 Internal Server Error</title> </head><body> <h1>Internal Server Error</h1> <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p> <p>Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.</p> <p>More information about this error may be available in the server error log.</p> </body></html> May I mark this as Failed QA. Usually that error means the satellite is not operational. Is hammer ping successful? Verified! @ Satellite 6.4 snap 22 Steps: -------- 1. Enabled and synced Redhat rhel7 server repository with 'on_demand' policy. 2. Changed download policy to 'immediate' download policy. 3. And resynced repository. 4. Export a repository to /var/lib/pulp/katello-export Observation: ------------- 1. The export of redhat repository is successful. 2. The contents are shown in /var/lib/pulp/katello-export Note: -------- Still the uuid instead of Repository name is shown inside export folder but as comment 30 promises it to be fixed in sat 6.5, marking this bug as verified. 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 |