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 bf17f640c6)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

Conflicts:
	plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
This commit is contained in:
Rohit Yadav 2015-02-03 22:26:20 +05:30
parent a10a9d522c
commit ce5631553e
1 changed files with 1 additions and 1 deletions

View File

@ -738,7 +738,7 @@ ServerResource {
_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");