データベース構成中に "setupvcd script failed to execute" というエラーが発生し、VCD セル構成が失敗する
search cancel

データベース構成中に "setupvcd script failed to execute" というエラーが発生し、VCD セル構成が失敗する

book

Article ID: 431279

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

免責事項:これは英文記事「VCD cell configuration fails during database configuration with error " setupvcd script failed to execute"」の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。


  • configure-vcd スクリプトが失敗するため、プライマリ VCD アプライアンスのデプロイやスタンバイセルの追加が行えない。
  • プライマリアプライアンスのデプロイ中に、/opt/vmware/vcloud-director/logs/cell-management-tool.log へ以下のような出力が記録される。

    com.vmware.vcloud.cell.management.CellManagementTool.start(CellManagementTool.java:347)
    com.vmware.vcloud.cell.management.CellManagementTool.main(CellManagementTool.java:244)
    com.vmware.vcloud.cell.management.CellManagementTool.main(CellManagementTool.java:276)
    Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

  • データベース構成中にスタンバイセルのセットアップが失敗し、/opt/vmware/var/log/vcd/configure-vcd.log や /opt/vmware/var/log/vcd/appliance-sync.log へ以下のような出力が記録される。

    configure-vcd.log:

    Reconfiguring vCD to use a secure database connection.
    setupvcd.sh | Reconfiguring vCD to use a secure database connection.
    Invalid database configuration provided. Aborting configuration of local cell.
    | setupvcd.sh | [ERROR] Failed to run reconfigure-database. See /opt/vmware/vcloud-director/logs/cell-management-tool.log for details. Aborting.
    | configure-vcd.sh | [ERROR] setupvcd script failed to execute


    appliance-sync.log:

    | Adding certificate for node node-########-####-####-####-######## to local trust store.
    | Timed out adding certificate for node node-########-####-####-####-########, continuing to other nodes.
    | Successfully completed run of appliance sync script

Environment

VMware Cloud Director 10.x

Cause

この問題は証明書インポート処理がタイムアウトすることにより発生します。

Resolution

この問題を解決するには下記の手順に従ってください。

  1. プライマリセルまたはセットアップに失敗したスタンバイセルへの SSH セッションを開く
  2. '/opt/vmware/appliance/bin/' へ移動し、appliance-sync.sh を編集
  3. 以下行に移動

    /usr/bin/timeout 10s $VCLOUD_HOME/bin/cell-management-tool import-trusted-certificates --source $APPLIANCE_SHARE/$i/vcd_ova.crt --force.

  4. 10s を 25s へ変更してタイムアウト値を 25 秒に延長
  5. 対象行が以下の通りとなったことを確認

    /usr/bin/timeout 25s $VCLOUD_HOME/bin/cell-management-tool import-trusted-certificates --source $APPLIANCE_SHARE/$i/vcd_ova.crt --force


    ファイルを保存するとアプライアンスがデプロイされるようになります。