Bug 1351253 - Cannot specify security_protocol when creating a cloud provider via the API
Summary: Cannot specify security_protocol when creating a cloud provider via the API
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: API
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.7.0
Assignee: Šimon Lukašík
QA Contact: Martin Kourim
URL:
Whiteboard:
Depends On:
Blocks: RHCS-CFME 1309373 1352011
TreeView+ depends on / blocked
 
Reported: 2016-06-29 14:23 UTC by Jason Montleon
Modified: 2019-08-06 20:05 UTC (History)
7 users (show)

Fixed In Version: 5.7.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1352011 (view as bug list)
Environment:
Last Closed: 2017-01-11 19:51:52 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jason Montleon 2016-06-29 14:23:21 UTC
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.

Comment 3 Šimon Lukašík 2016-07-01 11:36:54 UTC
https://github.com/ManageIQ/manageiq/pull/9570

Comment 5 Martin Kourim 2016-10-06 14:56:01 UTC
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>"
  }
}


Note You need to log in before you can comment on or make changes to this bug.