Commits

A Kruger committed 736a0f1

Print a message indicating which host is failing when failing to deploy something.

  • Participants
  • Parent commits 26d12ef

Comments (0)

Files changed (1)

Automation/psi_ops_deploy.py

     
     @retry_decorator_returning_exception
     def do_deploy_implementation(host):
-        deploy_implementation(host)
+        try:
+            deploy_implementation(host)
+        except:
+            print 'Error deploying implementation to host %s' % (host.id,)
+            raise
         host.log('deploy implementation')
 
     run_in_parallel(20, do_deploy_implementation, hosts)
 
     @retry_decorator_returning_exception
     def do_deploy_data(host_and_data):
-        deploy_data(host_and_data['host'], host_and_data['data'])
+        try:
+            deploy_data(host_and_data['host'], host_and_data['data'])
+        except:
+            print 'Error deploying data to host %s' % (host_and_data['host'].id,)
+            raise
         host_and_data['host'].log('deploy data')
        
     run_in_parallel(20, do_deploy_data, host_and_data_list)
 
     @retry_decorator_returning_exception
     def do_deploy_build(host):
-        deploy_build(host, build_filename)
+        try:
+            deploy_build(host, build_filename)
+        except:
+            print 'Error deploying build to host %s' % (host.id,)
+            raise
             
     run_in_parallel(10, do_deploy_build, hosts)
 
 
     @retry_decorator_returning_exception
     def do_deploy_routes(host):
-        deploy_routes(host)
+        try:
+            deploy_routes(host)
+        except:
+            print 'Error deploying routes to host %s' % (host.id,)
+            raise
             
     run_in_parallel(10, do_deploy_routes, hosts)
 
 
     @retry_decorator_returning_exception
     def do_deploy_geoip_database_autoupdates(host):
-        deploy_geoip_database_autoupdates(host)
+        try:
+            deploy_geoip_database_autoupdates(host)
+        except:
+            print 'Error deploying geoip database autoupdates to host %s' % (host.id,)
+            raise
 
     run_in_parallel(10, do_deploy_geoip_database_autoupdates, hosts)