Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ public boolean maintain(DataStore dataStore) {

@Override
public boolean cancelMaintain(DataStore store) {
storagePoolAutmation.cancelMaintain(store);
dataStoreHelper.cancelMaintain(store);
storagePoolAutmation.cancelMaintain(store);
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,11 @@ public boolean cancelMaintain(DataStore store) {
if (logger.isDebugEnabled()) {
logger.debug("ModifyStoragePool add succeeded");
}
try {
storageManager.connectHostToSharedPool(host, pool.getId());
} catch (Exception e) {
logger.warn("Unable to establish a connection between {} and {}", host, pool, e);
}
if (pool.getPoolType() == Storage.StoragePoolType.DatastoreCluster) {
logger.debug("Started synchronising datastore cluster storage pool {} with vCenter", pool);
storageManager.syncDatastoreClusterStoragePool(pool.getId(), ((ModifyStoragePoolAnswer) answer).getDatastoreClusterChildren(), host.getId());
Expand Down
Loading