HewlettPackard / oneview-puppet

This project is no longer being developed and has limited support. In the near future this repository will be fully deprecated. Please consider using other OneView projects, such as Terraform and Ansible Collection
https://forge.puppet.com/hewlettpackard/oneview
Apache License 2.0
8 stars 17 forks source link

Create a ServerProfileTemplate with a firmwareBaselineUri by resource Name for API 800/1000/1200 #215

Closed riconem closed 3 years ago

riconem commented 4 years ago

Scenario/Intent

Create a ServerProfileTemplate with a firmwareBaselineUri by resource Name

Environment Details

Steps to Reproduce

Create a ServerProfileTemplate with a firmwareBaselineUri. Here you have to set the name of the resource as firmwareBaselineUri not the actual URI.

Expected Result

Creating of a new ServerProfileTemplate

Actual Result

Error: Error:/Stage[main]/Oneviewconf/Oneview_server_profile_template[SMOPS_RefDCN_HAN2_HotNode]: Could not evaluate: uninitialized constant OneviewSDK::API800::Synergy::FirmwareDriver

Guess

The problem is that FirmwareDriver is only supported up to API 300 in the sdk. In this example we use the uri_parsing.rb because of "resource name as URI" which executes get_class(). Here it crashes because it trys to search the FirmwareDriver on API 800.

jyothisgm commented 4 years ago

Firmware resources are not supported for version 800. Please try it with version 500 which is supported for firmware resources. We have tested it for the version. Please see https://github.com/HewlettPackard/oneview-sdk-ruby/blob/master/endpoints-support.md. Let us know if any more issues arise.

VenkateshRavula commented 3 years ago

This SDK has limited support and will not be actively developed for the foreseeable future.