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 1328056

Summary: [RFE] Ability to add/update realm using hammer
Product: Red Hat Satellite Reporter: Ranjan Kumar <rankumar>
Component: ProvisioningAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NEXTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: high    
Version: 6.1.8CC: bkearney, xdmoon
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-10 16:41:54 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 Ranjan Kumar 2016-04-18 10:26:43 UTC
Description of problem: There is no hammer command to add/update realm.

Description of problem:
1. Who is the customer behind the request?  
Account: name and acct # Unacle B.V 1370669
  
TAM customer: no  
SRM customer: no  
Strategic: no  
  
2. What is the nature and description of the request?  
-->
Ability to add/update realm using hammer.
Currently there is no option to add/update realm using hammer
  
3. Why does the customer need this? (List the business requirements here)  
-->
It will be bit easy to customer to add realm using console
  
4. Is there already an existing RFE upstream or in Red Hat Bugzilla?  
-->
No
  
5. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?  
-->
Not specific
  
6. Is the sales team involved in this request and do they have any additional input?  
-->
No
  
7. Would the customer be able to assist in testing this functionality if implemented?
-->
Probably yes.

Comment 1 Bryan Kearney 2017-08-10 16:41:54 UTC
I show this command as existing in the satellite 6.3 code base. I am thereore closing this out as NEXTRELEASE.

[vagrant@sat63-qa-rhel7 ~]$ hammer realm --help
Usage:
    hammer realm [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    subcommand
 [ARG] ...                     subcommand arguments

Subcommands:
 create                        Create a realm
 delete                        Delete a realm
 info                          Show a realm
 list                          List of realms
 update                        Update a realm

Options:
 -h, --help                    print help

[vagrant@sat63-qa-rhel7 ~]$ hammer realm update --help
Usage:
    hammer realm update [OPTIONS]

Options:
 --id ID                              
 --location-ids LOCATION_IDS         REPLACE locations with given ids
                                     Comma separated list of values. Values containing comma should be double quoted
 --locations LOCATION_NAMES          Comma separated list of values. Values containing comma should be double quoted
 --name NAME                         Name to search by
 --new-name NEW_NAME                 The realm name, e.g. EXAMPLE.COM
 --organization-ids ORGANIZATION_IDS REPLACE organizations with given ids.
                                     Comma separated list of values. Values containing comma should be double quoted
 --organizations ORGANIZATION_NAMES  Comma separated list of values. Values containing comma should be double quoted
 --realm-proxy-id REALM_PROXY_ID     Capsule ID to use within this realm
 --realm-type REALM_TYPE             Realm type, e.g. Red Hat Identity Management or Active Directory
 -h, --help                          print help
[vagrant@sat63-qa-rhel7 ~]$