mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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 bf17f640c679bab1bd740d4eb068deb1bc2eb3af) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
cfc0e12432
commit
d5db87f381
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user