1 | initial version |
"injectuserpassword" can be used to inject the password only when available in the metadata, which in OpenStack's case happens when ConfigDrive is used as the metadata provider, but not with HTTP metadata.
Alternatively to have it working with HTTP, it can be also passed in the form of custom metadata using the nova boot command:
nova boot ... --meta admin_pass=xxxxxx
Injecting the password is anyway not recommended, as it's included in clear text in the metadata. The preferred solution consists in using nova get password to retrieve the randomly generated password encrypted with the user's keypair:
nova get-password <instance> <path_to_SSH_private_key>