)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"d2303cc60f5c3d7345b4eef7a05bd0bddfd85c23","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Upstart fires the started event for docker before the socket exists[0],"},{"line_number":10,"context_line":"and we end up racing between that socket being created and beginning the"},{"line_number":11,"context_line":"IPA build. Wait for the socket before building."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"[0] https://github.com/docker/docker/issues/6647"},{"line_number":14,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"1af94dfe_771a9e7e","line":11,"updated":"2016-03-17 17:02:36.000000000","message":"This isn\u0027t entirely right; the upstart event doesn\u0027t fire until the socket is up, but the command to run the initscript will.","commit_id":"cfc266988d859fb43406c383b2ea5298942372b5"}],"devstack/lib/ironic":[{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"fa62f2201ef13ae0e12d3414c8bb4167ba103747","unresolved":false,"context_lines":[{"line_number":854,"context_line":"    local ramdisk_path\u003d$2"},{"line_number":855,"context_line":"    # on fedora services do not start by default"},{"line_number":856,"context_line":"    restart_service docker"},{"line_number":857,"context_line":"    while [ ! -f /var/run/docker.sock ]; do"},{"line_number":858,"context_line":"      sleep 1"},{"line_number":859,"context_line":"    done"},{"line_number":860,"context_line":"    git_clone $IRONIC_PYTHON_AGENT_REPO $IRONIC_PYTHON_AGENT_DIR $IRONIC_PYTHON_AGENT_BRANCH"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"1af94dfe_97476a76","line":857,"updated":"2016-03-17 17:01:40.000000000","message":"This needs to keep an incrementing var and eventually fail out if it never shows up, and have some logging so folks know how it\u0027s working.","commit_id":"e070ea15274f938c1e65b3027520fa2149082672"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"cd8bd613c0d798913b23917267eb882721b02b33","unresolved":false,"context_lines":[{"line_number":859,"context_line":""},{"line_number":860,"context_line":"    echo \"Waiting for docker to restart.\""},{"line_number":861,"context_line":"    for cnt in `seq 20`; do"},{"line_number":862,"context_line":"        sleep 1"},{"line_number":863,"context_line":"        if [ -f /var/run/docker.sock ]; then"},{"line_number":864,"context_line":"           exitcode\u003d1"},{"line_number":865,"context_line":"           break"}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"1af94dfe_cb078616","line":862,"updated":"2016-03-17 19:32:32.000000000","message":"It would be nice to have some debug here, like:\necho \"Checking for docker socket, attempt: $cnt\"","commit_id":"8f98455d99df9917ee61c1bd3eadb4de54f69675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"b23ea7dc7dd5de50c179a6f3d2e6cd2820f29a3e","unresolved":false,"context_lines":[{"line_number":859,"context_line":""},{"line_number":860,"context_line":"    echo \"Waiting for docker to restart.\""},{"line_number":861,"context_line":"    for cnt in `seq 20`; do"},{"line_number":862,"context_line":"        sleep 1"},{"line_number":863,"context_line":"        if [ -f /var/run/docker.sock ]; then"},{"line_number":864,"context_line":"           exitcode\u003d1"},{"line_number":865,"context_line":"           break"}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"1af94dfe_af7fa5de","line":862,"in_reply_to":"1af94dfe_cb078616","updated":"2016-03-17 20:08:32.000000000","message":"+1. I\u0027m also going to move this to under the check, to save one second in the best case","commit_id":"8f98455d99df9917ee61c1bd3eadb4de54f69675"},{"author":{"_account_id":7933,"name":"Philippe Godin","email":"godp1301@gmail.com","username":"godp1301"},"change_message_id":"d97401c65b97b88390c7a736d5084c58830b5c8b","unresolved":false,"context_lines":[{"line_number":860,"context_line":"    echo \"Waiting for docker to restart.\""},{"line_number":861,"context_line":"    for cnt in `seq 20`; do"},{"line_number":862,"context_line":"        sleep 1"},{"line_number":863,"context_line":"        if [ -f /var/run/docker.sock ]; then"},{"line_number":864,"context_line":"           exitcode\u003d1"},{"line_number":865,"context_line":"           break"},{"line_number":866,"context_line":"        fi"}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"1af94dfe_f076afd5","line":863,"updated":"2016-03-17 19:33:25.000000000","message":"If I am not mistaken docker.sock is a socket. The -f test only returns true is file exists and is a regular file (socket is a special file). I think you need -S instead. See http://tldp.org/LDP/abs/html/fto.html","commit_id":"8f98455d99df9917ee61c1bd3eadb4de54f69675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"b23ea7dc7dd5de50c179a6f3d2e6cd2820f29a3e","unresolved":false,"context_lines":[{"line_number":860,"context_line":"    echo \"Waiting for docker to restart.\""},{"line_number":861,"context_line":"    for cnt in `seq 20`; do"},{"line_number":862,"context_line":"        sleep 1"},{"line_number":863,"context_line":"        if [ -f /var/run/docker.sock ]; then"},{"line_number":864,"context_line":"           exitcode\u003d1"},{"line_number":865,"context_line":"           break"},{"line_number":866,"context_line":"        fi"}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"1af94dfe_8f4749bb","line":863,"in_reply_to":"1af94dfe_f076afd5","updated":"2016-03-17 20:08:32.000000000","message":"++","commit_id":"8f98455d99df9917ee61c1bd3eadb4de54f69675"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"487de1c91cbef93abcbb7ba96104f27af3ebd918","unresolved":false,"context_lines":[{"line_number":861,"context_line":"    for cnt in `seq 20`; do"},{"line_number":862,"context_line":"        sleep 1"},{"line_number":863,"context_line":"        if [ -f /var/run/docker.sock ]; then"},{"line_number":864,"context_line":"           exitcode\u003d1"},{"line_number":865,"context_line":"           break"},{"line_number":866,"context_line":"        fi"},{"line_number":867,"context_line":"    done"}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"1af94dfe_7080dfc0","line":864,"updated":"2016-03-17 19:26:04.000000000","message":"1 usually means \"failed\" in exit code parlance, was this code written intentionally to use 1 as \"success\"?\n\nI vote to use 0 or a more clear string here :) This was very confusing on first read.","commit_id":"8f98455d99df9917ee61c1bd3eadb4de54f69675"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"b23ea7dc7dd5de50c179a6f3d2e6cd2820f29a3e","unresolved":false,"context_lines":[{"line_number":861,"context_line":"    for cnt in `seq 20`; do"},{"line_number":862,"context_line":"        sleep 1"},{"line_number":863,"context_line":"        if [ -f /var/run/docker.sock ]; then"},{"line_number":864,"context_line":"           exitcode\u003d1"},{"line_number":865,"context_line":"           break"},{"line_number":866,"context_line":"        fi"},{"line_number":867,"context_line":"    done"}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"1af94dfe_2f3ef527","line":864,"in_reply_to":"1af94dfe_10b35b99","updated":"2016-03-17 20:08:32.000000000","message":"Agree.","commit_id":"8f98455d99df9917ee61c1bd3eadb4de54f69675"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"cd8bd613c0d798913b23917267eb882721b02b33","unresolved":false,"context_lines":[{"line_number":861,"context_line":"    for cnt in `seq 20`; do"},{"line_number":862,"context_line":"        sleep 1"},{"line_number":863,"context_line":"        if [ -f /var/run/docker.sock ]; then"},{"line_number":864,"context_line":"           exitcode\u003d1"},{"line_number":865,"context_line":"           break"},{"line_number":866,"context_line":"        fi"},{"line_number":867,"context_line":"    done"}],"source_content_type":"application/x-shellscript","patch_set":7,"id":"1af94dfe_10b35b99","line":864,"in_reply_to":"1af94dfe_7080dfc0","updated":"2016-03-17 19:32:32.000000000","message":"+1 here, its better to use 0 as success.","commit_id":"8f98455d99df9917ee61c1bd3eadb4de54f69675"},{"author":{"_account_id":7933,"name":"Philippe Godin","email":"godp1301@gmail.com","username":"godp1301"},"change_message_id":"f81ce565e6efc5431198cf107d0ce10fd8ae811b","unresolved":false,"context_lines":[{"line_number":860,"context_line":"    echo \"Waiting for docker to restart.\""},{"line_number":861,"context_line":"    for cnt in `seq 20`; do"},{"line_number":862,"context_line":"        echo \"Waiting for docker socket, check ${cnt}/20\""},{"line_number":863,"context_line":"        if [ -f /var/run/docker.sock ]; then"},{"line_number":864,"context_line":"           exitcode\u003d0"},{"line_number":865,"context_line":"           break"},{"line_number":866,"context_line":"        fi"}],"source_content_type":"application/x-shellscript","patch_set":8,"id":"1af94dfe_efb88d77","line":863,"updated":"2016-03-17 20:12:32.000000000","message":"Same comment as patch set #7. You didn\u0027t agree or you forgot?","commit_id":"3adbac474397652154ba55aea4e4745a2325404d"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"b17ced7befe55860787e276a97fc3f53dbfe2bf5","unresolved":false,"context_lines":[{"line_number":860,"context_line":"    echo \"Waiting for docker to restart.\""},{"line_number":861,"context_line":"    for cnt in `seq 20`; do"},{"line_number":862,"context_line":"        echo \"Waiting for docker socket, check ${cnt}/20\""},{"line_number":863,"context_line":"        if [ -f /var/run/docker.sock ]; then"},{"line_number":864,"context_line":"           exitcode\u003d0"},{"line_number":865,"context_line":"           break"},{"line_number":866,"context_line":"        fi"}],"source_content_type":"application/x-shellscript","patch_set":8,"id":"1af94dfe_2f5d5547","line":863,"updated":"2016-03-17 20:12:47.000000000","message":"This was not fixed from comments on previous commit:\n\nPhilippe Godin\n12:33 PM\nIf I am not mistaken docker.sock is a socket. The -f test only returns true is file exists and is a regular file (socket is a special file). I think you need -S instead. See http://tldp.org/LDP/abs/html/fto.html","commit_id":"3adbac474397652154ba55aea4e4745a2325404d"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"ad1ff2e4f3a811a95fb6f4f452f39cc146134347","unresolved":false,"context_lines":[{"line_number":860,"context_line":"    echo \"Waiting for docker to restart.\""},{"line_number":861,"context_line":"    for cnt in `seq 20`; do"},{"line_number":862,"context_line":"        echo \"Waiting for docker socket, check ${cnt}/20\""},{"line_number":863,"context_line":"        if [ -f /var/run/docker.sock ]; then"},{"line_number":864,"context_line":"           exitcode\u003d0"},{"line_number":865,"context_line":"           break"},{"line_number":866,"context_line":"        fi"}],"source_content_type":"application/x-shellscript","patch_set":8,"id":"1af94dfe_523cc6c7","line":863,"in_reply_to":"1af94dfe_2f5d5547","updated":"2016-03-17 20:13:42.000000000","message":"You\u0027re right, totally forgot :)","commit_id":"3adbac474397652154ba55aea4e4745a2325404d"}]}
