Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: As it is possible to create/modify container providers through Rest-API, it should be possible to define/modify the relevant hawkular endpoint. How reproducible: Use ManageIQ api ant create a new container providers with hawkular endpoint. Steps to Reproduce: 1. call the POST method for: http://localhost:3000/api/providers with a body containing information about multple endpoints. Actual results: We get an error Expected results: A new provider is created with multiple endpoints Submited upstream: https://github.com/ManageIQ/manageiq/pull/9648 Issue: https://github.com/ManageIQ/manageiq/issues/9506
We would like to have this z stream
Merged: https://github.com/ManageIQ/manageiq/pull/9648
Works. Tested with these: cfme-5.6.2.1-1.el7cf.x86_64 cfme-5.7.0.0-1.el7cf.x86_64 $ cat /tmp/json { "action": "edit", "name": "test3", "connection_configurations": [ { "endpoint": { "role": "default", "hostname": "barar", "port": "54321"}}, { "endpoint": { "role": "hawkular", "hostname": "barfoo", "port": "54322"}} ] } $ curl -X POST -u admin:smartvm -k https://10.A.B.C/api/providers/1 --data @/tmp/json | json_pp % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 541 0 299 100 242 336 272 --:--:-- --:--:-- --:--:-- 336 { "zone_id" : 1, "href" : "https://10.A.B.C/api/providers/1", "id" : 1, "guid" : "3b35e106-954d-11e6-b9df-fa163ef66118", "api_version" : "v1", "tenant_id" : 1, "name" : "test3", "created_on" : "2016-10-18T16:09:22Z", "type" : "ManageIQ::Providers::OpenshiftEnterprise::ContainerManager", "updated_on" : "2016-10-18T16:09:22Z" } $curl -u admin:smartvm -k 'https://10.A.B.C/api/providers/1?attributes=authentications,endpoints' | json_pp % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1779 0 1779 0 0 2383 0 --:--:-- --:--:-- --:--:-- 2381 { "name" : "test3", "href" : "https://10.A.B.C/api/providers/1", "created_on" : "2016-10-18T16:09:22Z", "tenant_id" : 1, "endpoints" : [ { "resource_id" : 1, "updated_at" : "2016-10-18T16:10:11Z", "hostname" : "barar", "created_at" : "2016-10-18T16:09:22Z", "port" : 54321, "verify_ssl" : 1, "id" : 1, "role" : "default", "resource_type" : "ExtManagementSystem" }, { "verify_ssl" : 1, "port" : 54322, "resource_type" : "ExtManagementSystem", "role" : "hawkular", "id" : 2, "resource_id" : 1, "updated_at" : "2016-10-18T16:10:11Z", "created_at" : "2016-10-18T16:09:22Z", "hostname" : "barfoo" } ], "id" : 1, "guid" : "3b35e106-954d-11e6-b9df-fa163ef66118", ... "type" : "ManageIQ::Providers::OpenshiftEnterprise::ContainerManager", "updated_on" : "2016-10-18T16:09:22Z", "api_version" : "v1", "zone_id" : 1, "authentications" : [] }