Skip to content

Commit 8b16209

Browse files
committed
ssvm: use mgmt network if no storage network
Fixes #10163 Based on #10163 (comment) Signed-off-by: Abhishek Kumar <[email protected]>
1 parent f13cf59 commit 8b16209

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
import org.apache.commons.io.FileUtils;
8888
import org.apache.commons.io.FilenameUtils;
8989
import org.apache.commons.lang3.BooleanUtils;
90+
import org.apache.commons.lang3.ObjectUtils;
9091
import org.apache.commons.lang3.StringUtils;
9192
import org.apache.http.HttpEntity;
9293
import org.apache.http.HttpResponse;
@@ -2738,7 +2739,7 @@ public boolean configure(String name, Map<String, Object> params) throws Configu
27382739
_inSystemVM = true;
27392740
}
27402741

2741-
_storageIp = (String)params.get("storageip");
2742+
_storageIp = (String)ObjectUtils.firstNonNull(params.get("storageip"), _eth1ip);
27422743
if (_storageIp == null && _inSystemVM) {
27432744
s_logger.warn("There is no storageip in /proc/cmdline, something wrong!");
27442745
}

0 commit comments

Comments
 (0)