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 409e686
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtCreateVMSnapshotCommandWrapper.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@
19
19
20
20
packagecom.cloud.hypervisor.kvm.resource.wrapper;
21
21
22
+
importorg.apache.commons.lang.StringEscapeUtils;
22
23
importorg.libvirt.Connect;
23
24
importorg.libvirt.Domain;
24
25
importorg.libvirt.DomainInfo.DomainState;
@@ -57,7 +58,7 @@ public Answer execute(final CreateVMSnapshotCommand cmd, final LibvirtComputingR
57
58
"Create Instance Snapshot Failed due to Instance is not running: " + vmName + " with domainState = " + domainState);
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtManageSnapshotCommandWrapper.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@
22
22
importjava.io.File;
23
23
importjava.text.MessageFormat;
24
24
25
+
importorg.apache.commons.lang.StringEscapeUtils;
25
26
importorg.libvirt.Connect;
26
27
importorg.libvirt.Domain;
27
28
importorg.libvirt.DomainInfo.DomainState;
@@ -79,7 +80,7 @@ public Answer execute(final ManageSnapshotCommand command, final LibvirtComputin
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtUtilitiesHelper.java
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtUtilitiesHelperTest.java
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@
25
25
importorg.mockito.Mockito;
26
26
importorg.mockito.junit.MockitoJUnitRunner;
27
27
28
+
importcom.cloud.agent.api.VMSnapshotTO;
28
29
importcom.cloud.utils.Pair;
29
30
30
31
importjunit.framework.TestCase;
@@ -75,4 +76,30 @@ public void validateIsLibvirtVersionEqualOrHigherThanVersionInParameterLibvirtVe
Copy file name to clipboardExpand all lines: plugins/storage/volume/linstor/src/main/java/org/apache/cloudstack/storage/datastore/util/LinstorUtil.java
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -204,8 +204,10 @@ public static String getSnapshotPath(com.linbit.linstor.api.model.StoragePool sp
204
204
finalStringpath;
205
205
switch (sp.getProviderKind()) {
206
206
caseLVM_THIN:
207
+
// device-mapper doubles every dash in the VG and LV name, so the VG part needs escaping too
Copy file name to clipboardExpand all lines: plugins/storage/volume/linstor/src/test/java/org/apache/cloudstack/storage/datastore/util/LinstorUtilTest.java
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,20 @@ public void testGetSnapshotPath() {
0 commit comments