{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/24737","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/24737/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/24737/comments","events_url":"https://api.github.com/repos/docker/docker/issues/24737/events","html_url":"https://github.com/docker/docker/issues/24737","id":165987886,"number":24737,"title":"swarm mode Worker failed do connect on manager","user":{"login":"adrianovieira","id":5561794,"avatar_url":"https://avatars.githubusercontent.com/u/5561794?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianovieira","html_url":"https://github.com/adrianovieira","followers_url":"https://api.github.com/users/adrianovieira/followers","following_url":"https://api.github.com/users/adrianovieira/following{/other_user}","gists_url":"https://api.github.com/users/adrianovieira/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianovieira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianovieira/subscriptions","organizations_url":"https://api.github.com/users/adrianovieira/orgs","repos_url":"https://api.github.com/users/adrianovieira/repos","events_url":"https://api.github.com/users/adrianovieira/events{/privacy}","received_events_url":"https://api.github.com/users/adrianovieira/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":null,"comments":0,"created_at":"2016-07-17T18:02:42Z","updated_at":"2016-07-17T18:02:42Z","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\nClient:\r\n Version:      1.12.0-rc4\r\n API version:  1.24\r\n Go version:   go1.6.2\r\n Git commit:   e4a0dbc\r\n Built:\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.12.0-rc4\r\n API version:  1.24\r\n Go version:   go1.6.2\r\n Git commit:   e4a0dbc\r\n Built:\r\n OS/Arch:      linux/amd64\r\n```\r\n\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 0\r\n Running: 0\r\n Paused: 0\r\n Stopped: 0\r\nImages: 0\r\nServer Version: 1.12.0-rc4\r\nStorage Driver: devicemapper\r\n Pool Name: docker-253:0-394249-pool\r\n Pool Blocksize: 65.54 kB\r\n Base Device Size: 10.74 GB\r\n Backing Filesystem: xfs\r\n Data file: /dev/loop0\r\n Metadata file: /dev/loop1\r\n Data Space Used: 11.8 MB\r\n Data Space Total: 107.4 GB\r\n Data Space Available: 38.62 GB\r\n Metadata Space Used: 581.6 kB\r\n Metadata Space Total: 2.147 GB\r\n Metadata Space Available: 2.147 GB\r\n Thin Pool Minimum Free Space: 10.74 GB\r\n Udev Sync Supported: true\r\n Deferred Removal Enabled: false\r\n Deferred Deletion Enabled: false\r\n Deferred Deleted Device Count: 0\r\n Data loop file: /var/lib/docker/devicemapper/devicemapper/data\r\n WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.\r\n Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata\r\n Library Version: 1.02.107-RHEL7 (2016-06-09)\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: bridge host null overlay\r\nSwarm: active\r\n NodeID: 2jsjqw173j8l17ohxjc7p6h4n\r\n IsManager: Yes\r\n Managers: 1\r\n Nodes: 1\r\n CACertHash: sha256:fb20c03df56aa58f778833d83b40b8b948c60149b75ea6264c177cece047ee54\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nSecurity Options: seccomp\r\nKernel Version: 3.10.0-327.22.2.el7.x86_64\r\nOperating System: CentOS Linux 7 (Core)\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 1\r\nTotal Memory: 1.797 GiB\r\nName: manager1\r\nID: MEJZ:ZHB4:ABD2:DEUI:SCHB:CR6N:IQLK:HUIG:P3LX:LHDY:ASMK:7FYL\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: bridge-nf-call-ip6tables is disabled\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- Virtualbox-5.0\r\n- CEntos-7\r\n\r\n**Steps to reproduce the issue:**\r\n1. `docker swarm init --listen-addr 192.168.50.10:2377` on manager\r\n2. `docker swarm join --secret '$2a$10$ObapK4Oz1bUDl83ESn5iIuvP6IdnlJ4VuZix53/Q7VX695WXiy8HK' 192.168.50.10:2377` on worker\r\n\r\n\r\n**Describe the results you received:**\r\n- `docker swarm join --secret '$2a$10$ObapK4Oz1bUDl83ESn5iIuvP6IdnlJ4VuZix53/Q7VX695WXiy8HK'  192.168.50.10:2377`\r\n\r\n```\r\nError response from daemon: rpc error: code = 3 desc = A valid secret token is necessary to join this cluster: crypto/bcrypt: hashedPassword is not the hash of the given password\r\n```\r\n\r\n**Describe the results you expected:**\r\nWORKER join to swarm cluster\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\n- ***`docker swarm inspect`***\r\n```\r\n[\r\n    {\r\n        \"ID\": \"ad6kexoimi6lcrm997ntddcpa\",\r\n        \"Version\": {\r\n            \"Index\": 11\r\n        },\r\n        \"CreatedAt\": \"2016-07-17T15:51:25.150697969Z\",\r\n        \"UpdatedAt\": \"2016-07-17T15:51:26.090127651Z\",\r\n        \"Spec\": {\r\n            \"Name\": \"default\",\r\n            \"AcceptancePolicy\": {\r\n                \"Policies\": [\r\n                    {\r\n                        \"Role\": \"worker\",\r\n                        \"Autoaccept\": true,\r\n                        \"Secret\": \"$2a$10$ObapK4Oz1bUDl83ESn5iIuvP6IdnlJ4VuZix53/Q7VX695WXiy8HK\"\r\n                    },\r\n                    {\r\n                        \"Role\": \"manager\",\r\n                        \"Autoaccept\": false,\r\n                        \"Secret\": \"$2a$10$ObapK4Oz1bUDl83ESn5iIuvP6IdnlJ4VuZix53/Q7VX695WXiy8HK\"\r\n                    }\r\n                ]\r\n            },\r\n            \"Orchestration\": {\r\n                \"TaskHistoryRetentionLimit\": 10\r\n            },\r\n            \"Raft\": {\r\n                \"SnapshotInterval\": 10000,\r\n                \"LogEntriesForSlowFollowers\": 500,\r\n                \"HeartbeatTick\": 1,\r\n                \"ElectionTick\": 3\r\n            },\r\n            \"Dispatcher\": {\r\n                \"HeartbeatPeriod\": 5000000000\r\n            },\r\n            \"CAConfig\": {\r\n                \"NodeCertExpiry\": 7776000000000000\r\n            }\r\n        }\r\n    }\r\n]\r\n```\r\n\r\n- ***`journalctl -f -u docker`*** on worker after trying `join`\r\n```\r\nJul 17 13:55:14 centos7-docker-1.12rc4 dockerd[11590]: time=\"2016-07-17T13:55:14.525381472-04:00\" level=debug msg=\"Calling POST /v1.24/swarm/join\"\r\nJul 17 13:55:14 centos7-docker-1.12rc4 dockerd[11590]: time=\"2016-07-17T13:55:14.525563345-04:00\" level=debug msg=\"form data: {\\\"CACertHash\\\":\\\"\\\",\\\"ListenAddr\\\":\\\"0.0.0.0:2377\\\",\\\"Manager\\\":false,\\\"RemoteAddrs\\\":[\\\"192.168.50.10:2377\\\"],\\\"Secret\\\":\\\"*****\\\"}\"\r\nJul 17 13:55:14 centos7-docker-1.12rc4 dockerd[11590]: time=\"2016-07-17T13:55:14.553411300-04:00\" level=debug msg=\"successfully loaded the Root CA: /var/lib/docker/swarm/certificates/swarm-root-ca.crt\"\r\nJul 17 13:55:14 centos7-docker-1.12rc4 dockerd[11590]: time=\"2016-07-17T13:55:14.617833469-04:00\" level=debug msg=\"successfully loaded the Root CA: /var/lib/docker/swarm/certificates/swarm-root-ca.crt\"\r\nJul 17 13:55:14 centos7-docker-1.12rc4 dockerd[11590]: time=\"2016-07-17T13:55:14.617918108-04:00\" level=debug msg=\"loaded local CA certificate: /var/lib/docker/swarm/certificates/swarm-root-ca.crt.\"\r\nJul 17 13:55:14 centos7-docker-1.12rc4 dockerd[11590]: time=\"2016-07-17T13:55:14.617979207-04:00\" level=debug msg=\"no valid local TLS credentials found: open /var/lib/docker/swarm/certificates/swarm-node.crt: no such file or directory\"\r\nJul 17 13:55:14 centos7-docker-1.12rc4 dockerd[11590]: time=\"2016-07-17T13:55:14.949329836-04:00\" level=warning msg=\"error fetching signed node certificate: rpc error: code = 3 desc = A valid secret token is necessary to join this cluster: crypto/bcrypt: hashedPassword is not the hash of the given password\"\r\nJul 17 13:55:15 centos7-docker-1.12rc4 dockerd[11590]: time=\"2016-07-17T13:55:15.269078867-04:00\" level=warning msg=\"error fetching signed node certificate: rpc error: code = 3 desc = A valid secret token is necessary to join this cluster: crypto/bcrypt: hashedPassword is not the hash of the given password\"\r\nJul 17 13:55:15 centos7-docker-1.12rc4 dockerd[11590]: time=\"2016-07-17T13:55:15.587306421-04:00\" level=warning msg=\"error fetching signed node certificate: rpc error: code = 3 desc = A valid secret token is necessary to join this cluster: crypto/bcrypt: hashedPassword is not the hash of the given password\"\r\nJul 17 13:55:15 centos7-docker-1.12rc4 dockerd[11590]: time=\"2016-07-17T13:55:15.904985651-04:00\" level=warning msg=\"error fetching signed node certificate: rpc error: code = 3 desc = A valid secret token is necessary to join this cluster: crypto/bcrypt: hashedPassword is not the hash of the given password\"\r\nJul 17 13:55:16 centos7-docker-1.12rc4 dockerd[11590]: time=\"2016-07-17T13:55:16.440484915-04:00\" level=warning msg=\"error fetching signed node certificate: rpc error: code = 3 desc = A valid secret token is necessary to join this cluster: crypto/bcrypt: hashedPassword is not the hash of the given password\"\r\nJul 17 13:55:16 centos7-docker-1.12rc4 dockerd[11590]: time=\"2016-07-17T13:55:16.440605370-04:00\" level=error msg=\"cluster exited with error: rpc error: code = 3 desc = A valid secret token is necessary to join this cluster: crypto/bcrypt: hashedPassword is not the hash of the given password\"\r\nJul 17 13:55:16 centos7-docker-1.12rc4 dockerd[11590]: time=\"2016-07-17T13:55:16.440643505-04:00\" level=error msg=\"Handler for POST /v1.24/swarm/join returned error: rpc error: code = 3 desc = A valid secret token is necessary to join this cluster: crypto/bcrypt: hashedPassword is not the hash of the given password\"\r\n```"}}
{"actor":{"display_login":"adrianovieira"}}