heat - access created vm - permission denied (publickey)
Hi,
trying to ssh to a vm created through heat I found this error: Permission denied (publickey)
The strange thing is that if I manually start an identical VM (same image, flavor, security_group, keypair, network) I could perfectly access the VM.
Anyone has encountered this issue before?
Thanks
ISSUE UPDATE I could not explain myself why VM creation works differently through heat... Is there anything I missed?
ISSUE UPDATE2 I tried the same heat template with a cirros image, and I can access to the VM with the key. The not-working image is an ubuntu12.04 with cloud-init (image downloaded from http://cloud-images.ubuntu.com/ )
ISSUE UPDATE3 I changed approach, trying to create the keypair at runtime, during stack creation. The key is correctly created and I print the private key as template output. When I use the key to access the VM I get same error as before...
resources:
test-kp:
type: OS::Nova::KeyPair
properties:
name: test-kp
save_private_key: True
outputs:
test-kp-private-key:
description: keypair private key
value: { get_attr: [ test-kp, private_key ] }
ISSUE UPDATE4 Same problem with centos template
It seems like the key is not correctly injected when deploying through Heat...
Did you give the key while creating the stack, it takes in the parameter
KeyNameyes, I gave the key with the parameter KeyName. It works correctly, in the sense that I see in Horizon the VM with the correct key, but when I try to access it with that key it shows that error...
What is the username you're using to log in, and does it match the one configured as
instance_userin/etc/heat/heat.conf?I think that option is deprecated in Juno. I use ubuntu or centos users accessing corresponding images.
Currently facing same kind of issue. Did you solve it?