Bug 1261100

Summary: nova: Make set_admin_password work with the libvirt driver (via QEMU guest agent)
Product: Red Hat OpenStack Reporter: Pablo Iranzo Gómez <pablo.iranzo>
Component: openstack-novaAssignee: Sahid Ferdjaoui <sferdjao>
Status: CLOSED ERRATA QA Contact: Prasanth Anbalagan <panbalag>
Severity: high Docs Contact:
Priority: high    
Version: 6.0 (Juno)CC: amedeo.salvati, berrange, dallan, dasmith, dron, eglynn, jraju, kchamart, ndipanov, pablo.iranzo, panbalag, pbrady, rbiba, rpai, sbauza, sferdjao, sgordon, srevivo, vromanso, yeylon
Target Milestone: ---Keywords: FutureFeature, Reopened, Triaged, ZStream
Target Release: 6.0 (Juno)Flags: sferdjao: needinfo+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-nova-2015.1.2-3.el7ost, openstack-nova-2014.2.3-39.el7ost Doc Type: Enhancement
Doc Text:
The ability of the libvirt driver to set the admin password has been added. To use this feature, run the following command: "nova root-password [server]".
Story Points: ---
Clone Of: 978365 Environment:
Last Closed: 2015-12-21 17:06:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 978365, 1174176, 1174177, 1174181, 1303906    
Bug Blocks: 1273812    

Comment 13 Sahid Ferdjaoui 2015-09-18 14:57:23 UTC
Please see #12

Comment 15 Sahid Ferdjaoui 2015-10-14 12:22:36 UTC
ack

Comment 17 Sahid Ferdjaoui 2015-11-03 05:56:38 UTC
Working to a backport for RHOS7 firstly

Comment 18 Sahid Ferdjaoui 2015-11-03 13:59:44 UTC
Backport for RHOS7 is ready and I have tested it on rhel7. Works as expected.

https://code.engineering.redhat.com/gerrit/#/q/status:open+project:nova+branch:rhos-7.0-patches+topic:bp/libvirt-set-admin-password

Comment 19 Sahid Ferdjaoui 2015-11-05 13:09:46 UTC
Backport for RHOS6 is ready, i still need to test it on rhel7.2

https://code.engineering.redhat.com/gerrit/#/q/status:open+project:nova+branch:rhos-6.0-rhel-patches+topic:bp/libvirt-set-admin-password

Comment 24 errata-xmlrpc 2015-12-21 17:06:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:2673

Comment 25 Prasanth Anbalagan 2015-12-21 18:18:47 UTC
Verified on the following release 

[root@lynx13 ~(keystone_admin)]# yum list installed | grep openstack-nova
openstack-nova-api.noarch            2015.1.2-7.el7ost       @rhelosp-7.0-puddle
openstack-nova-cert.noarch           2015.1.2-7.el7ost       @rhelosp-7.0-puddle
openstack-nova-common.noarch         2015.1.2-7.el7ost       @rhelosp-7.0-puddle
openstack-nova-compute.noarch        2015.1.2-7.el7ost       @rhelosp-7.0-puddle
openstack-nova-conductor.noarch      2015.1.2-7.el7ost       @rhelosp-7.0-puddle
openstack-nova-console.noarch        2015.1.2-7.el7ost       @rhelosp-7.0-puddle
openstack-nova-novncproxy.noarch     2015.1.2-7.el7ost       @rhelosp-7.0-puddle
openstack-nova-scheduler.noarch      2015.1.2-7.el7ost       @rhelosp-7.0-puddle
[root@lynx13 ~(keystone_admin)]# 
[root@lynx13 ~(keystone_admin)]# 
[root@lynx13 ~(keystone_admin)]# nova list
+--------------------------------------+------+--------+------------+-------------+---------------------+
| ID                                   | Name | Status | Task State | Power State | Networks            |
+--------------------------------------+------+--------+------------+-------------+---------------------+
| cf96aaa0-fac9-4174-a1a7-726e6ea997c0 | vm1  | ACTIVE | -          | Running     | public=172.24.4.230 |
+--------------------------------------+------+--------+------------+-------------+---------------------+
[root@lynx13 ~(keystone_admin)]# 
[root@lynx13 ~(keystone_admin)]# 
[root@lynx13 ~(keystone_admin)]# nova help root-password
usage: nova root-password <server>

Change the admin password for a server.

Positional arguments:
  <server>  Name or ID of server.
[root@lynx13 ~(keystone_admin)]# 
[root@lynx13 ~(keystone_admin)]# 
[root@lynx13 ~(keystone_admin)]# nova help root-password^C
[root@lynx13 ~(keystone_admin)]# cat /etc/resolv.conf 
# Generated by NetworkManager
search qa.lab.tlv.redhat.com
nameserver 10.35.64.1
nameserver 10.35.255.6
[root@lynx13 ~(keystone_admin)]# dhcpclient
-bash: dhcpclient: command not found
[root@lynx13 ~(keystone_admin)]# 
[root@lynx13 ~(keystone_admin)]# 
[root@lynx13 ~(keystone_admin)]# nova root-password vm1
New password: 
Again: 
[root@lynx13 ~(keystone_admin)]#