-
Notifications
You must be signed in to change notification settings - Fork 673
Conversation
a083b4f
to
a5bf2d8
Compare
a5bf2d8
to
01f2dee
Compare
@bboreham Hello, can you give an update on the status of weave net in docker swarm-mode since moby/swarmkit#1876 has happened and docker engine is now at 1.13.1-rc1? Thanks. |
@sgammill I verified that the blocking issue moby/moby#30024 got resolved, and Weave Net Plugin v2 works with Docker Swarmkit (distributed with 1.31.1-rc1). However, to make it usable to an end user, more work needs to be done (see the outstanding items in the PR description). |
e124c66
to
1a97e2d
Compare
|
Documentation changes:modified plugin |
1a97e2d
to
4c3897e
Compare
Documentation changes:modified plugin |
9344332
to
e1945a3
Compare
Note that, given:
tests 335 and 620 currently fail (time out). |
a9243cf
to
c400702
Compare
Documentation changes:modified plugin |
prog/weaveutil/main.go
Outdated
@@ -65,6 +68,7 @@ func main() { | |||
} | |||
cmd, found := commands[os.Args[1]] | |||
if !found { | |||
fmt.Fprintf(os.Stderr, "%q cmd is not found\n", os.Args[1]) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
@@ -195,7 +195,7 @@ func (driver *driver) findNetworkInfo(id string) (network, error) { | |||
if err != nil { | |||
return network, err | |||
} | |||
return driver.setupNetworkInfo(id, info.Driver == driver.name, info.Options) | |||
return driver.setupNetworkInfo(id, driver.isNetworkOur(info.Driver), info.Options) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
@panga note you can now install our "latest" build from DockerHub, via |
@bboreham Any documentation publicly available? |
@Multiply we're working on it. If your swarm is up and running, and you install as above, next step is:
then
everything else is automagic 🙂 |
@bboreham Sweet. I'll give it a spin over the weekend. I think it'll be more or less plug and play with our current development and testing setups. |
I should be able to define it using docker-compose v2/v3 and have it create the needed network plugin for us, if it doesn't already exist, as long as they installed the plugin beforehand, I assume. Would be even sweeter if it could also automatically install the plugin if its not available. (I haven't looked much into the documentation, so it might already be like this?) |
One thing is, when the plugin installs, Docker asks you whether you want to grant the necessary permissions (which is a good thing for knowledgeable users):
Looking at Docker's plugin docs there is a Nothing in the compose docs about installing plugins. |
@bboreham I was able to install the plugin, but when trying to create a network I get the following error:
|
@jamespedwards42 you should pass the whole name of the driver when creating a network, i.e.: |
@brb Same isssue:
|
@jamespedwards42 Could you do the following:
|
@brb I restarted the docker service and then ran the create network command for the logs capture; pasted on pastebin.
|
That's weird. Mind running |
@brb ha! awesome that got it.... I restarted a server and the issue came back, so I had to disable/enable again. I'm guessing that needs to be done anytime the engine is restarted. @Multiply I was able to confirm that it works with networks:
my-weave-network:
driver: weaveworks/net-plugin:latest
ipam:
driver: default
config:
-
subnet: 10.0.0.0/24 |
I've just tried rebooting machine / restarting the engine - the plugin came back properly w/o disable / enable. |
@brb I just went through 4 hosts and had the same issue after restarts on all of them.
logs after restart: https://pastebin.com/B4ngjtnt |
@jamespedwards42 Thanks. Found the issue (#2906). |
Fixes #2397 #2816 #2651 #2805
Build the plugin via
make v2plugin
; requires Docker 1.13.1 (1.13.0 does not work)This branch is based on top of the docker-swarm branch used in #2721 to get the extra entry-points, although it doesn't seem to make any difference.
Items outstanding:
weave connect
to test--pid=host
on v2 plugins; need another way to do the arp settings on the bridgeweave status
does work for the router, but doesn't see the pluginweave launch
should detect if this plugin is installed and exit with errordocker logs
to see what went wrong