)]}'
{"devstack/lib/ironic":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"81f859f4a2d6e609dd13c833d94f0ed8e7e8e166","unresolved":false,"context_lines":[{"line_number":575,"context_line":"        libvirt_service_name\u003d\"libvirtd\""},{"line_number":576,"context_line":"    fi"},{"line_number":577,"context_line":""},{"line_number":578,"context_line":"    restart_service $libvirt_service_name"},{"line_number":579,"context_line":"}"},{"line_number":580,"context_line":""},{"line_number":581,"context_line":"function create_bridge_and_vms {"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"bae84128_ae008702","line":578,"updated":"2016-02-22 10:30:56.000000000","message":"example","commit_id":"2ce8ea1638a62eccfb9eb88c780da5323af16437"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"81f859f4a2d6e609dd13c833d94f0ed8e7e8e166","unresolved":false,"context_lines":[{"line_number":745,"context_line":"    echo \"r ^(/tftpboot/) $IRONIC_TFTPBOOT_DIR/\\2\" \u003e\u003e$IRONIC_TFTPBOOT_DIR/map-file"},{"line_number":746,"context_line":""},{"line_number":747,"context_line":"    chmod -R 0755 $IRONIC_TFTPBOOT_DIR"},{"line_number":748,"context_line":"    restart_service xinetd"},{"line_number":749,"context_line":"}"},{"line_number":750,"context_line":""},{"line_number":751,"context_line":"function configure_ironic_ssh_keypair {"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"bae84128_0e10934d","line":748,"updated":"2016-02-22 10:30:56.000000000","message":"example","commit_id":"2ce8ea1638a62eccfb9eb88c780da5323af16437"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"81f859f4a2d6e609dd13c833d94f0ed8e7e8e166","unresolved":false,"context_lines":[{"line_number":785,"context_line":"    if is_fedora; then"},{"line_number":786,"context_line":"        # on fedora services do not start by default"},{"line_number":787,"context_line":"        sudo systemctl start docker"},{"line_number":788,"context_line":"    fi"},{"line_number":789,"context_line":"    git_clone $IRONIC_PYTHON_AGENT_REPO $IRONIC_PYTHON_AGENT_DIR $IRONIC_PYTHON_AGENT_BRANCH"},{"line_number":790,"context_line":"    cd $IRONIC_PYTHON_AGENT_DIR"},{"line_number":791,"context_line":"    imagebuild/coreos/build_coreos_image.sh"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"bae84128_0e3ed3b7","line":788,"updated":"2016-02-22 10:30:56.000000000","message":"I think we could just be OS agnostic and call the DevStack helper function \"restart_service\" here, that would also fix this problem for other OS (e.g open-suse which is support by DevStack)","commit_id":"2ce8ea1638a62eccfb9eb88c780da5323af16437"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"62cbf9c1c6cf2fad7766fbaaddff00d7a666bce2","unresolved":false,"context_lines":[{"line_number":785,"context_line":"    if is_fedora; then"},{"line_number":786,"context_line":"        # on fedora services do not start by default"},{"line_number":787,"context_line":"        sudo systemctl start docker"},{"line_number":788,"context_line":"    fi"},{"line_number":789,"context_line":"    git_clone $IRONIC_PYTHON_AGENT_REPO $IRONIC_PYTHON_AGENT_DIR $IRONIC_PYTHON_AGENT_BRANCH"},{"line_number":790,"context_line":"    cd $IRONIC_PYTHON_AGENT_DIR"},{"line_number":791,"context_line":"    imagebuild/coreos/build_coreos_image.sh"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"5aef4532_4e1be81b","line":788,"updated":"2016-03-08 03:36:15.000000000","message":"Would still be nice to keep it agnostic. I\u0027d prefer: if is_fedora; then restart_service docker. That way if systemctl goes away, restart_service can handle it.\n\nAlternatively, maybe check if docker is on $PATH, then restart_service docker?","commit_id":"2ce8ea1638a62eccfb9eb88c780da5323af16437"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"a5f345f2027d1127e6470d9122a230d94ae96458","unresolved":false,"context_lines":[{"line_number":785,"context_line":"    if is_fedora; then"},{"line_number":786,"context_line":"        # on fedora services do not start by default"},{"line_number":787,"context_line":"        sudo systemctl start docker"},{"line_number":788,"context_line":"    fi"},{"line_number":789,"context_line":"    git_clone $IRONIC_PYTHON_AGENT_REPO $IRONIC_PYTHON_AGENT_DIR $IRONIC_PYTHON_AGENT_BRANCH"},{"line_number":790,"context_line":"    cd $IRONIC_PYTHON_AGENT_DIR"},{"line_number":791,"context_line":"    imagebuild/coreos/build_coreos_image.sh"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"5aef4532_6e3ecdb9","line":788,"in_reply_to":"5aef4532_0b11fcac","updated":"2016-03-07 12:58:01.000000000","message":"+1 To Lucas here, Dmitry please have look at L578, there is an example how to restart service with different names via \u0027restart_service\u0027","commit_id":"2ce8ea1638a62eccfb9eb88c780da5323af16437"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"72540b2ae76fd17b5fb6de99fe36b724a9dcc846","unresolved":false,"context_lines":[{"line_number":785,"context_line":"    if is_fedora; then"},{"line_number":786,"context_line":"        # on fedora services do not start by default"},{"line_number":787,"context_line":"        sudo systemctl start docker"},{"line_number":788,"context_line":"    fi"},{"line_number":789,"context_line":"    git_clone $IRONIC_PYTHON_AGENT_REPO $IRONIC_PYTHON_AGENT_DIR $IRONIC_PYTHON_AGENT_BRANCH"},{"line_number":790,"context_line":"    cd $IRONIC_PYTHON_AGENT_DIR"},{"line_number":791,"context_line":"    imagebuild/coreos/build_coreos_image.sh"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"5aef4532_aeb6153b","line":788,"in_reply_to":"5aef4532_6e3ecdb9","updated":"2016-03-07 12:58:39.000000000","message":"please see my comment. which service name do you suggest me to use?","commit_id":"2ce8ea1638a62eccfb9eb88c780da5323af16437"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"35ef437c3fc4d31bc01cd6ad55b8179fa1048bd8","unresolved":false,"context_lines":[{"line_number":785,"context_line":"    if is_fedora; then"},{"line_number":786,"context_line":"        # on fedora services do not start by default"},{"line_number":787,"context_line":"        sudo systemctl start docker"},{"line_number":788,"context_line":"    fi"},{"line_number":789,"context_line":"    git_clone $IRONIC_PYTHON_AGENT_REPO $IRONIC_PYTHON_AGENT_DIR $IRONIC_PYTHON_AGENT_BRANCH"},{"line_number":790,"context_line":"    cd $IRONIC_PYTHON_AGENT_DIR"},{"line_number":791,"context_line":"    imagebuild/coreos/build_coreos_image.sh"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"5aef4532_ee081d94","line":788,"in_reply_to":"5aef4532_aeb6153b","updated":"2016-03-07 13:08:20.000000000","message":"On Fedora:\n\n[root@localhost ~]# cat /etc/fedora-release\nFedora release 23 (Twenty Three)\n[root@localhost ~]# service docker status\nRedirecting to /bin/systemctl status  docker.service\n● docker.service - Docker Application Container Engine\n   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)\n   Active: active (running) since Mon 2016-03-07 15:05:26 EET; 8s ago\n     Docs: http://docs.docker.com\n Main PID: 4276 (docker)\n   CGroup: /system.slice/docker.service\n           └─4276 /usr/bin/docker daemon --selinux-enabled --log-driver\u003djournald\n\nMar 07 15:05:26 localhost.localdomain docker[4276]: time\u003d\"2016-03-07T15:05:26.142696728+02:00\" level\u003dwarning msg\u003d\"Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to ...inpooldev section.\"\nMar 07 15:05:26 localhost.localdomain docker[4276]: time\u003d\"2016-03-07T15:05:26.206972291+02:00\" level\u003dinfo msg\u003d\"[graphdriver] using prior storage driver \\\"devicemapper\\\"\"\nMar 07 15:05:26 localhost.localdomain docker[4276]: time\u003d\"2016-03-07T15:05:26.220305067+02:00\" level\u003dinfo msg\u003d\"Firewalld running: true\"\nMar 07 15:05:26 localhost.localdomain docker[4276]: time\u003d\"2016-03-07T15:05:26.396788422+02:00\" level\u003dinfo msg\u003d\"Default bridge (docker0) is assigned with an IP address 172.17.0.1/16. Daemon option --bip can be used to set a preferred IP address\"\nMar 07 15:05:26 localhost.localdomain docker[4276]: time\u003d\"2016-03-07T15:05:26.699301078+02:00\" level\u003dinfo msg\u003d\"Loading containers: start.\"\nMar 07 15:05:26 localhost.localdomain docker[4276]: time\u003d\"2016-03-07T15:05:26.699480820+02:00\" level\u003dinfo msg\u003d\"Loading containers: done.\"\nMar 07 15:05:26 localhost.localdomain docker[4276]: time\u003d\"2016-03-07T15:05:26.699786024+02:00\" level\u003dinfo msg\u003d\"Daemon has completed initialization\"\nMar 07 15:05:26 localhost.localdomain docker[4276]: time\u003d\"2016-03-07T15:05:26.699805035+02:00\" level\u003dinfo msg\u003d\"Docker daemon\" commit\u003d110aed2-dirty execdriver\u003dnative-0.2 graphdriver\u003ddevicemapper version\u003d1.9.1-fc23\nMar 07 15:05:26 localhost.localdomain docker[4276]: time\u003d\"2016-03-07T15:05:26.702224136+02:00\" level\u003dinfo msg\u003d\"API listen on /var/run/docker.sock\"\nMar 07 15:05:26 localhost.localdomain systemd[1]: Started Docker Application Container Engine.\nHint: Some lines were ellipsized, use -l to show in full.\n\n\nOn Ubuntu:\n\nstack@vsaienko-multitenancy-2016-03-04:~$ lsb_release -a\nNo LSB modules are available.\nDistributor ID: Ubuntu\nDescription:    Ubuntu 14.04.3 LTS\nRelease:        14.04\nCodename:       trusty\nstack@vsaienko-multitenancy-2016-03-04:~$ service docker status\ndocker start/running, process 1040\n\nOn Centos:\n\n[root@nailgun ~]# cat /etc/centos-release\nCentOS Linux release 7.1.1503 (Core) \n[root@nailgun ~]# service docker status\nRedirecting to /bin/systemctl status  docker.service\ndocker.service - Docker Application Container Engine\n   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled)\n   Active: active (running) since Mon 2016-02-22 11:45:39 UTC; 2 weeks 0 days ago","commit_id":"2ce8ea1638a62eccfb9eb88c780da5323af16437"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"d4476d936d5bffe16ef445b5c77b5659eb2c4f0d","unresolved":false,"context_lines":[{"line_number":785,"context_line":"    if is_fedora; then"},{"line_number":786,"context_line":"        # on fedora services do not start by default"},{"line_number":787,"context_line":"        sudo systemctl start docker"},{"line_number":788,"context_line":"    fi"},{"line_number":789,"context_line":"    git_clone $IRONIC_PYTHON_AGENT_REPO $IRONIC_PYTHON_AGENT_DIR $IRONIC_PYTHON_AGENT_BRANCH"},{"line_number":790,"context_line":"    cd $IRONIC_PYTHON_AGENT_DIR"},{"line_number":791,"context_line":"    imagebuild/coreos/build_coreos_image.sh"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"5aef4532_0b11fcac","line":788,"in_reply_to":"bae84128_0e3ed3b7","updated":"2016-03-07 12:28:22.000000000","message":"It\u0027s not so easy, because docker service names are different on Fedora and Ubuntu, for example.. Dunno how to solve it","commit_id":"2ce8ea1638a62eccfb9eb88c780da5323af16437"}]}
