Skip to content

Unhandled Exception after timeout on stack delete #143

@WLPhoenix

Description

@WLPhoenix
[2014-11-03 10:06:00,059: ERROR/MainProcess] Task stacks.destroy_hosts[4063f2b2-6b80-423b-8825-299bd2b38faa] raised exception: APIException()
Traceback (most recent call last):
  File "/home/stackdio/.virtualenvs/stackdio/lib/python2.6/site-packages/celery/task/trace.py", line 233, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/home/stackdio/.virtualenvs/stackdio/lib/python2.6/site-packages/celery/task/trace.py", line 420, in __protected_call__
    return self.run(*args, **kwargs)
  File "/home/stackdio/stackdio/stackdio/server/stacks/tasks.py", line 1916, in destroy_hosts
    driver.delete_security_group(security_group.name)
  File "/home/stackdio/stackdio/stackdio/server/cloud/providers/aws.py", line 540, in delete_security_group
    raise BadRequest(e.error_message)
BadRequest

It looks like what's happening is a host takes an exceptionally long time to shut down, which is fine. StackdIO gives a reasonable time-out error for that. After that, it doesn't detect that there are hosts to shut down, and proceeds to immediately try to delete the security group. Because that host still exists, it fails at the AWS level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions