-
Notifications
You must be signed in to change notification settings - Fork 342
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
aws_ec2 inventory running against the same host multiple times #950
Comments
Possibly relevant, our aws_ec2.yml: ---
plugin: amazon.aws.aws_ec2
regions:
- us-west-2
- us-east-1
- us-east-2
filters:
instance-state-name: running
hostnames:
- tag:ExtendedName
- dns-name
- private-dns-name
strict: False
keyed_groups:
- key: tags.region
prefix: tag_region
- key: tags.Business
prefix: tag_Business
- key: tags.Environment
prefix: tag_Environment
- key: tags.ExtendedName
prefix: tag_extendedname
- key: tags.Service
prefix: tag_Service
- key: tags.Component
prefix: tag_Component
- key: tags.ADDomain
prefix: tag_ADDomain
- key: tags.DNS
prefix: tag_DNS
compose:
ansible_host: private_ip_address
... |
ansibullbot
added
bug
This issue/PR relates to a bug
inventory
inventory plugin
needs_triage
plugins
plugin (any type)
python3
labels
Aug 3, 2022
goneri
added
p2
needs_verified
Some one might want to take a look at this and reproduce it to confirm
jira
and removed
needs_triage
labels
Aug 9, 2022
We are also seeing this exact issue. |
gregharvey
added a commit
to codeenigma/ce-provision
that referenced
this issue
Aug 10, 2022
gregharvey
added a commit
to codeenigma/ce-provision
that referenced
this issue
Aug 10, 2022
Merged
goneri
added a commit
to goneri/amazon.aws
that referenced
this issue
Sep 15, 2022
Add an option to allow multiple duplicated entry for on single instance. Closes: ansible-collections#950
goneri
added a commit
to goneri/amazon.aws
that referenced
this issue
Sep 16, 2022
Add an option to allow multiple duplicated entry for on single instance. Closes: ansible-collections#950
This PR should resolve the problem: #1026 The PR is still marked a WIP (WorkInProgress) because I need to refresh the functional tests. |
goneri
added a commit
to goneri/amazon.aws
that referenced
this issue
Sep 19, 2022
Add an option to allow multiple duplicated entry for on single instance. Closes: ansible-collections#950
goneri
added a commit
to goneri/amazon.aws
that referenced
this issue
Sep 19, 2022
Add an option to allow multiple duplicated entry for on single instance. Closes: ansible-collections#950
goneri
added a commit
to goneri/amazon.aws
that referenced
this issue
Sep 19, 2022
Add an option to allow multiple duplicated entry for on single instance. Closes: ansible-collections#950
goneri
added a commit
to goneri/amazon.aws
that referenced
this issue
Sep 20, 2022
Add an option to allow multiple duplicated entry for on single instance. Closes: ansible-collections#950
goneri
added a commit
to goneri/amazon.aws
that referenced
this issue
Sep 27, 2022
Add an option to allow multiple duplicated entry for on single instance. Closes: ansible-collections#950
goneri
added a commit
to goneri/amazon.aws
that referenced
this issue
Sep 27, 2022
Add an option to allow multiple duplicated entry for on single instance. Closes: ansible-collections#950
goneri
added a commit
to goneri/amazon.aws
that referenced
this issue
Sep 27, 2022
Add an option to allow multiple duplicated entry for on single instance. Closes: ansible-collections#950
softwarefactory-project-zuul bot
pushed a commit
that referenced
this issue
Sep 29, 2022
inventory/aws_ec2: allow multi-entries for one host Depends-On: #1066 Add an option to allow multiple duplicated entries for one single instance. Closes: #950 Reviewed-by: Alina Buzachis <None> Reviewed-by: Jill R <None> Reviewed-by: Gonéri Le Bouder <goneri@lebouder.net> Reviewed-by: Markus Bergholz <git@osuv.de>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
We recently bumped
amazon.aws
collection to4.1.0
from4.0.0
and started experiencing errors due to process locks and other similar errors. We found that the inventory file was being parsed incorrectly. Instead of processing each host once, it appears to be processing each host for every IP address it has, in addition to the usual tag we use to name hosts.Issue Type
Bug Report
Component Name
aws_ec2
Ansible Version
Collection Versions
AWS SDK versions
I originally thought this was related to boto*, as those versions also changed in our deployment at the same time as the collection. I pinned the versions below, before rolling back the
amazon.aws
collection.Once the collection was rolled back and the issue was resolved, I unpinned boto* to validate. This is after unpinning:
Tl;dr
4.1.0
remains broken on both sets of boto versions aboveConfiguration
OS / Environment
Steps to Reproduce
We can reproduce this issue by using version
4.1.0
of the collection in requirements.ymlExpected Results
How it looked in
4.0.0
:Actual Results
How it looks in
4.1.0
:This results in process locks as each task is being run on the host 3 times. Certain tasks require dedicated locks, those that do fail similarly to the example below:
Code of Conduct
The text was updated successfully, but these errors were encountered: