mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-2286: Volume created from snapshot state is in allocated state instead of Ready state which is letting Primary storage not to increment the resources.
This commit is contained in:
parent
e218a6dcfd
commit
da5c4619c3
@ -431,6 +431,7 @@ public class VolumeServiceImpl implements VolumeService {
|
||||
|
||||
try {
|
||||
DataObject volumeOnStore = store.create(volume);
|
||||
volume = this.volFactory.getVolume(volume.getId(), store);
|
||||
volume.processEvent(Event.CreateOnlyRequested);
|
||||
CreateVolumeFromBaseImageContext<VolumeApiResult> context = new CreateVolumeFromBaseImageContext<VolumeApiResult>(null,
|
||||
(VolumeObject)volume, store, volumeOnStore, future);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user