Bug 2212312 - [4.14] virtctl memory dump download doesn't work
Summary: [4.14] 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.14.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.14.0
Assignee: Alexander Wels
QA Contact: Jenia Peimer
URL:
Whiteboard:
Depends On:
Blocks: 2212313
TreeView+ depends on / blocked
 
Reported: 2023-06-05 09:25 UTC by Jenia Peimer
Modified: 2023-11-08 14:06 UTC (History)
1 user (show)

Fixed In Version: CNV v4.14.0.rhel9-831
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2212313 (view as bug list)
Environment:
Last Closed: 2023-11-08 14:05:49 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 12:12:39 UTC
Red Hat Issue Tracker CNV-29401 0 None None None 2023-06-05 09:29:17 UTC
Red Hat Product Errata RHSA-2023:6817 0 None None None 2023-11-08 14:06:05 UTC

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

Comment 6 errata-xmlrpc 2023-11-08 14:05:49 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 (Important: OpenShift Virtualization 4.14.0 Images security and bug fix update), 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/RHSA-2023:6817


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