How to nova boot an instance with a specific admin_pass ?

asked 2013-11-07 04:47:00 -0600

jordan-pittier gravatar image

Hi guys,

I try to boot a Windows image in a my private cloud. I want the instance to have a user-defined admin_pass (aka adminPass).

  • nova help boot is of no help, the --admin_pass (if implemented) is not documented.
  • nova boot [...] --meta admin_pass=fubar doesn't work as intented. I still get a response with an adminPass randomly generated.
    • I manage to craft the following CURL request :

curl -i http://xx/v2/$TENANT_ID/servers -X POST -H "X-Auth-Project-Id: admin" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: $TOKEN" -d '{"server": {"name": "'$name'", "imageRef": "'$image_id'", "adminPass": "testtest",'"key_name": "jordan", "flavorRef": "'$flavor_id'", "networks": [{"uuid": "'$net_id'"}]}}'

But where, in the DB (the table instance_system_metadata doesn't seem to mention the admin_pass), could I check that the admin_pass has been correctly set ?

Thanks for your help ! Any hint or suggestion to have this admin_pass working would be appreciated :)

Havana multi node, from source / Ubuntu 12.04

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-11-11 03:06:54 -0600

Super Wang gravatar image


nova help root-password

You can change the root password manually after deployment.

edit flag offensive delete link more


How to use this command ? I get a error: $ nova root-password web01 New password: Again: ERROR: Unable to set password on instance (HTTP 501) (Request-ID: req-012702da-c8f6-4125-b04a-bfbfbe89c250)

qkboy gravatar imageqkboy ( 2013-12-13 01:21:58 -0600 )edit

I too am getting that same error when trying this command on icehouse.

slmingol gravatar imageslmingol ( 2015-03-19 10:31:28 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-11-07 04:47:00 -0600

Seen: 2,495 times

Last updated: Nov 11 '13