[
https://issues.apache.org/jira/browse/JCLOUDS-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Turli updated JCLOUDS-1032:
----------------------------------
Description:
When you pass a keyPairName w/t a KeyPair private key, the ssh connection to
the node fails subsequently
Looking at
https://github.com/jclouds/jclouds/blob/master/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/compute/strategy/ApplyNovaTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet.java#L116-L125
seems jclouds should at least warn if keypairName is not nulla and
keypairPrivateKey is null with something like:
"Notice ssh connection to %s may subsequently fail because no private key is
configured for: %s; Please use
`options.overrideLoginPrivateKey(rsa_private_text)`, if needed"
was:
When you pass a keyPairName w/t a KeyPair private key, the ssh connection to
the node fails subsequently
Looking at
https://github.com/jclouds/jclouds/blob/master/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/compute/strategy/ApplyNovaTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet.java#L116-L125
seems jclouds should at least warn if keypairName is not nulla and
keypairPrivateKey is null with something like:
"Notice ssh connection may subsequently fail because no private key configured
for: %s; Please use `options.overrideLoginPrivateKey(rsa_private_text)`, if
needed"
> Re-use existing KeyPair
> ------------------------
>
> Key: JCLOUDS-1032
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1032
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-compute
> Affects Versions: 1.9.2, 2.0.0
> Reporter: Andrea Turli
>
> When you pass a keyPairName w/t a KeyPair private key, the ssh connection to
> the node fails subsequently
> Looking at
> https://github.com/jclouds/jclouds/blob/master/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/compute/strategy/ApplyNovaTemplateOptionsCreateNodesWithGroupEncodedIntoNameThenAddToSet.java#L116-L125
> seems jclouds should at least warn if keypairName is not nulla and
> keypairPrivateKey is null with something like:
> "Notice ssh connection to %s may subsequently fail because no private key is
> configured for: %s; Please use
> `options.overrideLoginPrivateKey(rsa_private_text)`, if needed"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)