Nova set-password error for Ubuntu VMs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Description
===========
Hi folks, i ran into a problem in OpenStack Ussuri release:
When i was trying to use `set-password` subcommand of nova CLI to reset
root password for my VM, it throw error (mentioned below in Actual result section). This happens on Ubuntu/Cirros VMs whereas Centos works fine.
I searched launchpad for similar issues, but got nothing particularly for Ubuntu. I believe this
problem may also exist in latest OpenStack distro.
Steps to reproduce
==================
* Upload any image(without QGA inside), e.g: Ubuntu18/20
* Update the image with property: hw_qemu_
$ glance image-update --property hw_qemu_
* Boot new instance (e.g: QGA) with image Ubuntu and ensure instance is active/running.
* Use cli `nova set-password <UUID of QGA>` to reset password for the instance.
Expected result
===============
state should be CONNECTED in Nova_libvirt
e.g. virsh dumpxml <instance-number> | grep qemu.guest
<source mode='bind' path='/
<target type='virtio' name='org.
Actual result
=============
root@server01:
New password:
Again:
ERROR (HTTPNotImpleme
In nova_libvirt, state is disconnected
e.g.
<source mode='bind' path='/
<target type='virtio' name='org.
Environment
===========
1. version: OpenStack Ussuri + Ubuntu20
2. hypervisor: Libvirt + KVM
4. networking Neutron with OpenVSwitch
Logs & Configs
==============
cat /etc/kolla/
[libvirt]
inject_
#### Nova CLI error #####
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
2021-05-02 15:31:32.680 8 ERROR oslo_messaging.
> Upload any image(without QGA inside), e.g: Ubuntu18/20
This feature depends on QGA running within the instance so this failure is valid.
I believe libvirt raises NotImplementedError that is then handled by Nova above in your trace. Can you provide the complete trace including the exception before this to confirm?