Repository: cloudstack
Updated Branches:
  refs/heads/master cfc0e1243 -> d5db87f38


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 <[email protected]>
(cherry picked from commit bf17f640c679bab1bd740d4eb068deb1bc2eb3af)
Signed-off-by: Rohit Yadav <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/d5db87f3
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/d5db87f3
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/d5db87f3

Branch: refs/heads/master
Commit: d5db87f381a0f5161615040214451f174c423359
Parents: cfc0e12
Author: Rohit Yadav <[email protected]>
Authored: Tue Feb 3 22:26:20 2015 +0530
Committer: Rohit Yadav <[email protected]>
Committed: Tue Feb 3 22:36:46 2015 +0530

----------------------------------------------------------------------
 .../cloud/hypervisor/kvm/resource/LibvirtComputingResource.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/d5db87f3/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
----------------------------------------------------------------------
diff --git 
a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
 
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
index fa0b850..2fe032c 100644
--- 
a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
+++ 
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
@@ -784,7 +784,7 @@ public class LibvirtComputingResource extends 
ServerResourceBase implements Serv
 
         _localStorageUUID = (String)params.get("local.storage.uuid");
         if (_localStorageUUID == null) {
-            _localStorageUUID = 
UUID.nameUUIDFromBytes(_localStoragePath.getBytes()).toString();
+            _localStorageUUID = UUID.randomUUID().toString();
         }
 
         value = (String)params.get("scripts.timeout");

Reply via email to