Bug 2124147 - "ReadOnlyMany" should not be added to supported values in memory dump
Summary: "ReadOnlyMany" should not be added to supported values in memory dump
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.12.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.12.0
Assignee: skagan
QA Contact: Yan Du
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-05 03:11 UTC by Yan Du
Modified: 2023-01-24 13:40 UTC (History)
2 users (show)

Fixed In Version: CNV v4.12.0-563
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-24 13:40:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt pull 8484 0 None Merged Memory dump download 2022-10-23 11:27:42 UTC
Github kubevirt kubevirt pull 8666 0 None Merged [release-0.58] Manual backport of memory dump make access mode validation more accurate 2022-11-06 11:58:17 UTC
Red Hat Issue Tracker CNV-21015 0 None None None 2022-11-03 12:48:55 UTC
Red Hat Product Errata RHSA-2023:0408 0 None None None 2023-01-24 13:40:41 UTC

Description Yan Du 2022-09-05 03:11:51 UTC
Description of problem:
"ReadOnlyMany" should not added to supported values in memory dump


Version-Release number of selected component (if applicable):
CNV-v4.12.0-450
Client Version: version.Info{GitVersion:"v0.56.0-rc.0", GitCommit:"7ae67511af8d24e85c1668e6321db08981215e7d", GitTreeState:"clean", BuildDate:"2022-08-01T13:37:38Z", GoVersion:"go1.17.8", Compiler:"gc", Platform:"linux/amd64"}


How reproducible:
Always


Steps to Reproduce:
1. Create a VM
2. Do memory dump with an unsupported access mode, got only warning - supported values: "ReadOnlyMany", "ReadWriteMany", "ReadWriteOnce"
3. Do memory dump with access mode "ReadOnlyMany", got warning - cannot dump memory to a readonly pvc


Actual results:
$ virtctl memory-dump get vm-fedora-datavolume  --claim-name=memoryvolume --create-claim --access-mode=RWX
PersistentVolumeClaim "memoryvolume" is invalid: spec.accessModes: Unsupported value: "RWX": supported values: "ReadOnlyMany", "ReadWriteMany", "ReadWriteOnce"

$ virtctl memory-dump get vm-fedora-datavolume  --claim-name=memoryvolume --create-claim --access-mode=ReadOnlyMany
cannot dump memory to a readonly pvc, use either ReadWriteOnce or ReadWriteMany if supported


Expected results:
"ReadOnlyMany" should not added to supported values in memory dump


Additional info:

Comment 1 Maya Rashish 2022-10-23 11:36:55 UTC
oops, let me correct that, we plan to use the rhel8 versions for 4.12.

Comment 2 Yan Du 2022-11-10 06:04:15 UTC
Test on CNV-v4.12.0-682, issue has been fixed.

$ virtctl memory-dump get vm-fedora-datavolume  --claim-name=memoryvolume --create-claim --access-mode=RWX
invalid access mode, use either ReadWriteOnce or ReadWriteMany if supported

$ virtctl memory-dump get vm-fedora-datavolume  --claim-name=memoryvolume --create-claim --access-mode=ReadOnlyMany
cannot dump memory to a readonly pvc, use either ReadWriteOnce or ReadWriteMany if supported

Comment 6 errata-xmlrpc 2023-01-24 13:40:29 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.12.0 Images security 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:0408


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