Photon repository missing in the AIRGAP sever
search cancel

Photon repository missing in the AIRGAP sever

book

Article ID: 403621

calendar_today

Updated On:

Products

Tanzu Kubernetes Runtime

Issue/Introduction

Unable to download the repomd.xml and the tunned file from the airgap server to the worker nodes.

Environment

2.3

Cause

 The root cause appears to be an unsuccessful createrepo operation on the Photon repository at the airgap server.

Resolution

 

Please follow the steps below on the airgap server. After completing the sync, open the affected cluster, click Edit, and then click Save without making any changes.

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/
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=photon-updates --download-path /photon-reps/updates 2>&1
createrepo -po /photon-reps/updates/photon-updates /photon-reps/updates/photon-updates/
chown -R nobody:nogroup /photon-reps