Skip to content

Harbor replication not working #18

@Jeansen

Description

@Jeansen

I run helm-charts-oci-proxy standalone, e.g. with this command:

docker run --rm --name helm-charts-oci-proxy -p 9000:9000 -e USE_TLS=true -v /data/cert/proxy-ng.cert:/certs/registry.pem:ro -v /data/cert/proxy-ng.key:/certs/registry-key.pem:ro 8gears.container-registry.com/library/helm-charts-oci-proxy

I did a test pull like this:

helm pull oci://proxy-ng:9000/open-telemetry.github.io/opentelemetry-helm-charts/opentelemetry-operator

And this works. The logs show

proxy-2024/06/10 20:34:56 listening HTTP over TLS serving on port 9000
proxy-2024/06/10 20:35:00 download index: https://open-telemetry.github.io/opentelemetry-helm-charts/index.yaml
proxy-2024/06/10 20:35:00 downloading : https://open-telemetry.github.io/opentelemetry-helm-charts/index.yaml
proxy-2024/06/10 20:35:01 searching index for opentelemetry-operator with reference
proxy-2024/06/10 20:35:01 downloading : https://github.com/open-telemetry/opentelemetry-helm-charts/releases/download/opentelemetry-operator-0.62.0/opentelemetry-operator-0.62.0.tgz
proxy-2024/06/10 20:35:01 GET - /v2/open-telemetry.github.io/opentelemetry-helm-charts/opentelemetry-operator/tags/list
proxy-2024/06/10 20:35:01 HEAD - /v2/open-telemetry.github.io/opentelemetry-helm-charts/opentelemetry-operator/manifests/0.62.0
proxy-2024/06/10 20:35:01 GET - /v2/open-telemetry.github.io/opentelemetry-helm-charts/opentelemetry-operator/manifests/sha256:6e610e6d75e2e9838de76cd3930751417b41df47d5c8ec989b3ee74165c751a8
proxy-2024/06/10 20:35:01 GET - /v2/open-telemetry.github.io/opentelemetry-helm-charts/opentelemetry-operator/blobs/sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
proxy-2024/06/10 20:35:01 GET - /v2/open-telemetry.github.io/opentelemetry-helm-charts/opentelemetry-operator/blobs/sha256:52fcda92afdc2d221213d45e2449a7f8123df0358ed898760fa229d10f1450e1

I followed along for the replication with Harbor, created an endpoint and a replication rule. I even removed the filter so everything would be replicated.

When I run the replication, I see the following logs:

proxy-2024/06/10 20:38:13 GET - /v2/
proxy-2024/06/10 20:38:13 download index: https://open-telemetry.github.io/index.yaml
proxy-2024/06/10 20:38:13 downloading : https://open-telemetry.github.io/index.yaml
proxy-2024/06/10 20:38:13 GET - /open-telemetry.github.io/v2/_catalog?n=1000

But...nothing will be replicated. Replication is a success, but 0 items have been replicated. I also cannot find anything specific in the Harbor logs ....

I am aware of the default settings, e.g. that manifests are cleaned up after 60 seconds. So, I did a replication directly after a test pull with helm. But also raising the timeouts did not help at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions