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

/etc/iscsi/initiatorname.iscsi not found #27

Closed
xing-yang opened this issue Jun 10, 2018 · 3 comments
Closed

/etc/iscsi/initiatorname.iscsi not found #27

xing-yang opened this issue Jun 10, 2018 · 3 comments

Comments

@xing-yang
Copy link
Collaborator

xing-yang commented Jun 10, 2018

After installing with opensds-installer ansible in csi mode with LVM backend, the nodeplugin pod failed to start. The reason was /etc/iscsi/initiatorname.iscsi not found. "sudo apt-get install open-iscsi" should be part of the deployment step if LVM is selected.

xyang@ubuntu:~/go/src/github.com/opensds/nbp/csi/server/deploy$ kubectl get pod
NAME READY STATUS RESTARTS AGE
csi-attacher-opensdsplugin-0 2/2 Running 0 7m
csi-nodeplugin-opensdsplugin-sdhs2 1/2 CrashLoopBackOff 6 7m
csi-provisioner-opensdsplugin-0 2/2 Running 0 7m

xyang@ubuntu:~/go/src/github.com/opensds/nbp/csi/server/deploy$ kubectl logs csi-nodeplugin-opensdsplugin-sdhs2 opensds
2018/06/10 15:45:29 proto: unix addr: var/lib/kubelet/plugins/csi-opensdsplugin/csi.sock
2018/06/10 15:45:29 remove sock file: var/lib/kubelet/plugins/csi-opensdsplugin/csi.sock
2018/06/10 15:45:29 start to serve: var/lib/kubelet/plugins/csi-opensdsplugin/csi.sock
2018/06/10 15:45:30 start to GetPluginInfo
2018/06/10 15:45:30 end to GetPluginInfo
2018/06/10 15:45:30 start to GetNodeID
2018/06/10 15:45:30 result from cat: cat: /etc/iscsi/initiatorname.iscsi: No such file or directory
2018/06/10 15:45:30 Error encountered gathering initiator names: exit status 1
2018/06/10 15:45:30 end to GetNodeID
2018/06/10 15:45:31 start to GetPluginInfo
2018/06/10 15:45:31 end to GetPluginInfo
2018/06/10 15:45:31 start to GetNodeID
2018/06/10 15:45:31 result from cat: cat: /etc/iscsi/initiatorname.iscsi: No such file or directory
2018/06/10 15:45:31 Error encountered gathering initiator names: exit status 1
2018/06/10 15:45:31 end to GetNodeID
2018/06/10 15:45:45 start to GetPluginInfo
2018/06/10 15:45:45 end to GetPluginInfo
2018/06/10 15:45:45 start to GetNodeID
2018/06/10 15:45:45 result from cat: cat: /etc/iscsi/initiatorname.iscsi: No such file or directory
2018/06/10 15:45:45 Error encountered gathering initiator names: exit status 1
2018/06/10 15:45:45 end to GetNodeID
2018/06/10 15:46:12 start to GetPluginInfo
2018/06/10 15:46:12 end to GetPluginInfo
2018/06/10 15:46:12 start to GetNodeID
2018/06/10 15:46:12 result from cat: cat: /etc/iscsi/initiatorname.iscsi: No such file or directory
2018/06/10 15:46:12 Error encountered gathering initiator names: exit status 1
2018/06/10 15:46:12 end to GetNodeID
2018/06/10 15:46:54 start to GetPluginInfo
2018/06/10 15:46:54 end to GetPluginInfo
2018/06/10 15:46:54 start to GetNodeID
2018/06/10 15:46:54 result from cat: cat: /etc/iscsi/initiatorname.iscsi: No such file or directory
2018/06/10 15:46:54 Error encountered gathering initiator names: exit status 1
2018/06/10 15:46:54 end to GetNodeID
2018/06/10 15:48:27 start to GetPluginInfo
2018/06/10 15:48:27 end to GetPluginInfo
2018/06/10 15:48:27 start to GetNodeID
2018/06/10 15:48:27 result from cat: cat: /etc/iscsi/initiatorname.iscsi: No such file or directory
2018/06/10 15:48:27 Error encountered gathering initiator names: exit status 1
2018/06/10 15:48:27 end to GetNodeID

@leonwanghui
Copy link
Contributor

Got it, because open-iscsi is installed in some environments by default, so we forgot to add it in the package.

@leonwanghui
Copy link
Contributor

But I am wondering if we can just add open-iscsi package in the Dockerfile of csi-plugin, or install it on the work node which hosts the csi-plugin service?

@leonwanghui
Copy link
Contributor

I found that open-iscsi is already installed when installing nbp modules using ansible, so I guess we should add this package installation in csi Dockfile.

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