yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #59864
[Bug 1648417] Re: Failed to set admin pass
I checked it on master, and this issue was gone.
** Changed in: nova
Status: Incomplete => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1648417
Title:
Failed to set admin pass
Status in OpenStack Compute (nova):
Invalid
Bug description:
Description
===========
When i set 'admin pass' of one server, got 'AttributeError' error.
Steps to reproduce
==================
* Upload windows image with qemu-guest-agent
* Then add metadata 'hw_qemu_guest_agent=yes' to the image
* Then boot one server A with this image
* Then use ``nova set-password A`` to change admin pass
Expected result
===============
Set admin password successfully.
Actual result
=============
ERROR (Conflict): Failed to set admin password on ba631d0f-bdad-4928-be5e-e52fee05f1e1 because error setting admin password (HTTP 409) (Request-ID: req-52de5986-409e-40d1-ac74-59bed6d3b797)
Environment
===========
1. nova version
# rpm -qa | grep nova
openstack-nova-api-13.0.0-3.el7.noarch
openstack-nova-console-13.0.0-3.el7.noarch
python-nova-13.0.0-3.el7.noarch
openstack-nova-conductor-13.0.0-3.el7.noarch
openstack-nova-scheduler-13.0.0-3.el7.noarch
openstack-nova-novncproxy-13.0.0-3.el7.noarch
openstack-nova-common-13.0.0-3.el7.noarch
python-novaclient-3.3.1-2.el7.noarch
2. Which hypervisor did you use?
Libvirt + KVM
# rpm -qa | grep libvirt
libvirt-daemon-1.2.17-13.el7_2.5.x86_64
libvirt-client-1.2.17-13.el7_2.5.x86_64
libvirt-daemon-driver-nwfilter-1.2.17-13.el7_2.5.x86_64
libvirt-daemon-driver-qemu-1.2.17-13.el7_2.5.x86_64
libvirt-daemon-driver-secret-1.2.17-13.el7_2.5.x86_64
libvirt-daemon-kvm-1.2.17-13.el7_2.5.x86_64
libvirt-devel-1.2.17-13.el7_2.5.x86_64
libvirt-daemon-driver-network-1.2.17-13.el7_2.5.x86_64
libvirt-daemon-driver-nodedev-1.2.17-13.el7_2.5.x86_64
libvirt-docs-1.2.17-13.el7_2.5.x86_64
libvirt-daemon-driver-interface-1.2.17-13.el7_2.5.x86_64
libvirt-daemon-driver-storage-1.2.17-13.el7_2.5.x86_64
libvirt-python-1.2.18-1.el7.x86_64
# rpm -qa | grep qemu
libvirt-daemon-driver-qemu-1.2.17-13.el7_2.5.x86_64
qemu-kvm-ev-2.3.0-31.el7.16.1.x86_64
qemu-kvm-common-ev-2.3.0-31.el7.16.1.x86_64
ipxe-roms-qemu-20130517-8.gitc4bce43.el7_2.1.noarch
qemu-img-ev-2.3.0-31.el7.16.1.x86_64
centos-release-qemu-ev-1.0-1.el7.noarch
(For example: Libvirt + KVM, Libvirt + XEN, Hyper-V, PowerKVM, ...)
What's the version of that?
Logs & Configs
==============
nova-compute.log
2016-12-08 18:42:13.146 2500 ERROR nova.compute.manager [req-52de5986-409e-40d1-ac74-59bed6d3b797 455e4c768a414f12927dfed27657c707 bc7b1de930bf428295b69d5627513d9e - - -] [instance: ba631d0f-bdad-4928-be5e-e52fee05f1e1] set_admin_password failed
2016-12-08 18:42:13.146 2500 ERROR nova.compute.manager [instance: ba631d0f-bdad-4928-be5e-e52fee05f1e1] Traceback (most recent call last):
2016-12-08 18:42:13.146 2500 ERROR nova.compute.manager [instance: ba631d0f-bdad-4928-be5e-e52fee05f1e1] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3301, in set_admin_password
2016-12-08 18:42:13.146 2500 ERROR nova.compute.manager [instance: ba631d0f-bdad-4928-be5e-e52fee05f1e1] self.driver.set_admin_password(instance, new_pass)
2016-12-08 18:42:13.146 2500 ERROR nova.compute.manager [instance: ba631d0f-bdad-4928-be5e-e52fee05f1e1] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 1815, in set_admin_password
2016-12-08 18:42:13.146 2500 ERROR nova.compute.manager [instance: ba631d0f-bdad-4928-be5e-e52fee05f1e1] guest.set_user_password(user, new_pass)
2016-12-08 18:42:13.146 2500 ERROR nova.compute.manager [instance: ba631d0f-bdad-4928-be5e-e52fee05f1e1] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 387, in set_user_password
2016-12-08 18:42:13.146 2500 ERROR nova.compute.manager [instance: ba631d0f-bdad-4928-be5e-e52fee05f1e1] self._domain.setUserPassword(user, new_pass, 0)
2016-12-08 18:42:13.146 2500 ERROR nova.compute.manager [instance: ba631d0f-bdad-4928-be5e-e52fee05f1e1] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 176, in __getattr__
2016-12-08 18:42:13.146 2500 ERROR nova.compute.manager [instance: ba631d0f-bdad-4928-be5e-e52fee05f1e1] f = getattr(self._obj, attr_name)
2016-12-08 18:42:13.146 2500 ERROR nova.compute.manager [instance: ba631d0f-bdad-4928-be5e-e52fee05f1e1] AttributeError: 'virDomain' object has no attribute 'setUserPassword'
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1648417/+subscriptions
References