mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-8114. Ensure VM stop and then start updates the volume path correctly in the DB.
This commit is contained in:
parent
ceae97868c
commit
521258bafb
@ -1207,7 +1207,11 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
|
||||
// Use getPath() from VolumeVO to get a fresh copy of what's in the DB.
|
||||
// Before doing this, in a certain situation, getPath() from VolumeObjectTO
|
||||
// returned null instead of an actual path (because it was out of date with the DB).
|
||||
volumeMgr.updateVolumeDiskChain(vol.getId(), volume.getPath(), vol.getChainInfo());
|
||||
if(vol.getPath() != null) {
|
||||
volumeMgr.updateVolumeDiskChain(vol.getId(), vol.getPath(), vol.getChainInfo());
|
||||
} else {
|
||||
volumeMgr.updateVolumeDiskChain(vol.getId(), volume.getPath(), vol.getChainInfo());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user