Created attachment 1042389 [details] Output of foreman-debug from a Satellite 6.1.0 system running RHEL 7.1. Description of problem: An architecture has at least the following attributes: * id * name * organization{s,_ids} When one updates an architecture, the following attributes are returned: * created_at * hostgroups_count * hosts_count * id * name * updated_at The "organization" response is not mentioned in the response. Version-Release number of selected component (if applicable): Satellite 6.1.0. Foreman-debug is attached. How reproducible: 100% Steps to Reproduce: 1. Issue HTTP PUT request to https://sat.example.com/api/v2/architectures/:id 2. Capture the response. Examine the JSON payload and discover that the "organization" attribute is not mentioned. 3. Actual results: See "Description of problem" section. Expected results: See "Description of problem" section. Additional info:
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release.
Architecture is not related to org/locations, directly, hence I would not assume this is a bug?
I made a typo in the original bug write-up. It should reference operating systems, not organizations. In other words, this set of attributes is returned when one updates an architecture: * created_at * hostgroups_count * hosts_count * id * name * updated_at No reference is made to operating systems, even though architectures are directly related to them.
*** This bug has been marked as a duplicate of bug 1216236 ***
Fixed in http://projects.theforeman.org/issues/10356
This has been resolved in current 6.2 snaps, moving to ON_QA for verification.
VERIFIED on Sat 6.2.0 Beta Snap GA11 the `operatingsystems` key is now being included in the response: # curl -u admin:changeme -H "Content-type: application/json" -X PUT -d '{"name": "my_updated_arch_1"}' https://my-sat6.com/api/v2/architectures/3 {"created_at":"2016-05-18 08:47:56 UTC","updated_at":"2016-05-18 08:49:16 UTC","name":"my_updated_arch_1","id":3,"operatingsystems":[{"id":1,"name":"RedHat_Enterprise_Linux_Atomic_Host","title":"RedHat_Enterprise_Linux_Atomic_Host 7.2"},{"id":2,"name":"RedHat","title":"RHEL Server 6.8"}],"images":[]}
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/RHBA-2016:1500