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 ?
> 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.
[1]
http://wiki.gogrid.com/wiki/index.php/API:common.lookup.list
- Michal