Merge "Return non-zero exit code on failures"

This commit is contained in:
Zuul 2022-02-07 19:45:52 +00:00 committed by Gerrit Code Review
commit 45325c21ec
4 changed files with 8 additions and 3 deletions

View File

@ -39,7 +39,7 @@ def main():
launcher = ironic_service.process_launcher()
server = wsgi_service.WSGIService('ironic_api', CONF.api.enable_ssl_api)
launcher.launch_service(server, workers=server.workers)
launcher.wait()
sys.exit(launcher.wait())
if __name__ == '__main__':

View File

@ -67,7 +67,7 @@ def main():
issue_startup_warnings(CONF)
launcher = service.launch(CONF, mgr, restart_method='mutate')
launcher.wait()
sys.exit(launcher.wait())
if __name__ == '__main__':

View File

@ -49,4 +49,4 @@ def main():
wsgi = wsgi_service.WSGIService('ironic_api', CONF.api.enable_ssl_api)
launcher.launch_service(wsgi)
launcher.wait()
sys.exit(launcher.wait())

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Services (``ironic``, ``ironic-api``, ``ironic-conductor``) now correctly
return a non-zero exit code on start-up failures.