[Gluster-users] create volume with glusterd2 fails with "HTTP/1.1 500 Internal Server Error"

Davide Obbi davide.obbi at booking.com
Mon Aug 13 16:08:59 UTC 2018


Hi,

i'm trying to create a volume using glusterd2 however curl does not return
anything and in verbose mode i get the above mentioned error,  the only
gluster service on the hosts is "glusterd2.service"

/var/log/glusterd2/glusterd2.log:
time="2018-08-13 18:05:15.395479" level=info msg="runtime error: index out
of range"

JSON FILE:
{
        "name": "test01",
        "subvols": [
            {
                "type": "replicate",
                "bricks": [
                    {"peerid": "2f468973-8de9-4dbf-90c2-7236e229697d",
"path": "/srv/gfs/test01/brk01"},

                    {"peerid": "ad228d0e-e7b9-4d02-a863-94c74bd3d843",
"path": "/srv/gfs/test01/brk01"},

                    {"peerid": "de7ea1d7-5566-40f4-bc34-0d68bfd48193",
"path": "/srv/gfs/test01/brk01"}

                ],
                "replica": 3
            }
        ],
        "force": false
}

COMMAND:
curl -v -X POST http://localhost:24007/v1/volumes --data @test01.json -H
'Content-Type: application/json'
# i have also tried with fqd from localhost

ERROR:
* About to connect() to localhost port 24007 (#0)
*   Trying ::1...
* Connected to localhost (::1) port 24007 (#0)
> POST /v1/volumes HTTP/1.1
> User-Agent: curl/7.29.0
> Host: localhost:24007
> Accept: */*
> Content-Type: application/json
> Content-Length: 525
>
* upload completely sent off: 525 out of 525 bytes
< HTTP/1.1 500 Internal Server Error
< X-Gluster-Cluster-Id: 04385f96-4b7e-4afa-9366-8d1a3b30f36e
< X-Gluster-Peer-Id: ad228d0e-e7b9-4d02-a863-94c74bd3d843
< X-Request-Id: fea765a5-1014-48f7-919c-3431278d14ab
< Date: Mon, 13 Aug 2018 15:57:24 GMT
< Content-Length: 0
< Content-Type: text/plain; charset=utf-8
<
* Connection #0 to host localhost left intact

VERSIONS:
glusterd2.x86_64
     4.1.0-1.el7
glusterfs-server.x86_64
      4.1.2-1.el7

PEERS:
+--------------------------------------+------------------------------------------+---------------------+--------------------------+--------+

|                  ID                  |                   NAME
       |  CLIENT ADDRESSES   |      PEER ADDRESSES      | ONLINE |

+--------------------------------------+------------------------------------------+---------------------+--------------------------+--------+

| 2f468973-8de9-4dbf-90c2-7236e229697d | gluster-1009
       | 127.0.0.1:24007     | gluster-1009:24008       | yes    |

|                                      |
      | 10.10.10.19:24007   | 10.10.10.19:24008        |        |

| ad228d0e-e7b9-4d02-a863-94c74bd3d843 | gluster-1005
       | 127.0.0.1:24007     | 10.10.10.18:24008        | yes    |

|                                      |
      | 10.10.10.18:24007   |                          |        |

| de7ea1d7-5566-40f4-bc34-0d68bfd48193 | gluster-1008
       | 127.0.0.1:24007     | gluster-1008:24008       | yes    |

|                                      |
      | 10.10.10.23:24007   | 10.10.10.23:24008        |        |

+--------------------------------------+------------------------------------------+---------------------+--------------------------+--------+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20180813/2f001d2a/attachment.html>


More information about the Gluster-users mailing list