Deploy failed due to .ssh already existing 29/6629/1
authorMichael Chapman <woppin@gmail.com>
Thu, 14 Jan 2016 05:52:15 +0000 (16:52 +1100)
committerMichael Chapman <woppin@gmail.com>
Thu, 14 Jan 2016 05:52:15 +0000 (16:52 +1100)
commit56463a5e664d13fb29272f7391befbcdf880682d
tree6841f5843ad69595b2e83c120a9cd40a8bdfea1b
parentb08e3323c00bf216730ed44c729562ffa1f57ac9
Deploy failed due to .ssh already existing

In a local test, I observed virt-customize failing during ssh
key injection

Injecting ssh key to instack VM
[   0.0] Examining the guest ...
[  48.0] Setting a random seed
[  48.0] Running: mkdir /root/.ssh/
mkdir: cannot create directory '/root/.ssh/': File exists
virt-customize: mkdir /root/.ssh/: command exited with an error

Adding -p should prevent this from happening.

Change-Id: If8f085cba3083ccf3d5e8f648a9830f142ea53d9
ci/deploy.sh