Bug #313

econe-describe-instances fails during VM state "prol"

Added by Claude Noshpitz almost 2 years ago. Updated 8 months ago.

Status:Closed Start date:08/12/2010
Priority:Normal Due date:
Assignee:Tino Vázquez % Done:

100%

Category:Cloud APIs
Target version:Release 2.0
Resolution:fixed Affected Version:
Story points-
Velocity based estimate-

Description

EC2QueryServer.rb doesn't map ONE state 'prol' to an EC2 state. So, at some point while a VM is coming up (when it goes into PROLOG state) econe-describe-instances will fail with a message like

econe-describe-instances: undefined method `elements' for nil:NilClass

A patch might look like

--- a/src/cloud/ec2/lib/EC2QueryServer.rb
++ b/src/cloud/ec2/lib/EC2QueryServer.rb
@ -49,11 +49,11 @ class EC2QueryServer < CloudServer
'susp' => :pending,
'done' => :terminated,
'fail' => :terminated,
- 'prol' => :pend,
'prol' => :pending,
'boot' => :running,
'runn' => :running,
'migr' => :running,
- 'save' => :pend,
+ 'save' => :pending,
'epil' => :shutdown,
'shut' => :shutdown,

On the other hand there might be a meaningful reason why :pend rather than :pending is currently specified. In any case this is a showstopper for econe- command usage.

Associated revisions

Revision 6baa8756
Added by Tino Vázquez over 1 year ago

bug #313: Correct wrong state "pend" to "pending"

History

Updated by Ruben S. Montero over 1 year ago

  • Assignee set to Daniel Molina

Updated by Tino Vázquez over 1 year ago

  • Status changed from New to 3
  • Assignee changed from Daniel Molina to Tino Vázquez
  • % Done changed from 0 to 100
  • Resolution set to fixed

Changed the wrong state "pend".

Thanks Claude for your feedback.

Updated by Ruben S. Montero 8 months ago

  • Status changed from 3 to Closed

Also available in: Atom PDF