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 - Deleting organization by title does not work in hammer
Summary: Deleting organization by title does not work in hammer
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer - Content
Version: 6.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.8.0
Assignee: Shira Maximov
QA Contact: Roman Plevka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-21 17:50 UTC by Lai
Modified: 2020-10-27 13:32 UTC (History)
7 users (show)

Fixed In Version: tfm-rubygem-hammer_cli_katello-0.21.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 13:32:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 28833 0 Normal Closed Deleting organization by title does not work in hammer 2021-02-03 16:43:04 UTC
Red Hat Product Errata RHBA-2020:4367 0 None None None 2020-10-27 13:32:24 UTC

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


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