Bug 2212312

Summary: [4.14] virtctl memory dump download doesn't work
Product: Container Native Virtualization (CNV) Reporter: Jenia Peimer <jpeimer>
Component: StorageAssignee: Alexander Wels <awels>
Status: VERIFIED --- QA Contact: Jenia Peimer <jpeimer>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.14.0CC: mrashish, skagan
Target Milestone: ---   
Target Release: 4.14.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: CNV v4.14.0.rhel9-831 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2212313 (view as bug list) Environment:
Last Closed: Type: Bug
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:    
Bug Blocks: 2212313    

Description Jenia Peimer 2023-06-05 09:25:59 UTC
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:21:19 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 3 Jenia Peimer 2023-08-02 13:19:27 UTC
Verified on CNV: v4.14.0.rhel9-1404