Permalink
Browse files

Get provisioner logs in this error situation as well OOIION-291

  • Loading branch information...
1 parent c7a31ff commit 378c416ad15d29c041fb81513330e6e8a8490e90 @timf timf committed Jul 25, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/python/epumgmt/main/em_core_termination.py
@@ -17,6 +17,10 @@ def terminate(p, c, m, run_name, cloudinitd):
if m.remote_svc_adapter.kill_all_workers():
c.log.info("Terminated all workers in run '%s'" % run_name)
else:
+ c.log.error("Problem triggering worker termination, you need to make sure these are terminated manually!")
+ c.log.info("Fetching provisioner logs")
+ em_core_logfetch.fetch_by_service_name(p, c, m, run_name, "provisioner")
+ c.log.info("Fetched provisioner logs")
raise UnexpectedError("Problem triggering worker termination, you need to make sure these are terminated manually!")
em_core_logfetch.fetch_by_service_name(p, c, m, run_name, "provisioner")

0 comments on commit 378c416

Please sign in to comment.