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

WDC Redfish support for setting the power mode. #5145

Conversation

mikemoerk
Copy link
Contributor

@mikemoerk mikemoerk commented Aug 22, 2022

SUMMARY

Support for setting enclosure power mode (low / normal) on WDC UltaStar Data102 storage enclosures.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

wdc_redfish_command

ADDITIONAL INFORMATION

Use category=Chassis, resource_id=Enclosure. New commands are PowerModeLow and PowerMode Normal. Example:

% ansible r13-mm1 -m community.general.wdc_redfish_command -a "username={{username}} password={{password}} baseuri={{ioms[0]}} category=Chassis resource_id=Enclosure command=PowerModeLow"
r13-mm1 | CHANGED => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/local/bin/python3.8"
    },
    "changed": true,
    "msg": "Action was successful",
    "session": {}
}

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added feature This issue/PR relates to a feature request module module module_utils module_utils plugins plugin (any type) remote_management tests tests unit tests/unit labels Aug 22, 2022
@github-actions
Copy link

github-actions bot commented Aug 22, 2022

Docs Build 📝

Thank you for contribution!✨

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

@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-5 labels Aug 22, 2022
Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! Could you please add a changelog fragment? Thanks.

mikemoerk and others added 2 commits August 22, 2022 14:22
Co-authored-by: Felix Fontein <felix@fontein.de>
@mikemoerk
Copy link
Contributor Author

@felixfontein , apologies for the delay -- I have added the changelog fragment as requested.

@ansibullbot

This comment was marked as outdated.

@ansibullbot ansibullbot added ci_verified Push fixes to PR branch to re-run CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Aug 29, 2022
@ansibullbot ansibullbot removed ci_verified Push fixes to PR branch to re-run CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Aug 30, 2022
@felixfontein felixfontein merged commit 2a449eb into ansible-collections:main Sep 3, 2022
@patchback
Copy link

patchback bot commented Sep 3, 2022

Backport to stable-5: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-5/2a449eb16329b180555042473e751995b7d29c96/pr-5145

Backported as #5223

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

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Sep 3, 2022
patchback bot pushed a commit that referenced this pull request Sep 3, 2022
* WDC Redfish support for setting the power mode.

* Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>

* Add change fragment.

* Add extension to changelog fragment.

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 2a449eb)
@felixfontein
Copy link
Collaborator

@mikemoerk thanks for contributing this!

This was referenced Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request module_utils module_utils module module plugins plugin (any type) remote_management tests tests unit tests/unit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants