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:
abhishek 2010-11-23 14:24:29 -08:00
parent 69ce2a090e
commit 40c3a0afa2
1 changed files with 1 additions and 0 deletions

View File

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