<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">Kolla deploy ubuntu gate is red now. here is the related bug[0].</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">libvirt failed to access the console.log file when booting instance. After</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">made some debugging, i got following.</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"># how console.log works</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">nova create a empty console.log with nova:nova ( this is another bug</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">workaround actually[1]), then libvirt ( running with root ) will change the</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">file owner to qemu process user/group ( configured by dynamic_ownership ). </div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">Now qemu process can write logs into this file.</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"># what's wrong now</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">libvirt 2.5.0 stop change the file owner, then qemu/libvirt failed to write</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">logs into console.log file</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"># other test</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">* ubuntu + fallback libvirt 1.3.x works [2]<br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">* ubuntu + libvirt 2.5.0 + chang the qemu process user/group to </div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"> nova:nova works, too.[3]<br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">* centos + libvirt 2.0.0 works, never saw such issue in centos.</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"># conclusion</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">I guess there are something wrong in libvirt 2.5.0 with dynamic_ownership</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">[0] <a href="https://bugs.launchpad.net/kolla-ansible/+bug/1668654">https://bugs.launchpad.net/kolla-ansible/+bug/1668654</a></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">[1] <a href="https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py#L2922,L2952">https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py#L2922,L2952</a></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">[2] <a href="https://review.openstack.org/442673">https://review.openstack.org/442673</a></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small">[3] <a href="https://review.openstack.org/442850">https://review.openstack.org/442850</a></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="font-size:13px;border-collapse:collapse"><font face="monospace, monospace">Regards,</font></span></div><div><span style="font-size:13px;border-collapse:collapse"><font face="monospace, monospace">Jeffrey Zhang</font></span></div><div><span style="font-family:monospace,monospace;font-size:12.8px">Blog: </span><a href="http://xcodest.me/" style="font-family:monospace,monospace;font-size:12.8px" target="_blank">http://xcodest.me</a><font face="monospace, monospace"><br></font></div></div></div></div></div></div></div></div></div>
</div>