Bug 1261100 - nova: Make set_admin_password work with the libvirt driver (via QEMU guest agent)
Summary: nova: Make set_admin_password work with the libvirt driver (via QEMU guest ag...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 6.0 (Juno)
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: 6.0 (Juno)
Assignee: Sahid Ferdjaoui
QA Contact: Prasanth Anbalagan
URL:
Whiteboard:
Depends On: 978365 1174176 1174177 1174181 1303906
Blocks: 1273812
TreeView+ depends on / blocked
 
Reported: 2015-09-08 14:57 UTC by Pablo Iranzo Gómez
Modified: 2023-02-22 23:02 UTC (History)
20 users (show)

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]".
Clone Of: 978365
Environment:
Last Closed: 2015-12-21 17:06:10 UTC
Target Upstream Version:
Embargoed:
sferdjao: needinfo+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 187509 0 None None None Never
Red Hat Issue Tracker OSP-16688 0 None None None 2022-07-09 07:59:19 UTC
Red Hat Product Errata RHSA-2015:2673 0 normal SHIPPED_LIVE Moderate: openstack-nova security and bug fix advisory 2015-12-21 21:51:35 UTC

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)]#


Note You need to log in before you can comment on or make changes to this bug.