Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

status command fails when the ASG contains terminated instances in it #81

Open
kaushik opened this issue Mar 22, 2016 · 0 comments
Open
Labels

Comments

@kaushik
Copy link
Contributor

kaushik commented Mar 22, 2016

When we terminate an instance and bring it out of service, then the status command fails for that stack because it tries get info from the terminated instance.

/.rvm/gems/ruby-2.2.3@api/gems/moonshot-0.7.0/lib/moonshot/stack_asg_printer.rb:117:in `instance_row': undefined method `public_ip_address' for nil:NilClass (NoMethodError)
  from /.rvm/gems/ruby-2.2.3@api/gems/moonshot-0.7.0/lib/moonshot/stack_asg_printer.rb:103:in `block in create_instance_table'
  from /.rvm/gems/ruby-2.2.3@api/gems/moonshot-0.7.0/lib/moonshot/stack_asg_printer.rb:102:in `map'
  from /.rvm/gems/ruby-2.2.3@api/gems/moonshot-0.7.0/lib/moonshot/stack_asg_printer.rb:102:in `create_instance_table'
  from /.rvm/gems/ruby-2.2.3@api/gems/moonshot-0.7.0/lib/moonshot/stack_asg_printer.rb:29:in `block in print'
  from /.rvm/gems/ruby-2.2.3@api/gems/moonshot-0.7.0/lib/moonshot/stack_asg_printer.rb:17:in `each'
  from /.rvm/gems/ruby-2.2.3@api/gems/moonshot-0.7.0/lib/moonshot/stack_asg_printer.rb:17:in `print'
  from /.rvm/gems/ruby-2.2.3@api/gems/moonshot-0.7.0/lib/moonshot/stack.rb:87:in `status'
  from /.rvm/gems/ruby-2.2.3@api/gems/moonshot-0.7.0/lib/moonshot/controller.rb:35:in `status'
  from /.rvm/gems/ruby-2.2.3@api/gems/moonshot-0.7.0/lib/moonshot/cli.rb:116:in `status'
  from /.rvm/gems/ruby-2.2.3@api/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
  from /.rvm/gems/ruby-2.2.3@api/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
  from /.rvm/gems/ruby-2.2.3@api/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
  from /.rvm/gems/ruby-2.2.3@api/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
  from ./bin/environment:94:in `<main>'
@kaushik kaushik added the bug label Mar 22, 2016
@askreet askreet modified the milestone: moonshot-1.1.0 Nov 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants