<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Get password only works if you have something in the guest generating the<div>encrypted password and posting it to the metadata server. Cloud-init for</div><div>windows (the primary use case) will do this for you. You can do something</div><div>similar for ubuntu using this script:</div><div><br></div><div><a href="https://gist.github.com/vishvananda/4008762">https://gist.github.com/vishvananda/4008762</a></div><div><br></div><div>If cirros has usermod and openssl installed it may work there as well. Note</div><div>that you can pass the script in as userdata (see the comments at the end).</div><div><br></div><div>Vish</div><div><br><div><div><div>On Oct 15, 2014, at 8:02 AM, Danny Choi (dannchoi) <<a href="mailto:dannchoi@cisco.com">dannchoi@cisco.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">

<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">

<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="font-family: Calibri, sans-serif; font-size: 14px;">
Hi,</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">
I used devstack to deploy Juno OpenStack.</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style=""><font face="Calibri,sans-serif" style="font-size: 14px;">I spin up an instance with </font>cirros-0.3.2-x86_64-uec.</div>
<div style=""><br>
</div>
<div><span style="">By default, useranme/password is </span>cirrus/cubswin:)</div>
<div><br>
</div>
<div>When I execute the command “nova get-password”, nothing is returned.</div>
<div><font face="Menlo" size="2"><br>
</font></div>
<div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">localadmin@qa4:/etc/nova$ nova show vm1</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">+--------------------------------------+----------------------------------------------------------------+</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| Property                             | Value                                                          |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">+--------------------------------------+----------------------------------------------------------------+</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| OS-DCF:diskConfig                    | MANUAL                                                         |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| OS-EXT-AZ:availability_zone          | nova                                                           |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| OS-EXT-STS:power_state               | 1                                                              |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| OS-EXT-STS:task_state                | -                                                              |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| OS-EXT-STS:vm_state                  | active                                                         |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| OS-SRV-USG:launched_at               | 2014-10-15T14:48:04.000000                                     |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| OS-SRV-USG:terminated_at             | -                                                              |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| accessIPv4                           |                                                                |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| accessIPv6                           |                                                                |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| config_drive                         |                                                                |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| created                              | 2014-10-15T14:47:56Z                                           |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| flavor                               | m1.tiny (1)                                                    |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| hostId                               | ea715752b11cf96b95f9742513a351d2d6571c4fdb76f497d64ecddb       |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| id                                   | 1a3c487e-c3a3-4783-bd0b-e3c87bf22c3f                           |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| image                                | cirros-0.3.2-x86_64-uec (1dda953b-9319-4c43-bd20-1ef75b491553) |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| key_name                             | cirros-key                                                     |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| metadata                             | {}                                                             |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| name                                 | vm1                                                            |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| os-extended-volumes:volumes_attached | []                                                             |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| private network                      | 10.0.0.11                                                      |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| progress                             | 0                                                              |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| security_groups                      | default                                                        |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| status                               | ACTIVE                                                         |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| tenant_id                            | c8daf9bd6dda40a982b074322c08da7d                               |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| updated                              | 2014-10-15T14:48:04Z                                           |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">| user_id                              | 2cbbafae01404d4ebeb6e6fbacfa6546                               |</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">+--------------------------------------+----------------------------------------------------------------+</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">localadmin@qa4:/etc/nova$ nova help get-password</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">usage: nova get-password <server> [<private-key>]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br>
</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Get password for a server.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br>
</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Positional arguments:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  <server>       Name or ID of server.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  <private-key>  Private key (used locally to decrypt password) (Optional).</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">                 When specified, the command displays the clear (decrypted) VM</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">                 password. When not specified, the ciphered VM password is</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">                 displayed.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">localadmin@qa4:/etc/nova$ nova get-password vm1 </div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;">                                      <<<<<[NOTHING RETURNED]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">localadmin@qa4:/etc/nova$ </div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div><div style="margin: 0px;">Am I missing something?</div><div style="margin: 0px;"><br>
</div><div style="margin: 0px;">Thanks,</div><div style="margin: 0px;">Danny</div>
</div>
</div>

_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br></blockquote></div><br></div></div></body></html>