Bug 1234964
Summary: | PUT /api/v2/architectures/:id returns an incomplete set of attributes | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | jaudet | ||||
Component: | API | Assignee: | alon <agoldboi> | ||||
Status: | CLOSED ERRATA | QA Contact: | Roman Plevka <rplevka> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.1.0 | CC: | agoldboi, bkearney, fsimonce, jaudet, ohadlevy, orabin, rplevka, tbrisker | ||||
Target Milestone: | Unspecified | Keywords: | Reopened | ||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-07-27 08:52:45 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: | 1216236 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
jaudet
2015-06-23 15:17:57 UTC
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 *** 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 |