You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 65a48dc
Browse filesBrowse the repository at this point in the historyBrowse files
Add SharedMountPoint to KVMs supported storage pool types (#4780)
* Add SharedMountPoint to KVMs supported storage pool types
* Fix live migration to iSCSI and improve logs
Co-authored-by: Daniel Augusto Veronezi Salvador <daniel@scclouds.com.br>
Copy file name to clipboardExpand all lines: engine/storage/datamotion/src/main/java/org/apache/cloudstack/storage/motion/KvmNonManagedStorageDataMotionStrategy.java
Copy file name to clipboardExpand all lines: engine/storage/datamotion/src/main/java/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java
Copy file name to clipboardExpand all lines: engine/storage/datamotion/src/test/java/org/apache/cloudstack/storage/motion/KvmNonManagedStorageSystemDataMotionTest.java
Copy file name to clipboardExpand all lines: engine/storage/datamotion/src/test/java/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategyTest.java
+57Lines changed: 57 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@
19
19
packageorg.apache.cloudstack.storage.motion;
20
20
21
21
importstaticorg.junit.Assert.assertTrue;
22
+
importstaticorg.junit.Assert.assertFalse;
22
23
importstaticorg.mockito.Mockito.doReturn;
23
24
importstaticorg.mockito.Mockito.lenient;
24
25
importstaticorg.mockito.Mockito.mock;
@@ -56,6 +57,8 @@
56
57
importcom.cloud.storage.Volume;
57
58
importcom.cloud.storage.VolumeVO;
58
59
importjava.util.AbstractMap;
60
+
importjava.util.HashSet;
61
+
importjava.util.Set;
59
62
60
63
@RunWith(MockitoJUnitRunner.class)
61
64
publicclassStorageSystemDataMotionStrategyTest {
@@ -288,4 +291,58 @@ public void formatEntryOfVolumesAndStoragesAsJsonToDisplayOnLogValidateFormat(){
s_logger.info("Creating volume " + name + " with template backing " + template.getName() + " in pool " + destPool.getUuid() +
102
-
" (" + destPool.getType().toString() + ") with size " +size);
108
+
StringvolumeDesc = String.format("volume [%s], with template backing [%s], in pool [%s] (%s), with size [%s]", name, template.getName(), destPool.getUuid(),
if (!poolTypesThatEnableCreateDiskFromTemplateBacking.contains(destPool.getType())) {
112
+
s_logger.info(String.format("Skipping creation of %s due to pool type is none of the following types %s.", volumeDesc, poolTypesThatEnableCreateDiskFromTemplateBacking.stream()
0 commit comments