Executing "agctl sync" to perform synchronization between remote repository and Airgap appliance fails.
Status of Photon reposync is Failed in agctl sync status
Tried agctl sync multiple times still the issue is same
tdnf reposync was executed executes successfully without error.
However, performing agctl sync again and the running agctl sync
status shows Photon reposync is in Failed status.
root@TEST [ /usr/local/airgap/logs ]# agctl sync status
------------------------------------------------------------------------------------------------------------------
Last Operation: sync
Status: Not Running
TCA_Build: 3.2.0-24287523
-+
Checked Operation: sync
Checked TCA_Build: 3.2.0-24287523
Start Time: 2024-11-11T04:36:20Z
End Time: 2024-11-11T04:39:25Z
Image Repositories Status Progress(%) Passed Failed
Start Time End Time
=================== =========== ================= ======= =======
===================== =====================
TCA Images: Completed 100% 142 0
2024-10-23T01:49:59Z 2024-10-23T01:55:31Z
TCA Helms: Completed 100% 10 0
2024-10-22T14:20:54Z 2024-10-22T14:21:07Z
TKG Plugin v2.1.1: Completed N/A N/A N/A
2024-10-31T05:31:37Z 2024-10-31T05:37:19Z
TKG Plugin v2.2.0: Completed N/A N/A N/A
2024-10-31T05:37:32Z 2024-10-31T05:42:49Z
TKG Plugin v2.3.1: Completed N/A N/A N/A
2024-10-31T05:43:02Z 2024-10-31T05:49:09Z
TKG Plugin v2.4.1: Completed N/A N/A N/A
2024-10-31T05:49:23Z 2024-10-31T05:55:29Z
TKG Plugin v2.5.1: Completed N/A N/A N/A
2024-10-31T05:55:43Z 2024-10-31T06:01:49Z
TKG Plugin v2.5.2: Completed N/A N/A N/A
2024-10-31T06:02:02Z 2024-10-31T06:07:52Z
TKG v2.1.1: Completed N/A N/A N/A
2024-10-31T07:34:23Z 2024-10-31T10:17:40Z
TKG v2.2.0: Completed N/A N/A N/A
2024-11-01T00:40:49Z 2024-11-01T02:02:39Z
TKG v2.3.1: Completed N/A N/A N/A
2024-11-01T02:02:50Z 2024-11-01T04:23:14Z
TKG v2.4.1: Completed N/A N/A N/A
2024-11-01T10:10:19Z 2024-11-01T12:31:10Z
TKG v2.5.1: Completed N/A N/A N/A
2024-11-01T12:43:57Z 2024-11-01T14:23:31Z
TKG v2.5.2: Completed N/A N/A N/A
2024-11-01T15:36:54Z 2024-11-01T17:30:34Z
Photon reposync: Failed N/A N/A N/A
2024-11-11T04:38:52Z 2024-11-11T04:39:07Z
Airgap , TCA 3.2
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}}}"
]
To resolve the issue:
1. Delete all repo files under "/etc/yum.repos.d/"
rm -f /etc/yum.repos.d/*
2. Copy repo files from "/usr/local/airgap/backup_repo.20241202052148" to "/etc/yum.repos.d/" and run "tdnf makecache"
cp /usr/local/airgap/backup_repo.20241202052148/* /etc/yum.repos.d/
tdnf makecache
3. Modify readyz values to change all photon reposync status to false. 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
4. rerun "agctl sync" to sync photon repos again