4.6.2. マネージドクラスターのホストファームウェア設定の取得
マネージドクラスターのホストファームウェア設定を取得できます。これは、ホストファームウェアに変更をデプロイし、変更を監視して正常に適用されていることを確認する場合に便利です。
前提条件
-
OpenShift CLI (
oc) がインストールされている。 -
Red Hat Advanced Cluster Management (RHACM) をインストールを完了し、
cluster-admin権限を持つユーザーとしてハブクラスターにログインしている。 - RHACM によって管理されるクラスターをプロビジョニングした。
手順
マネージドクラスターのホストファームウェア設定を取得します。以下のコマンドを実行します。
$ oc get hostfirmwaresettings -n <cluster_namespace> <node_name> -o yaml出力例
apiVersion: v1 items: - apiVersion: metal3.io/v1alpha1 kind: HostFirmwareSettings metadata: creationTimestamp: "2024-09-11T10:29:43Z" generation: 1 name: compute-1.example.com namespace: kni-qe-24 ownerReferences: - apiVersion: metal3.io/v1alpha1 blockOwnerDeletion: true controller: true kind: BareMetalHost name: compute-1.example.com uid: 0baddbb7-bb34-4224-8427-3d01d91c9287 resourceVersion: "280057626" uid: 65d0e89b-1cd8-4317-966d-2fbbbe033fe9 spec: settings: {} status: conditions: - lastTransitionTime: "2024-09-11T10:29:43Z" message: "" observedGeneration: 1 reason: Success status: "True"1 type: ChangeDetected - lastTransitionTime: "2024-09-11T10:29:43Z" message: Invalid BIOS setting observedGeneration: 1 reason: ConfigurationError status: "False"2 type: Valid lastUpdated: "2024-09-11T10:29:43Z" schema: name: schema-40562318 namespace: compute-1 settings:3 AccessControlService: Enabled AcpiHpet: Enabled AcpiRootBridgePxm: Enabled # ...オプション: クラスターの
HostFirmwareSettings(hfs) カスタムリソースのステータスを確認します。$ oc get hfs -n <managed_cluster_namespace> <managed_cluster_name> -o jsonpath='{.status.conditions[?(@.type=="ChangeDetected")].status}'出力例
Trueオプション: クラスターホストに無効なファームウェア設定がないか確認します。以下のコマンドを実行します。
$ oc get hfs -n <managed_cluster_namespace> <managed_cluster_name> -o jsonpath='{.status.conditions[?(@.type=="Valid")].status}'出力例
False