You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "rp- (via GitHub)" <gi...@apache.org> on 2025/10/24 20:08:27 UTC

[I] Reset SSH key pair doesn't work [cloudstack]

rp- opened a new issue, #11910:
URL: https://github.com/apache/cloudstack/issues/11910

   ### problem
   
   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
   
   1. create a ubuntu cloud image instance without key pair
   2. stop VM
   3. reset ssh key pair
   4. start VM
   5. ssh login doesn't work, because key isn't set
   
   
   ### What to do about it?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Reset SSH key pair doesn't work [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #11910:
URL: https://github.com/apache/cloudstack/issues/11910#issuecomment-3457721071

   > 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]`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Reset SSH key pair doesn't work [cloudstack]

Posted by "rp- (via GitHub)" <gi...@apache.org>.
rp- commented on issue #11910:
URL: https://github.com/apache/cloudstack/issues/11910#issuecomment-3457666381

   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Reset SSH key pair doesn't work [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland closed issue #11910: Reset SSH key pair doesn't work
URL: https://github.com/apache/cloudstack/issues/11910


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Reset SSH key pair doesn't work [cloudstack]

Posted by "adietrich-ussignal (via GitHub)" <gi...@apache.org>.
adietrich-ussignal commented on issue #11910:
URL: https://github.com/apache/cloudstack/issues/11910#issuecomment-3456655399

   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. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Reset SSH key pair doesn't work [cloudstack]

Posted by "rp- (via GitHub)" <gi...@apache.org>.
rp- commented on issue #11910:
URL: https://github.com/apache/cloudstack/issues/11910#issuecomment-3457821486

   > > 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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org