)]}'
{"ceph-client/templates/bin/pool/_init.sh.tpl":[{"author":{"_account_id":23928,"name":"Pete Birley","email":"petebirley@gmail.com","username":"portdirect"},"change_message_id":"3cc0d7b9e64458f357a936142f87b25229571246","unresolved":false,"context_lines":[{"line_number":95,"context_line":"    while [ $(ceph --cluster \"${CLUSTER}\" -s | grep creating -c) -gt 0 ]; do echo -n .;sleep 1; done"},{"line_number":96,"context_line":"    ceph --cluster \"${CLUSTER}\" osd pool application enable \"${POOL_NAME}\" \"${POOL_APPLICATION}\""},{"line_number":97,"context_line":"  else"},{"line_number":98,"context_line":"    if [[ -z \"$(ceph osd versions | grep ceph\\ version | grep -v nautilus)\" ]]; then"},{"line_number":99,"context_line":"      ceph --cluster \"${CLUSTER}\" osd pool set \"${POOL_NAME}\" pg_autoscale_mode on"},{"line_number":100,"context_line":"    fi"},{"line_number":101,"context_line":"  fi"},{"line_number":102,"context_line":"#"},{"line_number":103,"context_line":"# Make sure pool is not protected after creation AND expansion so we can manipulate its settings."}],"source_content_type":"text/x-smarty","patch_set":7,"id":"1fa4df85_b1aad36e","line":100,"range":{"start_line":98,"start_character":0,"end_line":100,"end_character":6},"updated":"2020-03-11 18:57:50.000000000","message":"why is this only enabled if the pool already exists?","commit_id":"463f7cc0807394d4a8b1244129eedfa05c3e8d04"},{"author":{"_account_id":18511,"name":"Brian Wickersham","email":"bkw86@bellsouth.net","username":"bw6938"},"change_message_id":"c4ef2cd54a3dd77af40cca5e10387706dc157a63","unresolved":false,"context_lines":[{"line_number":95,"context_line":"    while [ $(ceph --cluster \"${CLUSTER}\" -s | grep creating -c) -gt 0 ]; do echo -n .;sleep 1; done"},{"line_number":96,"context_line":"    ceph --cluster \"${CLUSTER}\" osd pool application enable \"${POOL_NAME}\" \"${POOL_APPLICATION}\""},{"line_number":97,"context_line":"  else"},{"line_number":98,"context_line":"    if [[ -z \"$(ceph osd versions | grep ceph\\ version | grep -v nautilus)\" ]]; then"},{"line_number":99,"context_line":"      ceph --cluster \"${CLUSTER}\" osd pool set \"${POOL_NAME}\" pg_autoscale_mode on"},{"line_number":100,"context_line":"    fi"},{"line_number":101,"context_line":"  fi"},{"line_number":102,"context_line":"#"},{"line_number":103,"context_line":"# Make sure pool is not protected after creation AND expansion so we can manipulate its settings."}],"source_content_type":"text/x-smarty","patch_set":7,"id":"1fa4df85_71777b0a","line":100,"range":{"start_line":98,"start_character":0,"end_line":100,"end_character":6},"in_reply_to":"1fa4df85_b1aad36e","updated":"2020-03-11 19:27:16.000000000","message":"new pools for nautilus release automatically have pg_autoscaler turned on via the function call on line 176 to the enable_autoscaling function on line 79.","commit_id":"463f7cc0807394d4a8b1244129eedfa05c3e8d04"},{"author":{"_account_id":23928,"name":"Pete Birley","email":"petebirley@gmail.com","username":"portdirect"},"change_message_id":"3cc0d7b9e64458f357a936142f87b25229571246","unresolved":false,"context_lines":[{"line_number":111,"context_line":"  ceph --cluster \"${CLUSTER}\" osd pool set \"${POOL_NAME}\" crush_rule \"${POOL_CRUSH_RULE}\""},{"line_number":112,"context_line":"# set pg_num to pool"},{"line_number":113,"context_line":"  if [[ -z \"$(ceph osd versions | grep ceph\\ version | grep -v nautilus)\" ]]; then"},{"line_number":114,"context_line":"    ceph --cluster \"${CLUSTER}\" osd pool set \"${POOL_NAME}\" target_size_ratio ${TARGET_SIZE_RATIO}"},{"line_number":115,"context_line":"  else"},{"line_number":116,"context_line":"    for PG_PARAM in pg_num pgp_num; do"},{"line_number":117,"context_line":"      CURRENT_PG_VALUE\u003d$(ceph --cluster \"${CLUSTER}\" osd pool get \"${POOL_NAME}\" \"${PG_PARAM}\" | awk \"/^${PG_PARAM}:/ { print \\$NF }\")"}],"source_content_type":"text/x-smarty","patch_set":7,"id":"1fa4df85_918d5733","line":114,"range":{"start_line":114,"start_character":78,"end_line":114,"end_character":98},"updated":"2020-03-11 18:57:50.000000000","message":"nit - can you quote this to be consistent with other vars in the script","commit_id":"463f7cc0807394d4a8b1244129eedfa05c3e8d04"},{"author":{"_account_id":18511,"name":"Brian Wickersham","email":"bkw86@bellsouth.net","username":"bw6938"},"change_message_id":"c4ef2cd54a3dd77af40cca5e10387706dc157a63","unresolved":false,"context_lines":[{"line_number":111,"context_line":"  ceph --cluster \"${CLUSTER}\" osd pool set \"${POOL_NAME}\" crush_rule \"${POOL_CRUSH_RULE}\""},{"line_number":112,"context_line":"# set pg_num to pool"},{"line_number":113,"context_line":"  if [[ -z \"$(ceph osd versions | grep ceph\\ version | grep -v nautilus)\" ]]; then"},{"line_number":114,"context_line":"    ceph --cluster \"${CLUSTER}\" osd pool set \"${POOL_NAME}\" target_size_ratio ${TARGET_SIZE_RATIO}"},{"line_number":115,"context_line":"  else"},{"line_number":116,"context_line":"    for PG_PARAM in pg_num pgp_num; do"},{"line_number":117,"context_line":"      CURRENT_PG_VALUE\u003d$(ceph --cluster \"${CLUSTER}\" osd pool get \"${POOL_NAME}\" \"${PG_PARAM}\" | awk \"/^${PG_PARAM}:/ { print \\$NF }\")"}],"source_content_type":"text/x-smarty","patch_set":7,"id":"1fa4df85_318103c5","line":114,"range":{"start_line":114,"start_character":78,"end_line":114,"end_character":98},"in_reply_to":"1fa4df85_918d5733","updated":"2020-03-11 19:27:16.000000000","message":"done","commit_id":"463f7cc0807394d4a8b1244129eedfa05c3e8d04"},{"author":{"_account_id":23928,"name":"Pete Birley","email":"petebirley@gmail.com","username":"portdirect"},"change_message_id":"27cae9b8030dc96e65ecf8b7e34fb27f6454b638","unresolved":false,"context_lines":[{"line_number":157,"context_line":"  POOL_PROTECTION\u003d$8"},{"line_number":158,"context_line":"  CLUSTER_CAPACITY\u003d$9"},{"line_number":159,"context_line":"  TOTAL_OSDS\u003d{{.Values.conf.pool.target.osd}}"},{"line_number":160,"context_line":"  POOL_PLACEMENT_GROUPS\u003d$(/tmp/pool-calc.py ${POOL_REPLICATION} ${TOTAL_OSDS} ${TOTAL_DATA_PERCENT} ${TARGET_PG_PER_OSD})"},{"line_number":161,"context_line":"  create_pool \"${POOL_APPLICATION}\" \"${POOL_NAME}\" \"${POOL_REPLICATION}\" \"${TOTAL_DATA_PERCENT}\" \"${POOL_PLACEMENT_GROUPS}\" \"${POOL_CRUSH_RULE}\" \"${POOL_PROTECTION}\""},{"line_number":162,"context_line":"  POOL_REPLICAS\u003d$(ceph --cluster \"${CLUSTER}\" osd pool get \"${POOL_NAME}\" size | awk \u0027{print $2}\u0027)"},{"line_number":163,"context_line":"  POOL_QUOTA\u003d$(python -c \"print(int($CLUSTER_CAPACITY * $TOTAL_DATA_PERCENT * $TARGET_QUOTA / $POOL_REPLICAS / 100 / 100))\")"}],"source_content_type":"text/x-smarty","patch_set":7,"id":"1fa4df85_f1c92b5a","line":160,"range":{"start_line":160,"start_character":2,"end_line":160,"end_character":121},"updated":"2020-03-11 18:59:07.000000000","message":"is there any need for this anymore?","commit_id":"463f7cc0807394d4a8b1244129eedfa05c3e8d04"},{"author":{"_account_id":18511,"name":"Brian Wickersham","email":"bkw86@bellsouth.net","username":"bw6938"},"change_message_id":"c4ef2cd54a3dd77af40cca5e10387706dc157a63","unresolved":false,"context_lines":[{"line_number":157,"context_line":"  POOL_PROTECTION\u003d$8"},{"line_number":158,"context_line":"  CLUSTER_CAPACITY\u003d$9"},{"line_number":159,"context_line":"  TOTAL_OSDS\u003d{{.Values.conf.pool.target.osd}}"},{"line_number":160,"context_line":"  POOL_PLACEMENT_GROUPS\u003d$(/tmp/pool-calc.py ${POOL_REPLICATION} ${TOTAL_OSDS} ${TOTAL_DATA_PERCENT} ${TARGET_PG_PER_OSD})"},{"line_number":161,"context_line":"  create_pool \"${POOL_APPLICATION}\" \"${POOL_NAME}\" \"${POOL_REPLICATION}\" \"${TOTAL_DATA_PERCENT}\" \"${POOL_PLACEMENT_GROUPS}\" \"${POOL_CRUSH_RULE}\" \"${POOL_PROTECTION}\""},{"line_number":162,"context_line":"  POOL_REPLICAS\u003d$(ceph --cluster \"${CLUSTER}\" osd pool get \"${POOL_NAME}\" size | awk \u0027{print $2}\u0027)"},{"line_number":163,"context_line":"  POOL_QUOTA\u003d$(python -c \"print(int($CLUSTER_CAPACITY * $TOTAL_DATA_PERCENT * $TARGET_QUOTA / $POOL_REPLICAS / 100 / 100))\")"}],"source_content_type":"text/x-smarty","patch_set":7,"id":"1fa4df85_91f31774","line":160,"range":{"start_line":160,"start_character":2,"end_line":160,"end_character":121},"in_reply_to":"1fa4df85_f1c92b5a","updated":"2020-03-11 19:27:16.000000000","message":"still needed for non-nautilus ceph releases.","commit_id":"463f7cc0807394d4a8b1244129eedfa05c3e8d04"}]}
