Project

General

Profile

Actions

Bug #39172

closed

Custom repository sync does not work without the upstream password

Added by Vladimir Sedmik 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

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.

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

Actions #1

Updated by The Foreman Bot 4 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/11685 added
Actions #2

Updated by The Foreman Bot 4 months ago

  • Fixed in Releases Katello 4.21.0 added
Actions #3

Updated by Vladimir Sedmik 4 months ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Pavan Soma Shekar 4 months ago

  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF