Closed kunalkushwaha closed 8 years ago
VolumeID is a string. The driver implementation generates a unique value to be used as the volume passed in to docker. We don't need two strings (volume ID and the proposed name) for the same purpose which is to uniquely identify a volume. In other words the ID and the name can be the same. Let's re-examine this in the context of https://github.com/libopenstorage/openstorage/issues/7
I think unique VolumeID has its own role. ( volume-name + driver ) should be unique, but same volume-name can exist in different drivers.
Now, if osd mount volumes in same folder, lets say /var/lib/osd/mounts
, volumeID will make each volume across the drivers unique on host machine.
yeah, I will next work on #7
Let us resolve the name and the ID confusion in the context of #7 - will that work for you @kunalkushwaha?
Yes, I agree :+1:
I see, with latest code volumes can be mounted with volume name also.
But current implementation introduces new bug.
/var/lib/docker/volumes/<volumeID>
/var/lib/docker/volumes/<volume-name>
.The bug is , Data written in
As it stands, it can only be mounted with the VolumeID string returned from volume.Create(..). Are you seeing something different?
Sorry, My mistake, I was testing with some different code base.
Closing
To mount volume created by is osd, VolumeID is required for reference. This can be fixed using lookup-function for volume-name which returns the volumeID from KVDB
Current Implementation.
Expected behavior