-
Notifications
You must be signed in to change notification settings - Fork 3
OSProfiler is not getting traces from every service #6
Comments
Is the VM creation issue fixed now? i.e. is the VM in active state or nostate? |
Applying these patches enables getting traces from neuron and nova: https://review.openstack.org/#/c/273951/16/etc/api-paste.ini https://review.openstack.org/#/c/519664/3/nova/api/openstack/wsgi_app.py |
I applied the patches to the corresponding services under |
There's an error when creating VMs after applying the patches. This is the debug output:
|
This one looks like it might solve our problem However, there is no |
It looks like the VM is being created successfully? I wonder if this error message is a false flag that we're getting. Also, interestingly, creating a VM without osprofiler raises no error message. That said..uninstalling the second patch [1] gives no error but only keystone/glance in the trace. Hmm... [1] https://review.openstack.org/#/c/519664/3/nova/api/openstack/wsgi_app.py |
Whenever I create a VM, I get this following in the logs (
It looks like |
Also, during
|
So I'm pretty sure the 500 error is unrelated to not getting traces from every service (EDIT: you had already noticed this, sorry for my redundancy). I found this bug, which looks relevant to the output from your journalctl output: https://bugs.launchpad.net/osprofiler/+bug/1743586 The bug results from Nova executing some parallelized code. At the end of the thread, we see that this is patched in osprofiler 1.15.2 - however, ORE was using stable/pike version of osprofiler which was 1.11.2. That said, trace is still only getting keystone and glance. EDIT: Just kidding - I had uninstalled one of the patches during my testing. With the 2 patches installed and the stable/queens version of osprofiler, I have no errors and a trace with neutron, nova, glance, and keystone!!! |
This is mostly up to me to fix, but I'm writing some progress here. Any help is most welcome.
Steps to reproduce
openrc
with parametersadmin admin
openstack --os-profile Devstack1 server create --flavor m1.tiny --image cirros-0.3.5-x86_64-disk test_server_1
osprofiler trace show --json --connection-string redis://localhost:6379 $TRACE_ID
Result
The trace only contains traces from glance after these operations. I've also checked redis using
redis-cli
and thenKEYS osprofiler*
and the traces match - there are only 8 entries for the VM create command, all from glance.Additional Info
After devstack is running, every service can be restarted using
sudo systemctl restart devstack@*
, which fixes something in keystone. After this, I can get keystone traces as well, but still nothing from nova.The text was updated successfully, but these errors were encountered: