+prepare_compute_ssh() {
+ ping -c 1 "$COMPUTE_IP"
+
+ # get ssh key from installer node
+ sudo scp $ssh_opts /home/stack/.ssh/id_rsa instack_key
+ if [ ! -r instack_key ]; then
+ sudo chown $(whoami):$(whoami) instack_key
+ fi
+ chmod 400 instack_key
+ ssh_opts_cpu="$ssh_opts -i instack_key -l heat-admin"
+}
+