Executing "agctl sync" to perform synchronization between remote repository and Airgap appliance fails.
TCA 3.x
The issue occurs when photon repos source URL referring to the repo on the host itself.
TASK [check sync photon updates result] ****************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout_lines": [
"{\"changed\": true, \"stdout\": \"Error(1661) : No data available\\nError: Failed to synchronize cache for repo 'VMware Photon Linux 3.0 (x86_64) Updates' from 'https:###################.home:8043/updates/photon-updates'\", \"stderr\": \"\", \"rc\": 0, \"cmd\": \"tdnf reposync -v --download-metadata --disablerepo=* --enablerepo=photon-updates --delete --download-path /photon-reps/updates 2>&1 > logs/reposync.log\", \"start\": \"2024-12-23 01:14:59.343314\", \"end\": \"2024-12-23 01:14:59.472986\", \"delta\": \"0:00:00.129672\", \"msg\": \"\", \"invocation\": {\"module_args\": {\"chdir\": \"/usr/local/airgap/\", \"_raw_params\": \"tdnf reposync -v --download-metadata --disablerepo=* --enablerepo=photon-updates --delete --download-path /photon-reps/updates 2>&1 > logs/reposync.log\", \"_uses_shell\": true, \"stdin_add_newline\": true, \"strip_empty_ends\": true, \"argv\": null, \"executable\": null, \"creates\": null, \"removes\": null, \"stdin\": null}}}"
]
rm -f /etc/yum.repos.d/
"/etc/yum.repos.d/" and run "tdnf makecache"
cp /usr/local/airgap/backup_repo.20241202052148/* /etc/yum.repos.d/
tdnf makecache
Files need to be changed:
"/photon-reps/readyz/index.yaml"
"/photon-reps/readyz/templates/005Photon" yaml files
"/photon-reps/readyz/3.2.0-24287523/005Photon" yaml files