もがもがしいブログ

もがもがしく生きる

VCSA 6.7 U2: "Error message: There was no valid template paths for execution, please double check the given path"

vcsa-deploy が以下エラーでコケる件。

# /usr/local/src/vcsa/vcsa-cli-installer/lin64/vcsa-deploy install --accept-eula --acknowledge-ceip -v --no-ssl-certificate-verification --verify-template-only template /usr/local/src/vcsa/vcsa-cli-installer/templates/install/embedded_vCSA_on_ESXi.json
...
Only either the path to a template, or to a directory of templates is allowed.
Error message: There was no valid template paths for execution, please double check the given path ['template', '/root/vCSA_on_ESXi.json']
================================================================================================================================== 00:05:18 ==================================================================================================================================
Result and Log File Information...
WorkFlow log directory: /tmp/vcsaCliInstaller-2019-07-23-00-05-ikyhfryi/workflow_1563840318311

パスは通ってるし文法も間違ってないのになぜ…と思ったら、"template" の文字列が不要でした。

i.e.

# /usr/local/src/vcsa/vcsa-cli-installer/lin64/vcsa-deploy 
install --accept-eula --acknowledge-ceip -v --no-ssl-certificate-verification /usr/local/src/vcsa/vcsa-cli-installer/templates/install/embedded_vCSA_on_ESXi.json


helpには template の記載があるトラップ。。。

# /usr/local/src/vcsa/vcsa-cli-installer/lin64/vcsa-deploy install --help
Usage: vcsa-deploy install [-h] [--template-help] [--log-dir LOG_DIR] [--skip-ovftool-verification] [--accept-eula] [--acknowledge-ceip] [--pause-on-warnings] [--operation-id OPERATION_ID] [-v | -t] [--no-esx-ssl-verify | --no-ssl-certificate-verification]
                           [--verify-template-only | --precheck-only]
                           template [template ...]

Deploy VCSA to a remote host.