Re: OSD bug: extra null list makes json.loads failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 24, 2019 at 7:27 AM Liu, Changcheng
<changcheng.liu@xxxxxxxxx> wrote:
>
> Hi Watkins,
>     controller-0:~$ ceph --version
>     ceph version 13.2.2 (02899bfda814146b021136e9d8e80eba494e1126) mimic (stable)
>     controller-0:~$ ceph osd crush tree --format=json-pretty
>
>     [
>         {
>             "id": -1,
>             "name": "storage-tier",
>             "type": "root",
>             "type_id": 10,
>             "children": [
>                 -3
>             ]
>         },
>         {
>             "id": -3,
>             "name": "group-0",
>             "type": "chassis",
>             "type_id": 2,
>             "pool_weights": {},
>             "children": [
>                 -5,
>                 -4
>             ]
>         },
>         {
>             "id": -4,
>             "name": "storage-0",
>             "type": "host",
>             "type_id": 1,
>             "pool_weights": {},
>             "children": []
>         },
>         {
>             "id": -5,
>             "name": "storage-1",
>             "type": "host",
>             "type_id": 1,
>             "pool_weights": {},
>             "children": []
>         }
>     ]
>     []
>
> B.R.
> Changcheng
>
> On 16:27 Wed 23 Jan, Noah Watkins wrote:
> > On Tue, Jan 22, 2019 at 8:54 PM Liu, Changcheng
> > <changcheng.liu@xxxxxxxxx> wrote:
> > >
> > >           2) result:
> > >              [{"id":-1,"name":"default","type":"root","type_id":10,"children":[]}][]
> >
> > What version of Ceph are you using? Also.. is that the entire command
> > output? For example, on the latest version I would expect there to be
> > a "nodes" item:

Seems like this has been the case for a while, I see it too on an
older 13.2.0 version.

> >
> > {
> >     "nodes": [
> >         {
> >             "id": -1,
> >             "name": "default",
> >             "type": "root",
> >             "type_id": 10,
> >             "children": [
> >                 -3
> >             ]
> > ...
> >     ],
> >     "stray": []
> > }



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux