Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-41022

Custom repository sync does not work without the upstream password

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 6.16.5
    • Repositories
    • 3
    • False
    • sat-artemis
    • Bug Fix
    • Hide
      Cause:
      Consequence:
      Fix:
      Result:
      Show
      Cause: Consequence: Fix: Result:
    • Proposed
    • To Do

      It is not possible to sync a custom repository using only the upstream username.

      A custom repository requires only the upstream username to access the content, and it works without any issues when configuring it locally in /etc/yum.repos.d. However, when attempting to sync the same repository in the Satellite WebUI, the sync fails with the error:

      "An error occurred saving the repository: Validation failed: Upstream username requires upstream password to be set."

      If we keep both the username and password fields blank, it fails because it requires a user ID.

      There is no password for the user so the only way to force that is by using the hammer command.Since it is not possible to save the repository in the Satellite WebUI using only the username, used the following hammer command. It succeeded updating the repository, but the sync failed with a different error.

      1. hammer repository update --id ID --upstream-username 'username' --upstream-passsword ''
        Repository updated.

      But the sync fails with the below error.

      401,messagee='unauthoried', url=upstream_url

              Unassigned Unassigned
              rhn-support-mkalyat Mithun Kalyat
              Vijaykumar Sawant Vijaykumar Sawant
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: