問題に関する説明:
bootvm.py スクリプトを実行して ESC VM を作成しているときに、次のエラーが発生し、bootvm.py スクリプトが異常終了する場合があります。
bootvm script fails with error "object of type 'NoneType' has no len()"
説明:
詳細が指定されていないか、部分的に指定されているため、bootvm.py スクリプトは OpenStack ログイン情報と接続の詳細の認証に失敗します。
ソリューション:
最新の値をソースとする OpenRC ファイルがあることを確認してください。
次に例を示します。
export OS_USERNAME=admin
export OS_PASSWORD=<HIDDEN>
export OS_REGION_NAME=RegionOne
export OS_AUTH_URL=http://172.29.91.77:5000/v3
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_IDENTITY_API_VERSION=3
bootvm.py を再度実行する前に、OpenRC ファイルを入手します。
os_<variable_name>
、つまり --os_auth_url=http://172.29.91.77:5000/v3
を使用して、bootvm.py に直接値を渡すこともできます。
同じエラーが引き続き発生する場合は、デバッグオプションを指定して bootvm.py スクリプトを実行し、出力をファイルにリダイレクトします。このアクションを実行するには、次のコマンドライン引数を追加します。
--loglevel DEBUG --log /tmp/esc-install.log
テクニカルサポートに連絡する際は、結果の esc-install.log ファイルを添付してください。