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
Stringmsg = String.format("Backup [%s] was validated using dummy VM [%s]. The backup was deemed invalid due to: ", backupVO.getUuid(), validationVm.getName());
2213
-
if (validateKbossVmCommand.isWaitForBoot() && !validateKbossVmAnswer.isBootValidated()) {
2214
-
result = false;
2215
-
msg += "\n - The VM did not boot within the expected time.";
2216
-
}
2217
-
if (validateKbossVmCommand.isExecuteScript() && validateKbossVmAnswer.getScriptResult() != null) {
2218
-
result = false;
2219
-
msg += "\n - The script did not output the expected output. Captured output: " + validateKbossVmAnswer.getScriptResult();
2220
-
}
2221
-
if (validateKbossVmCommand.isTakeScreenshot() && validateKbossVmAnswer.getScreenshotPath() == null) {
2222
-
result = false;
2223
-
msg += "\n - We were unable to take a screenshot of the VM.";
logger.debug("Saving validation screenshot path [{}] to the backup details of backup [{}].", validateKbossVmAnswer.getScreenshotPath(), backupVO.getUuid());
Stringmsg = String.format("Backup [%s] was validated using dummy VM [%s]. The backup was deemed invalid due to: ", backupVO.getUuid(), validationVm.getName());
2215
+
if (validateKbossVmCommand.isWaitForBoot() && !validateKbossVmAnswer.isBootValidated()) {
2216
+
result = false;
2217
+
msg += "\n - The VM did not boot within the expected time.";
2218
+
}
2219
+
if (validateKbossVmCommand.isExecuteScript() && validateKbossVmAnswer.getScriptResult() != null) {
2220
+
result = false;
2221
+
msg += "\n - The script did not output the expected output. Captured output: " + validateKbossVmAnswer.getScriptResult();
2222
+
}
2223
+
if (validateKbossVmCommand.isTakeScreenshot() && validateKbossVmAnswer.getScreenshotPath() == null) {
2224
+
result = false;
2225
+
msg += "\n - We were unable to take a screenshot of the VM.";
logger.debug("Saving validation screenshot path [{}] to the backup details of backup [{}].", validateKbossVmAnswer.getScreenshotPath(), backupVO.getUuid());
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtCleanupKbossValidationCommandWrapper.java
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,11 @@ public Answer execute(CleanupKbossValidationCommand command, LibvirtComputingRes
33
33
returnnewAnswer(command);
34
34
}
35
35
36
+
/**
37
+
* The objective of this command is to remove the secondary storage references after the validation VM was stopped.
38
+
* Since the `getStoragePoolByURI` and `deleteStoragePool` have a reference counter, where the first method increases the count and the second one decreases the count,
39
+
* we must call the deleteStoragePool twice so that the command is count negative.
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtValidateKbossVmCommandWrapper.java
logger.warn("This command is malformed, we should execute an script for VM [{}], but no script was configured. Please review the original VM configurations.", vm.getName());
"Advanced", Boolean.class, "enforce.resource.limit.on.backup.validation.vm", "false", "If set to true, validation VMs will be accounted in the resource limit of the " +
Copy file name to clipboardExpand all lines: services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java
0 commit comments