)]}'
{"extraconfig/tasks/pacemaker_resource_restart.sh":[{"author":{"_account_id":20172,"name":"Michele Baldessari","email":"michele@acksyn.org","username":"michele"},"change_message_id":"a40ddbbe5d3c61881cb1bea1ad022ee5d0d673c0","unresolved":false,"context_lines":[{"line_number":10,"context_line":"     \"$(hiera bootstrap_nodeid)\" \u003d \"$(facter hostname)\" -a \\"},{"line_number":11,"context_line":"     \"$(hiera stack_action)\" \u003d \"UPDATE\" ]; then"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"    #ensure neutron constraints like"},{"line_number":14,"context_line":"    #https://review.openstack.org/#/c/245093/"},{"line_number":15,"context_line":"    if  pcs constraint order show  | grep \"start neutron-server-clone then start neutron-ovs-cleanup-clone\"; then"},{"line_number":16,"context_line":"        pcs constraint remove order-neutron-server-clone-neutron-ovs-cleanup-clone-mandatory"},{"line_number":17,"context_line":"    fi"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"    pcs resource disable httpd"},{"line_number":20,"context_line":"    check_resource httpd stopped 300"}],"source_content_type":"text/x-sh","patch_set":1,"id":"9ad45d7e_4dcafb6f","side":"PARENT","line":17,"range":{"start_line":13,"start_character":4,"end_line":17,"end_character":6},"updated":"2016-08-12 14:17:22.000000000","message":"So if I recall correctly this script is called to restart services after a stack update to make sure that the pacemaker managed resources restart with the new configs. In that case we do not need a bunch of things. Like these lines above here","commit_id":"99560464e941d7d79f2edca9196d1dd93ab0984e"},{"author":{"_account_id":3153,"name":"Emilien Macchi","email":"emilien@redhat.com","username":"emilienm"},"change_message_id":"b448c4afb22edd198200e2cc698f8062eff79268","unresolved":false,"context_lines":[{"line_number":17,"context_line":"    fi"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"    pcs resource disable httpd"},{"line_number":20,"context_line":"    check_resource httpd stopped 300"},{"line_number":21,"context_line":"    pcs resource disable openstack-core"},{"line_number":22,"context_line":"    check_resource openstack-core stopped 1800"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-sh","patch_set":1,"id":"9ad45d7e_6dcd3f86","side":"PARENT","line":20,"updated":"2016-08-12 14:13:52.000000000","message":"shouldn\u0027t we remove the resource in Pacemaker during the upgrade process?","commit_id":"99560464e941d7d79f2edca9196d1dd93ab0984e"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"1d6eaf9d251cf300bc1124321dbd14b1de0e7ad9","unresolved":false,"context_lines":[{"line_number":17,"context_line":"    fi"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"    pcs resource disable httpd"},{"line_number":20,"context_line":"    check_resource httpd stopped 300"},{"line_number":21,"context_line":"    pcs resource disable openstack-core"},{"line_number":22,"context_line":"    check_resource openstack-core stopped 1800"},{"line_number":23,"context_line":""}],"source_content_type":"text/x-sh","patch_set":1,"id":"9ad45d7e_8da9937e","side":"PARENT","line":20,"in_reply_to":"9ad45d7e_6dcd3f86","updated":"2016-08-12 14:15:23.000000000","message":"yes we should. but this script is not for upgrades. this fixes just basic stack-updates using exact same templates, exact same packages.","commit_id":"99560464e941d7d79f2edca9196d1dd93ab0984e"},{"author":{"_account_id":20172,"name":"Michele Baldessari","email":"michele@acksyn.org","username":"michele"},"change_message_id":"a40ddbbe5d3c61881cb1bea1ad022ee5d0d673c0","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"    pcs resource disable httpd"},{"line_number":20,"context_line":"    check_resource httpd stopped 300"},{"line_number":21,"context_line":"    pcs resource disable openstack-core"},{"line_number":22,"context_line":"    check_resource openstack-core stopped 1800"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"    if pcs status | grep haproxy-clone; then"},{"line_number":25,"context_line":"        pcs resource restart haproxy-clone"}],"source_content_type":"text/x-sh","patch_set":1,"id":"9ad45d7e_ad9e1761","side":"PARENT","line":22,"range":{"start_line":21,"start_character":4,"end_line":22,"end_character":46},"updated":"2016-08-12 14:17:22.000000000","message":"this does not exist any longer","commit_id":"99560464e941d7d79f2edca9196d1dd93ab0984e"},{"author":{"_account_id":20172,"name":"Michele Baldessari","email":"michele@acksyn.org","username":"michele"},"change_message_id":"a40ddbbe5d3c61881cb1bea1ad022ee5d0d673c0","unresolved":false,"context_lines":[{"line_number":20,"context_line":"    check_resource httpd stopped 300"},{"line_number":21,"context_line":"    pcs resource disable openstack-core"},{"line_number":22,"context_line":"    check_resource openstack-core stopped 1800"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"    if pcs status | grep haproxy-clone; then"},{"line_number":25,"context_line":"        pcs resource restart haproxy-clone"},{"line_number":26,"context_line":"    fi"}],"source_content_type":"text/x-sh","patch_set":1,"id":"9ad45d7e_2de6a7e8","side":"PARENT","line":23,"updated":"2016-08-12 14:17:22.000000000","message":"We probably want to add \"pcs resource restart openstack-cinder-volume\" since we have no constraints any longer and restarting openstack-core would not restart all its dependencies like previously","commit_id":"99560464e941d7d79f2edca9196d1dd93ab0984e"},{"author":{"_account_id":20172,"name":"Michele Baldessari","email":"michele@acksyn.org","username":"michele"},"change_message_id":"a40ddbbe5d3c61881cb1bea1ad022ee5d0d673c0","unresolved":false,"context_lines":[{"line_number":25,"context_line":"        pcs resource restart haproxy-clone"},{"line_number":26,"context_line":"    fi"},{"line_number":27,"context_line":"    pcs resource restart redis-master"},{"line_number":28,"context_line":"    pcs resource restart mongod-clone"},{"line_number":29,"context_line":"    pcs resource restart rabbitmq-clone"},{"line_number":30,"context_line":"    pcs resource restart memcached-clone"},{"line_number":31,"context_line":"    pcs resource restart galera-master"}],"source_content_type":"text/x-sh","patch_set":1,"id":"9ad45d7e_2d8187fc","side":"PARENT","line":28,"range":{"start_line":28,"start_character":4,"end_line":28,"end_character":37},"updated":"2016-08-12 14:17:22.000000000","message":"mongo is also managed via systemd so we can kill this line","commit_id":"99560464e941d7d79f2edca9196d1dd93ab0984e"},{"author":{"_account_id":20172,"name":"Michele Baldessari","email":"michele@acksyn.org","username":"michele"},"change_message_id":"a40ddbbe5d3c61881cb1bea1ad022ee5d0d673c0","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    pcs resource restart redis-master"},{"line_number":28,"context_line":"    pcs resource restart mongod-clone"},{"line_number":29,"context_line":"    pcs resource restart rabbitmq-clone"},{"line_number":30,"context_line":"    pcs resource restart memcached-clone"},{"line_number":31,"context_line":"    pcs resource restart galera-master"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    pcs resource enable openstack-core"}],"source_content_type":"text/x-sh","patch_set":1,"id":"9ad45d7e_ad757733","side":"PARENT","line":30,"range":{"start_line":30,"start_character":3,"end_line":30,"end_character":40},"updated":"2016-08-12 14:17:22.000000000","message":"same goes for memcached","commit_id":"99560464e941d7d79f2edca9196d1dd93ab0984e"},{"author":{"_account_id":20172,"name":"Michele Baldessari","email":"michele@acksyn.org","username":"michele"},"change_message_id":"a40ddbbe5d3c61881cb1bea1ad022ee5d0d673c0","unresolved":false,"context_lines":[{"line_number":30,"context_line":"    pcs resource restart memcached-clone"},{"line_number":31,"context_line":"    pcs resource restart galera-master"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    pcs resource enable openstack-core"},{"line_number":34,"context_line":"    check_resource openstack-core started 1800"},{"line_number":35,"context_line":"    pcs resource enable httpd"},{"line_number":36,"context_line":"    check_resource httpd started 800"},{"line_number":37,"context_line":""}],"source_content_type":"text/x-sh","patch_set":1,"id":"9ad45d7e_2d98676a","side":"PARENT","line":34,"range":{"start_line":33,"start_character":3,"end_line":34,"end_character":46},"updated":"2016-08-12 14:17:22.000000000","message":"these can go as well","commit_id":"99560464e941d7d79f2edca9196d1dd93ab0984e"}]}
