Thanks Melanie for the reply. I am able to use pdb successfully for the trace. But I am observing a strange behaviour with the python source files. Whenever I make any changes to the source files
, for example, insert a pdb statement in servers.py, it is taking a minute or more for the changes to take effect. For example, after the change, if I run the uwsgi command at the terminal manually with --honour-stdin option, then immediately if I fire the nova list command, it is not taking effect. Only after a minute or so of making the change, it is taking effect. Somewhat strange.
My next question is, inside the nova-api container, I am trying to trace how nova-api service starts. The systemd file has this content:
---
ExecStart = /openstack/venvs/uwsgi-20.2.1-python3/bin/uwsgi --autoload --ini /etc/uwsgi/nova-api-os-compute.ini
----
So I have checked the file /etc/uwsgi/nova-api-os-compute.ini , which has the below content:
---
wsgi-file = /openstack/venvs/nova-20.2.1/bin/nova-api-wsgi
--
Is the above file '/openstack/venvs/nova-20.2.1/bin/nova-api-wsgi' the one from which the nova-api service starts at all ?
Thanks
Kumar