Description of problem: When updating an org's description using hammer that does not work. Version-Release number of selected component (if applicable): # hammer --version hammer (0.1.1) * hammer_cli_foreman (0.1.1) * hammer_cli_katello (0.0.4) How reproducible: Aways Steps to Reproduce: 1. hammer organization update --id=<org_id> --description='interesting description' Actual results: Descriptions is not updated although a success message is displayed and when passing a invalid description like a 3000 characters length string it does not raise any error. Expected results: Organization description should be updated and raise an error if a invalid description is provided Additional info: # LANG=en_US hammer -v -u admin -p changeme --output csv organization update --id='67' --description='interesting description' Message,Id,Name Organization updated,67,wfc9n0 # LANG=en_US hammer -v -u admin -p changeme organization info --id='67' Id: 67 Name: wfc9n0 Users: Smart proxies: somehost.com Subnets: Compute resources: Installation media: Templates: Domains: Environments: Hostgroups: Parameters: Created at: 2014/06/27 03:48:38 Updated at: 2014/06/27 19:55:59 Label: wfc9n0 Description: Red Hat Repository URL: https://cdn.redhat.com
The description is updated when using UI. Have updated in UI and listed on cli: # LANG=en_US hammer -v -u admin -p changeme organization info --id='67' Id: 67 Name: wfc9n0 Users: Smart proxies: somehost.com Subnets: Compute resources: Installation media: Templates: Domains: Environments: Hostgroups: Parameters: Created at: 2014/06/27 03:48:38 Updated at: 2014/06/27 20:29:54 Label: wfc9n0 Description: description Red Hat Repository URL: https://cdn.redhat.com
Created redmine issue http://projects.theforeman.org/issues/6463 from this bug
Moving to POST since upstream bug http://projects.theforeman.org/issues/6463 has been closed ------------- Anonymous Applied in changeset commit:katello|df52a9bd77928099e74c495122e85e04185660b3.
Failed in CLI. As mentioned in the bug, works fine in UI. Version Tested: GA Snap 7 - Satellite-6.0.4-RHEL-6-20140829.0 * apr-util-ldap-1.3.9-3.el6_0.1.x86_64 * candlepin-0.9.23-1.el6_5.noarch * candlepin-common-1.0.1-1.el6_5.noarch * candlepin-scl-1-5.el6_4.noarch * candlepin-scl-quartz-2.1.5-5.el6_4.noarch * candlepin-scl-rhino-1.7R3-1.el6_4.noarch * candlepin-scl-runtime-1-5.el6_4.noarch * candlepin-selinux-0.9.23-1.el6_5.noarch * candlepin-tomcat6-0.9.23-1.el6_5.noarch * elasticsearch-0.90.10-6.el6sat.noarch * foreman-1.6.0.42-1.el6sat.noarch * foreman-compute-1.6.0.42-1.el6sat.noarch * foreman-gce-1.6.0.42-1.el6sat.noarch * foreman-libvirt-1.6.0.42-1.el6sat.noarch * foreman-ovirt-1.6.0.42-1.el6sat.noarch * foreman-postgresql-1.6.0.42-1.el6sat.noarch * foreman-proxy-1.6.0.30-1.el6sat.noarch * foreman-selinux-1.6.0.14-1.el6sat.noarch * foreman-vmware-1.6.0.42-1.el6sat.noarch * katello-1.5.0-30.el6sat.noarch * katello-ca-1.0-1.noarch * katello-certs-tools-1.5.6-1.el6sat.noarch * katello-installer-0.0.62-1.el6sat.noarch * openldap-2.4.23-34.el6_5.1.x86_64 * openldap-devel-2.4.23-34.el6_5.1.x86_64 * pulp-katello-0.3-4.el6sat.noarch * pulp-nodes-common-2.4.1-0.5.rc1.el6sat.noarch * pulp-nodes-parent-2.4.1-0.5.rc1.el6sat.noarch * pulp-puppet-plugins-2.4.1-0.5.rc1.el6sat.noarch * pulp-puppet-tools-2.4.1-0.5.rc1.el6sat.noarch * pulp-rpm-plugins-2.4.1-0.5.rc1.el6sat.noarch * pulp-selinux-2.4.1-0.5.rc1.el6sat.noarch * pulp-server-2.4.1-0.5.rc1.el6sat.noarch * python-ldap-2.3.10-1.el6.x86_64 * ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch * ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch
https://github.com/Katello/katello/pull/4748
Version used to reproduce this: Satellite-6.1.0-RHEL-6-20150210.0 Sat6.1.0 beta snap2 I didn't find the hammer command to update the org description. [root@dhcp201-167 ~]# hammer --username admin --password changeme organization update --id 3 --description='interesting description' Could not update the organization: Error: Unrecognised option '--description'
Filed new bz: https://bugzilla.redhat.com/show_bug.cgi?id=1192329 This bz can not be verified until bz 1192329 is fixed.
Verified with: sat6.1 beta snap6 compose2 Satellite-6.1.0-RHEL-6-20150311.1/ # hammer --username admin --password changeme organization update --id 3 --description='nice_description' Organization updated ]# hammer --username admin --password changeme organization info --id 3 Id: 3 Name: testorg Users: Smart proxies: dhcpxx.englab.pnq.redhat.com Subnets: Compute resources: Installation media: Templates: Boot disk iPXE - generic host (Bootdisk) Boot disk iPXE - host (Bootdisk) freeipa_register () Katello Kickstart Default (provision) Katello Kickstart Default Finish (finish) Katello Kickstart Default User Data (user_data) Kickstart default iPXE (iPXE) Kickstart default PXELinux (PXELinux) puppet.conf () PXELinux global default (PXELinux) subscription_manager_registration () Domains: Environments: Hostgroups: Parameters: Created at: 2015/03/13 05:14:21 Updated at: 2015/03/13 05:28:07 Label: testorg Description: nice_description Red Hat Repository URL: https://cdn.redhat.com org info correctly displays the org's description..
This bug is slated to be released with Satellite 6.1.
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-2015:1592