Hi Guys,
Problem:
I had this issue with both elastic(https://artifacts.elastic.co/packages/8.x/yum) and grafana (https://rpm.grafana.com) RPM repos. When i try sync it hangs around and eventually i see a sig 9 is sent to kill the task. So i never get to create a distribution.
From what i understand the issue is that the remote url is not “browsable”… i cant remember where i saw it but i heard that causes issues with pulp. Is that still the case?
If i add repodata/repomd.xml to the base urls (in a web browser/curl) i can get there just fine. Also if i add the remotes directly as repos on a RHEL9 VM then it works as expected… so i am confused why default yum can see this and not pulp…
Anyway, thanks in advance if you can shed some light on the problem or know a fix/work around.
Expected outcome:
completed sync
(ps. I know about issues/2402 in the logs below, it doesn’t seem to be the reason here, i get the same error with official RHEL repos and they working fine)
Pulpcore version:
“deb”: “3.4.0”,
“rpm”: “3.27.2”,
“core”: “3.66.0”,
“file”: “3.66.0”,
“maven”: “0.8.1”,
“ostree”: “2.4.4”,
“python”: “3.12.5”,
“ansible”: “0.22.2”,
“certguard”: “3.66.0”,
“container”: “2.22.0”
pod image versions
database - Image: docker.io/library/postgres:13
content/api/worker - Image: quay.io/pulp/pulp-minimal:stable
pulp-operator-controller-manage - Image: gcr.io/kubebuilder/kube-rbac-proxy:v0.13.0
Image: quay.io/pulp/pulp-operator:v1.0.0-beta.5
Pulp plugins installed and their versions:
Pulp3 Command Line Interface, Version 0.30.0
Operating system - distribution and version:
MKE k8s cluster and/or k0s
pulp operator installed via helm (kustom overlay to use v1.0.0-beta.5, needed for disabled ipv6)
Other relevant data:
Commands run:
pulp rpm remote create \
--name='grafana' \
--url "https://rpm.grafana.com" \
--policy on_demand \
--tls-validation False
pulp rpm repository create --name grafana --remote grafana
pulp rpm repository sync --name grafana
pulp-cli output
Started background task /pulp/api/v3/tasks/0195664e-93f2-797a-b6a7-ea3a6da9cced/
…Error: Task /pulp/api/v3/tasks/0195664e-93f2-797a-b6a7-ea3a6da9cced/ failed: ‘Killed by signal 9.’
Logs from worker
pulp [18ccca97a7a4426c87b28cbf7c31f5e6]: pulpcore.tasking.tasks:INFO: Starting task 0195664e-93f2-797a-b6a7-ea3a6da9cced in domain: default
pulp [18ccca97a7a4426c87b28cbf7c31f5e6]: pulp_rpm.app.tasks.synchronizing:INFO: Synchronizing: repository=grafana remote=grafana
pulp [18ccca97a7a4426c87b28cbf7c31f5e6]: pulp_rpm.app.tasks.synchronizing:WARNING: The repository metadata being synced into Pulp is erroneous in a way that makes it ambiguous (duplicate PKGIDs). Yum, DNF and Pulp try to handle these problems, but unexpected things may happen.
Please read https://github.com/pulp/pulp_rpm/issues/2402 for more details.
pulp [18ccca97a7a4426c87b28cbf7c31f5e6]: pulp_rpm.app.tasks.synchronizing:WARNING: The repository metadata being synced into Pulp is erroneous in a way that makes it ambiguous (duplicate NEVRAs). Yum, DNF and Pulp try to handle these problems, but unexpected things may happen.
Please read https://github.com/pulp/pulp_rpm/issues/2402 for more details.
pulp [18ccca97a7a4426c87b28cbf7c31f5e6]: pulp_rpm.app.tasks.synchronizing:INFO: Excluding 15 packages (duplicates, outdated or skipping was requested e.g. ‘skip_types’)
pulp [18ccca97a7a4426c87b28cbf7c31f5e6]: pulpcore.plugin.stages.artifact_stages:WARNING: No declared artifact with relative path ‘grafana-10.0.10-1.armhfp.rpm’ for content ‘(UUID(‘019483e5-a524-7275-9a70-9c2d888439fb’), ‘grafana’, ‘0’, ‘10.0.10’, ‘1’, ‘aarch64’, ‘sha256’, ‘e853da0878bd8169bc7eef1d516a0fb9c9b7c661cbb6aa208700a5449997db01’)’ from remote ‘grafana’. Using last from available-paths : ‘grafana-10.0.10-1.aarch64.rpm’
pulp [18ccca97a7a4426c87b28cbf7c31f5e6]: pulpcore.plugin.stages.artifact_stages:WARNING: No declared artifact with relative path ‘grafana-10.1.6-1.armhfp.rpm’ for content ‘(UUID(‘019483e5-a524-7275-9a70-9c2d888439fb’), ‘grafana’, ‘0’, ‘10.1.6’, ‘1’, ‘aarch64’, ‘sha256’, ‘1b708ca6dee7c13fd563a14ccbee46f7fe235f7fc3f12a4f43ce02ed82f8efb3’)’ from remote ‘grafana’. Using last from available-paths : ‘grafana-10.1.6-1.aarch64.rpm’
pulp [4c93adfca8934232af80406f7386eadc]: pulpcore.tasking.worker:WARNING: Task process for 0195664e-93f2-797a-b6a7-ea3a6da9cced exited with non zero exitcode -9.
pulp [4c93adfca8934232af80406f7386eadc]: pulpcore.tasking.worker:INFO: Cleaning up task 0195664e-93f2-797a-b6a7-ea3a6da9cced in domain: default and marking as failed. Reason: Killed by signal 9.