-
Notifications
You must be signed in to change notification settings - Fork 397
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
Fix IOPs io1 DB instance updates and integration tests also #878
Merged
softwarefactory-project-zuul
merged 8 commits into
ansible-collections:main
from
marknet15:rds-iops-fix
Feb 4, 2022
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d4529c7
Fix IOPs update and tests also
marknet15 d098fc9
add changelog fragement
marknet15 de3a33b
update changelog
marknet15 81db75f
fix io1 logic
marknet15 4e50d49
Tests adjustments and module adjustment
marknet15 6a2f8cd
some adjustments
marknet15 6b6aff5
Update tests
marknet15 f52ef5b
PR feedback
marknet15 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ | ||
bugfixes: | ||
- rds_instance - Fix updates of ``iops`` or ``allocated_storage`` for ``io1`` DB instances when only one value is changing (https://github.com/ansible-collections/community.aws/pull/878). |
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,3 @@ | ||
disabled # something is broken | ||
slow | ||
|
||
cloud/aws |
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 |
---|---|---|
|
@@ -6,6 +6,6 @@ | |
- hosts: all | ||
gather_facts: no | ||
strategy: free | ||
serial: 8 | ||
serial: 9 | ||
roles: | ||
- rds_instance |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
82 changes: 82 additions & 0 deletions
82
tests/integration/targets/rds_instance/roles/rds_instance/tasks/test_upgrade.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,82 @@ | ||
--- | ||
- block: | ||
- name: Ensure the resource doesn't exist | ||
rds_instance: | ||
id: "{{ instance_id }}" | ||
state: absent | ||
skip_final_snapshot: True | ||
register: result | ||
|
||
- assert: | ||
that: | ||
- not result.changed | ||
ignore_errors: yes | ||
|
||
- name: Create a mariadb instance | ||
rds_instance: | ||
id: "{{ instance_id }}" | ||
state: present | ||
engine: mariadb | ||
engine_version: "{{ mariadb_engine_version }}" | ||
allow_major_version_upgrade: true | ||
username: "{{ username }}" | ||
password: "{{ password }}" | ||
db_instance_class: "{{ db_instance_class }}" | ||
allocated_storage: "{{ allocated_storage }}" | ||
register: result | ||
|
||
- assert: | ||
that: | ||
- result.changed | ||
- "result.db_instance_identifier == '{{ instance_id }}'" | ||
|
||
# Test upgrade of DB instance | ||
|
||
- name: Uprade a mariadb instance | ||
rds_instance: | ||
id: "{{ instance_id }}" | ||
state: present | ||
engine: mariadb | ||
engine_version: "{{ mariadb_engine_version_2 }}" | ||
allow_major_version_upgrade: true | ||
username: "{{ username }}" | ||
password: "{{ password }}" | ||
db_instance_class: "{{ db_instance_class }}" | ||
allocated_storage: "{{ allocated_storage }}" | ||
apply_immediately: True | ||
register: result | ||
|
||
- assert: | ||
that: | ||
- result.changed | ||
- '"engine_version" in result.pending_modified_values or result.engine_version == mariadb_engine_version_2' | ||
|
||
- name: Idempotence uprading a mariadb instance | ||
rds_instance: | ||
id: "{{ instance_id }}" | ||
state: present | ||
engine: mariadb | ||
engine_version: "{{ mariadb_engine_version_2 }}" | ||
allow_major_version_upgrade: true | ||
username: "{{ username }}" | ||
password: "{{ password }}" | ||
db_instance_class: "{{ db_instance_class }}" | ||
allocated_storage: "{{ allocated_storage }}" | ||
register: result | ||
retries: 30 | ||
delay: 10 | ||
until: result is not failed | ||
|
||
- assert: | ||
that: | ||
- not result.changed | ||
- '"engine_version" in result.pending_modified_values or result.engine_version == mariadb_engine_version_2' | ||
|
||
always: | ||
- name: Delete the instance | ||
rds_instance: | ||
id: "{{ instance_id }}" | ||
state: absent | ||
skip_final_snapshot: True | ||
wait: false | ||
ignore_errors: yes |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed these to ensure we sit in the resource length limits as there was a load of issues on the
3.0.0
release around these limits being hit leading to these tests being disabled.