canonical / canonical/cloud-init

CloudStack sshkey reset

Open
#2,537 2 comments 0 reactions 0 assignees View on GitHub
bug launchpad
Dominant language
Python
Stars
3.8k
Forks
1.1k
Avg merge
2d 23h
Merged PRs (30d)
18

Description

This bug was originally filed in Launchpad as [LP: #1440265](https://bugs.launchpad.net/cloud-init/+bug/1440265)

Launchpad details

affected_projects = ['cloud-init (Ubuntu)']

assignee = None
assignee_name = None
date_closed = None
date_created = 2015-04-04T00:42:58.929206+00:00
date_fix_committed = None
date_fix_released = None
id = 1440265
importance = medium
is_complete = False
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1440265
milestone = None
owner = pdion891
owner_name = pdion891
private = False
status = confirmed
submitter = pdion891
submitter_name = pdion891
tags = ['cloudstack']
duplicates = []

_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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.