Skip to content

Commit bf17f64

Browse files
committed
CLOUDSTACK-8198: Use random local storage UUID
Earlier host addition of multiple hosts with local storage failed due to same local storage UUID being used where the storage path is same. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 1172867 commit bf17f64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ public boolean configure(String name, Map<String, Object> params) throws Configu
785785

786786
_localStorageUUID = (String)params.get("local.storage.uuid");
787787
if (_localStorageUUID == null) {
788-
_localStorageUUID = UUID.nameUUIDFromBytes(_localStoragePath.getBytes()).toString();
788+
_localStorageUUID = UUID.randomUUID().toString();
789789
}
790790

791791
value = (String)params.get("scripts.timeout");

0 commit comments

Comments
 (0)