[Openstack] [openstack-dev] [qa] "nova get-password" does not seem to work

Vishvananda Ishaya vishvananda at gmail.com
Wed Oct 15 15:17:55 UTC 2014


Get password only works if you have something in the guest generating the
encrypted password and posting it to the metadata server. Cloud-init for
windows (the primary use case) will do this for you. You can do something
similar for ubuntu using this script:

https://gist.github.com/vishvananda/4008762

If cirros has usermod and openssl installed it may work there as well. Note
that you can pass the script in as userdata (see the comments at the end).

Vish

On Oct 15, 2014, at 8:02 AM, Danny Choi (dannchoi) <dannchoi at cisco.com> wrote:

> Hi,
> 
> I used devstack to deploy Juno OpenStack.
> 
> I spin up an instance with cirros-0.3.2-x86_64-uec.
> 
> By default, useranme/password is cirrus/cubswin:)
> 
> When I execute the command “nova get-password”, nothing is returned.
> 
> localadmin at qa4:/etc/nova$ nova show vm1
> +--------------------------------------+----------------------------------------------------------------+
> | Property                             | Value                                                          |
> +--------------------------------------+----------------------------------------------------------------+
> | OS-DCF:diskConfig                    | MANUAL                                                         |
> | OS-EXT-AZ:availability_zone          | nova                                                           |
> | OS-EXT-STS:power_state               | 1                                                              |
> | OS-EXT-STS:task_state                | -                                                              |
> | OS-EXT-STS:vm_state                  | active                                                         |
> | OS-SRV-USG:launched_at               | 2014-10-15T14:48:04.000000                                     |
> | OS-SRV-USG:terminated_at             | -                                                              |
> | accessIPv4                           |                                                                |
> | accessIPv6                           |                                                                |
> | config_drive                         |                                                                |
> | created                              | 2014-10-15T14:47:56Z                                           |
> | flavor                               | m1.tiny (1)                                                    |
> | hostId                               | ea715752b11cf96b95f9742513a351d2d6571c4fdb76f497d64ecddb       |
> | id                                   | 1a3c487e-c3a3-4783-bd0b-e3c87bf22c3f                           |
> | image                                | cirros-0.3.2-x86_64-uec (1dda953b-9319-4c43-bd20-1ef75b491553) |
> | key_name                             | cirros-key                                                     |
> | metadata                             | {}                                                             |
> | name                                 | vm1                                                            |
> | os-extended-volumes:volumes_attached | []                                                             |
> | private network                      | 10.0.0.11                                                      |
> | progress                             | 0                                                              |
> | security_groups                      | default                                                        |
> | status                               | ACTIVE                                                         |
> | tenant_id                            | c8daf9bd6dda40a982b074322c08da7d                               |
> | updated                              | 2014-10-15T14:48:04Z                                           |
> | user_id                              | 2cbbafae01404d4ebeb6e6fbacfa6546                               |
> +--------------------------------------+----------------------------------------------------------------+
> localadmin at qa4:/etc/nova$ nova help get-password
> usage: nova get-password <server> [<private-key>]
> 
> Get password for a server.
> 
> Positional arguments:
>   <server>       Name or ID of server.
>   <private-key>  Private key (used locally to decrypt password) (Optional).
>                  When specified, the command displays the clear (decrypted) VM
>                  password. When not specified, the ciphered VM password is
>                  displayed.
> localadmin at qa4:/etc/nova$ nova get-password vm1 
>                                       <<<<<[NOTHING RETURNED]
> localadmin at qa4:/etc/nova$ 
> 
> Am I missing something?
> 
> Thanks,
> Danny
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141015/4c6b85e2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141015/4c6b85e2/attachment.sig>


More information about the Openstack mailing list