set local storage as up

This commit is contained in:
Edison Su 2013-01-25 13:07:36 -08:00
parent a18baf8c83
commit e9bca76a32
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ public class LocalStoragePoolListener implements Listener {
host.getPodId(), pInfo.getAvailableBytes(), pInfo.getCapacityBytes(), pInfo.getHost(), 0,
pInfo.getHostPath());
pool.setClusterId(host.getClusterId());
pool.setStatus(StoragePoolStatus.Up);
_storagePoolDao.persist(pool, pInfo.getDetails());
StoragePoolHostVO poolHost = new StoragePoolHostVO(pool.getId(), host.getId(), pInfo.getLocalPath());
_storagePoolHostDao.persist(poolHost);