Faults from cell DB missing in GET /servers/detail

Bug #1856329 reported by Ivaylo Mitev on 2019-12-13
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Johannes Kulik

Bug Description

Field `fault` is empty in the response of API GET /servers/detail if the instance (hence instace_faults DB entry) is in nova cell DB.
Unlike that, for API /servers/:id fault is retrieved correctly no matter in which nova cell the instance belongs.

Steps to reproduce
* Ensure two servers/instances with faults (i.e. entry in instance_faults DB table) in different Nova cells
* Invoke REST API call GET /servers/detail

Expected result
The result entries for both instances should contain value for `fault` field.

Actual result
`fault` is initialized only for the instance in cell 0. For the other one it's empty.

1. Exact version of OpenStack you are running. See the following

2. Which hypervisor did you use?
VMware 6.5

Matt Riedemann (mriedem) wrote :

The fault is only exposed if the server status is ERROR or DELETED. For the server that is not showing the fault in the response (from cell1) what is the status of that server?

Changed in nova:
status: New → Incomplete
Changed in nova:
assignee: nobody → Ivaylo Mitev (imitev)
status: Incomplete → In Progress
Ivaylo Mitev (imitev) wrote :

Hm, it could be that. We've found another fix and I suggested a change here: https://review.opendev.org/#/c/699176/.

Johannes Kulik (jkulik) on 2021-02-08
Changed in nova:
assignee: Ivaylo Mitev (imitev) → Johannes Kulik (jkulik)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers