mirror of https://github.com/apache/cloudstack.git
server: update capacity_state of host cpu core after disable/enable a host (#5701)
This commit is contained in:
parent
dfd75d7bc0
commit
4d99f84273
|
|
@ -1265,7 +1265,7 @@ public class ResourceManagerImpl extends ManagerBase implements ResourceManager,
|
|||
// TO DO - Make it more granular and have better conversion into capacity type
|
||||
if(host.getType() == Type.Routing){
|
||||
final CapacityState capacityState = nextState == ResourceState.Enabled ? CapacityState.Enabled : CapacityState.Disabled;
|
||||
final short[] capacityTypes = {Capacity.CAPACITY_TYPE_CPU, Capacity.CAPACITY_TYPE_MEMORY};
|
||||
final short[] capacityTypes = { Capacity.CAPACITY_TYPE_CPU, Capacity.CAPACITY_TYPE_MEMORY, Capacity.CAPACITY_TYPE_CPU_CORE };
|
||||
_capacityDao.updateCapacityState(null, null, null, host.getId(), capacityState.toString(), capacityTypes);
|
||||
|
||||
final StoragePoolVO storagePool = _storageMgr.findLocalStorageOnHost(host.getId());
|
||||
|
|
|
|||
Loading…
Reference in New Issue