mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
further improvements to the sp code, especially for the local storage case
This commit is contained in:
parent
ab05973b18
commit
a03cf45e5d
@ -181,6 +181,7 @@ public class StoragePoolVO implements StoragePool {
|
||||
this.path = hostPath;
|
||||
this.port = port;
|
||||
this.podId = podId;
|
||||
this.setStatus(Status.Up);
|
||||
}
|
||||
|
||||
public StoragePoolVO(StoragePoolType type, String hostAddress, int port, String path) {
|
||||
@ -188,6 +189,7 @@ public class StoragePoolVO implements StoragePool {
|
||||
this.hostAddress = hostAddress;
|
||||
this.port = port;
|
||||
this.path = path;
|
||||
this.setStatus(Status.Up);
|
||||
}
|
||||
|
||||
public void setStatus(Status status)
|
||||
|
||||
@ -91,9 +91,7 @@ public class LocalStoragePoolListener implements Listener {
|
||||
pool = new StoragePoolVO(poolId, name, pInfo.getUuid(), pInfo.getPoolType(), host.getDataCenterId(),
|
||||
host.getPodId(), pInfo.getAvailableBytes(), pInfo.getCapacityBytes(), pInfo.getHost(), 0,
|
||||
pInfo.getHostPath());
|
||||
pool.setStatus(Status.Up);
|
||||
pool.setClusterId(host.getClusterId());
|
||||
pool.setStatus(Status.Up);
|
||||
_storagePoolDao.persist(pool, pInfo.getDetails());
|
||||
StoragePoolHostVO poolHost = new StoragePoolHostVO(pool.getId(), host.getId(), pInfo.getLocalPath());
|
||||
_storagePoolHostDao.persist(poolHost);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user