ReconfigureIO / reco

A command line tool for interacting with Reconfigure.io services
Apache License 2.0
6 stars 3 forks source link

Unknown error when attempting to stop a deployment #48

Open rosieyohannan opened 6 years ago

rosieyohannan commented 6 years ago

When I start a deployment, then try to stop it using reco deploy stop <ID> I get the error message:

histogram-array $ reco deploy stop fc27a0c5-a106-414f-8cd0-f13038fd3ee0

Error: Unknown error occurred

But if I look at the deploy list I see it's trying to terminate:

histogram-array $ reco deploy list

             DEPLOYMENT ID                                BUILD ID                           COMMAND               STATUS           STARTED         DURATION  
  fc27a0c5-a106-414f-8cd0-f13038fd3ee0      b5e66fb4-4b0e-4f8c-97d6-32248f02f320      test-histogram             terminating      1 minute ago      -         
  7766670e-de85-467e-8469-bf94bd255ebc      b5e66fb4-4b0e-4f8c-97d6-32248f02f320      test-histogran             errored          1 week ago        2m15s     
  448ea0d3-d66f-4d14-940f-14524c8d1464      33a606f2-7f5a-4748-bb5f-221473011e93      bench-histogram-FPGA       completed        2 months ago      3m7s 
CampGareth commented 6 years ago

Just to update everyone on the status, this is an API-side error where if you create a deployment and terminate it rapidly we haven't gotten around to creating your deployment by the time the termination comes in. This causes an internal error which reco reports as unknown error occurred.

The fixes for this are two-fold: 1) Fix the API, that work is in progress 2) Have reco report the error provided by the API instead of a generic message.