Skip to content

Commit ce56315

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> (cherry picked from commit bf17f64) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> Conflicts: plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
1 parent a10a9d5 commit ce56315

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
@@ -738,7 +738,7 @@ public boolean configure(String name, Map<String, Object> params)
738738

739739
_localStorageUUID = (String) params.get("local.storage.uuid");
740740
if (_localStorageUUID == null) {
741-
_localStorageUUID = UUID.nameUUIDFromBytes(_localStoragePath.getBytes()).toString();
741+
_localStorageUUID = UUID.randomUUID().toString();
742742
}
743743

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

0 commit comments

Comments
 (0)