sodafoundation/nbp

Mount Volume failed Issue for nginx.yaml application

Opened this issue · 2 comments

Is this a BUG REPORT or FEATURE REQUEST?:
kind bug

What happened:

I have installed OpenSDS Cluster on VM-1 (LVM as backend) and Kubernetes Cluster on VM-2(master)
Using OpenSDS CSI installation related yamls I have installed OpenSDS CSI Plugin on kubernetes cluster(VM-2) and have configured OpenSDS endpoint (VM-1).

Then I deployed "nginx.yaml" have given profileID which was created on OpenSDS cluster. It went on ContainerCreating state as shown below
image

After describing pod by kubectl describe pod nginx-block ,volume is attached successfully but was not able to Mount as shown here
image

What you expected to happen:
Volume should be Mount properly for any application.
How to reproduce it (as minimally and precisely as possible):

  1. Install OpenSDS on VM-1 using Ansible
  2. Install Kubernetes Cluster on VM-2
  3. Install CSI plugin on Kubernetes cluster
  4. Deploy nginx application on Kubernetes cluster, by configuring PorfileID in storageClass section.
  5. Check pod kubectl get po
  6. Check nginx pod details kubectl describe pod nginx-block

Anything else we need to know?:

Environment:

  • NBP version: v10.1
  • OS (e.g. from /etc/os-release): Ubuntu 16.04.5 LTS
  • Kernel (e.g. uname -a): Linux k8s-master 4.4.0-131-generic #157-Ubuntu SMP Thu Jul 12 15:51:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Solution : On VM-1( where OpenSDS is installed) run this command :
tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL

then check nginx-block status, it will come into running state

Thanks for mentioning the resolution
Hope this issue is resolved. Pls close this issue if so, thanks