-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Description
I just want to change the roles of an existing swarm like:
worker2 -> promote to manager
manager1 -> demote to worker
This is due to a planned maintenance with ip-change on manager1, which should be done like
manager1 -> demote to worker -> drain mode -> leave swarm -> change ip -> join swarm -> promote to manager
worker2 -> demote to worker again
Steps to reproduce the issue:
manager1:~# docker node promote worker2
Node worker2 promoted to a manager in the swarm.
worker2:~# docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS
mzqms0uiq2f6t9lqvhghiuqmg manager1 Ready Active Leader
vp4dbt8xefe14rqzej5gpdi2u worker1 Ready Active
20vbax32k3rc5dla7p86kfgku * worker2 Ready Active Reachable
worker2:~# docker node demote manager1 # or just
worker2:~# docker node update --availability drain manager1
Describe the results you received:
Error response from daemon: rpc error: code = DeadlineExceeded desc = context deadline exceeded
Describe the results you expected:
Manager manager1 demoted in the swarm.
Additional information you deem important (e.g. issue happens only occasionally):
Swarm has been running for half a year.
Output of docker version:
# docker version
Client:
Version: 17.12.1-ce
API version: 1.35
Go version: go1.9.4
Git commit: 7390fc6
Built: Tue Feb 27 22:17:40 2018
OS/Arch: linux/amd64
Server:
Engine:
Version: 17.12.1-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.4
Git commit: 7390fc6
Built: Tue Feb 27 22:16:13 2018
OS/Arch: linux/amd64
Experimental: false
Output of docker info:
docker info
Containers: 22
Running: 0
Paused: 0
Stopped: 22
Images: 8
Server Version: 17.12.1-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: active
NodeID: mzqms0uiq2f6t9lqvhghiuqmg
Is Manager: false
Node Address: 10.47.0.2
Manager Addresses:
10.47.0.4:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9b55aab90508bd389d7654c4baf173a981477d55
runc version: 9f9c96235cc97674e935002fc3d78361b696a69e
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.13.0-36-generic
Operating System: Ubuntu 16.04.4 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 15.67GiB
Name: manager1
ID: HFFB:LBVB:4TSL:DRVP:JXMR:WZXI:QEDA:N3WP:Z7QL:WAPG:OPVZ:BZLQ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No swap limit support
Additional environment details (AWS, VirtualBox, physical, etc.):
Ubuntu-Machines running on VMWare.
manager1:~# cat /etc/issue
Ubuntu 16.04.4 LTS \n \l
manager1:~# uname -a
Linux manager1 4.13.0-36-generic #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Reactions are currently unavailable