-
Notifications
You must be signed in to change notification settings - Fork 655
Rancher fails to pull system dockers in cloud-config.yml during boot #2882
Comments
Can you show me more details? Your steps and cloud-config. |
Steps were:
It doesn't matter when I change.the adapter for virtual box, its always the same. I can't regain connection to the new installation |
Here is my Cloud-Config: #cloud-config set ssh-keyssh_authorized_keys:
set hostnamehostname: YourRancher THE RANCHER KEYrancher: resize the device-partitionresize_device: /dev/sda setup networkingnetwork: set system servicesservices_include: setup custom system-servicesservices: |
After Booting, it pulls dockers without problem. Also SSH into the machine works. but during boot, no network seems available...it seems that rancher isn't waiting till the network is up after it booted first...also the ip adress is not displayed in console. |
I tried creating a new virtual machine several times and always run into the same issue - not network on boot to pull custom system services. When I put a script to wait on network before continuing boot, booting hangs and never gets further. The issue also occurs when I don't alter the config. On first boot, everything seems to work fine, but as soon as I reboot, the issue is there... |
Anyone? I tried everything and nothing helps =( please help! I love the approach of Rancher/OS and want to use it in all my server-environments... |
@bd8392 I will give it a try. After that, I will give u feedback ASAP |
Same problems. The first reboot no errors occur, but when changing the |
Yes thank you. I also tried to configure the network like this: rancher: resize the device-partitionresize_device: /dev/sda setup networkingnetwork: |
Any news on this? still had no luck trying to configure... |
Is the DHCP server responding slowly? You'd better check the dhcp server. ROS using
You can try to change the default ROS dhcp timeout to 0(A setting of 0 seconds causes dhcpcd to wait forever to get a lease. ), for example:
|
OK thanks I try it tomorrow :-) |
Are these two DNS (1.0.0.1, 1.1.1.1) correct? |
Yes: https://1.1.1.1/de/ It also Happens when I don't alter DNS |
There is a race condition here, dhcp may take some time to init the networking, and your custom service tries to start before. We can try to add some logic to rc.local to ensure that the custom service can be started.
This approach has been proven to be effective. |
Nope...error persists...also tried it with ros service up network. |
Can someone reproduce/fix the issue? I tried multiple approaches waiting for Network...but they either result in boot-halt or don't take effect. |
I cannot reproduce this issue. Can you run this script to collect some diagnostic information? |
Done... |
I checked your cloud-config, there is a problem in this part.
What did you expect for You should use |
Corrected it but error persists...I thought that the network is not up fast enough to pull the dockers thaty why I tried ros up network...as I said everything works on first boot/install but when i change the cloud-config yml, this error with not connecting comes up. The Network works perfectly fine when the rancher-logo comes up in console. also the ip is displayed and I can connect via putty using hostname. @Jason-ZW has the same error...maybe he can reproduce... |
Has anybody find a solution? I really want to use this os because it would be perfect for my servers... |
Which error do you refer to? If you use that workaround I mentioned, you can ignore that error because the system will activate the services defined in your |
@bd8392 The solution worked for me. There will still be errors prompt but the system will activate the services which you defined in your
Before use workaround:After use workaround: |
Yes but the problem I have here is, that you call docker extra to get the images you need...I need the os to do that at startup completely automatic for my usecase to function...so it should work the following:
|
Sorry completely my fault! Your workaround works now! I was so focused on the console message, that i completely missunderstood the point of @Jason-ZW . The following leads to the solution:
Thanks to all the members in the discussion working that out with me! I really enjoyed it, and appreciate your work and patience! As an enchancement, I would suggest prevent the system from this behaviour from stock on, as it can prevent several users from using this system. It's the best system for docker I've seen so far! So I wish it gets spread ;-). Kind regards |
Cool. |
update:-- script not working for Pi 3. Fails to boot because of ros s up message of system: kernel panic: wait for docker timeout. The script leads to a complete boot-halt, as ros s up leads to infinite wait-for-docker |
Tested with RancherOS v1.5.5-rc1 |
RancherOS Version: (ros os version)
1.5.4
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
Virtual Box
The VM Fails to connect after several boots and pull system dockers. Especially when alter the user-config.yml under /var/lib/rancher/conf/cloud-config.d I encounter problems. Is there a solution? Or is it not ment to be altered with vi? Is there another way to alter cloud-config?
The text was updated successfully, but these errors were encountered: