Merge "Explain why API services are filtered out of GET /os-services"

This commit is contained in:
Jenkins 2017-06-22 09:27:25 +00:00 committed by Gerrit Code Review
commit dbf5fdb156
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,9 @@ class ServiceController(wsgi.Controller):
"disable-log-reason": self._disable_log_reason}
def _get_services(self, req):
# The API services are filtered out since they are not RPC services
# and therefore their state is not reported through the service group
# API, so they would always be reported as 'down' (see bug 1543625).
api_services = ('nova-osapi_compute', 'nova-ec2', 'nova-metadata')
context = req.environ['nova.context']