agctl sync fails to sync helm charts error some data failed to sync, retrying
search cancel

agctl sync fails to sync helm charts error some data failed to sync, retrying

book

Article ID: 384702

calendar_today

Updated On:

Products

VMware Telco Cloud Automation

Issue/Introduction

agctl sync fails to sync helm charts error some data failed to sync, retrying

Environment

Telco cloud automation 3.2

Airgap 3.2

Cause

Airgap proxy settings has incorrect configuration 
no_proxy=172.17., localhost
https_proxy=http://127.0.0.1:8081
http_proxy=http://127.0.0.1:8081

Resolution

Add host's FQDN to “no proxy” and perform agctl sync and verify ''Helm Charts synchronization" 

Additional Information

airgap-logs/airgap/ansible_sync_log 
TASK [Add registry repo] *******************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "helm repo add --username=admin --password='XXXX' registry https://FQDN/chartrepo/registry", "delta": "0:00:00.073307", "end": "2024-12-10 01:13:00.198771", "msg": "non-zero return code", "rc": 1, "start": "2024-12-10 01:13:00.125464", "stderr": "Error: looks like \"https://FQDN
/chartrepo/registry\" is not a valid chart repository or cannot be reached: Get \"https://FQDN/chartrepo/registry/index.yaml\": Not Found", "stderr_lines": ["Error: looks like \"https://FQDN/chartrepo/registry\" is not a valid chart repository or cannot be reached: Get \"https://FQDN/chartrepo/registry/index.yaml\
": Not Found"], "stdout": "", "stdout_lines": []}

TASK [debug] *******************************************************************
ok: [localhost] => {
    "msg": "Some data failed to sync, retrying..."
}

TASK [include_tasks] ***********************************************************
included: /usr/local/airgap/scripts/bin/../../scripts/playbooks/../tasks/loopsync.yml for localhost

TASK [sync helm charts] ********************************************************
included: /usr/local/airgap/scripts/bin/../../scripts/playbooks/../tasks/helm.yml for localhost

TASK [Create logs dir] *********************************************************
ok: [localhost]

TASK [Create helm ready dir] ***************************************************
ok: [localhost]

TASK [Check helm repo created] *************************************************
changed: [localhost]

TASK [debug] *******************************************************************
ok: [localhost] => {
    "helm_repo_list_json": {
        "changed": true,
        "cmd": "helm repo list -o json",
        "delta": "0:00:00.047335",
        "end": "2024-12-10 01:13:01.413142",
        "failed": false,
        "msg": "",
        "rc": 0,
        "start": "2024-12-10 01:13:01.365807",
        "stderr": "",
        "stderr_lines": [],
        "stdout": "[{\"name\":\"helm-registry\",\"url\":\"https://vmwaresaas.jfrog.io/artifactory/helm-registry\"}]",
        "stdout_lines": [
            "[{\"name\":\"helm-registry\",\"url\":\"https://vmwaresaas.jfrog.io/artifactory/helm-registry\"}]"
        ]
    }
}

TASK [set_fact] ****************************************************************
ok: [localhost]

TASK [set_fact] ****************************************************************
skipping: [localhost]

TASK [debug] *******************************************************************
fatal: [localhost]: FAILED! => {
    "failed_when_result": true,
    "helm_repo_names": [
        "helm-registry"
    ]
}
...ignoring

 

Successfully download helm charts defined in local bom files ...
WARINING: Failed to push image fluent-2.3.0.tgz, please check your environment
*** Helm Charts synchronization done ***
=========== Summary ===========
Total processed helm charts:               71
Total failed helm charts:                  57
Total passed helm charts:                  0
|--Pull helm charts successful:            71
|--Push helm charts successful:            0
============= end =============
""
===== Failed helm charts list =====
*Pull images unsuccessful: total 0
""
*Push images unsuccessful: total 57
fluent-2.3.0.tgz


Pushing fluent-2.3.0.tgz to registry...
Error: Post "https://FQDN/api/chartrepo/registry/charts": Not Found
.
3% (2 of 57)  [                    ] 0s remaining
.
Error: plugin "cm-push" exited with error
100% (57 of 57)  [====================] 0s remaining
Pushing zookeeper-2.3.0.tgz to registry...
Error: Post "https://FQDN/api/chartrepo/registry/charts": Not Found

Error: looks like \"https://FQDN/chartrepo/registry\" is not a valid chart repository or cannot be reached: Get \"https://FQDN/chartrepo/registry/index.yaml\ ": Not Found"

--------------------------------

Attempt to  manual adding helm repo succeeded but failed on automation

helm repo add --username=admin --password='xxxxxxxx' registry https://FQDN/chartrepo/registry