Hide Forgot
Need to update katello to use host.comment rather than the deprecated content_host.description. We also need to migrate content_host.description to host.comment as part of this fix.
Created from redmine issue http://projects.theforeman.org/issues/14822
Upstream bug assigned to walden
This bugzilla is basically just to track the katello changes needed for bug #1326347.
PR - https://github.com/Katello/katello/pull/5998
Upstream bug component is Hosts
Note when testing this that content_host.description has been removed and migrated to the existing field host.comment.
Moving to POST since upstream bug http://projects.theforeman.org/issues/14822 has been closed
Verified with sat6.2 GA snap10 As per host-unification feature, we don't have --description in hammer for content-host. This has been migrated to host as --comment. ~]# hammer -u admin -p changeme host create --help | grep comment --comment COMMENT Additional information about this host [root@cloud- ~]# hammer -u admin -p changeme host update --help | grep comment --comment COMMENT Additional information about this host Content-host doesn't have 'create' sub-command and neither --description option for "content-host update" Here I updated the description/comment of a existing host: [root@cloud- ~]# hammer -u admin -p changeme host list | grep test-host-comment 5 | test-host-comment # hammer -u admin -p changeme host update --comment 'testing description fields' --id 5 Host updated ----------------------------|------------------|------------|---------------|------------------ [root@cloud-qe-3 ~]# hammer -u admin -p changeme host info --id 5 Id: 5 Name: test-host-comment Organization: Default Organization Location: Default Location Puppet CA Id: Puppet Master Id: Cert name: test-host-comment Managed: no Installed at: Last report: Network: IP: MAC: Network interfaces: 1) Id: 10 Identifier: Type: interface (primary, provision) MAC address: IP address: FQDN: Operating system: Build: no Custom partition table: Parameters: Additional info: Owner Id: 3 Owner Type: User Enabled: yes Comment: testing description fields
Created attachment 1156620 [details] the updated comment for host, is shown in webUI under content-host -> description
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:1501