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

kubelet syscontainer can't get the /dev/disk of host #171

Open
FengyunPan2 opened this issue Apr 11, 2018 · 3 comments
Open

kubelet syscontainer can't get the /dev/disk of host #171

FengyunPan2 opened this issue Apr 11, 2018 · 3 comments
Assignees

Comments

@FengyunPan2
Copy link

My openstack env have not metadata service, so I can't get vm metadata by metadata service.
When I start kubelet, I get he following error:
1 openstack_instances.go:39] openstack.Instances() called
3 09:31:34.882593 1 openstack_instances.go:46] Claiming to support Instances
3 09:31:34.890697 1 metadata.go:151] Attempting to fetch metadata from http://169.254.169.254/openstack/2012-08-10/meta_data.json
r setting the external host value: failed to get NodeName from "openstack" cloud provider: unexpected status code when reading metadata from http://169.254.169.254/openstack/2012-08-10/meta_

the reason is:
kubernetes openstack cloud provider can't get the vm metadata from '/dev/disk', then try to use metadata service.

fix:
Bind /dev/disk for kubernete service.

@FengyunPan2
Copy link
Author

/assign

FengyunPan2 added a commit to FengyunPan2/atomic-system-containers that referenced this issue Apr 11, 2018
When kubernetes openstack cloud provider get vm metadata by
configdriver, it get vm info from '/dev/disk/*', so we should bind
'/dev/disk' for kube-apiserver\kube-controller-manager and kubelet.

Fix projectatomic#171
cc @strigazi
@strigazi
Copy link
Contributor

strigazi commented May 3, 2018

We mount /dev for kubelet.

For kube-apiserver and kube-controller-manager, the problem appears in devstack too?

@FengyunPan2
Copy link
Author

Just for kubelet.
/close

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

3 participants