yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #79027
[Bug 1834065] [NEW] 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
Public bug reported:
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 DataSourceCloudSigma.py to change
self.ssh_public_key = server_meta['ssh_public_key'] to
self.ssh_public_key = server_meta.get('ssh_public_key', '')
and it seems to work.
I've included the cloud-init collect-logs tar package.
** Affects: cloud-init
Importance: Undecided
Status: New
** Attachment added: "cloud-init.tar.gz"
https://bugs.launchpad.net/bugs/1834065/+attachment/5272866/+files/cloud-init.tar.gz
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1834065
Title:
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
Status in cloud-init:
New
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 DataSourceCloudSigma.py to change
self.ssh_public_key = server_meta['ssh_public_key'] to
self.ssh_public_key = server_meta.get('ssh_public_key', '')
and it seems to work.
I've included the cloud-init collect-logs tar package.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1834065/+subscriptions
Follow ups