gluster / gluster-kubernetes

GlusterFS Native Storage Service for Kubernetes
Apache License 2.0
875 stars 389 forks source link

failed to create block volumes #550

Open Madhu-1 opened 5 years ago

Madhu-1 commented 5 years ago

logs

[root@heketi-7495cdc5fd-x7nnw /]# heketi-cli blockvolume create --size=1
Error: command terminated with exit code 255

gluster-block version

[root@node0 /]# gluster-block --version
gluster-block (0.3)
Repository rev: https://github.com/gluster/gluster-block.git
Copyright (c) 2016 Red Hat, Inc. <https://redhat.com/>
gluster-block comes with ABSOLUTELY NO WARRANTY.
It is licensed to you under your choice of the GNU Lesser
General Public License, version 3 or any later version (LGPLv3
or later), or the GNU General Public License, version 2 (GPLv2),
in all cases as published by the Free Software Foundation.
[root@node0 /]# 

heketi logs

[negroni] Started GET /queue/42de92306b371f03b44f82533271f5ac [negroni] Completed 200 OK in 59.862µs [kubeexec] ERROR 2019/01/08 06:00:03 heketi/pkg/remoteexec/kube/exec.go:85:kube.ExecCommands: Failed to run command [gluster-block create vol_f93469188450d04a3eb1f1dc0fed693d/blockvol_83052869aaa046aaa4d73d5b7b894213 ha 3 auth disable prealloc full 192.168.10.102,192.168.10.100,192.168.10.101 1GiB --json] on [pod:glusterfs-h9n75 c:glusterfs ns:default (from host:node2 selector:glusterfs-node)]: Err[command terminated with exit code 255]: Stdout [{ "RESULT": "FAIL", "errCode": 255, "errMsg": "failed to configure on 192.168.10.102 configure failed\nfailed to configure on 192.168.10.100 configure failed\nfailed to configure on 192.168.10.101 configure failed" } ]: Stderr []

Madhu-1 commented 5 years ago

@nixpanic

Madhu-1 commented 5 years ago

@pkalever ^^

pkalever commented 5 years ago

@Madhu-1 what is the OS version ?

Could you give the output of, # cat /etc/redhat-release; uname -a; rpm -qa | grep -e tcmu -e gluster-block -e targetcli -e rtslib -e configshell

Madhu-1 commented 5 years ago

@pkalever

cat /etc/redhat-release; uname -a; rpm -qa | grep -e tcmu -e gluster-block -e targetcli -e rtslib -e configshell
CentOS Linux release 7.6.1810 (Core) 
Linux node1 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
targetcli-2.1.fb46-7.el7.noarch
tcmu-runner-1.3.0-0.2rc4.el7.x86_64
gluster-block-0.3-2.el7.x86_64
python-rtslib-2.1.fb63-13.el7.noarch
python-configshell-1.1.fb23-5.el7.noarch
libtcmu-1.3.0-0.2rc4.el7.x86_64
tcmu-runner-handler-glfs-1.3.0-0.2rc4.el7.x86_64
Madhu-1 commented 5 years ago

@pkalever still facing the same issue after installing gluster-block from nightly build

 cat /etc/redhat-release; uname -a; rpm -qa | grep -e tcmu -e gluster-block -e targetcli -e rtslib -e configshell
CentOS Linux release 7.6.1810 (Core) 
Linux node2 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
python-rtslib-2.1.fb63-13.el7.noarch
tcmu-runner-1.4.0.90.g98fa105-0.el7.x86_64
python-configshell-1.1.fb23-5.el7.noarch
gluster-block-0fd2ea4-1.x86_64
libtcmu-1.4.0.90.g98fa105-0.el7.x86_64
targetcli-2.1.fb46-7.el7.noarch
pkalever commented 5 years ago

@Madhu-1 the issue looks like something related to targetcli version or compatibility. I need to check the setup. Right now, I'm in between something. Will work with you later or tomorrow on this.

Madhu-1 commented 5 years ago

@pkalever sure