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

Redfish facts about storage devices should contain unique identifiers #8935

Closed
1 task done
pyfontan opened this issue Sep 26, 2024 · 2 comments · Fixed by #8937
Closed
1 task done

Redfish facts about storage devices should contain unique identifiers #8935

pyfontan opened this issue Sep 26, 2024 · 2 comments · Fixed by #8937
Labels
feature This issue/PR relates to a feature request module module plugins plugin (any type)

Comments

@pyfontan
Copy link
Contributor

Summary

I am trying to use the CreateVolume command of the community.general.redfish_config.
For this, i need, among other things, a storage_subsystem_id and a list of drives defined by their redfish URI.

It would be convenient to have all these requirements in the result of the GetDiskInventory command of redfish_info.

Issue Type

Feature Idea

Component Name

redfish_info

Additional Information

redfish facts gives us no clue on the disks redfish URI and on the storage_subsystem_id.

{
    "redfish_facts": {
        "disk": {
            "entries": [
                [
                    {
                        "system_uri": "/redfish/v1/Systems/1/"
                    },
                    [
                        {
                            "Controller": "HPE Smart Array P816i-a SR Gen10",
                            "Drives": [
                                {
                                    "BlockSizeBytes": 512,
                                    "CapableSpeedGbs": 12,
                                    "CapacityBytes": 16000900661248,
                                    "EncryptionAbility": "None",
                                    "FailurePredicted": false,
                                    "HotspareType": "None",
                                    "Id": "16",
                                    "Identifiers": [
                                        {
                                            "DurableName": "5000039D28430101",
                                            "DurableNameFormat": "NAA"
                                        }
                                    ],
                                    "MediaType": "HDD",
                                    "Model": "MB016000JZYVQ",
                                    "Name": "16TB 12G SAS HDD",
                                    "PhysicalLocation": {
                                        "PartLocation": {
                                            "LocationOrdinalValue": 1,
                                            "LocationType": "Bay",
                                            "ServiceLabel": "Slot=12:Port=1I:Box=1:Bay=1"
                                        }
                                    },
                                    "Protocol": "SAS",
                                    "Revision": "HPD4",
                                    "RotationSpeedRPM": 7200,
                                    "SerialNumber": "34K0A0LCFU8H",
                                    "Status": {
                                        "Health": "OK",
                                        "State": "Enabled"
                                    },
                                    "Volumes": [
                                        "/redfish/v1/Systems/1/Storage/DE07A000/Volumes/129"
                                    ]
                                }
                            ]
                        }
                    ]
                ]
            ],
            "ret": true
        }
    }
}

The feature would add these information in the disk redfish_facts

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

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 module plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants