Created attachment 1913429 [details] error about creating MigrationPolicy from example YAML Description of problem: Cannot create MigrationPolicy from example YAML. apiVersion: migrations.kubevirt.io/v1alpha1 kind: MigrationPolicy metadata: name: example spec: {} error: Error "Required value" for field "spec.selectors". Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Create MigrationPolicy from example YAML 2. 3. Actual results: Expected results: provide an usable example YAML for MigrationPolicy Additional info:
The default YAML is still not sufficient, something like this is needed: ``` apiVersion: migrations.kubevirt.io/v1alpha1 kind: MigrationPolicy metadata: name: mp-example spec: selectors: {} ```
Verified on v4.12.0-131
The name should probably be "mp-example", as in other YAML-generated entities.
(In reply to Leon Kladnitsky from comment #4) > The name should probably be "mp-example", as in other YAML-generated > entities. Hi Leon actually, the Console convention is to simply name it `example`, you can see in PV create/PVC create/Service create and so on you're right that on VM YAML and VM template YAML example we have a different name (vm-example and vm-template-example), and those should be changed to example, can you please open a different bug for this?
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