)]}'
{"container_config_scripts/pacemaker_restart_bundle.sh":[{"author":{"_account_id":20778,"name":"Damien Ciabrini","email":"dciabrin@redhat.com","username":"dciabrin"},"change_message_id":"537935e11b10da48254431221fe9eb1caabbaf20","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        # have been updated on all nodes. So we need to run pcs only"},{"line_number":37,"context_line":"        # once (e.g. on the service\u0027s boostrap node)."},{"line_number":38,"context_line":"        if bundle_can_be_restarted ${BUNDLE_NAME}; then"},{"line_number":39,"context_line":"            HOSTNAME\u003d$(/bin/hostname -s)"},{"line_number":40,"context_line":"            SERVICE_NODEID\u003d$(/bin/hiera -c /etc/puppet/hiera.yaml \"${TRIPLEO_SERVICE}_short_bootstrap_node_name\")"},{"line_number":41,"context_line":"            if [[ \"${HOSTNAME,,}\" \u003d\u003d \"${SERVICE_NODEID,,}\" ]]; then"},{"line_number":42,"context_line":"                echo \"$(date -u): Restarting ${BUNDLE_NAME} globally\""}],"source_content_type":"text/x-sh","patch_set":3,"id":"3f4c43b2_92437aaf","line":39,"updated":"2020-04-20 15:16:21.000000000","message":"Can you use $(facter hostname) instead like on line 59?","commit_id":"9b91546ead0f7fb820d14b4032d7b77483f49b82"},{"author":{"_account_id":20778,"name":"Damien Ciabrini","email":"dciabrin@redhat.com","username":"dciabrin"},"change_message_id":"3afcb246869ea79fab3b801f33be82d3b3d9e0c5","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        # have been updated on all nodes. So we need to run pcs only"},{"line_number":37,"context_line":"        # once (e.g. on the service\u0027s boostrap node)."},{"line_number":38,"context_line":"        if bundle_can_be_restarted ${BUNDLE_NAME}; then"},{"line_number":39,"context_line":"            HOSTNAME\u003d$(/bin/hostname -s)"},{"line_number":40,"context_line":"            SERVICE_NODEID\u003d$(/bin/hiera -c /etc/puppet/hiera.yaml \"${TRIPLEO_SERVICE}_short_bootstrap_node_name\")"},{"line_number":41,"context_line":"            if [[ \"${HOSTNAME,,}\" \u003d\u003d \"${SERVICE_NODEID,,}\" ]]; then"},{"line_number":42,"context_line":"                echo \"$(date -u): Restarting ${BUNDLE_NAME} globally\""}],"source_content_type":"text/x-sh","patch_set":3,"id":"1f493fa4_db181377","line":39,"in_reply_to":"3f4c43b2_12edaa8a","updated":"2020-04-20 15:53:15.000000000","message":"Ack that makes sense.","commit_id":"9b91546ead0f7fb820d14b4032d7b77483f49b82"},{"author":{"_account_id":20172,"name":"Michele Baldessari","email":"michele@acksyn.org","username":"michele"},"change_message_id":"09668bdcd2ece424c90c9f3470cb4aba33866565","unresolved":false,"context_lines":[{"line_number":36,"context_line":"        # have been updated on all nodes. So we need to run pcs only"},{"line_number":37,"context_line":"        # once (e.g. on the service\u0027s boostrap node)."},{"line_number":38,"context_line":"        if bundle_can_be_restarted ${BUNDLE_NAME}; then"},{"line_number":39,"context_line":"            HOSTNAME\u003d$(/bin/hostname -s)"},{"line_number":40,"context_line":"            SERVICE_NODEID\u003d$(/bin/hiera -c /etc/puppet/hiera.yaml \"${TRIPLEO_SERVICE}_short_bootstrap_node_name\")"},{"line_number":41,"context_line":"            if [[ \"${HOSTNAME,,}\" \u003d\u003d \"${SERVICE_NODEID,,}\" ]]; then"},{"line_number":42,"context_line":"                echo \"$(date -u): Restarting ${BUNDLE_NAME} globally\""}],"source_content_type":"text/x-sh","patch_set":3,"id":"3f4c43b2_12edaa8a","line":39,"in_reply_to":"3f4c43b2_92437aaf","updated":"2020-04-20 15:21:11.000000000","message":"I can but I wanted to keep the exact same code we use in bootstrap_host_exec?","commit_id":"9b91546ead0f7fb820d14b4032d7b77483f49b82"},{"author":{"_account_id":20778,"name":"Damien Ciabrini","email":"dciabrin@redhat.com","username":"dciabrin"},"change_message_id":"537935e11b10da48254431221fe9eb1caabbaf20","unresolved":false,"context_lines":[{"line_number":42,"context_line":"                echo \"$(date -u): Restarting ${BUNDLE_NAME} globally\""},{"line_number":43,"context_line":"                /sbin/pcs resource restart --wait\u003d__PCMKTIMEOUT__ $BUNDLE_NAME"},{"line_number":44,"context_line":"            else"},{"line_number":45,"context_line":"                echo \"$(date -u): Restarting ${BUNDLE_NAME} globally but skipped since we\u0027re (${HOSTNAME}) not the bootstrap node for ${TRIPLEO_SERVICE}\""},{"line_number":46,"context_line":"            fi"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        else"}],"source_content_type":"text/x-sh","patch_set":3,"id":"3f4c43b2_526bb21c","line":45,"updated":"2020-04-20 15:16:21.000000000","message":"Restarting but skipped looks surprising.\nWhat about something like \"Skipping global restart of \u003c\u003e, it will be triggered by host \u003cservice_nodeid\u003e\u0027\" ?","commit_id":"9b91546ead0f7fb820d14b4032d7b77483f49b82"},{"author":{"_account_id":20172,"name":"Michele Baldessari","email":"michele@acksyn.org","username":"michele"},"change_message_id":"09668bdcd2ece424c90c9f3470cb4aba33866565","unresolved":false,"context_lines":[{"line_number":42,"context_line":"                echo \"$(date -u): Restarting ${BUNDLE_NAME} globally\""},{"line_number":43,"context_line":"                /sbin/pcs resource restart --wait\u003d__PCMKTIMEOUT__ $BUNDLE_NAME"},{"line_number":44,"context_line":"            else"},{"line_number":45,"context_line":"                echo \"$(date -u): Restarting ${BUNDLE_NAME} globally but skipped since we\u0027re (${HOSTNAME}) not the bootstrap node for ${TRIPLEO_SERVICE}\""},{"line_number":46,"context_line":"            fi"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        else"}],"source_content_type":"text/x-sh","patch_set":3,"id":"3f4c43b2_92dffad4","line":45,"in_reply_to":"3f4c43b2_526bb21c","updated":"2020-04-20 15:21:11.000000000","message":"Ack I like that more","commit_id":"9b91546ead0f7fb820d14b4032d7b77483f49b82"},{"author":{"_account_id":20778,"name":"Damien Ciabrini","email":"dciabrin@redhat.com","username":"dciabrin"},"change_message_id":"3afcb246869ea79fab3b801f33be82d3b3d9e0c5","unresolved":false,"context_lines":[{"line_number":42,"context_line":"                echo \"$(date -u): Restarting ${BUNDLE_NAME} globally\""},{"line_number":43,"context_line":"                /sbin/pcs resource restart --wait\u003d__PCMKTIMEOUT__ $BUNDLE_NAME"},{"line_number":44,"context_line":"            else"},{"line_number":45,"context_line":"                echo \"$(date -u): Restarting ${BUNDLE_NAME} globally but skipped since we\u0027re (${HOSTNAME}) not the bootstrap node for ${TRIPLEO_SERVICE}\""},{"line_number":46,"context_line":"            fi"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        else"}],"source_content_type":"text/x-sh","patch_set":3,"id":"1f493fa4_7b21ff9f","line":45,"in_reply_to":"3f4c43b2_92dffad4","updated":"2020-04-20 15:53:15.000000000","message":"Done","commit_id":"9b91546ead0f7fb820d14b4032d7b77483f49b82"}]}
