|
| 1 | +// Module included in the following assembly: |
| 2 | +// |
| 3 | +// * virt/virtual_machines/advanced_vm_management/virt-automatic-bootsource-updates.adoc |
| 4 | +// |
| 5 | + |
| 6 | +:_content-type: PROCEDURE |
| 7 | +[id="virt-verify-status-bootsource-update_{context}"] |
| 8 | += Verifying the status of a boot source |
| 9 | + |
| 10 | +You can verify whether a boot source is system-defined or user-defined. |
| 11 | + |
| 12 | +The `status` section of each boot source listed in the `status.dataImportChronTemplates` field of the `HyperConverged` CR indicates the type of boot source. For example, `commonTemplate: true` indicates a system-defined (`commonTemplate`) boot source and `status: {}` indicates a user-defined boot source. |
| 13 | + |
| 14 | +.Procedure |
| 15 | + |
| 16 | +. Use the `oc get` command to list the `dataImportChronTemplates` in the `HyperConverged` CR. |
| 17 | + |
| 18 | +. Verify the status of the boot source. |
| 19 | ++ |
| 20 | +.Example output |
| 21 | + |
| 22 | +[source,yaml] |
| 23 | +---- |
| 24 | +... |
| 25 | +apiVersion: hco.kubevirt.io/v1beta1 |
| 26 | +kind: HyperConverged |
| 27 | +... |
| 28 | +spec: |
| 29 | + ... |
| 30 | +status: <1> |
| 31 | + ... |
| 32 | + dataImportCronTemplates: <2> |
| 33 | + - metadata: |
| 34 | + annotations: |
| 35 | + cdi.kubevirt.io/storage.bind.immediate.requested: "true" |
| 36 | + name: centos-7-image-cron |
| 37 | + spec: |
| 38 | + garbageCollect: Outdated |
| 39 | + managedDataSource: centos7 |
| 40 | + schedule: 55 8/12 * * * |
| 41 | + template: |
| 42 | + metadata: {} |
| 43 | + spec: |
| 44 | + source: |
| 45 | + registry: |
| 46 | + url: docker://quay.io/containerdisks/centos:7-2009 |
| 47 | + storage: |
| 48 | + resources: |
| 49 | + requests: |
| 50 | + storage: 30Gi |
| 51 | + status: {} |
| 52 | + status: |
| 53 | + commonTemplate: true <3> |
| 54 | + ... |
| 55 | + - metadata: |
| 56 | + annotations: |
| 57 | + cdi.kubevirt.io/storage.bind.immediate.requested: "true" |
| 58 | + name: user-defined-dic |
| 59 | + spec: |
| 60 | + garbageCollect: Outdated |
| 61 | + managedDataSource: user-defined-centos-stream8 |
| 62 | + schedule: 55 8/12 * * * |
| 63 | + template: |
| 64 | + metadata: {} |
| 65 | + spec: |
| 66 | + source: |
| 67 | + registry: |
| 68 | + pullMethod: node |
| 69 | + url: docker://quay.io/containerdisks/centos-stream:8 |
| 70 | + storage: |
| 71 | + resources: |
| 72 | + requests: |
| 73 | + storage: 30Gi |
| 74 | + status: {} |
| 75 | + status: {} <4> |
| 76 | +... |
| 77 | +---- |
| 78 | +<1> The `status` field for the `HyperConverged` CR. |
| 79 | +<2> The `dataImportCronTemplates` field, which lists all defined boot sources. |
| 80 | +<3> Indicates a system-defined boot source. |
| 81 | +<4> Indicates a user-defined boot source. |
0 commit comments