How to add kernel version linux-6.1.128-2.ph5 in TCA Airgap Server
search cancel

How to add kernel version linux-6.1.128-2.ph5 in TCA Airgap Server

book

Article ID: 399615

calendar_today

Updated On:

Products

VMware Telco Cloud Automation

Issue/Introduction

Missing Package linux-6.1.128-2.ph5 in Airgap Server.

Synching the Airgap Server with upstream Repository via proxy with command agctl synch shows below error

TASK [Backup photon log] *******************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Could not find or access '/usr/local/airgap//logs/reposync.log' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}

Environment

TCA 3.2

Airgap Server 3.2

Cause

There's a known issue in TCA 3.2 release that after a successfully sync, if user trigger a sync on same build, all sync items will be skipped as all the ready info is marked as True. We enhanced this behaviour in TCA 3.3 release which will sync photon data every time even it is marked as ready before. 

Resolution

Sync Photon Repos manually as per below commands:

tdnf reposync -v --download-metadata --disablerepo=* --enablerepo=photon-updates --download-path /photon-reps/updates 2>&1

tdnf reposync -v --download-metadata --disablerepo=* --enablerepo=photon --download-path /photon-reps/release 2>&1

tdnf reposync -v --download-metadata --disablerepo=* --enablerepo=photon-telco-updates --download-path /photon-reps/updates 2>&1

tdnf reposync -v --download-metadata --disablerepo=* --enablerepo=photon-telco-debuginfo --download-path /photon-reps/updates 2>&1

tdnf reposync -v --download-metadata --disablerepo=* --enablerepo=photon5-updates --download-path /photon-reps/updates 2>&1

tdnf reposync -v --download-metadata --disablerepo=* --enablerepo=photon5 --download-path /photon-reps/release 2>&1

createrepo -po /photon-reps/updates/photon-updates /photon-reps/updates/photon-updates/

createrepo -po /photon-reps/release/photon /photon-reps/release/photon/

createrepo -po /photon-reps/updates/photon-telco-updates /photon-reps/updates/photon-telco-updates/

createrepo -po /photon-reps/updates/photon-telco-debuginfo /photon-reps/updates/photon-telco-debuginfo/

createrepo -po /photon-reps/updates/photon5-updates /photon-reps/updates/photon5-updates/

createrepo -po /photon-reps/release/photon5 /photon-reps/release/photon5/

chown -R nobody:nogroup /photon-reps