Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mount Volume failed Issue for nginx.yaml application #356

Open
Click2Cloud-Gamma opened this issue Feb 13, 2020 · 2 comments
Open

Mount Volume failed Issue for nginx.yaml application #356

Click2Cloud-Gamma opened this issue Feb 13, 2020 · 2 comments

Comments

@Click2Cloud-Gamma
Copy link

Click2Cloud-Gamma commented Feb 13, 2020

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 Update service broker dockerfile #157-Ubuntu SMP Thu Jul 12 15:51:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
@Click2Cloud-Gamma
Copy link
Author

Click2Cloud-Gamma commented Feb 13, 2020

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

@sushanthakumar
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants