[Openstack] nova "get-password " returns blank line

David Medberry openstack at medberry.net
Thu Jun 16 21:27:57 UTC 2016


Again, the text next to that says that it won't actually have any effect if
you don't have a cloud that allows for manipulation of the root volume (ie,
password injection.) So, if you don't have that type of cloud, this setting
simply doesn't work.

On Thu, Jun 16, 2016 at 1:16 AM, Jean-Pierre Ribeauville <
jpribeauville at axway.com> wrote:

> Hi,
>
>
>
> This parameter is set to true in nova.conf . :
>
>
>
> *enable_instance_password=true*
>
>
>
>
>
> J.P.
>
>
>
> *From:* medberry at gmail.com [mailto:medberry at gmail.com] *On Behalf Of *David
> Medberry
> *Sent:* mercredi 15 juin 2016 19:21
> *To:* Jean-Pierre Ribeauville <jpribeauville at axway.com>
> *Cc:* openstack at lists.openstack.org
> *Subject:* Re: [Openstack] nova "get-password " returns blank line
>
>
>
> It all depends on how you have setup your cloud. Most/many OpenStack
> clouds DO NOT inject into the instance and the password feature is null and
> void.
>
>
>
> Look at:
>
>
>
> enable_instance_password = *True*
>
> (BoolOpt) Enables returning of the instance password by the relevant
> server API calls such as create, rebuild or rescue, If the hypervisor does
> not support password injection then the password returned will not be
> correct
>
>
> http://docs.openstack.org/liberty/config-reference/content/list-of-compute-config-options.html
> (or whatever version of the docs that related to your cloud particulars.)
>
>
>
> On Wed, Jun 15, 2016 at 10:38 AM, Jean-Pierre Ribeauville <
> jpribeauville at axway.com> wrote:
>
> Hi,
>
>
>
> I’m trying to use nova get-password command.
>
>
>
> My centos-1  (using the “standard” CentOS OpenStack image) is running
>  find and I’m able to log via ssh   by using centos user and a key pair.
>
> But, the following command returns a blank line:
>
>
>
>
>
> [root at dhcp-10-128-11-58 tmp]# nova get-password
> d4d50c07-cb2b-4be8-839f-149c09cd6365  /tmp/demo_key_pair_2.pem
>
>
>
> [root at dhcp-10-128-11-58 tmp]#
>
>
>
>
>
> [root at dhcp-10-128-11-58 tmp]# nova list
>
>
> +--------------------------------------+-------------+---------+------------+-------------+---------------------------------+
>
> | ID                                   | Name        | Status  | Task
> State | Power State | Networks                        |
>
>
> +--------------------------------------+-------------+---------+------------+-------------+---------------------------------+
>
> | d4d50c07-cb2b-4be8-839f-149c09cd6365 | centos-1    | ACTIVE  |
> -          | Running     | priv_net=10.0.0.9|
>
>
> +--------------------------------------+-------------+---------+------------+-------------+---------------------------------+
>
> [root at dhcp-10-128-11-58 tmp]# nova show centos-1
>
>
> +--------------------------------------+----------------------------------------------------------+
>
> | Property                             |
> Value                                                    |
>
>
> +--------------------------------------+----------------------------------------------------------+
>
> | OS-DCF:diskConfig                    |
> AUTO                                                     |
>
> | OS-EXT-AZ:availability_zone          |
> Zone_OmniVision                                          |
>
> | OS-EXT-STS:power_state               |
> 1                                                        |
>
> | OS-EXT-STS:task_state                |
> -                                                        |
>
> | OS-EXT-STS:vm_state                  | active
>                               |
>
> | OS-SRV-USG:launched_at               |
> 2016-06-07T08:03:10.000000                               |
>
> | OS-SRV-USG:terminated_at             |
> -                                                        |
>
> | accessIPv4
>                |                                                          |
>
> | accessIPv6
> |                                                          |
>
> | config_drive
> |                                                          |
>
> | created                              |
> 2016-06-07T08:01:15Z                                     |
>
> | flavor                               | m1.small
> (2)                                             |
>
> | hostId                               |
> 432b4adb749292bc8dba1ec6d5354d2bd4b23392adaa6ebede6de8c1 |
>
> | id                                   |
> d4d50c07-cb2b-4be8-839f-149c09cd6365                     |
>
> | image                                | CentOS-7
> (24ecdf69-e507-46c4-a151-24a7ad7d98c1)          |
>
> | key_name                             |
> demo_key_pair_2                                          |
>
> | metadata                             |
> {}                                                       |
>
> | name                                 |
> centos-1                                                 |
>
> | os-extended-volumes:volumes_attached |
> []                                                       |
>
> | priv_net network                     |
> 10.0.0.9                                        |
>
> | progress                             |
> 0                                                        |
>
> | security_groups                      |
> demo                                                     |
>
> | status                               | ACTIVE
>                                       |
>
> | tenant_id                            |
> ef3ecf8618e24130b2cd8adab8e17310                         |
>
> | updated                              |
> 2016-06-15T15:20:55Z                                     |
>
> | user_id                              |
> da49c3189eaf40b28893b422b60cc73e                         |
>
>
> +--------------------------------------+----------------------------------------------------------+
>
>
>
> Did I misunderstand something or should I get the centos password ?
>
>
>
> Thx for help.
>
>
>
> Regards,
>
>
>
> Jean-Pierre RIBEAUVILLE
>
>
>
> +33 1 4717 2049
>
>
>
> [image: axway_logo_tagline_87px]
>
>
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160616/789ff506/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 11720 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160616/789ff506/attachment.png>


More information about the Openstack mailing list