Description of problem:
We cannot create a Cloud Provider while specifying the security protocol when trying to do so via the CFME API
Version-Release number of selected component (if applicable):
5.6.0.9-rc2.20160531154046_b4e2f6d
How reproducible:
Always
Steps to Reproduce:
1. Install CFME 5.6.0.9-rc2.20160531154046_b4e2f6d
2. Try to create a cloud provider via the api while specifying the security_protocol
Actual results:
{"error":{"kind":"bad_request","message":"Could not create the new provider - Invalid Provider attributes security_protocol specified","klass":"ApiController::BadRequestError"}}
Expected results:
cloud provider is created
Additional info:
I added security_protocol to ENDPOINT_ATTRS in /var/www/miq/vmdb/app/controllers/api_controller/providers.rb and restarted evmserverd. After that I was able to create the cloud provider as expected.
Verified that it's possible to specify security_protocol when creating a cloud provider via the API using following request:
POST /api/providers
{
"name" : "openstack test",
"type" : "ManageIQ::Providers::Openstack::CloudManager",
"hostname" : "<ip_address>",
"ipaddress" : "<ip_address>",
"security_protocol" : "ssl",
"credentials" : {
"userid" : "<id>",
"password" : "<password>"
}
}