HewlettPackard / oneview-redfish-toolkit

HPE OneView Redfish Toolkit provides a REST service to answer DMTF's Redfish compliant requests by querying HPE OneView
Apache License 2.0
18 stars 21 forks source link

resource block errors after VCF upgrades #586

Open rehbeinc opened 3 years ago

rehbeinc commented 3 years ago

I have only been able to get the VCF composability to work running VCF 3.8.1. After an upgrade I am still able to connect to OneView but the error in SDDC says "Unable to fetch resource details from the translation layer. Possible reasons could be translation layer going down or resource blocks being in corrupt state. Please retry after resolving the issue."

If I go back to VCF 3.8.1 it works fine. I have tried this in VCF 3.9, 4 and 4.1 with same errors. Redfish toolkit (.3.3 and .4) gives me this

2021-02-08 14:01:21,390 - root - ERROR - Thread 140050484332288 - 'available' 2021-02-08 14:01:21,514 - flask.app - ERROR - Thread 140050484332288 - Exception on /redfish/v1/CompositionService/ResourceBlocks/269f3e49-3f4d-4835-83e0-368c96b2e4e2 [GET] Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 2292, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1718, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python3.5/dist-packages/flask/_compat.py", line 35, in reraise raise value File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1799, in dispatch_request return self.view_functionsrule.endpoint File "/usr/local/lib/python3.5/dist-packages/oneview_redfish_toolkit/single_oneview_context.py", line 34, in new_function return original_func(*args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/oneview_redfish_toolkit/blueprints/resource_block.py", line 87, in get_resource_block resource, drive_index_trees, zone_ids, None) File "/usr/local/lib/python3.5/dist-packages/oneview_redfish_toolkit/api/storage_resource_block.py", line 57, in init if storage_resource["attributes"]["available"] == "yes": KeyError: 'available' 2021-02-08 14:01:21,515 - root - ERROR - Thread 140050484332288 - 'available'