Fix undercloud key upload to nova keypairs UC post
Stdin does not work for the 'openstack keypair create' command used in extraconfig/post_deploy/undercloud_post.sh, when installed via Heat templates. This ends up with different keys created for underlcoud admin and the default nova keypair, which is configured by Ironic for overcloud nodes. So those can not be contacted by undercloud admin via SSH. The deployed-server/scripts/enable-ssh-admin.sh fails w/o that fix and makes not possible to deploy BM/OVB overcloud on top of UC installed with Heat. Change-Id: Ifb9c2d5eef731c41999d4ef5daa447edf74fd262 Co-authored-by: Harald Jensas <hjensas@redhat.com> Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This commit is contained in:
parent
70b3d1d844
commit
e14ecb1114
|
@ -152,7 +152,7 @@ if openstack keypair show default; then
|
|||
echo Keypair already exists.
|
||||
else
|
||||
echo Creating new keypair.
|
||||
openstack keypair create 'default' < $HOMEDIR/.ssh/id_rsa.pub
|
||||
openstack keypair create --public-key $HOMEDIR/.ssh/id_rsa.pub 'default'
|
||||
fi
|
||||
|
||||
# MISTRAL WORKFLOW CONFIGURATION
|
||||
|
|
Loading…
Reference in New Issue