rancher / os

Tiny Linux distro that runs the entire OS as Docker containers
https://rancher.com/docs/os/v1.x/en/
Apache License 2.0
6.44k stars 656 forks source link

Config file is not updating properly #2722

Open itstamil opened 5 years ago

itstamil commented 5 years ago

Hi, I was trying to create an bridge using network-config.yml

rancher: network: interfaces: wanbr: bridge: true address: 192.168.15.15/24 gateway: 192.168.15.1 etho: bridge: wanbr eth1: bridge: wanbr

The configuration was updated and applied on the ROS using this comment

ros config merge -i network-config.yml

The issue is i can't delete the wanbr from the os by updating this configuration

rancher: network: interfaces: etho: dhcp: true eth1: dhcp: false

But the bridge is not removed from the ROS

Please help to update the configuration dynamically

Regards Tamil

itstamil commented 5 years ago

hi @niusmallnan is there is any answer available for me to proceed Regards Tamil

kingsd041 commented 5 years ago

@itstamil The ros config merge command will only superimpose or replace the item in the cloud-config file, and will not remove the original item. You can edit the cloud-config.yml file to remove unwanted items.

itstamil commented 5 years ago

@kingsd041 Even i removed an interface from config file in path /var/lib/rancher/conf/cloud-config.yml Then i run command system-docker restart network even its not removing the bridge

kingsd041 commented 5 years ago

@itstamil system-docker restart network will not remove the bridge, you can try to restart RancherOS