Bug 2212313

Summary: [4.13.1] virtctl memory dump download doesn't work
Product: Container Native Virtualization (CNV) Reporter: Jenia Peimer <jpeimer>
Component: StorageAssignee: Alexander Wels <awels>
Status: CLOSED ERRATA QA Contact: Jenia Peimer <jpeimer>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.13.1CC: alitke, danken, ngavrilo, skagan, yadu
Target Milestone: ---Keywords: Regression
Target Release: 4.13.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: v4.13.1.rhel9-147 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2212312 Environment:
Last Closed: 2023-06-20 13:41:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2212312    
Bug Blocks:    

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