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 1084927 - hammer --organization-id option does not expect organization id
Summary: hammer --organization-id option does not expect organization id
Keywords:
Status: CLOSED DUPLICATE of bug 1082777
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-07 10:03 UTC by Tomas Lestach
Modified: 2016-04-22 16:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-24 14:15:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 5110 0 Normal Resolved hammer --organization-id option does not expect organization id 2020-11-09 21:42:58 UTC

Description Tomas Lestach 2014-04-07 10:03:47 UTC
Description of problem:
Even if
# hammer system-group create  --help
writes about option
    --organization-id ORGANIZATION_ID organization identifier
organization id isn't expected

Version-Release number of selected component (if applicable):
sat6-Satellite-6.0.3-RHEL-6-20140404.0-Satellite-x86_64-dvd1.iso

How reproducible:
always

Steps to Reproduce:
1. list organizations via hammer
# hammer organization list
---|------------------|------------------|------------------------------
ID | NAME             | LABEL            | DESCRIPTION                  
---|------------------|------------------|------------------------------
1  | ACME_Corporation | ACME_Corporation | ACME_Corporation Organization
---|------------------|------------------|------------------------------
2. create new group named "grupa" using hammer
# hammer system-group create --organization-id 1 --name grupa

Actual results:
# hammer system-group create --organization-id 1 --name grupa
Could not create the system group:
  Couldn't find organization '1'

Expected results:
Group created.

Additional info:
Passing organization label(name) instead of id works;
# hammer system-group create --organization-id ACME_Corporation --name grupa
System group created

Either hammer help shall be updated to expect --organization-label, or organization id shall be expected.

Comment 1 RHEL Program Management 2014-04-07 10:05:57 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Bryan Kearney 2014-04-08 13:52:36 UTC
Created redmine issue http://projects.theforeman.org/issues/5110 from this bug

Comment 4 Matej Kollar 2014-04-18 14:20:51 UTC
It seems that problem is not only within system-group subcommand but also with system-group (possibly others?)

# hammer content-view create --organization-id 1 --name kwak
Couldn't find organization '1'
# hammer content-view create --organization-id ACME_Corporation --name kwak
Content view created

Comment 5 Brad Buckingham 2014-04-24 14:15:54 UTC

*** This bug has been marked as a duplicate of bug 1082777 ***


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