Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

move plugin network creation/removal into weaveutil #1901

Merged
merged 4 commits into from
Jan 15, 2016

Conversation

rade
Copy link
Member

@rade rade commented Jan 15, 2016

The main gotcha is that we lose the ability to specify a different mesh network name, or disable it altogether. That was always poorly supported and IMO is not worth losing sleep over until we / our users have a real need for it.

Closes #1897.

rade added 4 commits January 15, 2016 06:21
It's pointless and inconsistent. Firstly, deletion will fail if there
are any attached containers. Secondly, we run the plugin with
restart=always, so it will get restarted and the network re-created.

Removal of the network does still happen on `weave stop|reset`, if
possible.
This does require starting containerised weaveutil with docker.sock
volume mounts.
Note that we remove the ability to set the weavemesh network name, or
disabling it altogether. This was always poorly support, since the
removal operation only ever operated on the default name. The option
was also not listed in the usage, though it was in the docs.
@rade
Copy link
Member Author

rade commented Jan 15, 2016

btw, weave stop time has dropped from 1.5s to 1.1s for me with this change.

@bboreham
Copy link
Contributor

we run the plugin with restart=always, so it will get restarted

Nitpicking: it does not get restarted immediately if stopped by the user, e.g. docker stop. It does get restarted on the next reboot.

@bboreham
Copy link
Contributor

CreateNetwork does sometimes(always?) not return ErrNetworkAlreadyExists

Tracked at moby/moby#18363

@bboreham bboreham self-assigned this Jan 15, 2016
@bboreham bboreham added this to the 1.5.0 milestone Jan 15, 2016
bboreham added a commit that referenced this pull request Jan 15, 2016
move plugin network creation/removal into weaveutil
@bboreham bboreham merged commit efd4fc4 into master Jan 15, 2016
@rade rade deleted the 1897-weaveutil-plugin-network branch March 19, 2016 16:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants