Sylvain Kalache
2013-10-23 23:18:38 UTC
Hello!
I'm back with a AWS spot instance issue. That time I can launch a spot
instance, but it seems the object is not well constructed as I can't do
anything with the returned server object. I've done a lot of digging, here
is are my finding so far.
Some context: in lib/fog/compute/models/server.rb<https://github.com/fog/fog/blob/master/lib/fog/compute/models/server.rb> in
the method private_key_path, I that Fog.credentials[:private_key_path] is
everytime returning nil but somehow but @private_key_path already has the
path to the private key he spot bootstrap.
However, once the instance is launched, if I want to interact in my code
with the server object that is being returned, for example, using the sshmethod. I get an ArgumentError
:key_data, :keys, :password or a loaded ssh-agent is required to initialize
SSH raised exception because private_key_path is not defined in
lib/fog/compute/models/server.rb<https://github.com/fog/fog/blob/master/lib/fog/compute/models/server.rb>
so :key_data is not defined either in lib/fog/core/ssh.rb<https://github.com/fog/fog/blob/master/lib/fog/core/ssh.rb>
.
May be you guys will are more context and you'll have an idea of where is
might failed, anyway I'll keep digging it.
I'm back with a AWS spot instance issue. That time I can launch a spot
instance, but it seems the object is not well constructed as I can't do
anything with the returned server object. I've done a lot of digging, here
is are my finding so far.
Some context: in lib/fog/compute/models/server.rb<https://github.com/fog/fog/blob/master/lib/fog/compute/models/server.rb> in
the method private_key_path, I that Fog.credentials[:private_key_path] is
everytime returning nil but somehow but @private_key_path already has the
path to the private key he spot bootstrap.
However, once the instance is launched, if I want to interact in my code
with the server object that is being returned, for example, using the sshmethod. I get an ArgumentError
:key_data, :keys, :password or a loaded ssh-agent is required to initialize
SSH raised exception because private_key_path is not defined in
lib/fog/compute/models/server.rb<https://github.com/fog/fog/blob/master/lib/fog/compute/models/server.rb>
so :key_data is not defined either in lib/fog/core/ssh.rb<https://github.com/fog/fog/blob/master/lib/fog/core/ssh.rb>
.
May be you guys will are more context and you'll have an idea of where is
might failed, anyway I'll keep digging it.
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.