jclouds-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <ignasi.barr...@gmail.com>
Subject Re: jclouds-cli problems
Date Mon, 06 Apr 2015 22:53:23 GMT
:( In that case, right now, I can't think of a better solution than
catching that one in the factory method. But I'm not an OSGi expert.
Perhaps Chris Custine could give some light? Perhaps there is
something we can tweak on the karaf side to make this work

On 7 April 2015 at 00:23, Andrew Phillips <aphillips@qrmedia.com> wrote:
>> Yes, that's what I mean. Invoke the factory there, only if there's a
>> need to connect to the SSH agent.
>
>
> Hrm...unfortunately it seems it's not quite so simple :-( This test is also
> used to verify whether an agent is even available, here:
>
> https://github.com/jclouds/jclouds/blob/master/compute/src/main/java/org/jclouds/compute/functions/CreateSshClientOncePortIsListeningOnNode.java#L64
>
> Having that blow up with a NCDFError rather than a sane
> IllegalArgumentException seems pretty nasty. And I don't immediately see a
> way to figure out whether an agent is, in fact, available, other than asking
> the ConnectorFactory to try to create one.
>
> Which gets us back to the discussion of catching the NCDFE again :-(
>
> Any thoughts?
>
> Regards
>
> ap

Mime
View raw message