contiv / install

Contiv Installer
https://contiv.github.io
Other
114 stars 56 forks source link

The v2plugin can't removed when executed the uninstall command #245

Open wangxf1987 opened 7 years ago

wangxf1987 commented 7 years ago

When I exectued the follow command that uninstall the contiv, ./install/ansible/uninstall_swarm.sh -f cfg.yml -e <ssh key> -u <username> -p It's fine. But reinstall the contiv, the error was occur, TASK [contiv_network : install v2plugin on master nodes] *********************** fatal: [node1]: FAILED! => {"changed": true, "cmd": "/usr/bin/docker plugin install --grant-all-permissions contiv/v2plugin:1.1.2 ctrl_ip=172.19.146.76 control_url=172.19.146.76:9999 vxlan_port=8472 iflist=eth0 plugin_name=contiv/v2plugin:1.1.2 cluster_store=etcd://localhost:2379 plugin_role=master", "delta": "0:00:09.558766", "end": "2017-09-11 21:30:25.182311", "failed": true, "rc": 1, "start": "2017-09-11 21:30:15.623545", "stderr": "Error response from daemon: plugin \"contiv/v2plugin:1.1.2\" already exists", "stderr_lines": ["Error response from daemon: plugin \"contiv/v2plugin:1.1.2\" already exists"], "stdout": "", "stdout_lines": []} to retry, use: --limit @/ansible/install_plays.retry It's mean that the v2plugin is exist on the master node. So I find the plugin on the master, [root@iaas_monitor_worker00 ~]# docker plugin ls ID NAME DESCRIPTION ENABLED 56ca5d266f8c contiv/v2plugin:1.1.2 Contiv network plugin for Docker false I had to manually remove it, i think it is a bug.

rkharya commented 7 years ago

yeh, this is a bug. We have to remove explicitly using docker plugin rm contiv/v2plugin:1.1.2 on each cluster nodes. If we don't, contiv installer fails to install contiv next time.

wangxf1987 commented 7 years ago

@rkharya Thx for your response and Did the patch merge?