<div dir="ltr"><div>Hi All,</div><div><br></div><div>I have a OSA setup. I am trying to trace the control flow of nova-api using pdb in the file</div><div>"/openstack/venvs/nova-20.2.1/lib/python3.6/site-packages/nova/objects/instance.py".</div><div><br></div><div>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:</div><div><br></div><div>#/openstack/venvs/uwsgi-20.2.1-python3/bin/uwsgi --ini /etc/uwsgi/nova-api-os-compute.ini   --workers 1</div><div><br></div><div>I am executing "nova list --all" command in another terminal.  I have inserted pdb in instance.py as follows:</div><div><br></div><div>----</div><div>    @base.remotable_classmethod<br>    def get_all(cls, context, expected_attrs=None):<br>        import pdb; pdb.set_trace()<br>        """Returns all instances on all nodes."""<br>        db_instances = db.instance_get_all(<br>                context, columns_to_join=_expected_cols(expected_attrs))<br>        return _make_instance_list(context, cls(), db_instances,<br>                                   expected_attrs)</div><div>--- <br></div><div><br></div><div>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 ?</div><div><br></div><div><br></div><div>Thanks</div><div>Kumar<br></div></div>