]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Wipe out existing id_rsa.pub and id_rsa before pushing ssh keys
authorSandon Van Ness <sandon@inktank.com>
Fri, 21 Jun 2013 01:36:58 +0000 (18:36 -0700)
committerSandon Van Ness <sandon@inktank.com>
Fri, 21 Jun 2013 21:45:36 +0000 (14:45 -0700)
commitf6270a7fb0fde8ca98fb2dd75925d9a8345891ec
tree3c4357597f8acae577c5e231dd2bcf8aae8b080f
parent0ff2e42e7c563eee86a1f06e3d9e35f352ed0715
Wipe out existing id_rsa.pub and id_rsa before pushing ssh keys

A very simple change. Just touch a file first (to create it if it
doesn't yet exist so the delete doesn't error out) and then delete
it before pushing the keys to the file. This should avoid the
id_rsa.pub and id_rsa files from getting messed up due to previous
runs which were interrupted or failed (or if those files exist for
some reason). This appears to be what was causing breaking in the
ceph-deploy nightlies.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
teuthology/misc.py
teuthology/task/ssh_keys.py