Bug #313

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

Added by Claude Noshpitz almost 11 years ago. Updated almost 10 years ago.

Status:ClosedStart date:08/12/2010
Priority:NormalDue date:
Assignee:Tino Vázquez% Done:

100%

Category:-
Target version:Release 2.0
Resolution:fixed Pull request:
Affected Versions:

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 almost 11 years ago

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

History

#1 Updated by Ruben S. Montero almost 11 years ago

  • Assignee set to Daniel Molina

#2 Updated by Tino Vázquez almost 11 years 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.

#3 Updated by Ruben S. Montero almost 10 years ago

  • Status changed from 3 to Closed

Also available in: Atom PDF