ci: Rename ssh key
For multinode jobs a key with the default name id_rsa already exists. Add a key for magnum named id_rsa_magnum. Co-Authored-By: yatinkarel <yatin.karel@nectechnologies.in> Change-Id: I343e27a6e7311d7d0033bc089293f945c3af2ef8
This commit is contained in:
parent
f1d78033c4
commit
2910809fab
|
@ -27,9 +27,9 @@ PRIVATE_KEY=
|
|||
|
||||
echo "If private key is specified, save to temp and use that; else, use default"
|
||||
if [[ "$KEYPAIR" == "default" ]]; then
|
||||
PRIVATE_KEY=$(readlink -f ~/.ssh/id_rsa)
|
||||
PRIVATE_KEY=$(readlink -f ~/.ssh/id_rsa_magnum)
|
||||
else
|
||||
PRIVATE_KEY="$(mktemp id_rsa.$SSH_IP.XXX)"
|
||||
PRIVATE_KEY="$(mktemp id_rsa_magnum.$SSH_IP.XXX)"
|
||||
echo -en "$KEYPAIR" > $PRIVATE_KEY
|
||||
fi
|
||||
|
||||
|
|
|
@ -106,8 +106,10 @@ EOF
|
|||
|
||||
# Create a keypair for use in the functional tests.
|
||||
echo_summary "Generate a key-pair"
|
||||
ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
|
||||
openstack keypair create --public-key ~/.ssh/id_rsa.pub default
|
||||
# ~/.ssh/id_rsa already exists in multinode setup, so generate
|
||||
# key with different name
|
||||
ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa_magnum
|
||||
openstack keypair create --public-key ~/.ssh/id_rsa_magnum.pub default
|
||||
}
|
||||
|
||||
function add_flavor {
|
||||
|
|
Loading…
Reference in New Issue