{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/24407","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/24407/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/24407/comments","events_url":"https://api.github.com/repos/docker/docker/issues/24407/events","html_url":"https://github.com/docker/docker/issues/24407","id":164252284,"number":24407,"title":"swarm not functioning when one of two swarm managers is down","user":{"login":"ligc","id":4415329,"avatar_url":"https://avatars.githubusercontent.com/u/4415329?v=3","gravatar_id":"","url":"https://api.github.com/users/ligc","html_url":"https://github.com/ligc","followers_url":"https://api.github.com/users/ligc/followers","following_url":"https://api.github.com/users/ligc/following{/other_user}","gists_url":"https://api.github.com/users/ligc/gists{/gist_id}","starred_url":"https://api.github.com/users/ligc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ligc/subscriptions","organizations_url":"https://api.github.com/users/ligc/orgs","repos_url":"https://api.github.com/users/ligc/repos","events_url":"https://api.github.com/users/ligc/events{/privacy}","received_events_url":"https://api.github.com/users/ligc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/version/1.12","name":"version/1.12","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/53","html_url":"https://github.com/docker/docker/milestones/1.12.0","labels_url":"https://api.github.com/repos/docker/docker/milestones/53/labels","id":1657301,"number":53,"title":"1.12.0","description":"feature/code freeze: June 14th, 2016","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":121,"closed_issues":516,"state":"open","created_at":"2016-03-21T13:47:53Z","updated_at":"2016-07-07T08:09:39Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-07-07T08:08:19Z","updated_at":"2016-07-07T08:10:53Z","closed_at":null,"body":"<!--\r\nIf you are reporting a new issue, make sure that we do not have any duplicates\r\nalready open. You can ensure this by searching the issue list for this\r\nrepository. If there is a duplicate, please close your issue and add a comment\r\nto the existing issue instead.\r\n\r\nIf you suspect your issue is a bug, please edit your issue description to\r\ninclude the BUG REPORT INFORMATION shown below. If you fail to provide this\r\ninformation within 7 days, we cannot debug your issue and will close it. We\r\nwill, however, reopen it if you later provide the information.\r\n\r\nFor more information about reporting issues, see\r\nhttps://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues\r\n\r\n---------------------------------------------------\r\nBUG REPORT INFORMATION\r\n---------------------------------------------------\r\nUse the commands below to provide key information from your environment:\r\nYou do NOT have to include this information if this is a FEATURE REQUEST\r\n-->\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\nroot@c910f04x19k05:~# docker version\r\nClient:\r\n Version:      1.12.0-rc2\r\n API version:  1.24\r\n Go version:   go1.6.2\r\n Git commit:   906eacd-unsupported\r\n Built:        Fri Jun 17 21:21:56 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.12.0-rc2\r\n API version:  1.24\r\n Go version:   go1.6.2\r\n Git commit:   906eacd-unsupported\r\n Built:        Fri Jun 17 21:21:56 2016\r\n OS/Arch:      linux/amd64\r\nroot@c910f04x19k05:~# \r\n```\r\n\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 1\r\n Running: 1\r\n Paused: 0\r\n Stopped: 0\r\nImages: 2\r\nServer Version: 1.12.0-rc2\r\nStorage Driver: aufs\r\n Root Dir: /var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 22\r\n Dirperm1 Supported: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: overlay bridge null host\r\nSwarm: active\r\n NodeID: eli8zcc9qkvpyymwnkbmhcphp\r\n IsManager: Yes\r\n Managers: 2\r\n Nodes: 4\r\n CACertHash: sha256:424c3732f099885c59d66c9a498e4d8a99ace8e9186d561117a58f807b46b31d\r\nRuntimes: default\r\nDefault Runtime: default\r\nSecurity Options: apparmor seccomp\r\nKernel Version: 4.4.0-22-generic\r\nOperating System: Ubuntu 16.04 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 2\r\nTotal Memory: 3.859 GiB\r\nName: c910f04x19k05\r\nID: TJGZ:GRAN:BCTW:5WN7:AA44:EDV4:RS4M:2RV6:RXU7:XOHR:76XK:KETQ\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): false\r\nRegistry: https://index.docker.io/v1/\r\nWARNING: No swap limit support\r\nInsecure Registries:\r\n 127.0.0.0/8\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\n\r\n\r\n\r\n**Steps to reproduce the issue:**\r\n1. Setup a docker swarm with 2 managers\r\n2. Deploy services in the swarm\r\n3. Shutdown one of the manager\r\n4. You could not manipulate the service, node or swarm \r\n\r\n\r\n**Describe the results you received:**\r\n```\r\nroot@c910f04x19k05:~# docker node ls            \r\nID                           NAME           MEMBERSHIP  STATUS  AVAILABILITY  MANAGER STATUS\r\n7ciwf38osn5u05cyktcsqi3ez    c910f04x19k06  Accepted    Ready   Active        \r\n7x1cdxcttssryr5r7ock1zx7c    c910f04x19k07  Accepted    Ready   Active        \r\neke7jq96u04yqxdt8z4vyrm9q    c910f04x19k04  Accepted    Ready   Active        Unreachable\r\neli8zcc9qkvpyymwnkbmhcphp *  c910f04x19k05  Accepted    Ready   Active        Leader\r\nroot@c910f04x19k05:~# docker node rm c910f04x19k04 =========> Could not delete the failed manager\r\nError response from daemon: rpc error: code = 9 desc = node eke7jq96u04yqxdt8z4vyrm9q is a cluster manager and is part of the quorum. It must be demoted to worker before removal\r\nroot@c910f04x19k05:~# docker node demote c910f04x19k04\r\nError response from daemon: rpc error: code = 4 desc = context deadline exceeded\r\nroot@c910f04x19k05:~# docker node rm c910f04x19k04    \r\nError response from daemon: rpc error: code = 9 desc = node eke7jq96u04yqxdt8z4vyrm9q is a cluster manager and is part of the quorum. It must be demoted to worker before removal\r\nroot@c910f04x19k05:~# \r\n\r\nroot@c910f04x19k05:~# docker service tasks sshd\r\nID                         NAME    SERVICE  IMAGE                             LAST STATE          DESIRED STATE  NODE\r\n5ggkrqm5ya0lajzsqup4p8hsj  sshd.1  sshd     liguangcheng/ubuntu-16.04-x86_64  Running 18 minutes  Running        c910f04x19k04\r\ndziaej6obfxwchgld0ejfu5n4  sshd.2  sshd     liguangcheng/ubuntu-16.04-x86_64  Running 22 minutes  Running        c910f04x19k07\r\ndokmapfyo9erx4sncfkkfxe7l  sshd.3  sshd     liguangcheng/ubuntu-16.04-x86_64  Running 22 minutes  Running        c910f04x19k05\r\n0a7c7brujzdedljv4dtdf4jt6  sshd.4  sshd     liguangcheng/ubuntu-16.04-x86_64  Running 22 minutes  Running        c910f04x19k06\r\n4dkb78sool9lncm8dd8ivyazw  sshd.5  sshd     liguangcheng/ubuntu-16.04-x86_64  Running 22 minutes  Running        c910f04x19k04\r\nroot@c910f04x19k05:~# docker service rm sshd =========> Could not remove the service\r\nError response from daemon: rpc error: code = 4 desc = context deadline exceeded\r\nroot@c910f04x19k05:~# docker service create --replicas 5 --publish 22 --name sshd-1 liguangcheng/ubuntu-16.04-x86_64 /usr/sbin/sshd -D ===========> Could not launch new services\r\nError response from daemon: rpc error: code = 4 desc = context deadline exceeded\r\nroot@c910f04x19k05:~# \r\n\r\n\r\n\r\n```\r\n\r\n**Describe the results you expected:**\r\nI should be able to delete the failed manager from the swarm, and be able to manipulate the services in the swarm.\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/231011652","html_url":"https://github.com/docker/docker/issues/24407#issuecomment-231011652","issue_url":"https://api.github.com/repos/docker/docker/issues/24407","id":231011652,"user":{"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},"created_at":"2016-07-07T08:10:52Z","updated_at":"2016-07-07T08:10:52Z","body":"Could this be a duplicate of https://github.com/docker/docker/issues/24329?"}}
{"actor":{"display_login":"thaJeztah"}}