Discussion:
Bootstrap Timeout Hard Coded in Rackspace servers.rb
Ian Lunam
2014-03-12 11:53:13 UTC
Permalink
Hi folks. This is my first post on here. I've been using Fog and Ridley for
rebuilding servers, but I've struck a problem that is code related.

In fog/lib/fog/rackspace/models/compute_v2/servers.rb on line 44 the
timeout for the server create is hard coded as 1500 (25 minutes):

def bootstrap(new_attributes = {})
server = create(new_attributes)
server.wait_for(*1500*) { ready? && !public_ip_address.empty? }
server.setup(:password => server.password)
server
end

Why would this be hard coded? It means that it will ignore the timeout I've
defined using Fog.timeout.
--
CONFIDENTIAL NOTICE
This communication contains information which is confidential and may also
be privileged. It is for the exclusive use of the intended recipient(s). If
you are not the intended recipient please note that any distribution,
copying or use of this communication or the information in it is strictly
prohibited. If you received this communication in error, please notify us
by e-mail or by telephone (020 7770 7000) and then delete the e-mail and
any copies of it. (v.9)

Which? is the business name of Which? Limited, registered in England and
Wales No. 677665. Registered office: 2 Marylebone Road, London NW1 4DF.
--
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/d/optout.
Kyle Rames
2014-03-12 19:43:10 UTC
Permalink
Hi Ian,

I believe this was hard coded in order to fix an issue with a downstream
library. The issues that necessitated this are no longer necessary. I will
go ahead and remove this and it should make it out in the next release.

If you would like I can provide you with a patch in the interim.

Kyle
Post by Ian Lunam
Hi folks. This is my first post on here. I've been using Fog and Ridley
for rebuilding servers, but I've struck a problem that is code related.
In fog/lib/fog/rackspace/models/compute_v2/servers.rb on line 44 the
def bootstrap(new_attributes = {})
server = create(new_attributes)
server.wait_for(*1500*) { ready? && !public_ip_address.empty? }
server.setup(:password => server.password)
server
end
Why would this be hard coded? It means that it will ignore the timeout
I've defined using Fog.timeout.
CONFIDENTIAL NOTICE
This communication contains information which is confidential and may also
be privileged. It is for the exclusive use of the intended recipient(s). If
you are not the intended recipient please note that any distribution,
copying or use of this communication or the information in it is strictly
prohibited. If you received this communication in error, please notify us
by e-mail or by telephone (020 7770 7000) and then delete the e-mail and
any copies of it. (v.9)
Which? is the business name of Which? Limited, registered in England and
Wales No. 677665. Registered office: 2 Marylebone Road, London NW1 4DF.
--
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/d/optout.
Loading...