CloudStack sshkey reset

Bug #1440265 reported by pdion891
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-init
Expired
Medium
Unassigned
cloud-init (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

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

Tags: cloudstack
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cloud-init (Ubuntu):
status: New → Confirmed
Revision history for this message
pdion891 (pdion891) wrote :

Is there a way to replicate the set-password behavior configuration like:

```
cloud_config_modules:
 - [ set-passwords, always ]
```

Joshua Powers (powersj)
Changed in cloud-init:
status: New → Confirmed
importance: Undecided → Medium
Changed in cloud-init (Ubuntu):
importance: Undecided → Medium
tags: added: cloudstack
Revision history for this message
James Falcon (falcojr) wrote :
Changed in cloud-init:
status: Confirmed → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.