8000 Tail (-t) breaks if aws spend more than 5 seconds to start the stack. · Issue #515 · cloudtools/stacker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Tail (-t) breaks if aws spend more than 5 seconds to start the stack. #515
Closed
@Evnsan

Description

@Evnsan

Hey folks, I am facing this problem when trying to deploy a stack with asg and codedeploy. Do you think it's a big deal?

[2017-11-29T15:10:55] Tailing stack: alb-test-1-app
Process Process-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/home/evnsan/git/cobli/deploy/cloudformation/cloudform-venv/local/lib/python2.7/site-packages/stacker/providers/aws/default.py", line 541, in tail_stack
    self.tail_stack(stack, retries=retries + 1, **kwargs)
  File "/home/evnsan/git/cobli/deploy/cloudformation/cloudform-venv/local/lib/python2.7/site-packages/stacker/providers/aws/default.py", line 541, in tail_stack
    self.tail_stack(stack, retries=retries + 1, **kwargs)
  File "/home/evnsan/git/cobli/deploy/cloudformation/cloudform-venv/local/lib/python2.7/site-packages/stacker/providers/aws/default.py", line 541, in tail_stack
    self.tail_stack(stack, retries=retries + 1, **kwargs)
  File "/home/evnsan/git/cobli/deploy/cloudformation/cloudform-venv/local/lib/python2.7/site-packages/stacker/providers/aws/default.py", line 541, in tail_stack
    self.tail_stack(stack, retries=retries + 1, **kwargs)
  File "/home/evnsan/git/cobli/deploy/cloudformation/cloudform-venv/local/lib/python2.7/site-packages/stacker/providers/aws/default.py", line 541, in tail_stack
    self.tail_stack(stack, retries=retries + 1, **kwargs)
  File "/home/evnsan/git/cobli/deploy/cloudformation/cloudform-venv/local/lib/python2.7/site-packages/stacker/providers/aws/default.py", line 535, in tail_stack
    include_initial=False)
  File "/home/evnsan/git/cobli/deploy/cloudformation/cloudform-venv/local/lib/python2.7/site-packages/stacker/providers/aws/default.py", line 577, in tail
    initial_events = self.get_events(stack_name)
  File "/home/evnsan/git/cobli/deploy/cloudformation/cloudform-venv/local/lib/python2.7/site-packages/stacker/providers/aws/default.py", line 562, in get_events
    StackName=stackname
  File "/home/evnsan/git/cobli/deploy/cloudformation/cloudform-venv/local/lib/python2.7/site-packages/botocore/client.py", line 314, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/home/evnsan/git/cobli/deploy/cloudformation/cloudform-venv/local/lib/python2.7/site-packages/botocore/client.py", line 612, in _make_api_call
    raise error_class(parsed_response, operation_name)
ClientError: An error occurred (ValidationError) when calling the DescribeStackEvents operation: Stack [alb-test-1-app] does not exist

stacker/providers/aws/default.py:

 24 MAX_TAIL_RETRIES = 5
.
.
.
532         try:                                                                    
533             self.tail(stack.fqn,                                                
534                       log_func=log_func,                                        
535                       include_initial=False)                                    
536         except botocore.exceptions.ClientError as e:                            
537             if "does not exist" in e.message and retries < MAX_TAIL_RETRIES:    
538                 # stack might be in the process of launching, wait for a second 
539                 # and try again                                                 
540                 time.sleep(1)                                                   
541                 self.tail_stack(stack, retries=retries + 1, **kwargs)           
542             else:                                                               
543                 raise

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0