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

Bridge-Interface is not taken down when "deconfiguring" it #45

Open
htgoebel opened this issue Feb 14, 2016 · 2 comments
Open

Bridge-Interface is not taken down when "deconfiguring" it #45

htgoebel opened this issue Feb 14, 2016 · 2 comments

Comments

@htgoebel
Copy link
Contributor

  1. Set up debops ifupdown normally. This will get you a bridge interface.
  2. Configure the interface(s) to not use a bridge (see example_static.yml)
  3. Run debops service/ifupdown
  4. The interface config-files are changed, but the bridge-interface is still up.

I'd expect the bridge interface to be down.

@drybjed
Copy link
Member

drybjed commented Feb 14, 2016

This actually depends on a few things. The debops.ifupdown role needs to know about interfaces you are trying to configure - if you replace the current interface configuration list with a new one without the old interfaces being there and configured for deletion, debops.ifupdown won't touch the old network configuration. The same happens with the ifupdown scripts as well - if the old network configuration is replaced without being turned off first, the scripts lose track of what is confgured and the network configuration is broken.

So the correct steps to change the already configured interfaces to a different set would be:

  • add new interface configuration along with the old one. Set old one to be deleted (item.delete: True). Run debops.ifupdown.
  • check if the new network configuration is the one you wanted.
  • remove the old interface configuration from the inventory. Run debops.ifupdown again to confirm that the configuration applied is correct.

Of course this is not an issue when you have an already configured interfaces in inventory and apply that configuration to a new host. So it's good to design an interface configuration beforehand, on a disposable VM, expecting to apply that on a new host.

@ypid
Copy link
Member

ypid commented Nov 17, 2016

Just tried this with v0.3.0 which is just being released. It should work now as expected thanks to @drybjed who carefully redesigned and updated the role. @htgoebel I can confirm that state: absent removes a prevously configured bridge so this issue can be closed.

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