Open ubuntu-server-builder opened 1 year ago
Launchpad user Launchpad Janitor(janitor) wrote on 2015-11-18T06:19:29.940311+00:00
Status changed to 'Confirmed' because the bug affects multiple users.
Launchpad user pdion891(pdion891) wrote on 2017-04-20T13:58:21.941947+00:00
Is there a way to replicate the set-password behavior configuration like:
cloud_config_modules:
- [ set-passwords, always ]
This bug was originally filed in Launchpad as LP: #1440265
Launchpad details
Launchpad user pdion891(pdion891) wrote on 2015-04-04T00:42:58.929206+00:00
CloudStack provide capability to reset SSH keys for an existing VM with the API: resetSSHKeyForVirtualMachine [1]
creating an Instance with SSHkey currently work with cloud-init. But, CloudStack have the capability to reset it, the VM must be shutdown, sshkey replaced then the vm restart, current cloud-init does not update the user sshkey using the new one available from the dhcp server.
tested with cloud-init-0.7.7
current method to mitigate this behavior is to use cloudstack scripts into the /var/lib/cloud/scripts/per-boot/ which does not benefit from cloud-init configuration capabilities.
[1] http://cloudstack.apache.org/docs/api/apidocs-4.5/root_admin/resetSSHKeyForVirtualMachine.html