「Failed to read health xml file」のエラーで vcha の健全性チェックが失敗し、vCenter HA のフェイルオーバーが発生する
search cancel

「Failed to read health xml file」のエラーで vcha の健全性チェックが失敗し、vCenter HA のフェイルオーバーが発生する

book

Article ID: 428523

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

免責事項: これは英文の記事 「vCenter HA failover happened with Failed to read health xml file error on health check on vcha」の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。

  • 意図しない vCenter HA フェイルオーバーが発生する。

  • 旧 active の vCenter の vmon.log に以下のエントリが記録される。
    Error: Failed to read health xml file: /etc/vmware-vcha/vcha_health.xml. Error: time data '[DATE]T23:54:35Z' does not match format '%Y-%m-%dT%H:%M:%S.%fZ'

  • /var/log/vmware/vmon.log に以下のようなログが記録される。
    [DATE/TIME] In(05) host-16370 <vcha-healthcmd> Constructed command: /usr/bin/python /usr/lib/vmware-vmon/vmonApiHealthCmd.py -n vmware-vcha -f /etc/vmware-vcha/vcha_health.xml
    [DATE/TIME] Wa(03) host-16370 <vcha> Service api-health command's stderr: Error getting service health. Error: Failed to read health xml file: /etc/vmware-vcha/vcha_health.xml. Error: time data '[DATE]T23:54:35Z' does not match format '%Y-%m-%dT%H:%M:%S.%fZ'
    [DATE/TIME] Wa(03)+ host-16370
    [DATE/TIME] Wa(03) host-16370 <vcha> Service api healthcheck command returned unknown exit code 1
    [DATE/TIME] Er(02) host-16370 <vcha> health state unknown ,considered as system failure
    [DATE/TIME] Er(02) host-16370 System Failure, initiating system restart.

Environment

VMware vCenter Server 8.0
VMware vCenter Server 9.0

Cause

以下のログに示すように、時刻値にミリ秒とマイクロ秒の値がありません。
Error: Failed to read health xml file: /etc/vmware-vcha/vcha_health.xml. Error: time data '[DATE]T23:54:35Z' does not match format '%Y-%m-%dT%H:%M:%S.%fZ'

ミリ秒とマイクロ秒が0である場合に、本来は以下のように 0 でフォーマットされる必要があります。
'[DATE]T23:54:35.000.000Z'

但し、不具合によりミリ秒とマイクと秒の 0 の値はフォーマットされず、時刻解釈に失敗します。

Resolution

これは非常に稀に発生する事象であり、回避策はありません。

この問題は、以下のリリースで修正されました。
vCenter Server 8.0 Update 3h
VMware vCenter 9.0.1.0

Additional Information

VMware vCenter 8.0 Update 3h リリースノート

VMware vCenter 9.0.1.0