Summary
DPX update script fails with error : Error response from daemon: This node is not a swarm manager due to expired docker swarm certificate.
Symptoms
+Updating the DPX Appliance (running script "update_dpx_4.6.9.sh") fails with error:
Error response from daemon: This node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again. . ./dpx-container-tags && . ./svc.env && docker system prune -f && docker stack deploy -c dpx_base.yml dpx_base --with-registry-auth && docker stack deploy -c dpx.yml dpx --with-registry-auth Deleted Networks: docker_gwbridgeTotal reclaimed space: 0B this node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again make[1]: *** [start-x] Error 1
Checking the docker status on the appliance shows following error:
[root@dpx-ga-online dpxadmin]# docker info | grep swarm Error: error while loading TLS certificate in /var/lib/docker/swarm/certificates/swarm-node.crt: certificate (1 - 4svmw7dr9cjq522vzaeupmd8m) not valid after Mon, 09 Dec 2019 18:37:00 UTC, and it is currently Mon, 09 Dec 2019 19:47:58 UTC: x509: certificate has expired or is not yet valid
Resolution
The upgrade is failing to due to an expired swarm certificate on the OVA, this certificate will auto renew automatically unless docker services are stopped.
To recreate the certificate please run the following commands from the DPX Master server appliance CLI.
docker swarm leave docker swarm init