Need assistance
Gk Gk
ygk.kmr at gmail.com
Tue Nov 8 11:03:18 UTC 2022
Hi All,
I have a OSA setup. I am trying to trace the control flow of nova-api using
pdb in the file
"/openstack/venvs/nova-20.2.1/lib/python3.6/site-packages/nova/objects/instance.py".
My goal is to trace the flow for "nova list --all" command. I am launching
the nova-api service manually from the command line as follows:
#/openstack/venvs/uwsgi-20.2.1-python3/bin/uwsgi --ini
/etc/uwsgi/nova-api-os-compute.ini --workers 1
I am executing "nova list --all" command in another terminal. I have
inserted pdb in instance.py as follows:
----
@base.remotable_classmethod
def get_all(cls, context, expected_attrs=None):
import pdb; pdb.set_trace()
"""Returns all instances on all nodes."""
db_instances = db.instance_get_all(
context, columns_to_join=_expected_cols(expected_attrs))
return _make_instance_list(context, cls(), db_instances,
expected_attrs)
---
But when I fire the nova list --all command, I see no pdb prompt being
shown in the nova-api window. Can anyone help me how to use the pdb to
trace the flow of control for "nova list --all" command ?
Thanks
Kumar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20221108/819881fe/attachment-0001.htm>
More information about the openstack-discuss
mailing list