jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Turli <notificati...@github.com>
Subject Re: [jclouds/jclouds-labs] Feature/packet 5 (#354)
Date Tue, 31 Jan 2017 09:57:18 GMT
good question, @nacx!

>From what I got, Packet has 2 types of SSH keys: Project and Personal Keys.
Any new servers you deploy to projects you are a collaborator on will have your project and
personal SSH keys, if defined.

Now if no SSH keys are defined in your account, jclouds will [generate on].(https://github.com/andreaturli/jclouds-labs/blob/bd358d7a11a3deca349e9def13eac20d3acf5f61/packet/src/main/java/org/jclouds/packet/compute/strategy/CreateSshKeysThenCreateNodes.java#L99-L99)
and it will add it to the device by default.

That works fine, probably `listNodes` doesn't work correctly as creds are not configured in
[DeviceToNodemetadata](https://github.com/andreaturli/jclouds-labs/blob/0de7a600118cd3b9970a98efd6c62658f85e6970/packet/src/main/java/org/jclouds/packet/compute/functions/DeviceToNodeMetadata.java)
function: the `Device` object references all the ssh key allowed to access the device, so
in principle we can add as `credentials` one of them. 

Problem is that jclouds is deleting that key in the callback configured at [CreateSshKeysThenCreateNodes](https://github.com/andreaturli/jclouds-labs/blob/bd358d7a11a3deca349e9def13eac20d3acf5f61/packet/src/main/java/org/jclouds/packet/compute/strategy/CreateSshKeysThenCreateNodes.java#L197-L197)

What do you think @nacx ?



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/354#issuecomment-276321217
Mime
View raw message