OK, I'll file issue in the tracker. Thanks! On Fri, Mar 2, 2018 at 11:07 AM, John Spray <jspray@xxxxxxxxxx> wrote: > On Fri, Mar 2, 2018 at 3:46 PM, Wyllys Ingersoll > <wyllys.ingersoll@xxxxxxxxxxxxxx> wrote: >> Is this a bug? > > Yep, that's a bug. > > John > >> When requesting JSON formatted results for querying for pool >> parameters, the list that comes back is not valid JSON. Its just a >> series of records, not a comma separated JSON list. >> >> For example: >> >> # ceph osd pool get cephfs_data all --format json-pretty >> >> { >> "pool": "cephfs_data", >> "pool_id": 1, >> "size": 2 >> } >> { >> "pool": "cephfs_data", >> "pool_id": 1, >> "min_size": 1 >> } >> { >> "pool": "cephfs_data", >> "pool_id": 1, >> "crash_replay_interval": 0 >> } >> { >> "pool": "cephfs_data", >> "pool_id": 1, >> "pg_num": 256 >> } >> ... >> >> Note that there are no commas separating the items and the overall >> list is not enclosed in []. >> >> This cannot be parsed with standard json tools like the python json >> module. I would expect that when requesting JSON, it would return >> valid JSON. >> >> -Wyllys Ingersoll >> Keeper Technology >> -- >> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in >> the body of a message to majordomo@xxxxxxxxxxxxxxx >> More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html