-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ec2_ami - allow ImageAvailable waiter to retry when the image can't b…
…e found (#1321) ec2_ami - allow ImageAvailable waiter to retry when the image can't be found SUMMARY When using the image_available waiter shortly after triggering the creation of an AMI this can fail (Amazon sometimes return from creation calls, with an ID, before the APIs recognise that the resource exists) Additionally splits up the AMI tests, it's sporadically timing out. (taking a snapshot of a running instance is slow) ISSUE TYPE Bugfix Pull Request COMPONENT NAME ec2_ami ADDITIONAL INFORMATION https://e7359f847acd480e3075-df27b72133198827a14e5ee13616eeff.ssl.cf1.rackcdn.com/periodic/github.com/ansible-collections/amazon.aws/main/integration-amazon.aws-target-ec2_ami/adb87fd/job-output.txt Reviewed-by: Alina Buzachis <None>
- Loading branch information
Showing
18 changed files
with
1,154 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
minor_changes: | ||
- ec2_ami - allow ``ImageAvailable`` waiter to retry when the image can't be found (https://github.com/ansible-collections/amazon.aws/pull/1321). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
time=20m | ||
# Split out, but sill needed for "nightly" tests (for now) - will remove once Zuul periodic job is | ||
# updated | ||
disabled | ||
|
||
cloud/aws | ||
ec2_ami_info | ||
ec2_snapshot_info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
time=30m | ||
cloud/aws | ||
ec2_ami | ||
ec2_ami_info | ||
ec2_snapshot_info |
11 changes: 11 additions & 0 deletions
11
tests/integration/targets/ec2_ami_instance/defaults/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
availability_zone: '{{ ec2_availability_zone_names[0] }}' | ||
|
||
# defaults file for test_ec2_ami | ||
ec2_ami_name: '{{ resource_prefix }}-ec2-ami' | ||
ec2_ami_description: 'Created by Ansible ec2_ami integration tests' | ||
|
||
ec2_ami_image: '{{ ec2_ami_id }}' | ||
|
||
vpc_cidr: '10.{{ 256 | random(seed=resource_prefix) }}.0.0/16' | ||
subnet_cidr: '10.{{ 256 | random(seed=resource_prefix) }}.1.0/24' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dependencies: | ||
- setup_ec2_facts |
Oops, something went wrong.