Bug 2212313 - [4.13.1] virtctl memory dump download doesn't work
Summary: [4.13.1] virtctl memory dump download doesn't work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.13.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.13.1
Assignee: Alexander Wels
QA Contact: Jenia Peimer
URL:
Whiteboard:
Depends On: 2212312
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-05 09:27 UTC by Jenia Peimer
Modified: 2023-06-20 13:41 UTC (History)
5 users (show)

Fixed In Version: v4.13.1.rhel9-147
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2212312
Environment:
Last Closed: 2023-06-20 13:41:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt pull 9857 0 None Merged Assign writer to output file when downloading memory dump 2023-06-07 03:21:37 UTC
Github kubevirt kubevirt pull 9865 0 None Merged [release-0.59] Assign writer to output file when downloading memory dump 2023-06-07 19:21:01 UTC
Red Hat Issue Tracker CNV-29400 0 None None None 2023-06-05 09:29:12 UTC
Red Hat Product Errata RHEA-2023:3686 0 None None None 2023-06-20 13:41:15 UTC

Description Jenia Peimer 2023-06-05 09:27:21 UTC
+++ This bug was initially created as a clone of Bug #2212312 +++

Description of problem:
Downloading memory dump using virtctl panics.
Either using create and download of memory dump:
$ virtctl memory-dump get myvm --claim-name=memoryvolume --create-claim --output=memoryDump.dump.gz
nor downloading last associated memory dump with the vm:
$ virtctl memory-dump download myvm --output=memoryDump.dump.gz


Version-Release number of selected component (if applicable):
4.14.0, 4.13.1

How reproducible:
Always

Steps to Reproduce:
Tests Suite.[sig-storage] Memory dump Memory dump with download [test_id:9344]should create memory dump and download it

Actual results:
memory dump download fails

Expected results:
Downloading memory dump using virtctl should work

Comment 1 skagan 2023-06-05 14:22:32 UTC
Work Around:
Instead of using the get command with --output which gets and downloads the memory dump:
$ virtctl memory-dump get myvm --claim-name=memoryvolume --create-claim --output=memoryDump.dump.gz

you can do only get of memory dump and then download using virtctl vmexport download:
$ virtctl memory-dump get myvm --claim-name=memoryvolume --create-claim
$ virtctl vmexport download vm1-export --vm=myvm --volume=memoryvolume --output=memoryDump.dump.gz

For downloading only of the last memory dump instead of using the memory-dump download command:
$ virtctl memory-dump download myvm --output=memoryDump.dump.gz
Use the vmexport download after searching which is the last memory dump associated with the vm
$ virtctl vmexport download vm1-export --vm=myvm --volume={vm.Status.MemoryDumpRequest.ClaimName} --output=memoryDump.dump.gz

Comment 2 Jenia Peimer 2023-06-08 12:37:20 UTC
Verified on CNV v4.13.1.rhel9-152

Comment 9 errata-xmlrpc 2023-06-20 13:41:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Virtualization 4.13.1 Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2023:3686


Note You need to log in before you can comment on or make changes to this bug.