Bug 2111159 - Refreshing Alternate Content Source complains about invalid remote URL
Summary: Refreshing Alternate Content Source complains about invalid remote URL
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: Nightly
Hardware: Unspecified
OS: Unspecified
Target Milestone: 6.13.0
Assignee: satellite6-bugs
QA Contact: Vladimír Sedmík
Depends On:
TreeView+ depends on / blocked
Reported: 2022-07-26 15:52 UTC by Ian Ballou
Modified: 2023-05-03 13:21 UTC (History)
6 users (show)

Fixed In Version: pulp-rpm-3.17.8-1, pulp-rpm-3.18.6-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2023-05-03 13:21:36 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github pulp pulp_rpm issues 2667 0 None closed Refreshing ACS complains about invalid remote URL 2022-07-29 19:18:17 UTC
Red Hat Issue Tracker SAT-14678 0 None None None 2023-01-05 00:32:03 UTC
Red Hat Product Errata RHSA-2023:2097 0 None None None 2023-05-03 13:21:52 UTC

Description Ian Ballou 2022-07-26 15:52:45 UTC
Katello nightly
Pulpcore 3.18.5
pulp-rpm 3.17.5

Describe the bug
I created an alternate content source with the following RH CDN path: https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/advanced-virt/os

At refresh time, I saw the following error:

  "pulp_href": "/pulp/api/v3/tasks/fa96f3a4-1b2b-4530-a0b4-b6adf4fdc3e5/",
  "pulp_created": "2022-07-25T21:03:44.164063Z",
  "state": "failed",
  "name": "pulp_rpm.app.tasks.synchronizing.synchronize",
  "logging_cid": "660e71d7-6c15-4dda-a381-b2f9f19ca743",
  "started_at": "2022-07-25T21:03:44.196268Z",
  "finished_at": "2022-07-25T21:03:44.441820Z",
  "error": {
    "traceback": "  File \"/usr/local/lib/python3.9/site-packages/pulpcore/tasking/pulpcore_worker.py\", line 410, in _perform_task\n    result = func(*args, **kwargs)\n  File \"/usr/lib/python3.9/site-packages/pulp_rpm/app/tasks/synchronizing.py\", line 464, in synchronize\n    remote_url = fetch_remote_url(remote, url)\n  File \"/usr/lib/python3.9/site-packages/pulp_rpm/app/tasks/synchronizing.py\", line 292, in fetch_remote_url\n    raise ValueError(\n",
    "description": "Remote URL https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/advanced-virt/os for Alternate Content Source is invalid"
  "worker": "/pulp/api/v3/workers/1591cc69-60de-4f06-b566-5ff37311759f/",
  "parent_task": null,
  "child_tasks": [],
  "task_group": "/pulp/api/v3/task-groups/ba681a0b-44fc-4390-bbe7-a13434ad2a18/",
  "progress_reports": [],
  "created_resources": [],
  "reserved_resources_record": [

To Reproduce
Steps to reproduce the behavior:

    Create an ACS with the appropriate remote configuration to sync the repository above.
    Refresh the ACS

Expected behavior
The ACS refreshes without error.

Additional context
Remote options:

 :client_cert=> 'redacted',

Comment 1 Ian Ballou 2022-07-26 15:53:50 UTC
This BZ is to track a nightly issue only -- this is not yet in Satellite.

Comment 4 pulp-infra@redhat.com 2022-07-29 19:18:18 UTC
The Pulp upstream bug status is at closed. Updating the external tracker on this bug.

Comment 5 pulp-infra@redhat.com 2022-07-29 19:18:20 UTC
All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.

Comment 7 Daniel Alley 2022-10-20 04:00:54 UTC
The fix (which is just a better error message) is actually in 6.11 and 6.12 currently, but you wouldn't be able to tell because as Ian mentioned ACS isn't supported until 6.13

Comment 8 Daniel Alley 2022-10-20 04:01:23 UTC
Whoops, didn't mean to close.  It can still be verified for 6.13

Comment 9 Daniel Alley 2022-10-20 04:02:34 UTC
I guess I can just mark it modified since whenever the first snap happens, it will already be there.

Comment 11 Vladimír Sedmík 2023-02-10 09:19:03 UTC
Verified in 6.13.0 snap 10 (python39-pulp-rpm-3.18.9-1.el8pc.noarch) - Error message was improved:
"description"=>"ACS remote for url 'https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/advanced-virt/os/' raised an error '403: Forbidden'. Please check your ACS remote configuration."

Comment 14 errata-xmlrpc 2023-05-03 13:21:36 UTC
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 (Important: Satellite 6.13 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.