Skip to content

Instantly share code, notes, and snippets.

@ConnorDoyle
Created August 27, 2014 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ConnorDoyle/4f8251e876d35d05d561 to your computer and use it in GitHub Desktop.
Save ConnorDoyle/4f8251e876d35d05d561 to your computer and use it in GitHub Desktop.
Docker Debug
{
"id": "inky-default",
"args": ["hello"],
"instances": 1,
"cpus": 0.5,
"mem": 32,
"container": {
"docker": {
"image": "mesosphere/inky"
}
}
}
Aug 27 19:02:35 mesos marathon[1295]: [2014-08-27 19:02:35,241] DEBUG Received offer id {
Aug 27 19:02:35 mesos marathon[1295]: value: "20140827-185823-16842879-5050-1514-54"
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: framework_id {
Aug 27 19:02:35 mesos marathon[1295]: value: "20140815-221948-16842879-5050-1157-0000"
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: slave_id {
Aug 27 19:02:35 mesos marathon[1295]: value: "20140827-185823-16842879-5050-1514-0"
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: hostname: "10.141.141.10"
Aug 27 19:02:35 mesos marathon[1295]: resources {
Aug 27 19:02:35 mesos marathon[1295]: name: "cpus"
Aug 27 19:02:35 mesos marathon[1295]: type: SCALAR
Aug 27 19:02:35 mesos marathon[1295]: scalar {
Aug 27 19:02:35 mesos marathon[1295]: value: 2.0
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: role: "*"
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: resources {
Aug 27 19:02:35 mesos marathon[1295]: name: "mem"
Aug 27 19:02:35 mesos marathon[1295]: type: SCALAR
Aug 27 19:02:35 mesos marathon[1295]: scalar {
Aug 27 19:02:35 mesos marathon[1295]: value: 1000.0
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: role: "*"
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: resources {
Aug 27 19:02:35 mesos marathon[1295]: name: "disk"
Aug 27 19:02:35 mesos marathon[1295]: type: SCALAR
Aug 27 19:02:35 mesos marathon[1295]: scalar {
Aug 27 19:02:35 mesos marathon[1295]: value: 34068.0
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: role: "*"
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: resources {
Aug 27 19:02:35 mesos marathon[1295]: name: "ports"
Aug 27 19:02:35 mesos marathon[1295]: type: RANGES
Aug 27 19:02:35 mesos marathon[1295]: ranges {
Aug 27 19:02:35 mesos marathon[1295]: range {
Aug 27 19:02:35 mesos marathon[1295]: begin: 31000
Aug 27 19:02:35 mesos marathon[1295]: end: 32000
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: role: "*"
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: (mesosphere.marathon.MarathonScheduler:89)
Aug 27 19:02:35 mesos marathon[1295]: [2014-08-27 19:02:35,244] DEBUG Launching tasks: List(name: "inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799"
Aug 27 19:02:35 mesos marathon[1295]: task_id {
Aug 27 19:02:35 mesos marathon[1295]: value: "inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799"
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: slave_id {
Aug 27 19:02:35 mesos marathon[1295]: value: "20140827-185823-16842879-5050-1514-0"
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: resources {
Aug 27 19:02:35 mesos marathon[1295]: name: "cpus"
Aug 27 19:02:35 mesos marathon[1295]: type: SCALAR
Aug 27 19:02:35 mesos marathon[1295]: scalar {
Aug 27 19:02:35 mesos marathon[1295]: value: 0.5
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: role: "*"
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: resources {
Aug 27 19:02:35 mesos marathon[1295]: name: "mem"
Aug 27 19:02:35 mesos marathon[1295]: type: SCALAR
Aug 27 19:02:35 mesos marathon[1295]: scalar {
Aug 27 19:02:35 mesos marathon[1295]: value: 32.0
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: role: "*"
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: resources {
Aug 27 19:02:35 mesos marathon[1295]: name: "ports"
Aug 27 19:02:35 mesos marathon[1295]: type: RANGES
Aug 27 19:02:35 mesos marathon[1295]: ranges {
Aug 27 19:02:35 mesos marathon[1295]: range {
Aug 27 19:02:35 mesos marathon[1295]: begin: 31916
Aug 27 19:02:35 mesos marathon[1295]: end: 31916
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: role: "*"
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: command {
Aug 27 19:02:35 mesos marathon[1295]: environment {
Aug 27 19:02:35 mesos marathon[1295]: variables {
Aug 27 19:02:35 mesos marathon[1295]: name: "PORT"
Aug 27 19:02:35 mesos marathon[1295]: value: "31916"
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: variables {
Aug 27 19:02:35 mesos marathon[1295]: name: "PORT0"
Aug 27 19:02:35 mesos marathon[1295]: value: "31916"
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: variables {
Aug 27 19:02:35 mesos marathon[1295]: name: "PORTS"
Aug 27 19:02:35 mesos marathon[1295]: value: "31916"
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: shell: false
Aug 27 19:02:35 mesos marathon[1295]: arguments: "hello"
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: container {
Aug 27 19:02:35 mesos marathon[1295]: type: DOCKER
Aug 27 19:02:35 mesos marathon[1295]: docker {
Aug 27 19:02:35 mesos marathon[1295]: image: "mesosphere/inky"
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: }
Aug 27 19:02:35 mesos marathon[1295]: ) (mesosphere.marathon.MarathonScheduler:99)
Aug 27 19:02:39 mesos marathon[1295]: [2014-08-27 19:02:38,999] INFO Received status update for task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799: TASK_RUNNING () (mesosphere.marathon.MarathonScheduler:133)
Aug 27 19:02:39 mesos marathon[1295]: [2014-08-27 19:02:39,019] INFO Sending event notification. (mesosphere.marathon.MarathonScheduler:236)
Aug 27 19:02:40 mesos marathon[1295]: [2014-08-27 19:02:40,938] INFO Received status update for task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799: TASK_FINISHED (Command exited with status 0) (mesosphere.marathon.MarathonScheduler:133)
Aug 27 19:02:40 mesos marathon[1295]: [2014-08-27 19:02:40,941] INFO Task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 expunged and removed from TaskTracker (mesosphere.marathon.tasks.TaskTracker:90)
Aug 27 19:02:35 mesos mesos-master[1514]: I0827 19:02:35.238777 1582 master.cpp:3559] Sending 1 offers to framework 20140815-221948-16842879-5050-1157-0000
Aug 27 19:02:35 mesos mesos-master[1514]: I0827 19:02:35.246688 1585 master.cpp:2169] Processing reply for offers: [ 20140827-185823-16842879-5050-1514-54 ] on slave 20140827-185823-16842879-5050-1514-0 at slave(1)@127.0.1.1:5051 (10.141.141.10) for framework 20140815-221948-16842879-5050-1157-0000
Aug 27 19:02:35 mesos mesos-master[1514]: I0827 19:02:35.247364 1585 master.hpp:829] Adding task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 with resources cpus(*):0.5; mem(*):32; ports(*):[31916-31916] on slave 20140827-185823-16842879-5050-1514-0 (10.141.141.10)
Aug 27 19:02:35 mesos mesos-master[1514]: I0827 19:02:35.247505 1585 master.cpp:2318] Launching task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 of framework 20140815-221948-16842879-5050-1157-0000 with resources cpus(*):0.5; mem(*):32; ports(*):[31916-31916] on slave 20140827-185823-16842879-5050-1514-0 at slave(1)@127.0.1.1:5051 (10.141.141.10)
Aug 27 19:02:35 mesos mesos-slave[1515]: I0827 19:02:35.248484 1553 slave.cpp:1002] Got assigned task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 for framework 20140815-221948-16842879-5050-1157-0000
Aug 27 19:02:35 mesos mesos-slave[1515]: I0827 19:02:35.248899 1553 slave.cpp:1112] Launching task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 for framework 20140815-221948-16842879-5050-1157-0000
Aug 27 19:02:35 mesos mesos-slave[1515]: I0827 19:02:35.261687 1547 docker.cpp:815] Starting container '2804398f-1f01-4b20-b32d-87591ee68583' for task 'inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799' (and executor 'inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799') of framework '20140815-221948-16842879-5050-1157-0000'
Aug 27 19:02:35 mesos mesos-slave[1515]: I0827 19:02:35.925055 1552 docker.cpp:1720] Executor for container '2f005076-8360-4327-acab-99972b4c1b69' has exited
Aug 27 19:02:35 mesos mesos-slave[1515]: I0827 19:02:35.925151 1552 docker.cpp:1545] Destroying container '2f005076-8360-4327-acab-99972b4c1b69'
Aug 27 19:02:35 mesos mesos-slave[1515]: I0827 19:02:35.926062 1552 docker.cpp:1642] Running docker kill on container '2f005076-8360-4327-acab-99972b4c1b69'
Aug 27 19:02:37 mesos mesos-slave[1515]: I0827 19:02:37.932863 1547 slave.cpp:2593] Executor 'inky-default.b06b9520-2e1c-11e4-97c1-56847afe9799' of framework 20140815-221948-16842879-5050-1157-0000 exited with status 0
Aug 27 19:02:37 mesos mesos-slave[1515]: I0827 19:02:37.933414 1547 slave.cpp:2729] Cleaning up executor 'inky-default.b06b9520-2e1c-11e4-97c1-56847afe9799' of framework 20140815-221948-16842879-5050-1157-0000
Aug 27 19:02:37 mesos mesos-slave[1515]: I0827 19:02:37.933719 1547 gc.cpp:56] Scheduling '/tmp/mesos/slaves/20140827-185823-16842879-5050-1514-0/frameworks/20140815-221948-16842879-5050-1157-0000/executors/inky-default.b06b9520-2e1c-11e4-97c1-56847afe9799/runs/2f005076-8360-4327-acab-99972b4c1b69' for gc 6.99998919423407days in the future
Aug 27 19:02:37 mesos mesos-slave[1515]: I0827 19:02:37.935261 1547 gc.cpp:56] Scheduling '/tmp/mesos/slaves/20140827-185823-16842879-5050-1514-0/frameworks/20140815-221948-16842879-5050-1157-0000/executors/inky-default.b06b9520-2e1c-11e4-97c1-56847afe9799' for gc 6.99998919330963days in the future
Aug 27 19:02:38 mesos mesos-slave[1515]: I0827 19:02:38.938488 1553 slave.cpp:2535] Monitoring executor 'inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799' of framework '20140815-221948-16842879-5050-1157-0000' in container '2804398f-1f01-4b20-b32d-87591ee68583'
Aug 27 19:02:38 mesos mesos-slave[1515]: I0827 19:02:38.963129 1553 slave.cpp:1733] Got registration for executor 'inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799' of framework 20140815-221948-16842879-5050-1157-0000
Aug 27 19:02:38 mesos mesos-slave[1515]: I0827 19:02:38.963599 1553 slave.cpp:1852] Flushing queued task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 for executor 'inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799' of framework 20140815-221948-16842879-5050-1157-0000
Aug 27 19:02:38 mesos mesos-slave[1515]: I0827 19:02:38.984875 1553 slave.cpp:2087] Handling status update TASK_RUNNING (UUID: fe3468b8-b627-498d-a3fb-aed397910a1e) for task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 of framework 20140815-221948-16842879-5050-1157-0000 from executor(1)@127.0.1.1:33782
Aug 27 19:02:38 mesos mesos-slave[1515]: I0827 19:02:38.985174 1553 status_update_manager.cpp:320] Received status update TASK_RUNNING (UUID: fe3468b8-b627-498d-a3fb-aed397910a1e) for task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 of framework 20140815-221948-16842879-5050-1157-0000
Aug 27 19:02:38 mesos mesos-slave[1515]: I0827 19:02:38.994278 1553 status_update_manager.cpp:373] Forwarding status update TASK_RUNNING (UUID: fe3468b8-b627-498d-a3fb-aed397910a1e) for task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 of framework 20140815-221948-16842879-5050-1157-0000 to master@127.0.1.1:5050
Aug 27 19:02:38 mesos mesos-slave[1515]: I0827 19:02:38.994582 1553 slave.cpp:2251] Sending acknowledgement for status update TASK_RUNNING (UUID: fe3468b8-b627-498d-a3fb-aed397910a1e) for task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 of framework 20140815-221948-16842879-5050-1157-0000 to executor(1)@127.0.1.1:33782
Aug 27 19:02:38 mesos mesos-master[1514]: I0827 19:02:38.998343 1585 master.cpp:3180] Forwarding status update TASK_RUNNING (UUID: fe3468b8-b627-498d-a3fb-aed397910a1e) for task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 of framework 20140815-221948-16842879-5050-1157-0000
Aug 27 19:02:38 mesos mesos-master[1514]: I0827 19:02:38.998508 1585 master.cpp:3146] Status update TASK_RUNNING (UUID: fe3468b8-b627-498d-a3fb-aed397910a1e) for task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 of framework 20140815-221948-16842879-5050-1157-0000 from slave 20140827-185823-16842879-5050-1514-0 at slave(1)@127.0.1.1:5051 (10.141.141.10)
Aug 27 19:02:39 mesos mesos-master[1514]: I0827 19:02:39.016964 1581 master.cpp:2661] Forwarding status update acknowledgement fe3468b8-b627-498d-a3fb-aed397910a1e for task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 of framework 20140815-221948-16842879-5050-1157-0000 to slave 20140827-185823-16842879-5050-1514-0 at slave(1)@127.0.1.1:5051 (10.141.141.10)
Aug 27 19:02:39 mesos mesos-slave[1515]: I0827 19:02:39.018043 1550 status_update_manager.cpp:398] Received status update acknowledgement (UUID: fe3468b8-b627-498d-a3fb-aed397910a1e) for task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 of framework 20140815-221948-16842879-5050-1157-0000
Aug 27 19:02:39 mesos mesos-slave[1515]: I0827 19:02:39.971880 1548 slave.cpp:2087] Handling status update TASK_FINISHED (UUID: 6f3224c6-e4d8-4090-bc0d-48bfc72517db) for task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 of framework 20140815-221948-16842879-5050-1157-0000 from executor(1)@127.0.1.1:33782
Aug 27 19:02:40 mesos mesos-slave[1515]: I0827 19:02:40.935364 1551 status_update_manager.cpp:320] Received status update TASK_FINISHED (UUID: 6f3224c6-e4d8-4090-bc0d-48bfc72517db) for task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 of framework 20140815-221948-16842879-5050-1157-0000
Aug 27 19:02:40 mesos mesos-slave[1515]: I0827 19:02:40.935582 1551 status_update_manager.cpp:373] Forwarding status update TASK_FINISHED (UUID: 6f3224c6-e4d8-4090-bc0d-48bfc72517db) for task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 of framework 20140815-221948-16842879-5050-1157-0000 to master@127.0.1.1:5050
Aug 27 19:02:40 mesos mesos-slave[1515]: I0827 19:02:40.935752 1551 slave.cpp:2251] Sending acknowledgement for status update TASK_FINISHED (UUID: 6f3224c6-e4d8-4090-bc0d-48bfc72517db) for task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 of framework 20140815-221948-16842879-5050-1157-0000 to executor(1)@127.0.1.1:33782
Aug 27 19:02:40 mesos mesos-master[1514]: I0827 19:02:40.936909 1580 master.cpp:3180] Forwarding status update TASK_FINISHED (UUID: 6f3224c6-e4d8-4090-bc0d-48bfc72517db) for task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 of framework 20140815-221948-16842879-5050-1157-0000
Aug 27 19:02:40 mesos mesos-master[1514]: I0827 19:02:40.937013 1580 master.cpp:3146] Status update TASK_FINISHED (UUID: 6f3224c6-e4d8-4090-bc0d-48bfc72517db) for task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 of framework 20140815-221948-16842879-5050-1157-0000 from slave 20140827-185823-16842879-5050-1514-0 at slave(1)@127.0.1.1:5051 (10.141.141.10)
Aug 27 19:02:40 mesos mesos-master[1514]: I0827 19:02:40.937085 1580 master.hpp:847] Removing task inky-default.b4a1c4c1-2e1c-11e4-97c1-56847afe9799 with resources cpus(*):0.5; mem(*):32; ports(*):[31916-31916] on slave 20140827-185823-16842879-5050-1514-0 (10.141.141.10)
Aug 27 19:02:40 mesos mesos-master[1514]: I0827 19:02:40.937252 1580 hierarchical_allocator_process.hpp:563] Recovered cpus(*):0.5; mem(*):32; ports(*):[31916-31916] (total allocatable: cpus(*):2; mem(*):1000; disk(*):34068; ports(*):[31000-32000]) on slave 20140827-185823-16842879-5050-1514-0 from framework 20140815-221948-16842879-5050-1157-0000
Marathon Version: master @ d01155c527f2638c107f4cff481542925d9b2bdd
Mesos Version: 0.20.0
Docker Version: 1.1.2, build d84a070
Marathon TaskInfo debug output is enabled by setting the verbosity of the `mesosphere.marathon.MarathonScheduler` logger to `DEBUG` via Marathon's /logging Web UI.
Expected Result:
- Observe the string 'hello' output into the STDOUT file in the sandbox
of a task that died a natural death (TASK_FINISHED).
- Observe log messages indicating success in `/var/log/syslog`.
Resources:
- http://mesos.apache.org/documentation/latest/docker-containerizer
- https://mesosphere.github.io/marathon/docs/native-docker.html
I0827 19:56:09.255442 7392 exec.cpp:132] Version: 0.20.0
I0827 19:56:09.258818 7410 exec.cpp:206] Executor registered on slave 20140827-191134-16842879-5050-1574-0
Registered executor on 10.141.141.10
Starting task inky-default.22c8c295-2e24-11e4-bace-56847afe9799
/bin/sh -c exit `docker wait mesos-29060124-da78-4e76-a8be-195ce9267845`
Forked command at 7420
hello
Command exited with status 0 (pid: 7420)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment