mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
82 lines
2.3 KiB
Plaintext
82 lines
2.3 KiB
Plaintext
// Module included in the following assembly:
|
|
//
|
|
// * virt/virtual_machines/advanced_vm_management/virt-automatic-bootsource-updates.adoc
|
|
//
|
|
|
|
:_content-type: PROCEDURE
|
|
[id="virt-verify-status-bootsource-update_{context}"]
|
|
= Verifying the status of a boot source
|
|
|
|
You can verify whether a boot source is system-defined or user-defined.
|
|
|
|
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.
|
|
|
|
.Procedure
|
|
|
|
. Use the `oc get` command to list the `dataImportChronTemplates` in the `HyperConverged` CR.
|
|
|
|
. Verify the status of the boot source.
|
|
+
|
|
.Example output
|
|
|
|
[source,yaml]
|
|
----
|
|
...
|
|
apiVersion: hco.kubevirt.io/v1beta1
|
|
kind: HyperConverged
|
|
...
|
|
spec:
|
|
...
|
|
status: <1>
|
|
...
|
|
dataImportCronTemplates: <2>
|
|
- metadata:
|
|
annotations:
|
|
cdi.kubevirt.io/storage.bind.immediate.requested: "true"
|
|
name: centos-7-image-cron
|
|
spec:
|
|
garbageCollect: Outdated
|
|
managedDataSource: centos7
|
|
schedule: 55 8/12 * * *
|
|
template:
|
|
metadata: {}
|
|
spec:
|
|
source:
|
|
registry:
|
|
url: docker://quay.io/containerdisks/centos:7-2009
|
|
storage:
|
|
resources:
|
|
requests:
|
|
storage: 30Gi
|
|
status: {}
|
|
status:
|
|
commonTemplate: true <3>
|
|
...
|
|
- metadata:
|
|
annotations:
|
|
cdi.kubevirt.io/storage.bind.immediate.requested: "true"
|
|
name: user-defined-dic
|
|
spec:
|
|
garbageCollect: Outdated
|
|
managedDataSource: user-defined-centos-stream8
|
|
schedule: 55 8/12 * * *
|
|
template:
|
|
metadata: {}
|
|
spec:
|
|
source:
|
|
registry:
|
|
pullMethod: node
|
|
url: docker://quay.io/containerdisks/centos-stream:8
|
|
storage:
|
|
resources:
|
|
requests:
|
|
storage: 30Gi
|
|
status: {}
|
|
status: {} <4>
|
|
...
|
|
----
|
|
<1> The `status` field for the `HyperConverged` CR.
|
|
<2> The `dataImportCronTemplates` field, which lists all defined boot sources.
|
|
<3> Indicates a system-defined boot source.
|
|
<4> Indicates a user-defined boot source.
|