<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;">
AFAIK cloud-init is not handling it ATM, while Cloudbase-Init supports it out of the box on Windows (and soon FreeBSD).
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br>
</span></div>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">You
need to deploy your instance with an SSH keypair and use HTTP metadata, required for POSTing back the encrypted password.</span></div>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">It
does not work with ConfigDrive.</span></div>
<br class="Apple-interchange-newline">
</span></div>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">Alessandro</span></div>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br>
</span></div>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br>
</span></div>
<div>
<div>On 15 Oct 2014, at 18:17, Vishvananda Ishaya <<a href="mailto:vishvananda@gmail.com">vishvananda@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div 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">
<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>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote>
</div>
<br>
</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>
</body>
</html>