{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/25432","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/25432/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/25432/comments","events_url":"https://api.github.com/repos/docker/docker/issues/25432/events","html_url":"https://github.com/docker/docker/issues/25432","id":169571987,"number":25432,"title":"[swarm] corrupted manger not able to leave a cluster with --force","user":{"login":"rogaha","id":4483394,"avatar_url":"https://avatars.githubusercontent.com/u/4483394?v=3","gravatar_id":"","url":"https://api.github.com/users/rogaha","html_url":"https://github.com/rogaha","followers_url":"https://api.github.com/users/rogaha/followers","following_url":"https://api.github.com/users/rogaha/following{/other_user}","gists_url":"https://api.github.com/users/rogaha/gists{/gist_id}","starred_url":"https://api.github.com/users/rogaha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogaha/subscriptions","organizations_url":"https://api.github.com/users/rogaha/orgs","repos_url":"https://api.github.com/users/rogaha/repos","events_url":"https://api.github.com/users/rogaha/events{/privacy}","received_events_url":"https://api.github.com/users/rogaha/received_events","type":"User","site_admin":false},"labels":[{"id":392678049,"url":"https://api.github.com/repos/docker/docker/labels/area/swarm","name":"area/swarm","color":"fbca04","default":false},{"id":179237356,"url":"https://api.github.com/repos/docker/docker/labels/kind/enhancement","name":"kind/enhancement","color":"E8CAAF","default":false},{"id":283253906,"url":"https://api.github.com/repos/docker/docker/labels/priority/P1","name":"priority/P1","color":"eb6420","default":false},{"id":375714123,"url":"https://api.github.com/repos/docker/docker/labels/version/1.12","name":"version/1.12","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":{"login":"LK4D4","id":101445,"avatar_url":"https://avatars.githubusercontent.com/u/101445?v=3","gravatar_id":"","url":"https://api.github.com/users/LK4D4","html_url":"https://github.com/LK4D4","followers_url":"https://api.github.com/users/LK4D4/followers","following_url":"https://api.github.com/users/LK4D4/following{/other_user}","gists_url":"https://api.github.com/users/LK4D4/gists{/gist_id}","starred_url":"https://api.github.com/users/LK4D4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LK4D4/subscriptions","organizations_url":"https://api.github.com/users/LK4D4/orgs","repos_url":"https://api.github.com/users/LK4D4/repos","events_url":"https://api.github.com/users/LK4D4/events{/privacy}","received_events_url":"https://api.github.com/users/LK4D4/received_events","type":"User","site_admin":false},"assignees":[{"login":"LK4D4","id":101445,"avatar_url":"https://avatars.githubusercontent.com/u/101445?v=3","gravatar_id":"","url":"https://api.github.com/users/LK4D4","html_url":"https://github.com/LK4D4","followers_url":"https://api.github.com/users/LK4D4/followers","following_url":"https://api.github.com/users/LK4D4/following{/other_user}","gists_url":"https://api.github.com/users/LK4D4/gists{/gist_id}","starred_url":"https://api.github.com/users/LK4D4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LK4D4/subscriptions","organizations_url":"https://api.github.com/users/LK4D4/orgs","repos_url":"https://api.github.com/users/LK4D4/repos","events_url":"https://api.github.com/users/LK4D4/events{/privacy}","received_events_url":"https://api.github.com/users/LK4D4/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/59","html_url":"https://github.com/docker/docker/milestone/59","labels_url":"https://api.github.com/repos/docker/docker/milestones/59/labels","id":2071001,"number":59,"title":"1.12.3","description":"milestone to track issues that can possibly warrant a patch release. see our Patch release policy for more information about the procedure; https://github.com/docker/docker/blob/master/project/PATCH-RELEASES.md","creator":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":32,"state":"closed","created_at":"2016-10-14T18:46:37Z","updated_at":"2016-11-28T13:47:40Z","due_on":null,"closed_at":"2016-10-27T21:31:40Z"},"comments":33,"created_at":"2016-08-05T09:51:03Z","updated_at":"2017-01-09T18:10:46Z","closed_at":"2016-10-20T23:33:28Z","body":"<!--\nIf you are reporting a new issue, make sure that we do not have any duplicates\nalready open. You can ensure this by searching the issue list for this\nrepository. If there is a duplicate, please close your issue and add a comment\nto the existing issue instead.\n\nIf you suspect your issue is a bug, please edit your issue description to\ninclude the BUG REPORT INFORMATION shown below. If you fail to provide this\ninformation within 7 days, we cannot debug your issue and will close it. We\nwill, however, reopen it if you later provide the information.\n\nFor more information about reporting issues, see\nhttps://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues\n\n---------------------------------------------------\nBUG REPORT INFORMATION\n---------------------------------------------------\nUse the commands below to provide key information from your environment:\nYou do NOT have to include this information if this is a FEATURE REQUEST\n-->\n\n**Output of `docker version`:**\n\n```\nClient:\n Version:      1.12.0\n API version:  1.24\n Go version:   go1.6.3\n Git commit:   8eab29e\n Built:        Thu Jul 28 23:54:00 2016\n OS/Arch:      linux/amd64\n\nServer:\n Version:      1.12.0\n API version:  1.24\n Go version:   go1.6.3\n Git commit:   8eab29e\n Built:        Thu Jul 28 23:54:00 2016\n OS/Arch:      linux/amd64\n```\n\n**Output of `docker info`:**\n\n```\nContainers: 4\n Running: 4\n Paused: 0\n Stopped: 0\nImages: 1\nServer Version: 1.12.0\nStorage Driver: aufs\n Root Dir: /mnt/sda1/var/lib/docker/aufs\n Backing Filesystem: extfs\n Dirs: 15\n Dirperm1 Supported: true\nLogging Driver: json-file\nCgroup Driver: cgroupfs\nPlugins:\n Volume: local\n Network: bridge overlay host null\nSwarm: active\n NodeID: 2jml8zh2ap8gnw3ghchc03g09\n Error: rpc error: code = 2 desc = raft: no elected cluster leader\n Is Manager: true\n ClusterID:\n Managers: 0\n Nodes: 0\n Orchestration:\n  Task History Retention Limit: 0\n Raft:\n  Snapshot interval: 0\n  Heartbeat tick: 0\n  Election tick: 0\n Dispatcher:\n  Heartbeat period: Less than a second\n CA configuration:\n  Expiry duration: Less than a second\n Node Address: 192.168.99.100\nRuntimes: runc\nDefault Runtime: runc\nSecurity Options: seccomp\nKernel Version: 4.4.16-boot2docker\nOperating System: Boot2Docker 1.12.0 (TCL 7.2); HEAD : e030bab - Fri Jul 29 00:29:14 UTC 2016\nOSType: linux\nArchitecture: x86_64\nCPUs: 1\nTotal Memory: 995.9 MiB\nName: master1\nID: XFBC:QIPK:ZJH5:MGSZ:D6IA:32XG:TUHL:6E43:HXOQ:FVLW:OY64:HWD4\nDocker Root Dir: /mnt/sda1/var/lib/docker\nDebug Mode (client): false\nDebug Mode (server): true\n File Descriptors: 72\n Goroutines: 218\n System Time: 2016-08-05T09:22:12.607462985Z\n EventsListeners: 4\nRegistry: https://index.docker.io/v1/\nLabels:\n provider=virtualbox\nInsecure Registries:\n 127.0.0.0/8\n```\n\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\n5 VirtualBox VMs cluster\n\n**Steps to reproduce the issue:**\n1. Create a cluster with 2 managers and 3 workers\n2. Turn off the laptop\n\n**Describe the results you received:**\n\n```\ndocker@master1:~$ docker swarm leave\nError response from daemon: You are attempting to leave cluster on a node that is participating as a manager. The only way to restore a cluster that has lost consensus is to reinitialize it with `--force-new-cluster`. Use `--force` to ignore this message.\ndocker@master1:~$ docker swarm leave --force\nError response from daemon: context deadline exceeded\ndocker@master1:~$\n```\n\nmanager logs -- \n[logs1.txt](https://github.com/docker/docker/files/403537/logs1.txt)\n\nIt might be related to https://github.com/docker/docker/issues/25395#issuecomment-237718994\n\n**Describe the results you expected:**\n\n```\ndocker@master1:~$ docker swarm leave --force\nNode left the swarm.\ndocker@master1:~$\n```\n\n**Additional information you deem important (e.g. issue happens only occasionally):**\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/271359524","html_url":"https://github.com/docker/docker/issues/25432#issuecomment-271359524","issue_url":"https://api.github.com/repos/docker/docker/issues/25432","id":271359524,"user":{"login":"ventz","id":901168,"avatar_url":"https://avatars.githubusercontent.com/u/901168?v=3","gravatar_id":"","url":"https://api.github.com/users/ventz","html_url":"https://github.com/ventz","followers_url":"https://api.github.com/users/ventz/followers","following_url":"https://api.github.com/users/ventz/following{/other_user}","gists_url":"https://api.github.com/users/ventz/gists{/gist_id}","starred_url":"https://api.github.com/users/ventz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ventz/subscriptions","organizations_url":"https://api.github.com/users/ventz/orgs","repos_url":"https://api.github.com/users/ventz/repos","events_url":"https://api.github.com/users/ventz/events{/privacy}","received_events_url":"https://api.github.com/users/ventz/received_events","type":"User","site_admin":false},"created_at":"2017-01-09T18:10:46Z","updated_at":"2017-01-09T18:10:46Z","body":"@aaronlehmann I think it was on the last node (which was a manager). I was trying to break up the cluster in this case. I usually try to demote to worker, and then leave the swarm. Nothing worked on this however, and eventually I had to shut down docker, wipe the /var/lib/docker/swarm dir, and then restart docker."}}
{"actor":{"display_login":"ventz"}}