Skip to content

Commit e27fad2

Browse files
Srivastava, PiyushSrivastava, Piyush
authored andcommitted
vm restart issue 1
1 parent fe19c55 commit e27fad2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/listener/OntapHostListener.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,13 @@ public boolean hostConnect(long hostId, long poolId) {
7171
logger.error("Failed to connect host - storage pool not found with id: {}", poolId);
7272
return false;
7373
}
74-
7574
// CRITICAL: Check if already connected to avoid infinite loops
7675
StoragePoolHostVO existingConnection = storagePoolHostDao.findByPoolHost(poolId, hostId);
7776
if (existingConnection != null && existingConnection.getLocalPath() != null && !existingConnection.getLocalPath().isEmpty()) {
78-
logger.info("Host {} is already connected to storage pool {} at path {}. Skipping reconnection.",
79-
host.getName(), pool.getName(), existingConnection.getLocalPath());
77+
logger.info("Host {} is already connected to storage pool {} at path {}. Skipping reconnection.", host.getName(), pool.getName(), existingConnection.getLocalPath());
8078
return true;
8179
}
82-
8380
logger.info("Connecting host {} to ONTAP storage pool {}", host.getName(), pool.getName());
84-
8581
try {
8682
// Create the ModifyStoragePoolCommand to send to the agent
8783
ModifyStoragePoolCommand cmd = new ModifyStoragePoolCommand(true, pool);

0 commit comments

Comments
 (0)