You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting a ubuntu cloud image without a key assigned, then poweroff and use "reset SSH key pair" pick your key.
Start the VM an the key will not be set and ssh access doesn't work.
I'm pretty sure it also doesnt work if another key was set before, it works if you pick a key from create instance.
versions
4.19.3
Tried with NFS primary storage and Linstor.
The steps to reproduce the bug
create a ubuntu cloud image instance without key pair
Could this be more related to when cloud-init runs? I have seen some behavior where cloud-init will only run actions related to SSH keys on first boot.
I have no idea how the "reset SSH key" is implemented, but just from the name of it, it sounds like it could fix it after the first boot.
But maybe then it is more a documentation/naming issue.
the issue is with ubuntu cloud image, not cloudstack.
you can retry after change in /etc/cloud/cloud.cfg : - ssh ==>- [ ssh, always]
Ok so it would work, but only if the correct cloud-init options are set, sorry I just didn't know this.
Activity
adietrich-ussignal commentedon Oct 28, 2025
Could this be more related to when cloud-init runs? I have seen some behavior where cloud-init will only run actions related to SSH keys on first boot.
rp- commentedon Oct 28, 2025
I have no idea how the "reset SSH key" is implemented, but just from the name of it, it sounds like it could fix it after the first boot.
But maybe then it is more a documentation/naming issue.
weizhouapache commentedon Oct 28, 2025
the issue is with ubuntu cloud image, not cloudstack.
you can retry after change in /etc/cloud/cloud.cfg :
- ssh==>- [ ssh, always]rp- commentedon Oct 28, 2025
Ok so it would work, but only if the correct cloud-init options are set, sorry I just didn't know this.