-
Notifications
You must be signed in to change notification settings - Fork 655
RancherOS not persisting user volume #2188
Comments
@zeppelinux Can you give more detailed steps? I tried to do some tests on AWS. Boot a vm with v1.1.1, then upgrade with v1.1.1, cannot persist
Boot a vm with v1.1.1, then upgrade with v1.1.2-rc2, can persist
|
@niusmallnan, here are the steps i did initially:
I added this between 3 & 4: Step 4 produced the same result. Just tried this:
i.e. /etc/kubernetes is still empty, however /var/lib/kubelet is persisted, in fact it remains after reboot of v1.1.1 as well. So, it looks like there is problem with /etc/kubernetes Tried to apply rke on the v1.1.2-rc2 but it fails with: Let me know if you need more info. |
@zeppelinux Thanks your feedback.
Here, you can use I'll try the steps you mentioned. |
@niusmallnan I was not able to use the rke with 'centos' console: But It worked with 'ubuntu' and stayed in the cluster after reboot. Thanks for the workaround! |
@zeppelinux |
@niusmallnan thanks for the info. The bug links you provided look similar to what i'm experiencing with centos console, but I'm not using 'root' user. It's a RancherOS, so only 'rancher' user is available and I'm using it. I'm having some weird problems with DNS resolution inside of the containers running on the RancherOS host with 'ubuntu' console out of the box. Nothing external is resolved, there is some very long bug report threads related to this issue (for example: kubernetes/kubernetes#23474) |
@zeppelinux Here are my steps:
Then you can persist I have confirmed on AWS, you can check it on your bare metal. |
@niusmallnan it works! I'm glad you nailed it. Cheers! |
Tested with RancherOS v1.2.0-rc2 |
RancherOS Version: (ros os version)
1.1.1
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
Baremetal
I reported the issue initially for rke:
rancher/rke#178
But it seems like there is some issue with the RancherOS not persisting the user volumes i.e.
$sudo ros config export
$ ls -la /etc/kubernetes/
total 12
drwxr-xr-x 3 root root 4096 Dec 21 23:54 .
drwxr-xr-x 1 root root 4096 Dec 21 23:52 ..
drwxr-xr-x 2 root root 4096 Dec 21 23:54 ssl
[rancher@kub2 ~]$
$sudo reboot
/etc/kubernetes is empty
The text was updated successfully, but these errors were encountered: