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

backup_plan_info: bugfix to enable getting info of all backup plans #2083

Conversation

mandar242
Copy link
Contributor

SUMMARY

Fix being unable to fetch info of all backup plans.
With backup_plan_names being a required parameter, the functionality to get all plans info was not working

# Gather information about all backup plans
- name: Get info of all backup plans 
  amazon.aws.backup_plan_info:
  register: plan_info_result

gave
**********
fatal: [localhost]: FAILED! => {"changed": false, "msg": "missing required arguments: backup_plan_names"}

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

backup_plan_info

ADDITIONAL INFORMATION

Copy link

github-actions bot commented May 10, 2024

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/4413b8dd46b949fa821d34e491c5449b

✔️ ansible-galaxy-importer SUCCESS in 4m 42s
✔️ build-ansible-collection SUCCESS in 16m 28s
✔️ ansible-test-splitter SUCCESS in 7m 07s
Skipped 44 jobs

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/4b80e502426c456d98fcfb94996fcb50

✔️ ansible-galaxy-importer SUCCESS in 5m 26s
✔️ build-ansible-collection SUCCESS in 17m 49s
✔️ ansible-test-splitter SUCCESS in 8m 46s
Skipped 44 jobs

Copy link
Collaborator

@GomathiselviS GomathiselviS left a comment

Choose a reason for hiding this comment

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

Can you add an example and a test to cover the changes made?

plugins/modules/backup_plan_info.py Outdated Show resolved Hide resolved
plugins/modules/backup_plan_info.py Outdated Show resolved Hide resolved
@mandar242 mandar242 requested a review from GomathiselviS May 15, 2024 02:07
Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/8a1cb87de83c4d189517a0c67756a3e7

ansible-galaxy-importer FAILURE in 5m 04s
✔️ build-ansible-collection SUCCESS in 15m 52s
✔️ ansible-test-splitter SUCCESS in 6m 46s
✔️ integration-amazon.aws-1 SUCCESS in 8m 38s
Skipped 43 jobs

@mandar242 mandar242 force-pushed the backup_plan_list_all_fix branch from 46a0ad8 to 8b8c179 Compare May 15, 2024 05:43
Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/dd4e4ac7ce8341c0a02fd889ac091d07

ansible-galaxy-importer FAILURE in 5m 02s
✔️ build-ansible-collection SUCCESS in 16m 03s
✔️ ansible-test-splitter SUCCESS in 6m 48s
✔️ integration-amazon.aws-1 SUCCESS in 10m 58s
Skipped 43 jobs

@mandar242 mandar242 force-pushed the backup_plan_list_all_fix branch from 8b8c179 to 3d80e06 Compare May 15, 2024 19:09
Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/07eb53614c97400dbd24772508367d7f

✔️ ansible-galaxy-importer SUCCESS in 5m 42s
✔️ build-ansible-collection SUCCESS in 17m 42s
✔️ ansible-test-splitter SUCCESS in 9m 14s
integration-amazon.aws-1 RETRY_LIMIT in 1m 42s
Skipped 43 jobs

@mandar242 mandar242 requested a review from GomathiselviS May 15, 2024 20:24
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/d3e44e2da2f245e1b945fdc39504514a

✔️ ansible-galaxy-importer SUCCESS in 6m 21s
✔️ build-ansible-collection SUCCESS in 14m 52s
✔️ ansible-test-splitter SUCCESS in 5m 52s
✔️ integration-amazon.aws-1 SUCCESS in 8m 23s
Skipped 43 jobs

@@ -0,0 +1,3 @@
---
bugfixes:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't know if this is a bugfix. This feature was not working because it was not implemented and the module does not say it supports listing all backup plans (that's why backup_plan_names was a required parameter). To me it is probably minor_changes, a new functionality. You should also document that when O(backup_plan_names) is omitted the module gathers information about all backup plans.

Copy link
Contributor Author

@mandar242 mandar242 May 16, 2024

Choose a reason for hiding this comment

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

I added it as a bugfix because the existing module code documentation had an example to do this
but example was not working
https://github.com/ansible-collections/amazon.aws/blob/main/plugins/modules/backup_plan_info.py#L33-L35
@alinabuzachis

@mandar242 mandar242 requested a review from alinabuzachis May 16, 2024 18:06
@mandar242 mandar242 force-pushed the backup_plan_list_all_fix branch from 3d2be8c to 903fbc2 Compare May 16, 2024 18:23
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/81797450563844ed8c9eb8d5b8701716

✔️ ansible-galaxy-importer SUCCESS in 4m 24s
✔️ build-ansible-collection SUCCESS in 17m 15s
✔️ ansible-test-splitter SUCCESS in 6m 56s
✔️ integration-amazon.aws-1 SUCCESS in 8m 48s
Skipped 43 jobs

@mandar242 mandar242 force-pushed the backup_plan_list_all_fix branch from 903fbc2 to 6105909 Compare May 20, 2024 23:58
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/369cb45838064d56902cded83168aefe

✔️ ansible-galaxy-importer SUCCESS in 5m 06s
✔️ build-ansible-collection SUCCESS in 17m 00s
✔️ ansible-test-splitter SUCCESS in 8m 15s
✔️ integration-amazon.aws-1 SUCCESS in 8m 54s
Skipped 43 jobs

@mandar242 mandar242 force-pushed the backup_plan_list_all_fix branch from 6105909 to 49f1d29 Compare May 22, 2024 16:05
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/0226a60df77548a2b23f037d53dcfe3f

✔️ ansible-galaxy-importer SUCCESS in 5m 15s
✔️ build-ansible-collection SUCCESS in 21m 46s
✔️ ansible-test-splitter SUCCESS in 10m 42s
✔️ integration-amazon.aws-1 SUCCESS in 6m 23s
Skipped 43 jobs

@mandar242 mandar242 force-pushed the backup_plan_list_all_fix branch from 49f1d29 to bbea251 Compare May 22, 2024 20:48
Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/d16e438bb3ae4a898ff12fdd48524d24

ansible-galaxy-importer POST_FAILURE in 13m 56s
✔️ build-ansible-collection SUCCESS in 18m 04s
✔️ ansible-test-splitter SUCCESS in 6m 04s
integration-amazon.aws-1 RETRY_LIMIT in 1m 41s
Skipped 43 jobs

@mandar242 mandar242 force-pushed the backup_plan_list_all_fix branch from bbea251 to 5fe9feb Compare May 23, 2024 20:31
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/cc05eab7aedb4a798fbac814fe85b503

✔️ ansible-galaxy-importer SUCCESS in 5m 53s
✔️ build-ansible-collection SUCCESS in 15m 49s
✔️ ansible-test-splitter SUCCESS in 8m 55s
✔️ integration-amazon.aws-1 SUCCESS in 6m 23s
✔️ integration-community.aws-1 SUCCESS in 59m 55s
Skipped 42 jobs

@mandar242 mandar242 force-pushed the backup_plan_list_all_fix branch from 5fe9feb to 04f2386 Compare May 28, 2024 19:55
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/f9b2bf46c6e24ffabd884ff3b1d115c5

✔️ ansible-galaxy-importer SUCCESS in 4m 40s
✔️ build-ansible-collection SUCCESS in 17m 35s
✔️ ansible-test-splitter SUCCESS in 7m 52s
✔️ integration-amazon.aws-1 SUCCESS in 7m 41s
Skipped 43 jobs

@mandar242 mandar242 force-pushed the backup_plan_list_all_fix branch from 04f2386 to cf3c3fc Compare May 30, 2024 22:23
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/a10ff031f84c4ebea4425c42d22a6351

✔️ ansible-galaxy-importer SUCCESS in 5m 49s
✔️ build-ansible-collection SUCCESS in 21m 50s
✔️ ansible-test-splitter SUCCESS in 8m 40s
✔️ integration-amazon.aws-1 SUCCESS in 12m 59s
Skipped 43 jobs

@alinabuzachis alinabuzachis added the mergeit Merge the PR (SoftwareFactory) label Jun 4, 2024
Copy link
Contributor

@tremble tremble left a comment

Choose a reason for hiding this comment

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

I think it's fair to label this as a "bugfix" since the docs say it should have worked.

@alinabuzachis alinabuzachis added the backport-7 PR should be backported to the stable-7 branch label Jun 4, 2024
Copy link
Contributor

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/6dcf90dabf624eabb286936a8dd72b87

✔️ ansible-galaxy-importer SUCCESS in 5m 42s
✔️ build-ansible-collection SUCCESS in 15m 56s
✔️ ansible-test-splitter SUCCESS in 8m 24s
✔️ integration-amazon.aws-1 SUCCESS in 8m 09s
Skipped 43 jobs

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 9c53b6c into ansible-collections:main Jun 4, 2024
38 checks passed
Copy link

patchback bot commented Jun 4, 2024

Backport to stable-7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-7/9c53b6c12e9c3e043f695b9791bfd499a770062a/pr-2083

Backported as #2121

🤖 @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 Jun 4, 2024
…2083)

backup_plan_info: bugfix to enable getting info of all backup plans

SUMMARY

Fix being unable to fetch info of all backup plans.
With backup_plan_names being a required parameter, the functionality to get all plans info was not working
# Gather information about all backup plans
- name: Get info of all backup plans
  amazon.aws.backup_plan_info:
  register: plan_info_result

gave
**********
fatal: [localhost]: FAILED! => {"changed": false, "msg": "missing required arguments: backup_plan_names"}

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

backup_plan_info
ADDITIONAL INFORMATION

Reviewed-by: GomathiselviS
Reviewed-by: Alina Buzachis
Reviewed-by: Mandar Kulkarni <[email protected]>
Reviewed-by: Mark Chappell
(cherry picked from commit 9c53b6c)
Copy link

patchback bot commented Jun 4, 2024

Backport to stable-8: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-8/9c53b6c12e9c3e043f695b9791bfd499a770062a/pr-2083

Backported as #2122

🤖 @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 Jun 4, 2024
…2083)

backup_plan_info: bugfix to enable getting info of all backup plans

SUMMARY

Fix being unable to fetch info of all backup plans.
With backup_plan_names being a required parameter, the functionality to get all plans info was not working
# Gather information about all backup plans
- name: Get info of all backup plans
  amazon.aws.backup_plan_info:
  register: plan_info_result

gave
**********
fatal: [localhost]: FAILED! => {"changed": false, "msg": "missing required arguments: backup_plan_names"}

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

backup_plan_info
ADDITIONAL INFORMATION

Reviewed-by: GomathiselviS
Reviewed-by: Alina Buzachis
Reviewed-by: Mandar Kulkarni <[email protected]>
Reviewed-by: Mark Chappell
(cherry picked from commit 9c53b6c)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Jun 5, 2024
…2083) (#2122)

[PR #2083/9c53b6c1 backport][stable-8] backup_plan_info: bugfix to enable getting info of all backup plans

This is a backport of PR #2083 as merged into main (9c53b6c).
SUMMARY

Fix being unable to fetch info of all backup plans.
With backup_plan_names being a required parameter, the functionality to get all plans info was not working
# Gather information about all backup plans
- name: Get info of all backup plans 
  amazon.aws.backup_plan_info:
  register: plan_info_result

gave
**********
fatal: [localhost]: FAILED! => {"changed": false, "msg": "missing required arguments: backup_plan_names"}



ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

backup_plan_info
ADDITIONAL INFORMATION
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Jun 5, 2024
…2083) (#2121)

[PR #2083/9c53b6c1 backport][stable-7] backup_plan_info: bugfix to enable getting info of all backup plans

This is a backport of PR #2083 as merged into main (9c53b6c).
SUMMARY

Fix being unable to fetch info of all backup plans.
With backup_plan_names being a required parameter, the functionality to get all plans info was not working
# Gather information about all backup plans
- name: Get info of all backup plans 
  amazon.aws.backup_plan_info:
  register: plan_info_result

gave
**********
fatal: [localhost]: FAILED! => {"changed": false, "msg": "missing required arguments: backup_plan_names"}



ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

backup_plan_info
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis
alinabuzachis pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Jun 5, 2024
…nsible-collections#2083)

backup_plan_info: bugfix to enable getting info of all backup plans

SUMMARY

Fix being unable to fetch info of all backup plans.
With backup_plan_names being a required parameter, the functionality to get all plans info was not working
- name: Get info of all backup plans
  amazon.aws.backup_plan_info:
  register: plan_info_result

gave
**********
fatal: [localhost]: FAILED! => {"changed": false, "msg": "missing required arguments: backup_plan_names"}

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

backup_plan_info
ADDITIONAL INFORMATION

Reviewed-by: GomathiselviS
Reviewed-by: Alina Buzachis
Reviewed-by: Mandar Kulkarni <[email protected]>
Reviewed-by: Mark Chappell
alinabuzachis pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Jun 5, 2024
…nsible-collections#2083)

backup_plan_info: bugfix to enable getting info of all backup plans

SUMMARY

Fix being unable to fetch info of all backup plans.
With backup_plan_names being a required parameter, the functionality to get all plans info was not working
- name: Get info of all backup plans
  amazon.aws.backup_plan_info:
  register: plan_info_result

gave
**********
fatal: [localhost]: FAILED! => {"changed": false, "msg": "missing required arguments: backup_plan_names"}

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

backup_plan_info
ADDITIONAL INFORMATION

Reviewed-by: GomathiselviS
Reviewed-by: Alina Buzachis
Reviewed-by: Mandar Kulkarni <[email protected]>
Reviewed-by: Mark Chappell
alinabuzachis pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Jun 6, 2024
…nsible-collections#2083)

backup_plan_info: bugfix to enable getting info of all backup plans

SUMMARY

Fix being unable to fetch info of all backup plans.
With backup_plan_names being a required parameter, the functionality to get all plans info was not working
- name: Get info of all backup plans
  amazon.aws.backup_plan_info:
  register: plan_info_result

gave
**********
fatal: [localhost]: FAILED! => {"changed": false, "msg": "missing required arguments: backup_plan_names"}

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

backup_plan_info
ADDITIONAL INFORMATION

Reviewed-by: GomathiselviS
Reviewed-by: Alina Buzachis
Reviewed-by: Mandar Kulkarni <[email protected]>
Reviewed-by: Mark Chappell
alinabuzachis pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Jun 6, 2024
…nsible-collections#2083)

backup_plan_info: bugfix to enable getting info of all backup plans

SUMMARY

Fix being unable to fetch info of all backup plans.
With backup_plan_names being a required parameter, the functionality to get all plans info was not working
- name: Get info of all backup plans
  amazon.aws.backup_plan_info:
  register: plan_info_result

gave
**********
fatal: [localhost]: FAILED! => {"changed": false, "msg": "missing required arguments: backup_plan_names"}

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

backup_plan_info
ADDITIONAL INFORMATION

Reviewed-by: GomathiselviS
Reviewed-by: Alina Buzachis
Reviewed-by: Mandar Kulkarni <[email protected]>
Reviewed-by: Mark Chappell
alinabuzachis pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Jun 26, 2024
…nsible-collections#2083)

backup_plan_info: bugfix to enable getting info of all backup plans

SUMMARY

Fix being unable to fetch info of all backup plans.
With backup_plan_names being a required parameter, the functionality to get all plans info was not working
# Gather information about all backup plans
- name: Get info of all backup plans 
  amazon.aws.backup_plan_info:
  register: plan_info_result

gave
**********
fatal: [localhost]: FAILED! => {"changed": false, "msg": "missing required arguments: backup_plan_names"}



ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

backup_plan_info
ADDITIONAL INFORMATION

Reviewed-by: GomathiselviS
Reviewed-by: Alina Buzachis
Reviewed-by: Mandar Kulkarni <[email protected]>
Reviewed-by: Mark Chappell
abikouo added a commit to abikouo/amazon.aws that referenced this pull request Oct 18, 2024
…#2164)

SUMMARY

Depends-On: ansible-collections#2319

Add some type hint for the module
Use shared code from amazon.aws.plugins.module_utils.ec2
Add the possibility to delete specific version of a launch template
Add support for tagging for launch template resource (Closes ansible-collections#176)
Add the possibility to tag specific resources, not always instance and volume (Closes [ansible-collections#48](ansible-collections#48, Closes ansible-collections#2083)
Support EBS Throughput (Closes ansible-collections#1944)
Fix issue occurring when launch template contains more than 200 versions (Closes ansible-collections#2131)

ISSUE TYPE

Feature Pull Request

COMPONENT NAME

ec2_launch_template

Reviewed-by: Alina Buzachis
Reviewed-by: Bikouo Aubin
Reviewed-by: GomathiselviS <[email protected]>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@40d61f0
@mandar242 mandar242 deleted the backup_plan_list_all_fix branch October 29, 2024 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-7 PR should be backported to the stable-7 branch backport-8 PR should be backported to the stable-8 branch mergeit Merge the PR (SoftwareFactory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants