Comment 20 for bug 1983863

Revision history for this message
sean mooney (sean-k-mooney) wrote :

currently nova rarely uses native threads.

all project that have oslo.messaging use logging in native threads if they use

https://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/_drivers/impl_rabbit.py#L1311-L1354

with the heartbeat_in_pthread option set to true

because the heartbeat thread logs

we do log eventlet monkey patched threads

https://github.com/openstack/nova/blob/master/nova/virt/libvirt/host.py#L224-L242
https://github.com/openstack/nova/blob/master/nova/virt/libvirt/host.py#L500-L504

that interact with a native thread

https://github.com/openstack/nova/blob/master/nova/virt/libvirt/host.py#L495-L498
https://github.com/openstack/nova/blob/master/nova/virt/libvirt/host.py#L197-L211

but i think we do not currently log in a native thread.
we also don't have a coding polic to not do that so if we are fixing oslo.log we should not regress the ability to do that. we should just use something supported by eventlet.

we my want to start logging form native threads going forward as we start removing your use of eventlet.