Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1771693 - 'Deployed on' parameter is not listed in API output
Summary: 'Deployed on' parameter is not listed in API output
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Host Group
Version: 6.5.0
Hardware: All
OS: All
unspecified
high
Target Milestone: 6.8.0
Assignee: satellite6-bugs
QA Contact: Mirek Długosz
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-12 19:25 UTC by patalber
Modified: 2023-12-15 16:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 12:59:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 27460 0 Normal Closed hostgroup api response is missing compute_resource 2020-10-28 17:19:58 UTC
Red Hat Product Errata RHSA-2020:4366 0 None None None 2020-10-27 12:59:38 UTC

Description patalber 2019-11-12 19:25:40 UTC
Description of problem:
Per the customer:

"We use the API to manage our host groups, and are finding the new option 'Deploy On' is not being returned by the RESTAPI when performing a CURL against a given host group with the setting."

Version-Release number of selected component (if applicable):
N/A

How reproducible:
100%

Steps to Reproduce:
1. create a new host group (with or without an entry in 'deployed on')
2. call the API to display the host group's JSON output
3.

Actual results:
There is not a listing for 'Deployed On' (either 'NULL' or what was chosen)

Expected results:
A parameter listing either NULL or the entry for 'Deployed On'

Additional info:
Sample output from my test 6.5 Satellite on latest 6.5:

# curl -k -u admin https://oblivion.usersys.redhat.com/api/v2/hostgroups/?search=test | json_reformat
Enter host password for user 'admin':
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1363    0  1363    0     0   2574      0 --:--:-- --:--:-- --:--:--  2576
{
    "total": 1,
    "subtotal": 1,
    "page": 1,
    "per_page": 20,
    "search": "test",
    "sort": {
        "by": null,
        "order": null
    },
    "results": [
        {
            "subnet_id": null,
            "subnet_name": null,
            "operatingsystem_id": 4,
            "operatingsystem_name": "RedHat 7.7",
            "domain_id": null,
            "domain_name": null,
            "environment_id": 2,
            "environment_name": "common",
            "compute_profile_id": null,
            "compute_profile_name": null,
            "ancestry": null,
            "parent_id": null,
            "parent_name": null,
            "ptable_id": 99,
            "ptable_name": "Kickstart default",
            "medium_id": null,
            "medium_name": null,
            "pxe_loader": "PXELinux BIOS",
            "subnet6_id": null,
            "subnet6_name": null,
            "architecture_id": 1,
            "architecture_name": "x86_64",
            "realm_id": null,
            "realm_name": null,
            "created_at": "2019-11-12 18:28:58 UTC",
            "updated_at": "2019-11-12 18:28:58 UTC",
            "id": 1,
            "name": "test",
            "title": "test",
            "description": "test",
            "puppet_proxy_id": 1,
            "puppet_proxy_name": "oblivion.usersys.redhat.com",
            "puppet_ca_proxy_id": 1,
            "puppet_ca_proxy_name": "oblivion.usersys.redhat.com",
            "openscap_proxy_id": 1,
            "openscap_proxy_name": "oblivion.usersys.redhat.com",
            "puppet_proxy": {
                "name": "oblivion.usersys.redhat.com",
                "id": 1,
                "url": "https://oblivion.usersys.redhat.com:9090"
            },
            "puppet_ca_proxy": {
                "name": "oblivion.usersys.redhat.com",
                "id": 1,
                "url": "https://oblivion.usersys.redhat.com:9090"
            },
            "openscap_proxy": {
                "name": "oblivion.usersys.redhat.com",
                "id": 1,
                "url": "https://oblivion.usersys.redhat.com:9090"
            }
        }
    ]
}

Comment 8 errata-xmlrpc 2020-10-27 12:59:24 UTC
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 (Important: Satellite 6.8 release), 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-2020:4366


Note You need to log in before you can comment on or make changes to this bug.