mirror of https://github.com/apache/cloudstack.git
server,event: fix events for storage maintenance (#9056)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
ca59720015
commit
1577218999
|
|
@ -1924,6 +1924,8 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager, C
|
|||
|
||||
@Override
|
||||
@DB
|
||||
@ActionEvent(eventType = EventTypes.EVENT_MAINTENANCE_PREPARE_PRIMARY_STORAGE,
|
||||
eventDescription = "preparing storage pool for maintenance", async = true)
|
||||
public PrimaryDataStoreInfo preparePrimaryStorageForMaintenance(Long primaryStorageId) throws ResourceUnavailableException, InsufficientCapacityException {
|
||||
StoragePoolVO primaryStorage = null;
|
||||
primaryStorage = _storagePoolDao.findById(primaryStorageId);
|
||||
|
|
@ -1992,6 +1994,8 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager, C
|
|||
|
||||
@Override
|
||||
@DB
|
||||
@ActionEvent(eventType = EventTypes.EVENT_MAINTENANCE_CANCEL_PRIMARY_STORAGE,
|
||||
eventDescription = "canceling maintenance for primary storage pool", async = true)
|
||||
public PrimaryDataStoreInfo cancelPrimaryStorageForMaintenance(CancelPrimaryStorageMaintenanceCmd cmd) throws ResourceUnavailableException {
|
||||
Long primaryStorageId = cmd.getId();
|
||||
StoragePoolVO primaryStorage = null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue