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

Adding a timeout variable that will cause the deployment to stop and rollback #8

Merged
merged 1 commit into from
May 3, 2020

Conversation

adenot
Copy link
Member

@adenot adenot commented May 2, 2020

No description provided.

@adenot
Copy link
Member Author

adenot commented May 2, 2020

Example output:

---> Creating deployment with CodeDeploy
---> For more info: https://ap-southeast-2.console.aws.amazon.com/codesuite/codedeploy/deployments/d-PBIDE0003
---> Deployment created!
2020-05-02 13:54:12 +0000 (service copacabana) updated computedDesiredCount for taskSet ecs-svc/9644724092094703777 to 1.
2020-05-02 13:54:12 +0000 (service copacabana, taskSet ecs-svc/9644724092094703777) has started 1 tasks: (task 985f53b5-aeac-40c2-ae01-6f15e3b9ce4d).
2020-05-02 13:54:23 +0000 (service copacabana, taskSet ecs-svc/9644724092094703777) registered 1 targets in (target-group arn:aws:elasticloadbalancing:ap-southeast-2:<REDACTED>:targetgroup/allan-01-copacabana-gr/0236300843b9c0c1)
2020-05-02 13:54:29 +0000 (service copacabana) deregistered 1 targets in (target-group arn:aws:elasticloadbalancing:ap-southeast-2:<REDACTED>:targetgroup/allan-01-copacabana-gr/0236300843b9c0c1)
2020-05-02 13:54:29 +0000 (service copacabana) has begun draining connections on 1 tasks.
2020-05-02 13:54:35 +0000 (service copacabana, taskSet ecs-svc/9644724092094703777) has started 1 tasks: (task 13adcf38-dbc4-4781-9943-244fdef7fe05).
2020-05-02 13:55:07 +0000 (service copacabana, taskSet ecs-svc/9644724092094703777) registered 1 targets in (target-group arn:aws:elasticloadbalancing:ap-southeast-2:<REDACTED>:targetgroup/allan-01-copacabana-gr/0236300843b9c0c1)
2020-05-02 13:55:19 +0000 (service copacabana, taskSet ecs-svc/2090134827509125896) (instance i-0ec9eb6a5a857c114) (port 60204) is unhealthy in (target-group arn:aws:elasticloadbalancing:ap-southeast-2:<REDACTED>:targetgroup/allan-01-copacabana-bl/2012358c01b6588f) due to (reason Health checks failed with these codes: [502])
2020-05-02 13:55:19 +0000 (service copacabana) deregistered 1 targets in (target-group arn:aws:elasticloadbalancing:ap-southeast-2:<REDACTED>:targetgroup/allan-01-copacabana-bl/2012358c01b6588f)
2020-05-02 13:55:19 +0000 (service copacabana, taskSet ecs-svc/2090134827509125896) has stopped 1 running tasks: (task bc138c86-1ddb-4869-90db-d714246160b4).
2020-05-02 13:55:29 +0000 (service copacabana, taskSet ecs-svc/2090134827509125896) has started 1 tasks: (task 76f8b634-e5d2-4793-99ea-5a39c9b2b648).
2020-05-02 13:55:54 +0000 (service copacabana, taskSet ecs-svc/2090134827509125896) registered 1 targets in (target-group arn:aws:elasticloadbalancing:ap-southeast-2:<REDACTED>:targetgroup/allan-01-copacabana-bl/2012358c01b6588f)
---> WARNING: Timeout reached. Rolling back deployment...
{
    "status": "Succeeded",
    "statusMessage": "No more commands will be scheduled for execution in the deployment instances"
}
---> Task Set ID: ecs-svc/9644724092094703777
---> Waiting 360 seconds for tasks to stabilise
---> Deployment status: Stopped
---> Displaying logs of STOPPED task: arn:aws:ecs:ap-southeast-2:<REDACTED>:task/985f53b5-aeac-40c2-ae01-6f15e3b9ce4d
Example app listening on port 8080!
======== TASK STOPPED ========
Task ID:        985f53b5-aeac-40c2-ae01-6f15e3b9ce4d
Task ARN:       arn:aws:ecs:ap-southeast-2:<REDACTED>:task/985f53b5-aeac-40c2-ae01-6f15e3b9ce4d
Service Name:   copacabana
Cluster Name:   allan-01
Started at:     2020-05-02 13:54:13.770000+00:00
Stopped at:     2020-05-02 13:55:00.502000+00:00
Stopped Reason: Task stopped by user
Stop Code:      UserInitiated

---> Deploy timeout reached and rollback triggered.
---> ERROR: Deployment FAILED!
make: *** [deploy] Error 1

@adenot adenot merged commit fb38256 into master May 3, 2020
@adenot adenot deleted the timeout branch May 3, 2020 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant