Created attachment 1592788 [details] VM and Pod Yaml editor pages Description of problem: OCP Management console provides documentation of properties of created resources in YAML editor page. See attached screenshots of VM and Pod YAML editor pages. This documentation is currently missing for Virtual Machines. Version-Release number of selected component (if applicable): 2.1 How reproducible: 100% Steps to Reproduce: 1. Create a VM and navigate to its yaml page 2. 3. Actual results: Side panel with documentation is empty Expected results: there should be documentation of VM properties to keep the UI consistent Additional info:
this is not caused by UI but the missing information is propagated from the API. I filed a bug against kubevirt: https://github.com/kubevirt/kubevirt/issues/2530
moving this to virt group to since the work will be done there.
I finally found out what is causing this: a) we don't have a openapi validation schema on our CRDs (wasn't needed until now, validation is done by our apiserver/webhook) b) even if we have, this is a feature gated alpha feature in k8s 1.14, see https://github.com/kubernetes/enhancements/issues/692 Before I go on with this, I see if I get acks for this.
This depends on https://github.com/kubernetes/enhancements/issues/692 which was released as stable in k8s 1.16
Fix for this https://bugzilla.redhat.com/show_bug.cgi?id=1860714 bug would also cover this bug.
Verify with CNV2.6.0 $ oc version Client Version: 4.6.0-0.nightly-2020-07-25-091217 Server Version: 4.7.0-0.nightly-2020-12-14-165231 Kubernetes Version: v1.19.2+e386040 step: 1. create vm 2. check vm side panel there have documentation of VM properties Virtual Machine Schema VirtualMachine handles the VirtualMachines that are not running or are in a stopped state The VirtualMachine contains the template to create the VirtualMachineInstance. It also mirrors the running state of the created VirtualMachineInstance in its status. apiVersion ....
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 2.6.0 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-2021:0799