Faults from cell DB missing in GET /servers/detail

Bug #1856329 reported by Ivaylo Mitev
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Undecided
Johannes Kulik

Bug Description

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.

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

2. Which hypervisor did you use?
VMware 6.5

Revision history for this message
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
Revision history for this message
Matt Riedemann (mriedem) wrote :
Changed in nova:
assignee: nobody → Ivaylo Mitev (imitev)
status: Incomplete → In Progress
Revision history for this message
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)
Changed in nova:
assignee: Ivaylo Mitev (imitev) → Johannes Kulik (jkulik)
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.