Project

Profile

Help

Backport #9472

closed

Backport to 3.14.z: Regression: Syncing username+password authenticated remotes fails

Added by ggainey over 2 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Triaged:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 106
Quarter:

Description

We have issues syncing remotes protected with username and password (using Ansible):

FAILED - RETRYING: Sync vendor-product-develop-8 repository from remote (15 retries left).Result was: {
    "attempts": 1,
    "changed": false,
    "invocation": {
        "module_args": {
            "mirror": true,
            "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "pulp_url": "http://localhost:24817",
            "refresh_api_cache": false,
            "remote": "vendor-product-develop-8-remote",
            "repository": "vendor-product-develop-8",
            "username": "admin",
            "validate_certs": true
        }
    },
    "msg": "Task failed to complete. (failed; https://username_with_underscores-and-dashes:somepasswordstring%40downloads.vendor.url.com/repo/product/rhel/8/x86_64/current/repodata/repomd.xml)",
    "retries": 16
}

Seems that escaping @ to %40 breaks the URL and repo sync.

[root@pulp32:~] pulp rpm remote show --name hp-fwpp-develop-8-remote
{
  "pulp_href": "/pulp/api/v3/remotes/rpm/rpm/0e309c91-8e25-4e65-b9f2-73258fd347c9/",
  "pulp_created": "2021-05-04T18:34:02.181552Z",
  "name": "vendor-product-develop-8-remote",
  "url": "https://username_with_underscores-and-dashes:somepasswordstring@downloads.vendor.url.com/repo/product/rhel/8/x86_64/current/",
  "ca_cert": null,
  "client_cert": null,
  "tls_validation": true,
  "proxy_url": null,
  "pulp_labels": {},
  "pulp_last_updated": "2021-05-04T18:34:02.181568Z",
  "download_concurrency": 10,
  "max_retries": null,
  "policy": "immediate",
  "total_timeout": null,
  "connect_timeout": null,
  "sock_connect_timeout": null,
  "sock_read_timeout": null,
  "headers": null,
  "rate_limit": null,
  "sles_auth_token": null
}

Related issues

Copied from RPM Support - Issue #9464: Regression: Syncing username+password authenticated remotes failsCLOSED - CURRENTRELEASEggaineyActions
Actions #1

Updated by ggainey over 2 years ago

  • Copied from Issue #9464: Regression: Syncing username+password authenticated remotes fails added
Actions #2

Updated by dalley over 2 years ago

  • Tracker changed from Issue to Backport
  • % Done set to 0
  • Severity deleted (3. High)
  • Groomed deleted (No)
Actions #3

Updated by pulpbot over 2 years ago

  • Status changed from NEW to POST

Added by ggainey over 2 years ago

Revision 04052130 | View on GitHub

Restore embedded-basic-auth-in-url functionality.

backports #9464 [nocoverage]

fixes #9472

(cherry picked from commit 6cbae29b4a08e5452f3634c204a4266f344f8b6c)

Actions #4

Updated by ggainey over 2 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #5

Updated by pulpbot over 2 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF