weizhouapache commented on issue #4809: URL: https://github.com/apache/cloudstack/issues/4809#issuecomment-800081388
> > @aleskxyz > > most cloudstack users use the following scripts (or similar) > > https://github.com/apache/cloudstack/blob/master/setup/bindir/cloud-set-guest-password.in > > https://github.com/apache/cloudstack/blob/master/setup/bindir/cloud-set-guest-password-configdrive.in > > the vm password is processed like > > (1) save vm password in VR > > (2) when vm starts, it gets dhcp ip from dhcp server (VR), then sends request to the a password server (=dhcp server/VR from dhcp lease file) > > (3) when vm gets password from password server(VR), it sends a request to remove the password in password server (VR). > > the scripts get password from only 1 password server/VR (and exit). password is also saved into only 1 password server/VR. > > that's the expected behavior in cloudstack. > > in cloudstack , each nic has a `device_id` in `nics` table. > > deviceId will be also displayed in response and UI, see #4768 > > Thanks @weizhouapache > Did you use these scripts with cloud-init? > One of the reasons that I open this issue was simplifying password management with cloud-init. > If you have any experience with it, please leave your comment in the related question in mailing-list: > https://lists.apache.org/thread.html/r57b74dcd13d656ee0351bdf93bf3ee0ca307ce972c701821d3245706%40%3Cusers.cloudstack.apache.org%3E @aleskxyz I have not subscribed to the users mailing list. see my answer below (1) we use cloud-init to set up cloud server, but we do not use it to manage/update password and ssh keys. we use a script similar as the scripts in my previous comment. the script will be executed when an interface is up. (2) I guess the reason of ssh key is not applied is that, you use `- ssh`, not `- [ ssh, always ]`. (3) for configdrive, please use script https://github.com/apache/cloudstack/blob/master/setup/bindir/cloud-set-guest-password-configdrive.in, it looks good. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
