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

The POST endpoint for /api/providers doesn't support PhysicalInfraManager providers #852

Closed
vwbusguy opened this issue May 29, 2020 · 1 comment · Fixed by #853
Closed
Assignees
Labels

Comments

@vwbusguy
Copy link

We have a situation where we have dozens of iLO instances that we want to add to ManageIQ via RedFish and doing this one at a time through the web interface has been tedious, so we attempted to add them through the REST API (per https://www.manageiq.org/docs/reference/euwe/doc-REST_API/miq/index#create-provider ).

Unfortunately, making an authenticated POST call to /api/providers to add a redfish provider results in the error:
"Unsupported request class ManageIQ::Providers::Redfish::PhysicalInfraManager"

This type show up with making an OPTIONS call to the /api/providers endpoint and redfish providers of this type show with GET calls.

For context, I first asked about this on gitter and @agrare responded:

it is failing here https://github.com/ManageIQ/manageiq-api/blob/master/app/controllers/api/providers_controller.rb#L142
looks like there isn't a create_action identifier for physical_infra_managers

@vwbusguy
Copy link
Author

Thanks! I pulled the change here and verified that the API calls are now working to provision redfish instances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants