sigsteve / vagrant-caasp

Vagrant deployment of SUSE CaaS Platform (Kubernetes) v4.5
31 stars 15 forks source link

04.add_workers.sh auth failure #49

Closed hemna closed 5 years ago

hemna commented 5 years ago

step 04 fails now

sles@caasp4-master-1:/vagrant/deploy> source 00.prep_environment.sh
Agent pid 12255
Identity added: /vagrant/cluster/caasp4-id (root@caasp4-master-1.suselab.com)
sles@caasp4-master-1:/vagrant/deploy> ./04.add_workers.sh
Adding workers...
++ seq 1 1
+ for NUM in $(seq 1 $NWORKERS)
+ skuba node join --role worker --user sles --sudo --target caasp4-worker-1 caasp4-worker-1
W0911 15:19:37.896159   12263 ssh.go:306]
The authenticity of host '192.168.121.130:22' can't be established.
ECDSA key fingerprint is d5:73:2c:f5:7d:b2:fd:09:95:c7:ca:0f:b8:39:90:af.
I0911 15:19:37.896243   12263 ssh.go:307] accepting SSH key for "caasp4-worker-1:22"
I0911 15:19:37.896253   12263 ssh.go:308] adding fingerprint for "caasp4-worker-1:22" to "known_hosts"
E0911 15:19:37.916194   12263 ssh.go:237] ssh authentication error: please make sure you have added to your ssh-agent a ssh key that is authorized in "caasp4-worker-1".
F0911 15:19:37.916268   12263 join.go:51] error joining node caasp4-worker-1: failed to apply state kubernetes.install-node-pattern: failed to initialize client: authentication error
+ set +x
Waiting for masters to be ready
Waiting for workers to be ready........
hemna commented 5 years ago

Looks like the worker host is missing the public key in the ~sles/.ssh/authorized_keys file