Skip to content

Commit a782fa3

Browse files
Gupta, SuryaGupta, Surya
authored andcommitted
[CSTACKEX-129] NFS3 Primary storage-pool is not failing even if NFS3 protocol is not enabled at the storage VM
1 parent 88f85c1 commit a782fa3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/service

plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/service/StorageStrategy.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,16 @@ public boolean connect() {
118118
}
119119

120120
logger.info("Validating SVM state and protocol settings...");
121+
logger.info("Protocol storage.getProtocol() = " + storage.getProtocol() + "Objects.equals(storage.getProtocol(), ProtocolType.ISCSI)" + Objects.equals(storage.getProtocol(), ProtocolType.ISCSI));
122+
logger.info("svm.getIscsiEnabled() : " + svm.getIscsiEnabled());
121123
if (!Objects.equals(svm.getState(), OntapStorageConstants.RUNNING)) {
122124
logger.error("SVM " + svmName + " is not in running state.");
123125
return false;
124126
}
125127
if (Objects.equals(storage.getProtocol(), ProtocolType.NFS3) && !svm.getNfsEnabled()) {
126128
logger.error("NFS protocol is not enabled on SVM " + svmName);
127129
return false;
130+
128131
} else if (Objects.equals(storage.getProtocol(), ProtocolType.ISCSI) && !svm.getIscsiEnabled()) {
129132
logger.error("iSCSI protocol is not enabled on SVM " + svmName);
130133
return false;

0 commit comments

Comments
 (0)