)]}'
{"projects/60_nova/resources.sh":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"2e45202fcf606c6ec542d998583c0fcc601d273f","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    key\u003d\"$1\""},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    provider\u003d$(openstack resource provider list -f value | head -n1 | cut -d \u0027 \u0027 -f 1)"},{"line_number":47,"context_line":"    openstack resource provider inventory list -f value $provider | grep \"^$key\" | cut -d \u0027 \u0027 -f 3"},{"line_number":48,"context_line":"}"},{"line_number":49,"context_line":""}],"source_content_type":"text/x-sh","patch_set":6,"id":"3f79a3b5_922a372a","line":46,"updated":"2018-08-29 15:28:42.000000000","message":"Should add a comment here. I was going to say just use the -c ID option to the command, but you\u0027re trying to get the first provider listed, right?","commit_id":"d66000bc4857d0d51903d4183b991a0e22417ebd"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"2e45202fcf606c6ec542d998583c0fcc601d273f","unresolved":false,"context_lines":[{"line_number":54,"context_line":"    consumer\u003d\"$1\""},{"line_number":55,"context_line":"    key\u003d\"$2\""},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    openstack resource provider allocation show -f value $consumer | grep -o \".${key}.: [0-9]*\" | cut -d \u0027 \u0027 -f 2"},{"line_number":58,"context_line":"}"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"function create {"}],"source_content_type":"text/x-sh","patch_set":6,"id":"3f79a3b5_52e1fffb","line":57,"updated":"2018-08-29 15:28:42.000000000","message":"A comment would be good here too. I guess -c isn\u0027t usable because of how the output is formatted?","commit_id":"d66000bc4857d0d51903d4183b991a0e22417ebd"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"2e45202fcf606c6ec542d998583c0fcc601d273f","unresolved":false,"context_lines":[{"line_number":133,"context_line":"    source_quiet $TOP_DIR/openrc admin admin"},{"line_number":134,"context_line":"    local key"},{"line_number":135,"context_line":"    for key in MEMORY_MB VCPU DISK_GB; do"},{"line_number":136,"context_line":"\tresource_save nova nova_inventory_$key $(_get_inventory_value $key)"},{"line_number":137,"context_line":"    done"},{"line_number":138,"context_line":"    for key in MEMORY_MB VCPU DISK_GB; do"},{"line_number":139,"context_line":"\tresource_save nova nova_server_allocation_MEMORY_MB $(_get_allocation_value $uuid MEMORY_MB)"}],"source_content_type":"text/x-sh","patch_set":6,"id":"3f79a3b5_f2edabf0","line":136,"range":{"start_line":136,"start_character":0,"end_line":136,"end_character":1},"updated":"2018-08-29 15:28:42.000000000","message":"sweet heaven","commit_id":"d66000bc4857d0d51903d4183b991a0e22417ebd"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"2e45202fcf606c6ec542d998583c0fcc601d273f","unresolved":false,"context_lines":[{"line_number":171,"context_line":"    source_quiet $TOP_DIR/openrc admin admin"},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"    for key in MEMORY_MB VCPU; do"},{"line_number":174,"context_line":"\tcval\u003d$(_get_inventory_value $key)"},{"line_number":175,"context_line":"\tsval\u003d$(resource_get nova nova_inventory_$key)"},{"line_number":176,"context_line":"\tif [ \"$cval\" !\u003d \"$sval\" ]; then"},{"line_number":177,"context_line":"\t    die $LINENO \"Checking inventory value ${key}\u003d${sval} does not match current value ${cval}\""}],"source_content_type":"text/x-sh","patch_set":6,"id":"3f79a3b5_d2be6fd3","line":174,"range":{"start_line":174,"start_character":0,"end_line":174,"end_character":1},"updated":"2018-08-29 15:28:42.000000000","message":"won\u0027t someone please think of the children","commit_id":"d66000bc4857d0d51903d4183b991a0e22417ebd"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"76e8f66d23e921d6ac4818fe0973be3509253d2f","unresolved":false,"context_lines":[{"line_number":172,"context_line":"    # Verify inventory and allocation values (requires admin)"},{"line_number":173,"context_line":"    source_quiet $TOP_DIR/openrc admin admin"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"    for key in MEMORY_MB VCPU; do"},{"line_number":176,"context_line":"        cval\u003d$(_get_inventory_value $key)"},{"line_number":177,"context_line":"        sval\u003d$(resource_get nova nova_inventory_$key)"},{"line_number":178,"context_line":"        if [ \"$cval\" !\u003d \"$sval\" ]; then"}],"source_content_type":"text/x-sh","patch_set":9,"id":"3f79a3b5_cd548d01","line":175,"range":{"start_line":175,"start_character":15,"end_line":175,"end_character":29},"updated":"2018-08-29 21:00:42.000000000","message":"Shouldn\u0027t we have DISK_GB in here too?","commit_id":"538fca216082f06d12aac2721fe558f51d61518a"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"0b6eeb53831531e49993952e50070895ebc18ba5","unresolved":false,"context_lines":[{"line_number":134,"context_line":"    # ping check on the way up to ensure we\u0027re really running"},{"line_number":135,"context_line":"    ping_check_public $ip 30"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    # Save some inventory and allocation values (requires admin)"},{"line_number":138,"context_line":"    source_quiet $TOP_DIR/openrc admin admin"},{"line_number":139,"context_line":"    local key"},{"line_number":140,"context_line":"    for key in $NOVA_VERIFY_RESOURCE_CLASSES; do"}],"source_content_type":"text/x-sh","patch_set":10,"id":"3f79a3b5_d66ac3eb","line":137,"updated":"2018-08-30 16:53:04.000000000","message":"ack: http://logs.openstack.org/06/597206/10/check/neutron-grenade/ba79aad/logs/grenade_save/grenade_db.ini","commit_id":"0b1a8e3c8d7addc672ad4e083234e805f7cb2d67"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"0b6eeb53831531e49993952e50070895ebc18ba5","unresolved":false,"context_lines":[{"line_number":176,"context_line":"    for key in $NOVA_VERIFY_RESOURCE_CLASSES; do"},{"line_number":177,"context_line":"        cval\u003d$(_get_inventory_value $key)"},{"line_number":178,"context_line":"        sval\u003d$(resource_get nova nova_inventory_$key)"},{"line_number":179,"context_line":"        if [ \"$cval\" !\u003d \"$sval\" ]; then"},{"line_number":180,"context_line":"            die $LINENO \"Checking inventory value ${key}\u003d${sval} does not match current value ${cval}\""},{"line_number":181,"context_line":"        fi"},{"line_number":182,"context_line":"    done"}],"source_content_type":"text/x-sh","patch_set":10,"id":"3f79a3b5_965d2b4a","line":179,"updated":"2018-08-30 16:53:04.000000000","message":"ack: http://logs.openstack.org/06/597206/10/check/neutron-grenade/ba79aad/logs/grenade.sh.txt.gz#_2018-08-29_21_55_01_746","commit_id":"0b1a8e3c8d7addc672ad4e083234e805f7cb2d67"}]}
