Bug 2159715
Summary: | VM Memory does not show in details card of overview or details tab | |||
---|---|---|---|---|
Product: | Container Native Virtualization (CNV) | Reporter: | Sarah Bennert <sbennert> | |
Component: | User Experience | Assignee: | Ugo Palatucci <upalatuc> | |
Status: | CLOSED ERRATA | QA Contact: | Guohua Ouyang <gouyang> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 4.12.0 | CC: | gouyang, lyarwood | |
Target Milestone: | --- | |||
Target Release: | 4.13.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2181432 (view as bug list) | Environment: | ||
Last Closed: | 2023-05-18 02:56:40 UTC | 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: |
Description
Sarah Bennert
2023-01-10 13:00:00 UTC
There is an error while editing the CPU|Memory if the VM is created from instanceTypes: Error "VM field conflicts with selected Instancetype" for field "spec.template.spec.domain.cpu". I think it should be caused by the same reason as this bug, so update it here. (In reply to Sarah Bennert from comment #0) > Description of problem: > > In UI: > > VM Memory does not show in details card of overview or details tab. This sounds like a valid UI bug, this value should come from the associated instance type. (In reply to Guohua Ouyang from comment #2) > There is an error while editing the CPU|Memory if the VM is created from > instanceTypes: > Error "VM field conflicts with selected Instancetype" for field > "spec.template.spec.domain.cpu". > > I think it should be caused by the same reason as this bug, so update it > here. This isn't a bug. You can't edit (update/patch) the CPU or Memory of the VM when using instance types, see the following docs for more details: https://kubevirt.io/user-guide/virtual_machines/instancetypes/#virtualmachineinstancetype @Guohua When the VirtualMachine resource is created, the spec is updated with the calculated ControllerRevision references. apiVersion: kubevirt.io/v1 kind: VirtualMachine metadata: name: vm-instancetype-0-0 namespace: default spec: instancetype: kind: VirtualMachineInstancetype name: server.small revisionName: vm-instancetype-0-0-server.small-17f33b62-d43f-43a4-ad32-f0d178a672d8-1 # New field added after VM creation preference: kind: VirtualMachinePreference name: fedora revisionName: vm-instancetype-0-0-fedora-13275565-0963-4b65-82eb-5bac6875f9b6-1 # New field added after VM creation The ControllerRevision(s) will contain the relevant data the UI needs to pick up for display, it will not be shown in the VM for reasons stated above by Lee. apiVersion: apps/v1 kind: ControllerRevision data: apiVersion: instancetype.kubevirt.io/v1alpha2 kind: VirtualMachineInstancetype metadata: name: server.small namespace: default spec: cpu: guest: 1 memory: guest: 2Gi The message "CPU and Memory can not be edited if the VirtualMachine is created from InstanceType" is added to VM details tab. But on VM overview tab, the CPU|Memory field is keeping in loading, maybe we should just leave it blank. (In reply to Guohua Ouyang from comment #5) > The message "CPU and Memory can not be edited if the VirtualMachine is > created from InstanceType" is added to VM details tab. > > But on VM overview tab, the CPU|Memory field is keeping in loading, maybe we > should just leave it blank. It should show the same number we see in catalog -> instanceTypes -> VM details Aviv has a fix for that here https://github.com/kubevirt-ui/kubevirt-plugin/pull/1174/ Solution merged in the pr above 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 (Moderate: OpenShift Virtualization 4.13.0 Images security, bug fix, and enhancement 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:3205 |