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

NVMe drives are returning only @odata.id in expand query, no other fields #78

Closed
MoshiBin opened this issue Nov 24, 2020 · 2 comments
Closed

Comments

@MoshiBin
Copy link
Contributor

When querying the mockup server for NVMe drives, the drives only have an @odata.id field with no other fields:

>>> import redfish
>>> con = redfish.redfish_client(base_url="http://127.0.0.1:8000")
>>> drives = con.get("/redfish/v1/Systems/AccessModule1/Storage/NVMe?expand=.($levels=1)", None).obj.Drives
>>> drives[0]
{'@odata.id': '/redfish/v1/Chassis/Chassis/Drives/0'}

Contrast this with a real server:

>>> import redfish
>>> con = redfish.redfish_client(base_url="https://real-redfish-server")
>>> con.login()
>>> drives = con.get("/redfish/v1/Systems/AccessModule1/Storage/NVMe?expand=.($levels=1)", None).obj.Drives
>>> drives[0].keys()
dict_keys(['@odata.context', '@odata.type', '@odata.id', 'Id', 'Name', 'Status', 'PhysicalLocation', 'Links', 'Oem', 'MediaType', 'Protocol', 'Model', 'Manufacturer', 'PartNumber', 'SerialNumber', 'CapacityBytes', 'CapableSpeedGbs', 'Revision', 'PredictedMediaLifeLeftPercent', 'IndicatorLED', 'Assembly'])
@mraineri
Copy link
Contributor

I think we have this issue already covered in the request for #72

The current $expand support has a limitation to only work on collections and go one level in depth.

@mraineri
Copy link
Contributor

mraineri commented Jan 8, 2021

Discussion from the call: The group agrees this is lacking and is already covered in the request for issue #72 to enhance the $expand support.

@mraineri mraineri closed this as completed Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants