Description of problem: We are missing the ability to set a custom attribute on services via the API. As a cloud administrator i need the ability to provision resources via an Ansible playbook and then leverage custom attributes to assist with a retirement playbook. But there does not seem to be a way to set custom attributes on services. The same exact api action works on VMs and providers but not on services. Version-Release number of selected component (if applicable): 5.8.1 How reproducible: 100% Steps to Reproduce: This does not work: # curl -k -u admin:smartvm -X GET https://localhost/api/services/12000000000002/custom_attributes This works: curl -k -u admin:smartvm -X GET https://localhost/api/vms/12000000000032/custom_attributes Actual results: HTTP 404 error Expected results: HTTP 200 and a list of custom attributes on the service Additional info:
https://github.com/ManageIQ/manageiq-api/pull/85
New commit detected on ManageIQ/manageiq-api/master: https://github.com/ManageIQ/manageiq-api/commit/c4f74c0b9c025a557fcaef6e473aa658509b6184 commit c4f74c0b9c025a557fcaef6e473aa658509b6184 Author: Bo Yao <icerove> AuthorDate: Wed Sep 27 16:39:27 2017 -0400 Commit: Bo Yao <icerove> CommitDate: Sat Sep 30 10:09:57 2017 -0400 add customer attr mixin for services api https://bugzilla.redhat.com/show_bug.cgi?id=1481547 app/controllers/api/services_controller.rb | 1 + 1 file changed, 1 insertion(+)
Verified using our test automation that it's possible to set a custom attribute on services via the API on 5.9.0.20
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:0380