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

Custom repository sync does not work without the upstream password

XMLWordPrintable

    • 3
    • False
    • Artemis Sprint 163
    • sat-artemis
    • Known Issue
    • Hide
      .Unable to synchronize custom repositories by using only the upstream username without password

      Attempts to synchronize a custom repository by using only the upstream username fail with errors about unauthorized access.

      Satellite web UI displays the following error message:

      [subs="+quotes"]
      ----
      An error occurred saving the repository: Validation failed: Upstream username requires upstream password to be set.
      ----

      Hammer CLI displays the following error message:

      [subs="+quotes"]
      ----
      401, message='Unauthorized', url=<upstream_url>
      ----

      No known workaround is available.
      Show
      .Unable to synchronize custom repositories by using only the upstream username without password Attempts to synchronize a custom repository by using only the upstream username fail with errors about unauthorized access. Satellite web UI displays the following error message: [subs="+quotes"] ---- An error occurred saving the repository: Validation failed: Upstream username requires upstream password to be set. ---- Hammer CLI displays the following error message: [subs="+quotes"] ---- 401, message='Unauthorized', url=<upstream_url> ---- No known workaround is available.
    • Done
    • 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

              vsedmik@redhat.com Vladimír Sedmík
              rhn-support-mkalyat Mithun Kalyat
              Vijaykumar Sawant Vijaykumar Sawant
              Aneta Šteflová Petrová Aneta Šteflová Petrová
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: