mirror of https://github.com/apache/cloudstack.git
bug 7249: during volume creation (root and data) for a vm, there was no state being set (we need to set it to ready). Hence, whilst re-attaching a detached vol, we hit a NPE. Fixed the root cause of the state not being set during vm creation, and consequently, fixed this npe
status 7249: resolved fixed
This commit is contained in:
parent
69ce2a090e
commit
40c3a0afa2
|
|
@ -823,6 +823,7 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
|
|||
volume.setPoolType(pool.getPoolType());
|
||||
volume.setPoolId(pool.getId());
|
||||
volume.setPodId(pod.getId());
|
||||
volume.setState(Volume.State.Ready);
|
||||
_volsDao.persist(volume);
|
||||
}
|
||||
txn.commit();
|
||||
|
|
|
|||
Loading…
Reference in New Issue