Bug 1267629
Summary: | API GET hostgroup does not return content_view_id and lifecycle_environment_id | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Peter Vreman <peter.vreman> |
Component: | API | Assignee: | Brad Buckingham <bbuckingham> |
Status: | CLOSED ERRATA | QA Contact: | Roman Plevka <rplevka> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.1.2 | CC: | bbuckingham, bkearney, rplevka, sghai, sthirugn |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://projects.theforeman.org/issues/12353 | ||
Whiteboard: | FAILEDQA in Upstream | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-07-27 08:56:40 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: | 1122832 |
Description
Peter Vreman
2015-09-30 14:22:25 UTC
Created redmine issue http://projects.theforeman.org/issues/12353 from this bug Upstream Katello PR: https://github.com/Katello/katello/pull/5559 Moving to POST since upstream bug http://projects.theforeman.org/issues/12353 has been closed ------------- Brad Buckingham Applied in changeset commit:katello|06ae7fd5228c1187113f5b9719e0b0dce4294824. Verified with following version: katello-2.5.0-1.nightly.el7.noarch foreman-1.11.0-0.develop.201512091815git0e9b35e.el7.noarch API GET still doesn't return content_view_id and lifecycle_environment_id ---|--------|--------|------------------|-------------|------ ID | NAME | TITLE | OPERATING SYSTEM | ENVIRONMENT | MODEL ---|--------|--------|------------------|-------------|------ 1 | fgroup | fgroup | RHEL Server 7.2 | production | 2 | group1 | group1 | RHEL Server 7.2 | | ---|--------|--------|------------------|-------------|------ [root@cloud ~]# curl -k -u admin:changeme -H "Accept: application/json" -X GET https://localhost/api/v2/hostgroup/2{"subnet_id":2,"subnet_name":"primary_libvirt","operatingsystem_id":1,"operatingsystem_name":"RHEL Server 7.2","domain_id":1,"domain_name":"idmqe.lab.eng.bos.redhat.com","environment_id":null,"environment_name":null,"compute_profile_id":4,"compute_profile_name":"testp","ancestry":null,"puppet_proxy_id":1,"puppet_ca_proxy_id":1,"ptable_id":55,"ptable_name":"Kickstart default","medium_id":9,"medium_name":"Default_Organization/Library/RHEL7/RHEL7_x86_64","architecture_id":1,"architecture_name":"x86_64","realm_id":null,"realm_name":null,"created_at":"2015-12-17T11:25:34Z","updated_at":"2015-12-17T11:35:28Z","id":2,"name":"group1","title":"group1","parameters":[{"id":2,"name":"kt_activation_keys","value":"ak_rhel7"}],"template_combinations":[],"puppetclasses":[],"config_groups":[],"all_puppetclasses":[],"locations":[],"organizations":[{"id":1,"name":"Default Organization","title":"Default Organization","description":null}]} Moving to POST since upstream bug http://projects.theforeman.org/issues/12353 has been closed ------------- Brad Buckingham Applied in changeset commit:katello|06ae7fd5228c1187113f5b9719e0b0dce4294824. The API does indeed return the additional fields for content source, content view and lifecycle environment; therefore, moving this BZ back to POST. Comment #5 raises a separate issue and that is supporting those fields from hammer cli. I agree that we should do that; however, let's track that with a separate bug. Regarding the API, the following is an example of the new fields: { "content_source_id": 1, "content_source_name": "katello-centos7-devel", "content_view_id": 1, "content_view_name": "Default Organization View", "lifecycle_environment_id": 1, "lifecycle_environment_name": "Library", ... } Sachin, I created bug 1313056 for the hammer CLI aspect. VERIFIED in sat 6.2.0. snap 8.2 # curl -L -u admin:changeme sat6.com/api/hostgroups/1 {"content_source_id":1, "content_source_name":"sat6.com", "content_view_id":3, "content_view_name":"rhel7_cv", "lifecycle_environment_id":2, "lifecycle_environment_name":"Dev", ...} Confirmed with Sat6.2.0 Beta2 [crash] root@li-lc-1578:~# curl -K /opt/hoici/etc/sat6/curl-hoici.conf "-HContent-Type: application/json" "-d{\"per_page\":9999}" -XGET https://localhost/api/v2/hostgroups/24 | jq . | egrep '(content_view|lifecycle_environment)' "content_view_id": 37, "content_view_name": "hg-crash::ILF::Gateway2", "lifecycle_environment_id": 2, "lifecycle_environment_name": "Library", 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 |