skattoju4 commented on a change in pull request #4219:
URL: https://github.com/apache/cloudstack/pull/4219#discussion_r458875100
##########
File path:
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
##########
@@ -1156,9 +1156,15 @@ public boolean configure(final String name, final
Map<String, Object> params) th
storageProcessor.configure(name, params);
storageHandler = new
StorageSubsystemCommandHandlerBase(storageProcessor);
- IscsiStorageCleanupMonitor isciCleanupMonitor = new
IscsiStorageCleanupMonitor();
- final Thread cleanupMonitor = new Thread(isciCleanupMonitor);
- cleanupMonitor.start();
+ boolean _iscsiCleanUpEnabled =
(boolean)params.get("iscsi.session.cleanup.enabled");
+
+ if (_iscsiCleanUpEnabled) {
+ IscsiStorageCleanupMonitor isciCleanupMonitor = new
IscsiStorageCleanupMonitor();
+ final Thread cleanupMonitor = new Thread(isciCleanupMonitor);
+ cleanupMonitor.start();
+ } else {
+ s_logger.info("iscsi session clean up is disabled")
Review comment:
fixed
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]