Merge "Adding the steps of generateing ssh key in tools/init-runonce"

This commit is contained in:
Jenkins 2016-11-08 14:16:33 +00:00 committed by Gerrit Code Review
commit 54cc601eed

View File

@ -71,6 +71,10 @@ else
neutron security-group-rule-create default --direction ingress --ethertype IPv4 --protocol tcp --port-range-min 8080 --port-range-max 8080 --remote-ip-prefix 0.0.0.0/0 neutron security-group-rule-create default --direction ingress --ethertype IPv4 --protocol tcp --port-range-min 8080 --port-range-max 8080 --remote-ip-prefix 0.0.0.0/0
fi fi
if [ ! -f ~/.ssh/id_rsa.pub ]; then
echo Generating ssh key.
ssh-keygen -t rsa -f ~/.ssh/id_rsa
fi
if [ -r ~/.ssh/id_rsa.pub ]; then if [ -r ~/.ssh/id_rsa.pub ]; then
echo Configuring nova public key and quotas. echo Configuring nova public key and quotas.
nova keypair-add --pub-key ~/.ssh/id_rsa.pub mykey nova keypair-add --pub-key ~/.ssh/id_rsa.pub mykey