)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6488,"name":"Clint Byrum","email":"clint@fewbar.com","username":"clint-fewbar"},"change_message_id":"4e0572f6914ec1be3ac90ae3b3e9f1af3e572c5f","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Ceilometer Service Update/Upgrade in TripleO"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Support for an update/upgrade strategy that allows Ceilometer to"},{"line_number":10,"context_line":"minimize the amount of data loss."},{"line_number":11,"context_line":"The event producing services are stopped (if running) and the queue"},{"line_number":12,"context_line":"is drained and all the data in transit is stored to the database"},{"line_number":13,"context_line":"from the collector agent."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"1ae5cdf2_7c63501a","line":10,"updated":"2014-06-09 23:38:41.000000000","message":"Paragraphs should be separated by a blank line.","commit_id":"293dd50436b74f3aca280d9607de9d14c55a1a4a"},{"author":{"_account_id":7052,"name":"Fabio Giannetti","email":"fgiannet@cisco.com","username":"fabgia"},"change_message_id":"e1eb284358cebc4525f1884658f060a78a66b6eb","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Ceilometer Service Update/Upgrade in TripleO"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Support for an update/upgrade strategy that allows Ceilometer to"},{"line_number":10,"context_line":"minimize the amount of data loss."},{"line_number":11,"context_line":"The event producing services are stopped (if running) and the queue"},{"line_number":12,"context_line":"is drained and all the data in transit is stored to the database"},{"line_number":13,"context_line":"from the collector agent."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"baada198_58e8ae15","line":10,"in_reply_to":"1ae5cdf2_7c63501a","updated":"2014-08-11 17:00:03.000000000","message":"Done","commit_id":"293dd50436b74f3aca280d9607de9d14c55a1a4a"}],"elements/ceilometer-collector/os-refresh-config/post-configure.d/69-ceilometer-collector":[{"author":{"_account_id":7409,"name":"Eric Pendergrass","email":"epende@gmail.com","username":"epende"},"change_message_id":"2f0d64332d82b846be50d55bfa5ba9b4d5cdee54","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"#Verify if the queue is running"},{"line_number":32,"context_line":"QUEUE_STATUS\u003d$(rabbitmqctl list_queues name status | awk \u0027{for(o\u003d1;o\u003c\u003dNF;o++) if ($o ~ /metering.overcloud-controller/ ) {print $(o+1)} }\u0027)"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"if [[ $QUEUE_STATUS \u003d\u003d \"running\" ]]; then"},{"line_number":35,"context_line":"    echo \u0027Metering Queue Running\u0027"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"7adec928_cc8cd438","line":32,"updated":"2014-05-21 18:37:36.000000000","message":"Could this be shortened with \n$(rabbitmqctl list_queues name status | grep \u0027metering.overcloud-controller\u0027 | awk \u0027{print $2}\u0027\nAppears there will be only one metering queue.","commit_id":"0f892717bf98906515469f2a5af931a6d4547135"},{"author":{"_account_id":7052,"name":"Fabio Giannetti","email":"fgiannet@cisco.com","username":"fabgia"},"change_message_id":"3c75d092f25a7540453b8fde3c1f8c784eef8a46","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"#Verify if the queue is running"},{"line_number":32,"context_line":"QUEUE_STATUS\u003d$(rabbitmqctl list_queues name status | awk \u0027{for(o\u003d1;o\u003c\u003dNF;o++) if ($o ~ /metering.overcloud-controller/ ) {print $(o+1)} }\u0027)"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"if [[ $QUEUE_STATUS \u003d\u003d \"running\" ]]; then"},{"line_number":35,"context_line":"    echo \u0027Metering Queue Running\u0027"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"7adec928_f08f6121","line":32,"in_reply_to":"7adec928_cc8cd438","updated":"2014-05-23 17:02:37.000000000","message":"I will change it, thanks!","commit_id":"0f892717bf98906515469f2a5af931a6d4547135"},{"author":{"_account_id":7409,"name":"Eric Pendergrass","email":"epende@gmail.com","username":"epende"},"change_message_id":"2f0d64332d82b846be50d55bfa5ba9b4d5cdee54","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    #Verify if the queue still have messages that are unacknowledged"},{"line_number":38,"context_line":"    while true; do"},{"line_number":39,"context_line":"         UNACK\u003d$(rabbitmqctl list_queues name messages messages_unacknowledged | awk \u0027{for(o\u003d1;o\u003c\u003dNF;o++) if ($o ~ /metering.overcloud-controller/ ) {print $(o+2)} }\u0027)"},{"line_number":40,"context_line":"         echo \u0027Unacknowledged Messages \u003d \u0027 $UNACK"},{"line_number":41,"context_line":"         if [[ $UNACK \u003d\u003d 0 ]]; then"},{"line_number":42,"context_line":"            echo \"All messages in the queue have been consumed. Restarting Collector\""},{"line_number":43,"context_line":"            break"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"7adec928_6c6100d3","line":40,"updated":"2014-05-21 18:37:36.000000000","message":"The word-style operator -gt is used below but lexical \u0027\u003d\u003d\u0027 used here.  Not a big deal, but consistency, unless there\u0027s something I\u0027m missing.","commit_id":"0f892717bf98906515469f2a5af931a6d4547135"},{"author":{"_account_id":7052,"name":"Fabio Giannetti","email":"fgiannet@cisco.com","username":"fabgia"},"change_message_id":"3c75d092f25a7540453b8fde3c1f8c784eef8a46","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    #Verify if the queue still have messages that are unacknowledged"},{"line_number":38,"context_line":"    while true; do"},{"line_number":39,"context_line":"         UNACK\u003d$(rabbitmqctl list_queues name messages messages_unacknowledged | awk \u0027{for(o\u003d1;o\u003c\u003dNF;o++) if ($o ~ /metering.overcloud-controller/ ) {print $(o+2)} }\u0027)"},{"line_number":40,"context_line":"         echo \u0027Unacknowledged Messages \u003d \u0027 $UNACK"},{"line_number":41,"context_line":"         if [[ $UNACK \u003d\u003d 0 ]]; then"},{"line_number":42,"context_line":"            echo \"All messages in the queue have been consumed. Restarting Collector\""},{"line_number":43,"context_line":"            break"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"7adec928_50865514","line":40,"in_reply_to":"7adec928_6c6100d3","updated":"2014-05-23 17:02:37.000000000","message":"The difference is that I have to make sure that there are no messages that are unack, where in the second I have to check a counter did not reach more than 3 iter","commit_id":"0f892717bf98906515469f2a5af931a6d4547135"},{"author":{"_account_id":7409,"name":"Eric Pendergrass","email":"epende@gmail.com","username":"epende"},"change_message_id":"2f0d64332d82b846be50d55bfa5ba9b4d5cdee54","unresolved":false,"context_lines":[{"line_number":41,"context_line":"         if [[ $UNACK \u003d\u003d 0 ]]; then"},{"line_number":42,"context_line":"            echo \"All messages in the queue have been consumed. Restarting Collector\""},{"line_number":43,"context_line":"            break"},{"line_number":44,"context_line":"         elif [[ \"$COUNTER\" -gt 2 ]]; then"},{"line_number":45,"context_line":"            echo \"Messages are taking too long to be consumed. Restarting Collector\""},{"line_number":46,"context_line":"            break"},{"line_number":47,"context_line":"        else"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"7adec928_cc3bf49a","line":44,"updated":"2014-05-21 18:37:36.000000000","message":"Is 2 seconds long enough to consume all messages?  I don\u0027t know, just asking.","commit_id":"0f892717bf98906515469f2a5af931a6d4547135"},{"author":{"_account_id":7052,"name":"Fabio Giannetti","email":"fgiannet@cisco.com","username":"fabgia"},"change_message_id":"3c75d092f25a7540453b8fde3c1f8c784eef8a46","unresolved":false,"context_lines":[{"line_number":41,"context_line":"         if [[ $UNACK \u003d\u003d 0 ]]; then"},{"line_number":42,"context_line":"            echo \"All messages in the queue have been consumed. Restarting Collector\""},{"line_number":43,"context_line":"            break"},{"line_number":44,"context_line":"         elif [[ \"$COUNTER\" -gt 2 ]]; then"},{"line_number":45,"context_line":"            echo \"Messages are taking too long to be consumed. Restarting Collector\""},{"line_number":46,"context_line":"            break"},{"line_number":47,"context_line":"        else"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"7adec928_30ac69a0","line":44,"in_reply_to":"7adec928_cc3bf49a","updated":"2014-05-23 17:02:37.000000000","message":"It actually iterate 3 times for a total of 5 sec","commit_id":"0f892717bf98906515469f2a5af931a6d4547135"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"f89c42894286ce4977685131d1af79b9117beb68","unresolved":false,"context_lines":[{"line_number":8,"context_line":"#Check the ceilometer-agent-central is running"},{"line_number":9,"context_line":"POLLSTER_STATUS\u003d$(service ceilometer-agent-central status | awk \u0027{print $2}\u0027)"},{"line_number":10,"context_line":"echo $POLLSTER_STATUS"},{"line_number":11,"context_line":"if [[ $POLLSTER_STATUS \u003d\u003d \"start/running,\" ]]; then"},{"line_number":12,"context_line":"    echo \"Stopping ceilometer-agent-central\""},{"line_number":13,"context_line":"    service ceilometer-agent-central stop"},{"line_number":14,"context_line":"fi"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"1ae5cdf2_abcc7936","line":11,"updated":"2014-06-18 11:51:44.000000000","message":"i\u0027m pretty sure start/running is debian and ubuntu specific output.","commit_id":"293dd50436b74f3aca280d9607de9d14c55a1a4a"},{"author":{"_account_id":7052,"name":"Fabio Giannetti","email":"fgiannet@cisco.com","username":"fabgia"},"change_message_id":"e1eb284358cebc4525f1884658f060a78a66b6eb","unresolved":false,"context_lines":[{"line_number":8,"context_line":"#Check the ceilometer-agent-central is running"},{"line_number":9,"context_line":"POLLSTER_STATUS\u003d$(service ceilometer-agent-central status | awk \u0027{print $2}\u0027)"},{"line_number":10,"context_line":"echo $POLLSTER_STATUS"},{"line_number":11,"context_line":"if [[ $POLLSTER_STATUS \u003d\u003d \"start/running,\" ]]; then"},{"line_number":12,"context_line":"    echo \"Stopping ceilometer-agent-central\""},{"line_number":13,"context_line":"    service ceilometer-agent-central stop"},{"line_number":14,"context_line":"fi"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"baada198_f844221a","line":11,"in_reply_to":"1ae5cdf2_abcc7936","updated":"2014-08-11 17:00:03.000000000","message":"Ok, since you said that the os-svc-* commands are not there yet, what is the generic status I should be able to see when a service is running or not, please?","commit_id":"293dd50436b74f3aca280d9607de9d14c55a1a4a"},{"author":{"_account_id":6488,"name":"Clint Byrum","email":"clint@fewbar.com","username":"clint-fewbar"},"change_message_id":"4e0572f6914ec1be3ac90ae3b3e9f1af3e572c5f","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        else"},{"line_number":48,"context_line":"            # sleep to make sure collector has time to store all the messages to the db."},{"line_number":49,"context_line":"            COUNTER\u003d$((COUNTER+1))"},{"line_number":50,"context_line":"            sleep $COUNTER"},{"line_number":51,"context_line":"        fi"},{"line_number":52,"context_line":"    done"},{"line_number":53,"context_line":"else"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"1ae5cdf2_fc5da049","line":50,"updated":"2014-06-09 23:38:41.000000000","message":"This seems extremely haphazard! Is there a bug upstream to make sure ceilometer handles SIGTERM properly by flushing all to the db before exiting?","commit_id":"293dd50436b74f3aca280d9607de9d14c55a1a4a"},{"author":{"_account_id":7052,"name":"Fabio Giannetti","email":"fgiannet@cisco.com","username":"fabgia"},"change_message_id":"516236fe852fd7ba62d42f66b279cbe0770de8b4","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        else"},{"line_number":48,"context_line":"            # sleep to make sure collector has time to store all the messages to the db."},{"line_number":49,"context_line":"            COUNTER\u003d$((COUNTER+1))"},{"line_number":50,"context_line":"            sleep $COUNTER"},{"line_number":51,"context_line":"        fi"},{"line_number":52,"context_line":"    done"},{"line_number":53,"context_line":"else"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"1ae5cdf2_6a0b5e2b","line":50,"in_reply_to":"1ae5cdf2_fc5da049","updated":"2014-06-18 01:38:44.000000000","message":"Clint the problem here is that there may be other producers that are outside our control and we need to stop at some time, it tries max 3 times and then stops anyway. If the queue was persisted we wouldn\u0027t need any of this ....","commit_id":"293dd50436b74f3aca280d9607de9d14c55a1a4a"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"33fcfe02a6c95b68e5a8b7923ea671ff2ad49076","unresolved":false,"context_lines":[{"line_number":8,"context_line":"#Check the ceilometer-agent-central is running"},{"line_number":9,"context_line":"POLLSTER_STATUS\u003d$(service ceilometer-agent-central status | awk \u0027{print $2}\u0027)"},{"line_number":10,"context_line":"echo $POLLSTER_STATUS"},{"line_number":11,"context_line":"if [[ $POLLSTER_STATUS \u003d\u003d \"start/running,\" ]]; then"},{"line_number":12,"context_line":"    echo \"Stopping ceilometer-agent-central\""},{"line_number":13,"context_line":"    service ceilometer-agent-central stop"},{"line_number":14,"context_line":"fi"}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"fa98f980_ee8f8673","line":11,"updated":"2014-09-10 02:39:57.000000000","message":"This is overly specific to Ubuntu, I believe it will fail with systemd or sysvinit.","commit_id":"1d68f9712784e2ac731b10e7df538ba2f0f3213f"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"33fcfe02a6c95b68e5a8b7923ea671ff2ad49076","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"#Verify if the queue is running"},{"line_number":32,"context_line":"QUEUE_STATUS\u003d$(rabbitmqctl list_queues name status | grep \u0027metering.overcloud-controller\u0027 | awk \u0027{print $2}\u0027)"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"if [[ $QUEUE_STATUS \u003d\u003d \"running\" ]]; then"},{"line_number":35,"context_line":"    echo \u0027Metering Queue Running\u0027"}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"fa98f980_ced7224e","line":32,"updated":"2014-09-10 02:39:57.000000000","message":"I don\u0027t think we can assume today that we\u0027ll have rabbitmqctl access from the machine collector is running on. If we need to add that, that will require creating appropriate credentials and stashing them for this script.","commit_id":"1d68f9712784e2ac731b10e7df538ba2f0f3213f"},{"author":{"_account_id":13762,"name":"jiangfei","email":"jiangfei0622@huawei.com","username":"jiangfei"},"change_message_id":"d996d6b3df2b62e392b62a876dd9d15dd9423ca8","unresolved":false,"context_lines":[{"line_number":49,"context_line":"            COUNTER\u003d$((COUNTER+1))"},{"line_number":50,"context_line":"            sleep $COUNTER"},{"line_number":51,"context_line":"        fi"},{"line_number":52,"context_line":"    done"},{"line_number":53,"context_line":"else"},{"line_number":54,"context_line":"    echo \u0027Metering Queue Not Running\u0027"},{"line_number":55,"context_line":"fi"}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"5a890539_59123bb5","line":52,"updated":"2014-11-20 09:11:17.000000000","message":"ceilometer-agent-compuet also can publish samples to ceilometer-collector ,so i think this loop is doesn\u0027t working.\n\nmay be u mean is: ceilometer-collector comsumer the message from rabbitmq, but this message include a lot of samples, u want to avoid these message to miss?","commit_id":"1d68f9712784e2ac731b10e7df538ba2f0f3213f"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"33fcfe02a6c95b68e5a8b7923ea671ff2ad49076","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    done"},{"line_number":53,"context_line":"else"},{"line_number":54,"context_line":"    echo \u0027Metering Queue Not Running\u0027"},{"line_number":55,"context_line":"fi"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"service ceilometer-collector restart"},{"line_number":58,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"fa98f980_4e3a5299","line":55,"updated":"2014-09-10 02:39:57.000000000","message":"I don\u0027t understand why the above loop is needed: rabbit won\u0027t discard unacknowledged messages, and the collector shouldn\u0027t be acknowledging before its commited the message... so this sure seems like evidence of a bug in ceilometer - if so can you please ensure its filed upstream (and prioritised, as this sort of poor behaviour is really problematic as machines and processes may crash at any time and we don\u0027t want to have unintended dataloss scenarios.","commit_id":"1d68f9712784e2ac731b10e7df538ba2f0f3213f"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"33fcfe02a6c95b68e5a8b7923ea671ff2ad49076","unresolved":false,"context_lines":[{"line_number":59,"context_line":"#Start all the previously stopped services"},{"line_number":60,"context_line":"service ceilometer-agent-central start"},{"line_number":61,"context_line":"service ceilometer-agent-notification start"},{"line_number":62,"context_line":"service ceilometer-api start"}],"source_content_type":"application/x-shellscript","patch_set":6,"id":"fa98f980_ae4ade24","line":62,"updated":"2014-09-10 02:39:57.000000000","message":"I don\u0027t think we can assume that the -api is going to be on just this box either - or even on the box at all.","commit_id":"1d68f9712784e2ac731b10e7df538ba2f0f3213f"}]}
