Hi,

This parameter is set to true in nova.conf . :

enable_instance_password=true


J.P.

From: medbe...@gmail.com [mailto:medbe...@gmail.com] On Behalf Of David Medberry
Sent: mercredi 15 juin 2016 19:21
To: Jean-Pierre Ribeauville <jpribeauvi...@axway.com>
Cc: openstack@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 
<jpribeauvi...@axway.com<mailto:jpribeauvi...@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@dhcp-10-128-11-58 tmp]# nova get-password 
d4d50c07-cb2b-4be8-839f-149c09cd6365  /tmp/demo_key_pair_2.pem

[root@dhcp-10-128-11-58 tmp]#


[root@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@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<tel:%2B33%201%204717%202049>

[axway_logo_tagline_87px]


_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : 
openstack@lists.openstack.org<mailto:openstack@lists.openstack.org>
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to