Bug 1411940

Summary: Manipulation of custom_custom attributes on provider class Provider fails
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: APIAssignee: Šimon Lukašík <slukasik>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Kourim <mkourim>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: akarol, jhardy, obarenbo
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.8.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1412280 (view as bug list) Environment:
Last Closed: 2017-06-12 17:22:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1412280    

Description Satoe Imaishi 2017-01-10 19:25:57 UTC
From PR https://github.com/ManageIQ/manageiq/pull/12522:

The provider class Provider does not support custom_attributes, Thus any manipulation of custom_custom attributes on provider class Provider will fail similarly as in https://github.com/ManageIQ/manageiq/pull/12467.

Comment 3 Martin Kourim 2017-05-09 06:41:27 UTC
Verified by adding custom attribute to Satellite 6 provider:

POST /api/providers/1/custom_attributes?provider_class=provider
{
  "action": "add",
  "name": "ca_name_001",
  "value": "ca_value_001"
}


response:
{
  "error": {
    "kind": "bad_request",
    "message": "ManageIQ::Providers::Foreman::Provider does not support management of custom attributes",
    "klass": "Api::BadRequestError"
  }
}