Bug 1114136 - hammer org update org's description is broken
Summary: hammer org update org's description is broken
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: Adam Price
QA Contact: Sachin Ghai
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On: 1192329
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-27 20:41 UTC by Elyézer Rezende
Modified: 2017-02-23 21:14 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 05:10:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 6463 0 None None None 2016-04-22 16:05:38 UTC
Red Hat Product Errata RHSA-2015:1592 0 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 09:04:35 UTC

Description Elyézer Rezende 2014-06-27 20:41:27 UTC
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

Comment 2 Elyézer Rezende 2014-06-27 20:51:16 UTC
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

Comment 3 Adam Price 2014-07-01 21:30:41 UTC
Created redmine issue http://projects.theforeman.org/issues/6463 from this bug

Comment 4 Bryan Kearney 2014-07-16 22:03:56 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6463 has been closed
-------------
Anonymous
Applied in changeset commit:katello|df52a9bd77928099e74c495122e85e04185660b3.

Comment 6 sthirugn@redhat.com 2014-09-03 14:13:09 UTC
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

Comment 7 Adam Price 2014-10-15 21:31:52 UTC
https://github.com/Katello/katello/pull/4748

Comment 10 Sachin Ghai 2015-02-13 07:20:59 UTC
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'

Comment 11 Sachin Ghai 2015-02-13 07:51:59 UTC
Filed new bz: https://bugzilla.redhat.com/show_bug.cgi?id=1192329

This bz can not be verified until bz 1192329 is fixed.

Comment 12 Sachin Ghai 2015-03-13 10:58:13 UTC
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..

Comment 13 Bryan Kearney 2015-08-11 13:37:25 UTC
This bug is slated to be released with Satellite 6.1.

Comment 14 errata-xmlrpc 2015-08-12 05:10:04 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, 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


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