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 1763843

Summary: Deleting organization by title does not work in hammer
Product: Red Hat Satellite Reporter: Lai <ltran>
Component: Hammer - ContentAssignee: Shira Maximov <mshira>
Status: CLOSED ERRATA QA Contact: Roman Plevka <rplevka>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: apatel, egolov, kgaikwad, mbacovsk, mshira, ofedoren, rabajaj
Target Milestone: 6.8.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-hammer_cli_katello-0.21.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 13:32:10 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:

Description Lai 2019-10-21 17:50:29 UTC
Description of problem:
Running hammer organization delete --title <title name> gives error.

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

How reproducible:
100%

Steps to Reproduce:
1.hammer organization delete --title <title name>

Actual results:
Could not delete the organization:
  Missing arguments for 'id'


Expected results:
[......................................................................................] [100%]

Additional info:
The expected result is what I really see if I ran the delete command successfully since there's no message that says "Organization Title <title name> deleted successfully."

Comment 3 Shira Maximov 2019-10-22 06:53:29 UTC
I tried to reproduce the issue on hammer downstream versions 0.17 and master. and I wasn't able to reproduce the BZ.
Lai, please provide hammer logs and also specify the hammer version you are working with. 
also, please check if you are able to delete the organization by the title in the API, so I can have a better understanding of the source of the issue.

Comment 7 Shira Maximov 2020-01-22 10:36:09 UTC
Created redmine issue https://projects.theforeman.org/issues/28833 from this bug

Comment 8 Bryan Kearney 2020-01-22 11:04:04 UTC
Upstream bug assigned to mshira

Comment 9 Bryan Kearney 2020-01-22 11:04:07 UTC
Upstream bug assigned to mshira

Comment 10 Bryan Kearney 2020-01-28 13:03:36 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28833 has been resolved.

Comment 11 Roman Plevka 2020-06-24 10:41:35 UTC
VERIFIED
on sat6.8.0-5


[root@dhcp-3-140 ~]# hammer organization create --name foo
Organization created.
[root@dhcp-3-140 ~]# hammer organization delete --title foo
[.......................................................................................................] [100%]

Comment 14 errata-xmlrpc 2020-10-27 13:32:10 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 (Satellite 6.8 Satellite Tools Release), 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-2020:4367