On Wed, Jan 20, 2010 at 1:54 PM, David Lutterkort lutter@redhat.com wrote:
On Wed, 2010-01-20 at 12:08 +0100, Michal Fojtik wrote:
On 19/01/10 15:04 -0800, David Lutterkort wrote:
Some comments on the driver itself:
# Storage capacity is same on all machines (10gb), it could be extended using 'Cloud Storage' define_hardware_profile('server-with-512mb-ram') do cpu 2 memory 0.5 storage 10 architecture 'i386' end
I haven't quite made my way through the GoGrid docs, but they also support x86_64 images.
Indeed.
So my question here is, what exactly means 'architecture' in hardware_profile ? Because in GoGrid, architecture is part of image description (32-bit|64-bit). So I just guessing, but hardware_profiles will be something like a filters for images ?
Yes, one (or the main) purpose of HWP's is to make it possible to decide whether a certain image can be run on a certain cloud. Architecture will really only become important when we have tools that can transform an image from one cloud to another, which is a ways off.
define_instance_states do start.to( :off ) .on( :create ) pending.to( :on ) .automatically running.to( :off ) .on( :reboot ) running.to( :off ) .on( :stop ) shutting_down.to( :off ) .automatically stopped.to( :off ) .automatically end
This isn't right. For example, you have a transition from start to off on create. I assume you mean start.to(:pending).on(:create) etc.
I'm sorry it was my mistake.
Can you include a link to the GoGrid docs that describe instance states ? (Have I mentioned I find their docs hard to follow)
http://wiki.gogrid.com/wiki/index.php/API:Server_(Object)
state option 1.0 The state of this server.
* To list option values, call common.lookup.list[1] with lookup set to * server.state
Returns these statuses:
On Off Starting Stopping Restarting Saving Restoring
But unfortunatelly, the only statuses that API shows are 'On' and 'Off'. I tried it several times, added sleep, forcing it manually but it always returns On or Off.
Aah .. yeah, it's even in the FAQ: http://wiki.gogrid.com/wiki/index.php/Frequently_Asked_Questions#API
For now, they only have 'On' and 'Off' as states.
David
Here is another option for BDD frameworks that I have seen on several blogs, and was mentioned on the Ruby5 podcast: http://evan.tiggerpalace.com/articles/2009/09/12/coulda/