← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2075150] Re: unable to use pdb for nova

 

Hey,

I think this bug is actually belonging to the Nova project rather then
OpenStack-Ansible, as that's basically a question regarding specific
service source code rather then a deployment of this service.

Next to that, I'd say that conductor part is likely to be catched not
through nova-api but rather through nova-conductor service. But also -
that's RPC which is likely run in async way which might be really tricky
to catch with pdb. But I'll leave this to answer for Nova folks.

** Project changed: openstack-ansible => nova

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2075150

Title:
  unable to use pdb for nova

Status in OpenStack Compute (nova):
  New

Bug description:
  We have and openstack ansible antelope setup. I am trying to debug
  nova-api service. I have inserted "import pdb; pdb.set_trace()" at
  line 412 in the file
  "/openstack/venvs/nova-27.3.0/lib/python3.8/site-
  packages/nova/conductor/rpcapi.py" , then started the service manually
  from the prompt as shown below:

  ---
  root#: /openstack/venvs/uwsgi-27.3.0-python3/bin/uwsgi  --autoload --ini /etc/uwsgi/nova-api-os-compute.ini

  After the launching the above command, I am trying to launch a vm
  using the nova command.

  It is dropping into the pdb shell but going to the next line after the
  prompt and waiting. when I input any  pdb command, it is not
  responding as shown above.

  ---
  Nova API policies are introducing new default roles with scope_type
  capabilities. Old policies are deprecated and silently going to be ignored
  in nova 23.0.0 release.
  . Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually.
    warnings.warn(deprecated_msg)
  > /openstack/venvs/nova-27.3.0/lib/python3.8/site-packages/nova/conductor/rpcapi.py(413)schedule_and_build_instances()
  -> cctxt = self.client.prepare(version=version)
  (Pdb)

  ----

  I have attached a clip for reference. Please let me know why is pdb
  behaving like this

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2075150/+subscriptions