weizhouapache commented on issue #9630:
URL: https://github.com/apache/cloudstack/issues/9630#issuecomment-2345784531

   > @hanisirfan On Ubuntu 22 instead service with script above, I created 
service with script in /etc/init.d/ and enabled it. In cloud.cfg `- 
[set_passwords, always]`
   > 
   > ```
   > ### BEGIN INIT INFO
   > # Provides:          password
   > # Required-Start:    $all
   > # Required-Stop:
   > # Default-Start:     2 3 4 5
   > # Default-Stop:
   > # Short-Description: your description here
   > ### END INIT INFO
   > cloud-init clean
   > ```
   
   @top-secrett 
   that could be a good solution. will it run before `cloud-init` ?
   
   It looks like the issue is, without `cloud-init clean`, cloud-init will not 
re-fetch userdata/metadata/password information from cloudstack VR, therefore 
new sshkey/password are not applied.


-- 
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-unsubscr...@cloudstack.apache.org

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

Reply via email to