]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.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>
Wed, 3 Jul 2013 21:24:56 +0000 (14:24 -0700)
commit57df5dadefd00b2fd78b229eb8517e107282369e
treee6d5b0ed0b03c5a111b967199bfe8e53635967ab
parent867e5b44ca451a558c791e1404f1961674d9dc4d
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