Created attachment 1885428 [details] kebab action menu Description of problem: When "Edit BS" action is disabled in template kebab it should has helper text with the reason why it's disabled, see attached screenshot Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
@apinnick can you please advise? Thank you.
@yfrimanm Unless I am missing something, I think it is self-explanatory. The user cannot edit Red Hat Supported or Red Hat Provided templates in any way, including changing the boot source. This is in the documentation: https://docs.openshift.com/container-platform/4.10/virt/vm_templates/virt-creating-vm-template.html If a user wants to edit the boot source, they would have to first clone the template. Then it becomes a User Supported or User Provided template. If this were a tooltip, you could add a line about cloning the template. I do not think you will have enough room on a menu to add more text.
@apinnick this is more complexed than that so I will schedule a meeting to get the accurate explanations from @yzamir
We agreed about 3 states for Edit of the Boot Source: 1. Edit Boot source - this will affect only the selected template 2. Edit Boot reference - this will change the Boot source that may be used by other templates 3. Edit Boot source (action is disabled) in case the Boot source can't be edited
@yzamir don't think we can do point 1. We would understand if other templates have the same source. But the other two are great :-) Yaacov what do you think?
Created attachment 1887184 [details] Red Hat Template that doesn’t use source reference
Created attachment 1887185 [details] Red Hat Template that uses source reference
Created attachment 1887186 [details] Custom Template that doesn’t use source reference
Created attachment 1887187 [details] Custom Template that uses source reference
We decided to split the operations: Edit boot source - Affects only the specific template - Can be done only on non-RH templates Edit boot reference - Can be done only when the template is using a boot reference and will change the reference (may affect multiple templates)
Please see the attached 4 use cases for the drop down menu regarding splitting the Boot source into: Edit boot source and Edit boot source reference: Red Hat Template that doesn’t use source reference Red Hat Template that uses source reference Custom Template that doesn’t use source reference Custom Template that uses source reference
Guys, we've talked a little bit with the CNV storage team. if we change the source and the DataSource is part of a DataImportCron, the cron job will detect a change in the storage digest and will retrieve the original content discarding the changes. Since removing the DataSource from the DiC is not an option, we have to disable the edit if the DataSource is part of a DiC.
What do you think if we create two different descriptions when 'Edit boot source reference' is disabled? - 'Template does not use boot source reference' when template does not have a boot source reference obv - 'Boot source reference cannot be edited' when the boot source reference is in DiC @yfrimanm ?
@upalatuc Looks good to me, but can you please send a link to view this before you implement? Thanks.
I've created a pr here (https://github.com/kubevirt-ui/kubevirt-plugin/pull/581) It's on hold so will not be merged until is okay for you
Thank you @upalatuc. Looks great!
Hei @apinnick the capitalization was fixed here: https://github.com/kubevirt-ui/kubevirt-plugin/pull/596. Don't know why this pr is not attached
(In reply to Ugo Palatucci from comment #20) > Hei @apinnick the capitalization was fixed here: > https://github.com/kubevirt-ui/kubevirt-plugin/pull/596. > > Don't know why this pr is not attached I changed the status of this bug to "New" so that the "Edit BootSource" info would be added to the documentation. This is not connected with your PR. I hope that makes every thing clearer.
Thanks @ctomasko, will do.
Hi @lkladnit - Please review https://github.com/openshift/openshift-docs/pull/53119 If you approve, I can go to peer review and merge/pick from 4.8-4.12. Direct doc preview link: https://53119--docspreview.netlify.app/openshift-enterprise/latest/virt/vm_templates/virt-editing-vm-template.html Thanks, Bob
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.11.1 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-2022:8750
Verified on kubevirt-console-plugin-container-v4.12.0-182
Changes approved and merged.