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

DbTerminator for SSM Parameter Store can race with the tests or itself #113

Open
jillr opened this issue Oct 19, 2020 · 0 comments
Open
Assignees

Comments

@jillr
Copy link
Collaborator

jillr commented Oct 19, 2020

We're seeing ParameterNotFound in our Cloudwatch logs, for example on this CI run. It appears that everything should have worked here so need to reproduce and see if the Db is not updating the entry after the tests delete the Parameter or if something else is going on.
https://app.shippable.com/github/ansible-collections/community.aws/runs/847/35/console

"error \"ParameterNotFound\" terminating SsmParameter: name=/shippable-847-35/deeppath/toodir/samevar, id=/shippable-847-35/deeppath/toodir/samevar age=0:10:01, stale=True"

"Traceback (most recent call last):
  File \"/var/task/terminator/__init__.py\", line 138, in terminate
    instance.terminate()
  File \"/var/task/terminator/application_services.py\", line 323, in terminate
    self.client.delete_parameter(Name=self.id)
  File \"/opt/python/lib/python3.7/site-packages/botocore/client.py\", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File \"/opt/python/lib/python3.7/site-packages/botocore/client.py\", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.errorfactory.ParameterNotFound: An error occurred (ParameterNotFound) when calling the DeleteParameter operation:"

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ssm.html#SSM.Client.delete_parameter

@jillr jillr self-assigned this Oct 19, 2020
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

No branches or pull requests

1 participant