cloud-init v19.1 fails to read user-data if a VM on CloudSigma doesn't have a ssh public key in VM properties/SSH keys
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Medium
|
Unassigned |
Bug Description
I'm using python 3 to access CloudSigma resources.
There are two python libraries that can be used to access CloudSigma, libcloud and pycloudsigma.
Neither have functions to deal with VM instance ssh public keys. There are REST API paths
/api/2.0/keypairs/ and /api/2.0/pubkeys/ but they are not in either of the libraries' code)
I can't add the ssh_public_key to the VM metadata because it's a reserved word.
"! Reserved meta keys are: Description, ssh_public_key, optimize_for."
If I try to add it, it just disappears in the web dashboard.
The only choice for me seems to be using CloudSigma's web dashboard to attach the ssh public key
to the VM instance and that's not what I would like to do.
rharper on irc suggested to patch DataSourceCloud
self.
self.
and it seems to work.
I've included the cloud-init collect-logs tar package.
What I meant with the "only choice for me" is that there's a separate tab in the CloudSigma web dashboard for the VM, "SSH Keys", where I can attach the ssh public key.