Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Record the suffix-stripped version of termination events by the CloudFor... #140

Merged

Conversation

gnethercutt
Copy link
Contributor

...mationChaosMonkey to correctly respect maxTerminationsPerDay

…FormationChaosMonkey to correctly respect maxTerminationsPerDay
@cloudbees-pull-request-builder

SimianArmy-pull-requests #151 FAILURE
Looks like there's a problem with this pull request

@gnethercutt
Copy link
Contributor Author

The CloudFormationChaosMonkey overrides isMaxTerminationCountExceeded() to use the suffix-stripped version of the ASG name when evaluating targets in doMonkeyBusiness(). The termination events serialized into SDB do not have their groupName stripped of their CloudFormation suffix. This led to isMaxTerminationCountExceeded() always evaluating to false, and thus, multiple terminations for a single ASG each day.

The most straightforward (and consistent) fix seems to be overriding terminateInstance() as well.

@cloudbees-pull-request-builder

SimianArmy-pull-requests #152 FAILURE
Looks like there's a problem with this pull request

…eInstance, so remove it from sendTerminationNotification. Otherwise, we perform the conversion twice.
@cloudbees-pull-request-builder

SimianArmy-pull-requests #153 FAILURE
Looks like there's a problem with this pull request

@gnethercutt
Copy link
Contributor Author

Not sure why the cobertura report isn't getting generated. Looks like the target is being skipped, but I don't think that is related to my changes.

:generateCoberturaReport UP-TO-DATE

@cloudbees-pull-request-builder

SimianArmy-pull-requests #163 SUCCESS
This pull request looks good

ebukoski added a commit that referenced this pull request Jul 23, 2015
…on_naming

Record the suffix-stripped version of termination events by the CloudFor...
@ebukoski ebukoski merged commit 6e1c739 into Netflix:master Jul 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants