-
Notifications
You must be signed in to change notification settings - Fork 843
Question: Retrieve Deployment logs during deploy #1881
Comments
Hi @sepiroth887, Thanks for your feedback - We are going to concentrate on surfacing vital info regarding deployments in the UI in the coming weeks. Do you have any specific use case you had in mind? |
I've got three use cases when I have to guess what's wrong(even mesos sandbox logs doesn't help):
It would really help troubleshooting user errors. |
@gregory90 thank you very much for your valuable input – we are going to concentrate on a revamp of the deployments UI soon, and these specific use cases definitely help us better understand better all possible scenarios. |
Thanks for the quick reply! On top of the previously mentioned points it would be great to get a stream of sandbox error logs / docker logs during a deployment. (Or some other consumable stream per deployment which exposes maybe parts of this) As much as the gui is concerned, im looking forward to more functionality but it would really need to go along with a good permissions model for our usecases. We are planning on using marathon via the rest API with Teamcity or Jenkins |
this is related to https://issues.apache.org/jira/browse/MESOS-2035 |
Maybe a good first step would be to allow marathon to return the URL to the sandbox stdout and stderr logs so we don't have to guess what they might be? (This was probably already covered in another issue though) How granular is the evenbus? Can I attach to it and consume only events for a specific app or group? |
See #878 for sandbox url |
As https://issues.apache.org/jira/browse/MESOS-2020 landed in mesos 0.23.0 can marathon work now with this information? |
@MikeMichel you can see the Last Task Failure with the reason now filled in correctly from mesos. |
@aquamatthias filled in where? In the mesos logfiles? event bus? |
@MikeMichel See Application > Debug Tab > Last Task Failure. Or from the REST API see Json object App.lastTaskFailure "lastTaskFailure": {
"appId": "/frontend/github-pr-assigner/ui-components",
"host": "srv3.hw.ca1.msg.com",
"message": "Failed to launch container: Failed to 'docker pull build.msg.com:5000/rafael/github-pr-assigner-ui-components:latest': exit status = exited with status 1 stderr = time=\"2015-10-23T14:31:25Z\" level=fatal msg=\"Error response from daemon: v1 ping attempt failed with error: Get https://build.msg.com:5000/v1/_ping: dial tcp: lookup build.msg.com: no such host. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry build.msg.com:5000` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/build.msg.com:5000/ca.crt\" \n",
"state": "TASK_FAILED",
"taskId": "frontend_github-pr-assigner_ui-components.bc00e777-7992-11e5-8b11-56b91e7a505b",
"timestamp": "2015-10-23T14:31:25.745Z",
"version": "2015-07-21T20:38:30.692Z",
"slaveId": "20150618-112946-201330860-5050-2210-S0"
}, |
yay, that's a reason to update. thx! |
@gregory90 |
@sepiroth887 You have access to every task status update via the event stream. |
Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-3485. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8. |
1 similar comment
Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-3485. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8. |
I noticed that there is relatively little feedback during a deployment and frequently got me wondering whats going on. You can look at the marathon syslogs but this is really no great way to work if you got many devs trying to deploy things.
Is there something I'm missing where I could surface deployment details to users so they would know whats wrong and when to stop/rollback a deployment?
The text was updated successfully, but these errors were encountered: