-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Follow DMTF redfish deprecation on StorageControllers #7081
Follow DMTF redfish deprecation on StorageControllers #7081
Conversation
…geControllers" which is deprecated
shipit |
@mraineri In fact, I'm going to add more commits because |
Perfect; I like consistency! 😄 I think we did have a change to get_disk_inventory to look at either location, but I wouldn't be surprised if we have other cases too. |
…rollers key instead of StorageControllers to obtain controller name
get_disk_inventory now returns the controller real name and not the static name |
And I think a little bit of refactoring would be needed. But I can't do it right now. |
Looks good to me, thanks! |
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #7092 🤖 @patchback |
* Get controller information from "Controllers" field instead of "StorageControllers" which is deprecated * Add changelog fragment * Changelog fragment writing guide formatting * For consistency, get_disk_inventory and get_volume_inventory use Controllers key instead of StorageControllers to obtain controller name --------- Co-authored-by: Pierre-yves FONTANIERE <pyf@cc.in2p3.fr> (cherry picked from commit fe3eec0)
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #7093 🤖 @patchback |
* Get controller information from "Controllers" field instead of "StorageControllers" which is deprecated * Add changelog fragment * Changelog fragment writing guide formatting * For consistency, get_disk_inventory and get_volume_inventory use Controllers key instead of StorageControllers to obtain controller name --------- Co-authored-by: Pierre-yves FONTANIERE <pyf@cc.in2p3.fr> (cherry picked from commit fe3eec0)
…n on StorageControllers (#7093) Follow DMTF redfish deprecation on StorageControllers (#7081) * Get controller information from "Controllers" field instead of "StorageControllers" which is deprecated * Add changelog fragment * Changelog fragment writing guide formatting * For consistency, get_disk_inventory and get_volume_inventory use Controllers key instead of StorageControllers to obtain controller name --------- Co-authored-by: Pierre-yves FONTANIERE <pyf@cc.in2p3.fr> (cherry picked from commit fe3eec0) Co-authored-by: Pierre-yves Fontaniere <pyfontan@cc.in2p3.fr>
…n on StorageControllers (#7092) Follow DMTF redfish deprecation on StorageControllers (#7081) * Get controller information from "Controllers" field instead of "StorageControllers" which is deprecated * Add changelog fragment * Changelog fragment writing guide formatting * For consistency, get_disk_inventory and get_volume_inventory use Controllers key instead of StorageControllers to obtain controller name --------- Co-authored-by: Pierre-yves FONTANIERE <pyf@cc.in2p3.fr> (cherry picked from commit fe3eec0) Co-authored-by: Pierre-yves Fontaniere <pyfontan@cc.in2p3.fr>
Get controller information from "Controllers" field instead of "StorageControllers" which is deprecated
cf. page 9 of https://www.dmtf.org/sites/default/files/Redfish_Release_2022.1_Overview.pdf
SUMMARY
get_storage_controller_inventory now use Controllers field as main key to obtain storage controllers properties. And if Controllers is not available , get_storage_controller_inventory will use the deprecated key StorageControllers
Fixes #7080
ISSUE TYPE
COMPONENT NAME
redfish_utils
ADDITIONAL INFORMATION
On the same HPe server, i had empty array: