Skip to content

Commit 4313060

Browse files
committed
Update 11773: connect host to shared pool after cancelling storage migration
1 parent 70804de commit 4313060

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server/src/main/java/com/cloud/storage/StoragePoolAutomationImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,11 @@ public boolean cancelMaintain(DataStore store) {
346346
if (logger.isDebugEnabled()) {
347347
logger.debug("ModifyStoragePool add succeeded");
348348
}
349+
try {
350+
storageManager.connectHostToSharedPool(host, pool.getId());
351+
} catch (Exception e) {
352+
logger.warn("Unable to establish a connection between {} and {}", host, pool, e);
353+
}
349354
if (pool.getPoolType() == Storage.StoragePoolType.DatastoreCluster) {
350355
logger.debug("Started synchronising datastore cluster storage pool {} with vCenter", pool);
351356
storageManager.syncDatastoreClusterStoragePool(pool.getId(), ((ModifyStoragePoolAnswer) answer).getDatastoreClusterChildren(), host.getId());

0 commit comments

Comments
 (0)