gluster / gluster-kubernetes

GlusterFS Native Storage Service for Kubernetes
Apache License 2.0
874 stars 390 forks source link

Device /dev/mapper not found #617

Open DineshC001 opened 4 years ago

DineshC001 commented 4 years ago

@nixpanic , Can you please have a look at the below issue. I think this may have to do with your commits beginning - 2f1114a0647f6a392a69fc15b66285aa7a46090f or later.

The gkdeploy script that I run fails with the below error: gk-deploy -gvy --admin-key admin --user-key password --templates_dir -n glusterfs topology.json

fails with the below error: Creating node shared-jenk-xx ... ID: b8c87673c51a25da0c3464252e2bb4c7", "Adding device /dev/mapper/dockergroup-thinpoolstorage ... Unable to add device: Device /dev/mapper/dockergroup-thinpoolstorage not found.", "Creating node shared-jenk-xx ... ID: 1e386f3bf49d1b9f79f4a7e8eda81ae9", "Adding device /dev/mapper/dockergroup-thinpoolstorage ... Unable to add device: Device /dev/mapper/dockergroup-thinpoolstorage not found.

In the deploy-heketi logs, I see this error for my 3 nodes in the cluster: [kubeexec] ERROR 2019/10/21 22:44:48 heketi/pkg/remoteexec/kube/exec.go:85:kube.ExecCommands: Failed to run command [pvcreate -qq --metadatasize=128M --dataalignment=256K '/dev/mapper/dockergroup-thinpoolstorage'] on [pod:glusterfs-rvszd c:glusterfs ns:glusterfs (from host:shared-jenk-xx selector:glusterfs-node)]: Err[command terminated with exit code 5]: Stdout []: Stderr [ Device /dev/mapper/dockergroup-thinpoolstorage not found. [kubeexec] ERROR 2019/10/21 22:44:50 heketi/pkg/remoteexec/kube/exec.go:85:kube.ExecCommands: Failed to run command [pvcreate -qq --metadatasize=128M --dataalignment=256K '/dev/mapper/dockergroup-thinpoolstorage'] on [pod:glusterfs-fp2b8 c:glusterfs ns:glusterfs (from host:shared-jenk-xx selector:glusterfs-node)]: Err[command terminated with exit code 5]: Stdout []: Stderr [ Device /dev/mapper/dockergroup-thinpoolstorage not found. [kubeexec] ERROR 2019/10/21 22:44:52 heketi/pkg/remoteexec/kube/exec.go:85:kube.ExecCommands: Failed to run command [pvcreate -qq --metadatasize=128M --dataalignment=256K '/dev/mapper/dockergroup-thinpoolstorage'] on [pod:glusterfs-njhzd c:glusterfs ns:glusterfs (from host:shared-jenk-xx selector:glusterfs-node)]: Err[command terminated with exit code 5]: Stdout []: Stderr [ Device /dev/mapper/dockergroup-thinpoolstorage not found.

I am able to run the command manually directly on the node without any errors. sudo pvcreate -qq --metadatasize=128M --dataalignment=256K '/dev/mapper/dockergroup-thinpoolstorage'