Unexpected API Error

Bug #1927516 reported by bdt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Expired
Undecided
Unassigned

Bug Description

Hi,

I have an ansible-playbook to backup server from opentack cli. I connect to OVH openstack cloud and execute some cli commands. I had an error like that so I followed the instructions.

{
  "msg": "non-zero return code",
  "cmd": "openstack server list",
  "stdout": "",
  "stderr": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'sqlalchemy.exc.OperationalError'> (HTTP 500) (Request-ID: req-d43c7dfd-5f85-4bf8-83f0-db8d17290e4c)",
  "rc": 1,
  "start": "2021-05-03 01:30:40.273278",
  "end": "2021-05-03 01:30:48.377721",
  "delta": "0:00:08.104443",
  "changed": true,
  "invocation": {
    "module_args": {
      "executable": "/bin/bash",
      "_raw_params": "openstack server list",
      "_uses_shell": true,
      "warn": true,
      "stdin_add_newline": true,
      "strip_empty_ends": true,
      "argv": null,
      "chdir": null,
      "creates": null,
      "removes": null,
      "stdin": null
    }
  },
  "stdout_lines": [],
  "stderr_lines": [
    "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.",
    "<class 'sqlalchemy.exc.OperationalError'> (HTTP 500) (Request-ID: req-d43c7dfd-5f85-4bf8-83f0-db8d17290e4c)"
  ],
  "_ansible_no_log": false
}

Fell free to ask more information.

Best regards

Revision history for this message
Lee Yarwood (lyarwood) wrote :

Many thanks for raising the bug but as suggested in the output text we actually need the API logs from OVH to debug this further. Apologies if the text is confusing, we recently made it configurable to allow operators like OVH to point to their own issue trackers:

https://github.com/openstack/nova/blob/7953c0197d1a4466cb5b78070d47626c92f9db6e/nova/version.py#L20-L22

Marking this as in-complete for now, if OVH can provide these logs we can look into this again.

Changed in nova:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Compute (nova) because there has been no activity for 60 days.]

Changed in nova:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.