-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Problem with local_volume_provisioner DaemonSet #5389
Comments
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Any news on this? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
@irizzant sorry about the delay, if I understand the doc and your issue the only missing thing is
Would you be able to submit a PR ? if you have a local env with the test case it's easier to validate for you; thank you |
See above the required PR |
Hello
I was trying to enable local volume provisioning for my LVM provided block devices in the worker nodes.
After I configured
addons.yaml
like this:I ran the follwing:
and I didn't get any provisioner's pod running.
I then tried this:
and this time Kubespray created the provisioner's pods correctly but they didn't provide any PV.
After inspecting the logs I found:
After further investigation I found the problem is in the DaemonSet.
Following the offical docs I created a symbolic link in
/mnt/disk
folder for my devices, but the aforementioned DaemonSet only mounts the/mnt/disk
folder in the container which in turns links to a folder in/dev/
which is NOT mounted in the container too.I found the solution in the local volume provisioner helm chart.
As you can see there is an additional volume mount:
If I change the DaemonSet to add the
/dev
mount the local volume provisioner bootstraps without any error.Environment:
Cloud provider or hardware configuration: Baremetal
OS (
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
): Ubuntu 18.04 LTSVersion of Ansible (
ansible --version
):ansible 2.7.12
config file = /home/kubespray/kubespray/ansible.cfg
configured module search path = ['/home/kubespray/kubespray/library']
ansible python module location = /usr/local/lib/python3.6/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.6.8 (default, Oct 7 2019, 12:59:55) [GCC 8.3.0]
Kubespray version (commit) (
git rev-parse --short HEAD
): f3c072fNetwork plugin used: Calico
Copy of your inventory file:
Command used to invoke ansible:
Output of ansible run:
https://gist.github.com/irizzant/bd9b6d896052a99e1b9bdb530bbc8416
Anything else do we need to know:
The text was updated successfully, but these errors were encountered: