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:
Sanjay Tripathi 2013-06-07 17:08:31 +05:30 committed by Devdeep Singh
parent e218a6dcfd
commit da5c4619c3

View File

@ -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);