ppc64le-cloud / pvsadm

Tool for managing the IBM Power Systems Virtual Servers
Apache License 2.0
37 stars 32 forks source link

Add bucket exists check before checking object exists while uploading image #610

Closed KeerthanaAP closed 4 months ago

KeerthanaAP commented 4 months ago

Added bucket exists check before verifying whether the object exists when cos-instance-name is provided.

./pvsadm image upload -b power1-oss-bucket -f karthik-centos-8.ova.gz -n New-keer-cos -r us-south
I0507 22:46:33.462260   60503 upload.go:134] Bucket power1-oss-bucket not found in the instance New-keer-cos provided
I0507 22:46:35.949740   60503 upload.go:228] Creating a new bucket power1-oss-bucket
I0507 22:46:40.552761   60503 s3client.go:209] Waiting for bucket power1-oss-bucket to be created.
I0507 22:46:40.962257   60503 s3client.go:269] uploading the file karthik-centos-8.ova.gz
ppc64le-cloud-bot commented 4 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: KeerthanaAP, mkumatag

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/ppc64le-cloud/pvsadm/blob/main/OWNERS)~~ [mkumatag] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment