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

Contiv v2 plugin fail to come up after docker service restart #252

Open
g1rana opened this issue Sep 22, 2017 · 1 comment
Open

Contiv v2 plugin fail to come up after docker service restart #252

g1rana opened this issue Sep 22, 2017 · 1 comment

Comments

@g1rana
Copy link

g1rana commented Sep 22, 2017

Issue : Contiv v2 plugin is getting failed to come up after Docker service restart

Root-cause: In current swarm installation, Contiv v2plugin and ETCD start as container Contiv-v2plugin(Start in context of docker daemon) has dependency on ETCD and ETCD container has dependency at docker daemon. Due to this cycle dependency , docker service restart couldn't enable the v2plugin.

Suggested Solution:
Approach 1 : Add dumy Systemd service which run after ETCD service and enable v2plugin which failed at first time during docker daemon spawn context.
i.e " small bash script which run following command :
<docker plugin enable "

With this approach, changes require in swarm installer to add new service which run after ETCD service.
Approach 2: Instead of running ETCD as container , just run it as host process and make docker service as depended on ETCD. With this approach , V2 plugin always find ETCD cluster and won't failed. This approach require changes in existing docker.service file and current ETCD installer script.
Let me know which approach folks like to proceed further .

@unclejack
Copy link
Contributor

@g1rana The second approach would be better. The first approach would make things difficult and we'd have to maintain that in the future.

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

2 participants