nova set-password instancesname return 409 error

Bug #1666148 reported by chenwd
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Expired
Undecided
Unassigned

Bug Description

I am the M version of the openstack, I control the node with nova set-password instancesname reset the password, there is an error, my mirror is windows2008, mirror for the manual production, which installed qemu-guest-agent, the service started normal.
The following is my detailed error message:
[Root @ controller01~] #source keystonerc_admin
[Root @ controller01 ~ (keystone_admin)] # nova set-password cwd-37
new password:
once again:
Error (Conflict): Can not set the administrator password at 11727880-c1f2-4450-9205-a136fe8a0a87 because the error is set to the administrator password (HTTP 409) (Request ID: req-a5f4f62b-d488-4fd2-a522-2d29b2621592)

compute the log of the node:
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher [req-a5f4f62b-d488-4fd2-a522-2d29b2621592 e95eac4dd3f1499bbced20dfe6b27f81 515e8d8470cc4373a21e304c2ba98eb6 - - -] Exception during message processing: Can not set administrator password 11727880-c1f2- 4450-9205-a136fe8a0a87 The administrator password is set incorrectly
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher Trace (most recently called):
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher file "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 138, located at _dispatch_and_reply
2017-02-20 16: 46: 11.602 2662 ERROR oslo_messaging.rpc.dispatcher incoming.message))
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher file "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 185, in _dispatch
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher return self._do_dispatch (endpoint, method, ctxt, args)
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher file "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 127, in _do_dispatch
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher result = func (ctxt, ** new_args)
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher file "/usr/lib/python2.7/site-packages/nova/exception.py", line 110
2017-02-20 16: 46: 11.602 2662 ERROR oslo_messaging.rpc.dispatcher payload)
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher The file "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher self.force_reraise ()
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher file "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher six.reraise (self.type_, self.value, self.tb)
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher file "/usr/lib/python2.7/site-packages/nova/exception.py", line 89, wrapper
207-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher return f (self, context, * args, ** kw)
207-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher file "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 359,
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher LOG.warning (msg, e, instance = instance)
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher The file "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher self.force_reraise ()
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher file "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher six.reraise (self.type_, self.value, self.tb)
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher file "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 328,
207-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher returns the function (self, context, * args, ** kwargs)
207-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher The file "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 409,
207-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher returns the function (self, context, * args, ** kwargs)
207-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher file "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 387,
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher kwargs ['instance'], e, sys.exc_info ())
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher The file "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher self.force_reraise ()
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher file "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher six.reraise (self.type_, self.value, self.tb)
207-02-20 16: 46: 11.602 2662 Error oslo_messaging.rpc.dispatcher file "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 375,
Google 翻译(企业版):译者工具包网站翻译器全球商

Tags: libvirt
Revision history for this message
Matt Riedemann (mriedem) wrote :

Is there more to the exception? That doesn't seem to tell much. Which version of libvirt is on the compute node because libvirt >= 1.2.16 is required to set the password in the guest.

Is the guest windows or linux?

Do you see this error in the logs?

https://github.com/openstack/nova/blob/stable/mitaka/nova/virt/libvirt/driver.py#L1801

tags: added: libvirt
Changed in nova:
status: New → Incomplete
Revision history for this message
chenwd (chenwd) wrote :

My libvirt version:
[Root @ compute03 ~] # rpm -qa | grep libvirt
Libvirt-daemon-2.0.0-10.el7_3.2.x86_64
Libvirt-daemon-driver-nwfilter-2.0.0-10.el7_3.2.x86_64
Libvirt-client-2.0.0-10.el7_3.2.x86_64
Libvirt-python-2.0.0-2.el7.x86_64
Libvirt-daemon-driver-interface-2.0.0-10.el7_3.2.x86_64
Libvirt-daemon-driver-nodedev-2.0.0-10.el7_3.2.x86_64
Libvirt-daemon-driver-network-2.0.0-10.el7_3.2.x86_64
Libvirt-daemon-driver-storage-2.0.0-10.el7_3.2.x86_64
Libvirt-daemon-driver-secret-2.0.0-10.el7_3.2.x86_64
Libvirt-daemon-driver-qemu-2.0.0-10.el7_3.2.x86_64
Libvirt-daemon-kvm-2.0.0-10.el7_3.2.x86_64
Libvirt-daemon-config-nwfilter-2.0.0-10.el7_3.2.x86_64

My mirror is windows system, qemu-guest-agent is windows version

Revision history for this message
Matt Riedemann (mriedem) wrote :

We need to see this trace exception message for the original failure to debug this:

https://github.com/openstack/nova/blob/stable/mitaka/nova/compute/manager.py#L3322

Revision history for this message
Sylvain Bauza (sylvain-bauza) wrote :

The real problem here is that I don't see a firm stacktrace telling us why we get this exception.

We don't expose the original exception for security purposes but we still log it in the n-cpu log if something goes wrong when setting the password.

Could you please give us the trace given https://github.com/openstack/nova/blob/9f7af83d1ba1795b19a8fec58cd492f842bad98a/nova/compute/manager.py#L3289 ?

You could grab your logs and find for the (maybe translated) pattern "set_admin_password failed"

Please don't paste us translated traces using Google, it's rather better to try giving us the internationalized trace.

Revision history for this message
chenwd (chenwd) wrote :

The problem has been resolved, thank you.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Compute (nova) because there has been no activity for 60 days.]

Changed in nova:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.