IBM / ibmcloud-storage-volume-lib

A helper ibm cloud storage client library to assist in interacting with IBM Cloud storage. Provides access to key volume lifecycle operations
Apache License 2.0
6 stars 20 forks source link

SOFTLAYER-BLOCK VolumeGet doens't return volumeNotes #11

Open depohmel opened 5 years ago

depohmel commented 5 years ago

Steps to reproduce:

time="2018-11-02T09:29:54-07:00" level=info msg="Createing new volume {VolumeID: Provider: VolumeType:VOLUME-Block ProviderType:endurance Capacity:0xc00015cca0 SnapshotSpace:<nil> Iops:<nil> Tier:0xc0003bb8e0 Region: Az:sjc03 BillingType: CreationTime:0001-01-01 00:00:00 +0000 UTC ServiceOffering:<nil> VolumeNotes:map[kanister.io/testid:unittest kanister.io/testname:]}"

time="2018-11-02T09:30:40-07:00" level=info msg="New volume created &{VolumeID:54791407 Provider:SOFTLAYER-BLOCK VolumeType:VOLUME-Block ProviderType:ENDURANCE_BLOCK_STORAGE Capacity:0xc0001536d8 SnapshotSpace:<nil> Iops:0xc0000ede60 Tier:0xc0000ede30 Region: Az: BillingType: CreationTime:2018-11-02 11:30:35 -0500 -0500 ServiceOffering:<nil> VolumeNotes:map[]}"

time="2018-11-02T09:30:41-07:00" level=info msg="Got volume form cloud provider &{VolumeID:54791407 Provider:SOFTLAYER-BLOCK VolumeType:VOLUME-Block ProviderType:ENDURANCE_BLOCK_STORAGE Capacity:0xc00015cd88 SnapshotSpace:<nil> Iops:0xc0004b13c0 Tier:0xc0004b1350 Region: Az: BillingType: CreationTime:2018-11-02 11:30:35 -0500 -0500 ServiceOffering:<nil> VolumeNotes:map[]}"

Create new volume by VolumeCreate and specify some VolumeNotes this function returns volume object. Print this volume object. VolumeNotes will have an empty map.

Perform VolumeGet on freshly created, VolumeNotes also will be an empty map.

arahamad-zz commented 5 years ago

Sure, we can fix this