Skip to content

Improve error handling rds.py for RDS cluster and snapshot - #553

Merged
softwarefactory-delete-me[bot] merged 5 commits into
ansible-collections:mainfrom
alinabuzachis:module_utils/rds.py-update-cluster
Mar 18, 2022
Merged

softwarefactory-delete-me[bot] merged 5 commits into
ansible-collections:mainfrom
alinabuzachis:module_utils/rds.py-update-cluster

Conversation

@alinabuzachis

@alinabuzachis alinabuzachis commented Oct 27, 2021 •

Copy link
Copy Markdown
Collaborator
SUMMARY
  • Improve error handling rds.py for rds_cluster
  • Add handlers for rds_instance_snapshot and rds_cluster_snapshot
ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

module_utils/rds.py

@ansibullbot ansibullbot added WIP Work in progress feature This issue/PR relates to a feature request module_utils module_utils needs_triage plugins plugin (any type) labels Oct 27, 2021
@alinabuzachis

Copy link
Copy Markdown
Collaborator Author

recheck

@alinabuzachis
alinabuzachis force-pushed the module_utils/rds.py-update-cluster branch from bacb6ea to c0bf581 Compare October 29, 2021 09:41
Comment thread plugins/module_utils/rds.py Resolved
@alinabuzachis

Copy link
Copy Markdown
Collaborator Author

recheck

1 similar comment
@alinabuzachis

Copy link
Copy Markdown
Collaborator Author

recheck

@alinabuzachis alinabuzachis changed the title [WIP] Improve error handling rds.py for rds_cluster Improve error handling rds.py for RDS cluster and snapshot Nov 8, 2021
module.fail_json_aws(e, msg="Failed with an unexpected error while waiting for the DB cluster {0}".format(db_cluster_id))


def wait_for_snapshot_status(client, module, db_snapshot_id, waiter_name):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please create a new unit test file for this module_util and cover this new function? Eventually we should try to cover the rest of the util but it's a lot easier to ask for folks to contribute tests for changes if the test file already exists.

We should also run the integration tests for the RDS modules with a depends-on for this change, to ensure there's no regressions.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jillr Done that!

@alinabuzachis alinabuzachis removed the WIP Work in progress label Nov 23, 2021
@alinabuzachis

Copy link
Copy Markdown
Collaborator Author

recheck

2 similar comments
@alinabuzachis

Copy link
Copy Markdown
Collaborator Author

recheck

@alinabuzachis

Copy link
Copy Markdown
Collaborator Author

recheck

@alinabuzachis alinabuzachis changed the title Improve error handling rds.py for RDS cluster and snapshot DNM Improve error handling rds.py for RDS cluster and snapshot Dec 3, 2021
@alinabuzachis

Copy link
Copy Markdown
Collaborator Author

recheck

2 similar comments
@alinabuzachis

Copy link
Copy Markdown
Collaborator Author

recheck

@goneri

goneri commented Dec 6, 2021

Copy link
Copy Markdown
Member

recheck

@goneri goneri closed this Dec 7, 2021
@goneri goneri reopened this Dec 7, 2021
@alinabuzachis

Copy link
Copy Markdown
Collaborator Author

recheck

1 similar comment
@alinabuzachis

Copy link
Copy Markdown
Collaborator Author

recheck

@alinabuzachis

Copy link
Copy Markdown
Collaborator Author

cc @goneri

2021-12-20 10:36:56.079435 \| fedora-35 \| TASK [aws_s3 : make tempfile 4 GB for linux] ***********************************
--
5391 | 2021-12-20 10:36:56.079637 \| fedora-35 \| task path: /home/zuul/.ansible/collections/ansible_collections/amazon/aws/tests/integration/targets/aws_s3/tasks/main.yml:499
5392 | 2021-12-20 10:36:56.244626 \| fedora-35 \| Using module file /tmp/ansible-test-qyqzaib3/ansible/modules/command.py
5393 | 2021-12-20 10:36:56.244945 \| fedora-35 \| Pipelining is enabled.
5394 | 2021-12-20 10:36:56.245217 \| fedora-35 \| <testhost> ESTABLISH LOCAL CONNECTION FOR USER: zuul
5395 | 2021-12-20 10:36:56.245359 \| fedora-35 \| <testhost> EXEC /bin/sh -c 'ANSIBLE_DEBUG_BOTOCORE_LOGS=True /home/zuul/venv/bin/python && sleep 0'
5396 | 2021-12-20 10:36:57.054748 \| fedora-35 \| fatal: [testhost]: FAILED! => {
5397 | 2021-12-20 10:36:57.054840 \| fedora-35 \|     "changed": true,
5398 | 2021-12-20 10:36:57.054850 \| fedora-35 \|     "cmd": [
5399 | 2021-12-20 10:36:57.054856 \| fedora-35 \|         "dd",
5400 | 2021-12-20 10:36:57.054862 \| fedora-35 \|         "if=/dev/zero",
5401 | 2021-12-20 10:36:57.054868 \| fedora-35 \|         "of=/tmp/ansible.6d71q1je/largefile",
5402 | 2021-12-20 10:36:57.054875 \| fedora-35 \|         "bs=1M",
5403 | 2021-12-20 10:36:57.054880 \| fedora-35 \|         "count=4096"
5404 | 2021-12-20 10:36:57.054886 \| fedora-35 \|     ],
5405 | 2021-12-20 10:36:57.054892 \| fedora-35 \|     "delta": "0:00:00.601860",
5406 | 2021-12-20 10:36:57.054897 \| fedora-35 \|     "end": "2021-12-20 10:36:57.021668",
5407 | 2021-12-20 10:36:57.054903 \| fedora-35 \|     "invocation": {
5408 | 2021-12-20 10:36:57.054909 \| fedora-35 \|         "module_args": {
5409 | 2021-12-20 10:36:57.054915 \| fedora-35 \|             "_raw_params": "dd if=/dev/zero of=/tmp/ansible.6d71q1je/largefile bs=1M count=4096",
5410 | 2021-12-20 10:36:57.054928 \| fedora-35 \|             "_uses_shell": false,
5411 | 2021-12-20 10:36:57.054935 \| fedora-35 \|             "argv": null,
5412 | 2021-12-20 10:36:57.054941 \| fedora-35 \|             "chdir": null,
5413 | 2021-12-20 10:36:57.054947 \| fedora-35 \|             "creates": null,
5414 | 2021-12-20 10:36:57.054953 \| fedora-35 \|             "executable": null,
5415 | 2021-12-20 10:36:57.054960 \| fedora-35 \|             "removes": null,
5416 | 2021-12-20 10:36:57.054966 \| fedora-35 \|             "stdin": null,
5417 | 2021-12-20 10:36:57.054972 \| fedora-35 \|             "stdin_add_newline": true,
5418 | 2021-12-20 10:36:57.054978 \| fedora-35 \|             "strip_empty_ends": true,
5419 | 2021-12-20 10:36:57.054984 \| fedora-35 \|             "warn": false
5420 | 2021-12-20 10:36:57.055001 \| fedora-35 \|         }
5421 | 2021-12-20 10:36:57.055007 \| fedora-35 \|     },
5422 | 2021-12-20 10:36:57.055012 \| fedora-35 \|     "msg": "non-zero return code",
5423 | 2021-12-20 10:36:57.055017 \| fedora-35 \|     "rc": 1,
5424 | 2021-12-20 10:36:57.055023 \| fedora-35 \|     "start": "2021-12-20 10:36:56.419808",
5425 | 2021-12-20 10:36:57.055030 \| fedora-35 \|     "stderr": "dd: error writing '/tmp/ansible.6d71q1je/largefile': No space left on device\n947+0 records in\n946+0 records out\n992100352 bytes (992 MB, 946 MiB) copied, 0.596905 s, 1.7 GB/s",
5426 | 2021-12-20 10:36:57.055037 \| fedora-35 \|     "stderr_lines": [
5427 | 2021-12-20 10:36:57.055043 \| fedora-35 \|         "dd: error writing '/tmp/ansible.6d71q1je/largefile': No space left on device",
5428 | 2021-12-20 10:36:57.055049 \| fedora-35 \|         "947+0 records in",
5429 | 2021-12-20 10:36:57.055054 \| fedora-35 \|         "946+0 records out",
5430 | 2021-12-20 10:36:57.055060 \| fedora-35 \|         "992100352 bytes (992 MB, 946 MiB) copied, 0.596905 s, 1.7 GB/s"
5431 | 2021-12-20 10:36:57.055066 \| fedora-35 \|     ],
5432 | 2021-12-20 10:36:57.055071 \| fedora-35 \|     "stdout": "",
5433 | 2021-12-20 10:36:57.055077 \| fedora-35 \|     "stdout_lines": []
5434 | 2021-12-20 10:36:57.055083 \| fedora-35 \| }

@softwarefactory-delete-me

Copy link
Copy Markdown
Contributor

Build failed.

@alinabuzachis

Copy link
Copy Markdown
Collaborator Author

recheck

@softwarefactory-delete-me

Copy link
Copy Markdown
Contributor

This change depends on a change that failed to merge.

@abikouo

abikouo commented Mar 15, 2022

Copy link
Copy Markdown
Contributor

recheck

@softwarefactory-delete-me

Copy link
Copy Markdown
Contributor

This change depends on a change that failed to merge.

@abikouo

abikouo commented Mar 15, 2022

Copy link
Copy Markdown
Contributor

recheck

@softwarefactory-delete-me

Copy link
Copy Markdown
Contributor

Build failed.

@abikouo

abikouo commented Mar 15, 2022

Copy link
Copy Markdown
Contributor

recheck

@softwarefactory-delete-me

Copy link
Copy Markdown
Contributor

Build failed.

@goneri

goneri commented Mar 16, 2022

Copy link
Copy Markdown
Member

recheck

@softwarefactory-delete-me

Copy link
Copy Markdown
Contributor

Build failed.

@alinabuzachis

Copy link
Copy Markdown
Collaborator Author

recheck

@softwarefactory-delete-me

Copy link
Copy Markdown
Contributor

Build succeeded.

@alinabuzachis alinabuzachis added backport-3 PR should be backported to the stable-3 branch mergeit Merge the PR (SoftwareFactory) labels Mar 18, 2022
@softwarefactory-delete-me

Copy link
Copy Markdown
Contributor

Build succeeded (gate pipeline).

@softwarefactory-delete-me
softwarefactory-delete-me Bot merged commit aa6a858 into ansible-collections:main Mar 18, 2022
@patchback

patchback Bot commented Mar 18, 2022 •

Copy link
Copy Markdown

Backport to stable-3: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-3/aa6a8588453c5125d05aec8ad70506cdc47ffb89/pr-553

Backported as #718

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback Bot pushed a commit that referenced this pull request Mar 18, 2022
Improve error handling rds.py for RDS cluster and snapshot

SUMMARY

Improve error handling rds.py for rds_cluster
Add handlers for rds_instance_snapshot and rds_cluster_snapshot

ISSUE TYPE

Feature Pull Request

COMPONENT NAME

module_utils/rds.py

Reviewed-by: Mark Chappell <None>
Reviewed-by: Jill R <None>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: Markus Bergholz <git@osuv.de>
Reviewed-by: Mark Woolley <mw@marknet15.com>
Reviewed-by: Joseph Torcasso <None>
(cherry picked from commit aa6a858)
softwarefactory-delete-me Bot pushed a commit that referenced this pull request Mar 18, 2022
[PR #553/aa6a8588 backport][stable-3] Improve error handling rds.py for RDS cluster and snapshot

This is a backport of PR #553 as merged into main (aa6a858).
SUMMARY


Improve error handling rds.py for rds_cluster
Add handlers for rds_instance_snapshot and rds_cluster_snapshot


ISSUE TYPE


Feature Pull Request

COMPONENT NAME

module_utils/rds.py
softwarefactory-delete-me Bot pushed a commit to ansible-collections/community.aws that referenced this pull request Mar 29, 2022
rds_subnet_group: Add tags feature and enable check_mode

SUMMARY

rds_subnet_group: Add tags feature and enable check_mode
Fixes: #552

Depends-On: ansible-collections/amazon.aws#553
ISSUE TYPE


Feature Pull Request

COMPONENT NAME

rds_subnet_group

Reviewed-by: Jill R <None>
Reviewed-by: Mark Chappell <None>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: Mark Woolley <mw@marknet15.com>
Reviewed-by: Markus Bergholz <git@osuv.de>
patchback Bot pushed a commit to ansible-collections/community.aws that referenced this pull request Mar 29, 2022
rds_subnet_group: Add tags feature and enable check_mode

SUMMARY

rds_subnet_group: Add tags feature and enable check_mode
Fixes: #552

Depends-On: ansible-collections/amazon.aws#553
ISSUE TYPE

Feature Pull Request

COMPONENT NAME

rds_subnet_group

Reviewed-by: Jill R <None>
Reviewed-by: Mark Chappell <None>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: Mark Woolley <mw@marknet15.com>
Reviewed-by: Markus Bergholz <git@osuv.de>
(cherry picked from commit ce599bd)
softwarefactory-delete-me Bot pushed a commit to ansible-collections/community.aws that referenced this pull request Mar 29, 2022
[PR #562/ce599bdf backport][stable-3] rds_subnet_group: Add tags feature and enable check_mode

This is a backport of PR #562 as merged into main (ce599bd).
SUMMARY

rds_subnet_group: Add tags feature and enable check_mode
Fixes: #552

Depends-On: ansible-collections/amazon.aws#553
ISSUE TYPE


Feature Pull Request

COMPONENT NAME

rds_subnet_group

Reviewed-by: Mark Woolley <mw@marknet15.com>
softwarefactory-delete-me Bot pushed a commit to ansible-collections/community.aws that referenced this pull request Apr 5, 2022
New modules for RDS clusters management

SUMMARY

Two new modules for RDS clusters management (rds_cluster ans rds_cluster_info)
Took over from: #262
Depends-On: ansible-collections/amazon.aws#553
Closes #849
Should also close #191

ISSUE TYPE


New Module Pull Request

Reviewed-by: Mark Woolley <mw@marknet15.com>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: Markus Bergholz <git@osuv.de>
patchback Bot pushed a commit to ansible-collections/community.aws that referenced this pull request Apr 5, 2022
New modules for RDS clusters management

SUMMARY

Two new modules for RDS clusters management (rds_cluster ans rds_cluster_info)
Took over from: #262
Depends-On: ansible-collections/amazon.aws#553
Closes #849
Should also close #191

ISSUE TYPE

New Module Pull Request

Reviewed-by: Mark Woolley <mw@marknet15.com>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: Markus Bergholz <git@osuv.de>
(cherry picked from commit 3661b1c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-3 PR should be backported to the stable-3 branch community_review feature This issue/PR relates to a feature request has_issue mergeit Merge the PR (SoftwareFactory) module_utils module_utils plugins plugin (any type) tests tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants