Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1192329

Summary: Org update doesn't show --description to update org description via hammer cli
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: HammerAssignee: orabin
Status: CLOSED ERRATA QA Contact: Sachin Ghai <sghai>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bbuckingham, jmontleo, lzap, omaciel, orabin, sghai
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 05:25:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1114136, 1214314    

Description Sachin Ghai 2015-02-13 07:50:30 UTC
Description of problem:

Couldn't find --description under organization update to update org's description.

#  hammer --username admin --password changeme organization update --id 3 --description='interesting description'
Could not update the organization:
  Error: Unrecognised option '--description'

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

Satellite-6.1.0-RHEL-6-20150210.0
Sat6.1.0 beta snap2

How reproducible:
always

Steps to Reproduce:
1. create an org without description
2. update it via hammer cli
3.

Actual results:
#  hammer --username admin --password changeme organization update --id 3 --description='interesting description'
Could not update the organization:
  Error: Unrecognised option '--description'

Expected results:
org update should have --description option to update org description.

Additional info:

Comment 3 Adam Price 2015-02-24 17:31:46 UTC
unable to reproduce. can you please retest?

Comment 5 Og Maciel 2015-03-03 20:05:46 UTC
Ok, so the problem exists in the downstream builds (aka compose) but not upstream. I guess we have problems with packaging?

UPSTREAM
========
# rpm -qa |grep hammer | sort
rubygem-hammer_cli-0.1.4-1.201502231453gita05d2a9.el6.noarch
rubygem-hammer_cli_foreman-0.1.4-1.201502261150gitcc37ad8.el6.noarch
rubygem-hammer_cli_foreman_bootdisk-0.1.2-1.el6.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3-2.201409091410gitc96619d.git.0.37f3704.el6.noarch
rubygem-hammer_cli_gutterball-0.0.1-1.201502202351git7ddb8f2.git.0.87f367e.el6.noarch
rubygem-hammer_cli_import-0.10.10-1.el6.noarch
rubygem-hammer_cli_katello-0.0.8-1.201502271616git0719e99.git.0.8721160.el6.noarch

DOWNSTREAM
==========
# rpm -qa |grep hammer |sort
rubygem-hammer_cli-0.1.4.3-1.el6_6sat.noarch
rubygem-hammer_cli_foreman-0.1.4.6-1.el6_6sat.noarch
rubygem-hammer_cli_foreman_bootdisk-0.1.2.5-1.el6_6sat.noarch
rubygem-hammer_cli_foreman_discovery-0.0.1.2-1.el6_6sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3.3-1.el6_6sat.noarch
rubygem-hammer_cli_gutterball-0.0.1.2-1.el6_6sat.noarch
rubygem-hammer_cli_import-0.10.6.3-1.el6_6sat.noarch
rubygem-hammer_cli_katello-0.0.7.3-1.el6_6sat.noarch

Comment 9 Sachin Ghai 2015-03-13 10:51:58 UTC
Verified with:

sat6.1 beta snap6 compose2
Satellite-6.1.0-RHEL-6-20150311.1/

I can see --description option to update org's description.

--
# hammer --username admin --password changeme organization update --help | grep description

 --description DESCRIPTION   
--

]# hammer --username admin --password changeme organization create --name testorg

Organization created

# hammer --username admin --password changeme organization list

---|----------------------|----------------------|------------
ID | NAME                 | LABEL                | DESCRIPTION
---|----------------------|----------------------|------------
1  | Default Organization | Default_Organization |            
3  | testorg              | testorg              |            
---|----------------------|----------------------|------------


[root@dhcp201-163 boot]# hammer --username admin --password changeme organization update  --id 3 --description='interesting description'

Organization updated

Org updated with description but org list doesn't show the updated description, ill file another bz for this.

[root@dhcp201-163 boot]# hammer --username admin --password changeme organization list

---|----------------------|----------------------|------------
ID | NAME                 | LABEL                | DESCRIPTION
---|----------------------|----------------------|------------
1  | Default Organization | Default_Organization |            
3  | testorg              | testorg              |            
---|----------------------|----------------------|------------

Comment 10 Lukas Zapletal 2015-04-22 12:25:16 UTC
For the record, the migration there should not have been added. Reported as https://bugzilla.redhat.com/show_bug.cgi?id=1214314

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

Comment 12 errata-xmlrpc 2015-08-12 05:25:32 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