Skip to content

Commit

Permalink
Merge pull request kubevirt#9256 from alromeros/improve-fsfreeze-erro…
Browse files Browse the repository at this point in the history
…r-msg

Improve error message when virt-freezer fails on paused VM
  • Loading branch information
kubevirt-bot authored Feb 23, 2023
2 parents fe38373 + caf7292 commit 4fea4f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/virt-freezer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func main() {
log.Log.Infof("Guest agent version is %s", info.GAVersion)

if !isVmRunning(client) {
log.Log.Reason(err).Error("VM is not running")
log.Log.Error("Paused VM, unable to freeze/unfreeze")
os.Exit(1)
}

Expand Down
2 changes: 1 addition & 1 deletion tests/storage/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ var _ = SIGDescribe("VirtualMachineSnapshot Tests", func() {
By("Calling Velero pre-backup hook")
_, stderr, err := callVeleroHook(vmi, VELERO_PREBACKUP_HOOK_CONTAINER_ANNOTATION, VELERO_PREBACKUP_HOOK_COMMAND_ANNOTATION)
Expect(err).To(HaveOccurred())
Expect(stderr).Should(ContainSubstring("not running"))
Expect(stderr).Should(ContainSubstring("Paused VM"))
})

Context("with memory dump", func() {
Expand Down

0 comments on commit 4fea4f6

Please sign in to comment.