Avi bundle upload fails with "Could not create Bundle Download for filePath = /home/vcf/avi"
search cancel

Avi bundle upload fails with "Could not create Bundle Download for filePath = /home/vcf/avi"

book

Article ID: 440819

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer

Issue/Introduction

The Avi bundle upload by the vcf_tools.sh command succeeds on the command line, but fails in the SDDC Manager task with "Could not create Bundle Download for filePath = /home/vcf/avi".

The following message is recorded in the lcm-debug.log of SDDC Manager.

com.vmware.evo.sddc.lcm.model.bundle.repo.exception.BundleRepoWriteFailureException: Could not create Bundle Download for filePath = /home/vcf/avi
Caused by: java.lang.RuntimeException: Cannot get the SHA256 hash for file /home/vcf/avi/controller-XX.X.X-XXXX.ova
Caused by: java.io.FileNotFoundException: /home/vcf/avi/controller-XX.X.X-XXX.ova (Permission denied)

Environment

SDDC Manager 9.0.1

Cause

Reading by the internal service of SDDC Manager fails when the permission of the source ova file is read and write only for the owner as follows.

$ ls -l controller-XX.X.X-XXXX.ova
-rw-------  1 vcf vcf XXXXXXXXXX MMM DD HH:MM controller-XX.X.X-XXXX.ova

Resolution

Before uploading, change the permission setting as follows.

chmod 664 controller-XX.X.X-XXXX.ova

If the upload has already failed, connect to SDDC Manager with ssh, switch to root, and execute the following command.

chmod 664 /home/vcf/avi/controller-XX.X.X-XXXX.ova

Try the Avi bundle upload by the vcf_tools.sh command.

Note: For controller-XX.X.X-XXXX.ova, specify the ova file to be uploaded.

Additional Information

Avi Load Balancer- VMware Cloud Foundation - Planning and Preparation
https://techdocs.broadcom.com/us/en/vmware-security-load-balancing/avi-load-balancer/avi-load-balancer-vmware-cloud-foundation/9-0/deploying-avi-load-balancer-in-vcf/prerequisites.html

Japanese version of this KB : https://knowledge.broadcom.com/external/article/427032