Description of problem: `hammer host list --thin` does no longer work as `--thin` option was removed from `hammer` in Red Hat Satellite 6.3 (as per https://bugzilla.redhat.com/show_bug.cgi?id=1503586). This option is heavily used and required by customers, to generate fast list of hosts in case not all details are required. See https://bugzilla.redhat.com/show_bug.cgi?id=1503586#c7 for details The API call `thin` is still there and works. As this was working in Red Hat Satellite 6.2 (and because it's available via API) we are requesting to have this back. Also, when checking https://bugzilla.redhat.com/show_bug.cgi?id=1503586 it's odd that `--thin` was removed as actually `--include` was questioned. Version-Release number of selected component (if applicable): - tfm-rubygem-hammer_cli-0.11.0.1-1.el7sat.noarch How reproducible: - Always Steps to Reproduce: 1. [root@satellite63 ~]# rpm -q satellite satellite-6.3.0.1-1.el7sat.noarch [root@satellite63 ~]# hammer -u admin -p <pwd> host list --help | grep thin [root@satellite63 ~]# 2. [root@dhcp-144-209 ~]# rpm -q satellite satellite-6.2.14-4.0.el7sat.noarch [root@dhcp-144-209 ~]# hammer -u admin -p <pwd> host list --help | grep thin --thin THIN Only list ID and name of hosts [root@dhcp-144-209 ~]# Actual results: [root@satellite63 ~]# hammer -u admin -p <pwd> host list --help | grep thin [root@satellite63 ~]# Expected results: [root@dhcp-144-209 ~]# hammer -u admin -p <pwd> host list --help | grep thin --thin THIN Only list ID and name of hosts Additional info:
Based upon https://bugzilla.redhat.com/show_bug.cgi?id=1503586#c7, it appears that --thin was included in earlier 6.3 builds. Tomas, do you know if this may have been purposely removed?
I went through the BZ you're mentioning and it seems that --thin was removed based on inaccurate interpretation of the BZ. The first comment mentions that --include and --thin has no effect and there fore it should be removed. One of the later comments showed that --thin has actually significant performance impact but leaves some of the table columns blank. I believe that the correct fix is: - remove --include from host/hostgroup list (already done) - keep --thin for host list (needs to be added back) - extra points for hiding fields other than 'id' and 'name' when --thin is passed
Created redmine issue https://projects.theforeman.org/issues/25349 from this bug
Verified on Sat 6.5 snap 5, I find it a bit annoying you have to add boolean parameter to it (as if someone ever used '--thin no'), but since it was already used and loved as it was, it's probably better to keep the form intact
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-2019:1222