[Openstack] [kolla][ubuntu][libvirt] Is libvirt 2.5.0 in ubuntu cloud archive ocata repo bust

Jeffrey Zhang zhang.lei.fly at gmail.com
Wed Mar 8 03:28:44 UTC 2017


Kolla deploy ubuntu gate is red now. here is the related bug[0].

libvirt failed to access the console.log file when booting instance. After
made some debugging, i got following.

# how console.log works
nova create a empty console.log with nova:nova ( this is another bug
workaround actually[1]), then libvirt ( running with root ) will change the
file owner to qemu process user/group ( configured by dynamic_ownership ).
Now qemu process can write logs into this file.

# what's wrong now
libvirt 2.5.0 stop change the file owner, then qemu/libvirt failed to write
logs into console.log file

# other test

* ubuntu + fallback libvirt 1.3.x works [2]
* ubuntu + libvirt 2.5.0 + chang the qemu process user/group to
  nova:nova works, too.[3]
* centos + libvirt 2.0.0 works, never saw such issue in centos.

# conclusion
I guess there are something wrong in libvirt 2.5.0 with dynamic_ownership


[0] https://bugs.launchpad.net/kolla-ansible/+bug/1668654
[1]
https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py#L2922,L2952
[2] https://review.openstack.org/442673
[3] https://review.openstack.org/442850

-- 
Regards,
Jeffrey Zhang
Blog: http://xcodest.me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20170308/1e026bf9/attachment.html>


More information about the Openstack mailing list