You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
Using Openstack cloud provider, I am not able to mount my Cinder volumes in pods. I am getting this error in my pod events:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 16s default-scheduler Successfully assigned mongo-controller-5sktj to walter-atmosphere-minion
Normal SuccessfulMountVolume 16s kubelet, walter-atmosphere-minion MountVolume.SetUp succeeded for volume "default-token-7cx2x"
Warning FailedMount 16s kubelet, walter-atmosphere-minion MountVolume.SetUp failed for volume "walter-test" : mount failed: exit status 32
Mounting command: systemd-run
Mounting arguments: --description=Kubernetes transient mount for /var/lib/kubelet/pods/7df75a03-1e58-11e8-93a7-fa163ec86641/volumes/kubernetes.io~cinder/walter-test --scope -- mount -o bind /var/lib/kubelet/plugins/kubernetes.io/cinder/mounts/ea7e96fe-24cb-40f3-9fb3-420ac7ac1752 /var/lib/kubelet/pods/7df75a03-1e58-11e8-93a7-fa163ec86641/volumes/kubernetes.io~cinder/walter-test
Output: Running scope as unit run-r488c59ffc9324542af0c41f646f6ff99.scope.
mount: special device /var/lib/kubelet/plugins/kubernetes.io/cinder/mounts/ea7e96fe-24cb-40f3-9fb3-420ac7ac1752 does not exist
Warning FailedMount 15s kubelet, walter-atmosphere-minion MountVolume.SetUp failed for volume "walter-test" : mount failed: exit status 32
Mounting command: systemd-run
My openstack-cloud-provider is showing the following error:
ERROR: logging before flag.Parse: I0302 20:36:33.026783 1 openstack_instances.go:46] Claiming to support Instances
ERROR: logging before flag.Parse: I0302 20:36:38.029334 1 openstack_instances.go:46] Claiming to support Instances
ERROR: logging before flag.Parse: I0302 20:36:43.035928 1 openstack_instances.go:46] Claiming to support Instances
(...)
Is it important to know that, before this error, I was getting another error:
ERROR: logging before flag.Parse: E0302 18:34:19.759493 1 reflector.go:205] git.openstack.org/openstack/openstack-cloud-controller-manager/vendor/k8s.io/kubernetes/pkg/controller/cloud/pvlcontroller.go:109: Failed to list *v1.PersistentVolume: persistentvolumes is forbidden: User "system:serviceaccount:kube-system:pvl-controller" cannot list persistentvolumes at the cluster scope
Then, I work around it by runnig the following commands:
What you expected to happen:
I expect that my Cinder Openstack volume could be mounted in my pod.
How to reproduce it (as minimally and precisely as possible):
Deploy the openstack-cloud-provider in your cluster by running the command kubectl create -f https://raw.githubusercontent.com/dims/openstack-cloud-controller-manager/master/manifests/controller-manager/openstack-cloud-controller-manager-ds.yaml
I made sure that it works by creating an internal service LoadBalancer and it works fine for me.
I should to did a workaround(creating the permissive bind) mentioned before, because my controller wasn't able to access the persistent volume API.
Create a volume in OpenStack
I created it by running the command openstack volume create walter-test --size 10, which gave me a volume:
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
Using Openstack cloud provider, I am not able to mount my Cinder volumes in pods. I am getting this error in my pod events:
My
openstack-cloud-provider
is showing the following error:Is it important to know that, before this error, I was getting another error:
Then, I work around it by runnig the following commands:
What you expected to happen:
I expect that my Cinder Openstack volume could be mounted in my pod.
How to reproduce it (as minimally and precisely as possible):
openstack-cloud-provider
in your cluster by running the commandkubectl create -f https://raw.githubusercontent.com/dims/openstack-cloud-controller-manager/master/manifests/controller-manager/openstack-cloud-controller-manager-ds.yaml
openstack volume create walter-test --size 10
, which gave me a volume:Anything else we need to know?:
Environment:
dims/openstack-cloud-controller-manager:0.1.0
uname -a
):Linux walter-atmosphere 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
kubeadm
The text was updated successfully, but these errors were encountered: