Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INF-2227: Add documentation for COManage CO Group provisioning. #160

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/img/comanage-add-group-members.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/comanage-create-group.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/comanage-create-unix-cluster-group.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/comanage-group-add-identifiers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/comanage-group-edit-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/comanage-group-provision.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
75 changes: 75 additions & 0 deletions docs/operations/comanage-recipes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
COmanage Recipes
================

A collection of step-by-step instructions for OSG COmanage administrators.



## Provisioning a CO Group in COManage

In order for a CO Group from COManage to show up in LDAP (and thus be made available for reference on hosts),
it must first be provisioned.

Follow these steps to provision a CO Group into LDAP:

### Create CO Group in COManage and add members (or use existing CO Group)

1. If using an already existing group, skip to the next step. Navigate to the `All Groups` page in COManage and click the `+ Add Group` button near the top-right.

![Create-Group-pt1](../img/comanage-create-group.png)

Give the group a name then click `ADD`, which will bring you to the Edit page for the new group

![Create-Group-pt2](../img/comanage-group-edit-page.png)

1. Click on `MEMBERS`, then type in the name or identifier for a user you want to give membership to,
then select the user from the drop-down and click the `ADD` button.
Repeat as necessary for each group member.
As the creator of the group you will already have both Membership in, and Ownership over, the new group.
Remove yourself as appropriate.

![Add-Members](../img/comanage-add-group-members.png)

!!! note "A Note on Groups used for OIDC Authorization"

If a CO Group is only being used for Authorization via OIDC clients (i.e. doesn't need to be accessed by LDAP or any special scripts), then it only needs to be created and have members added. Identifier assignment and Provisioning are not nessisary.

### Find lowest unclaimed non-user OSG GID

Each group needs a unique OSG group ID number or `OSG GID`, assigned from the non-user range starting at `200000`.

Run the following command on a host with `ldapsearch` capability (like ap40) to find
the highest / most recently assigned `OSG GID`.

sudo ldapsearch -H ldaps://ldap.cilogon.org -D uid=readonly_user,ou=system,o=OSG,o=CO,dc=cilogon,dc=org \
-w $(sudo awk '/ldap_default_authtok/ {print $3}' /etc/sssd/conf.d/0060_domain_CILOGON.ORG.conf) \
-b ou=groups,o=OSG,o=CO,dc=cilogon,dc=org -s one '(cn=*)' | grep "gidNumber" | sort | tail

### Set OSG GID and OSG Group Name Identifiers

Navigate back to the `PROPERTIES` tab of Edit page for the group you are trying to provision,
then click the `+ Add Identifier` button.

1. Add an Identifier of type `OSG GID` with a value one greater than the highest one assigned so far
(found in the last step).
1. Add an Identifier of type `OSG Group Name` with the group's name as it should appear in LDAP.

![Add-Identifiers](../img/comanage-group-add-identifiers.png)

### Create Unix Cluster Group

Each COManage Group needs a Unix Cluster Group in order to be provisioned.

1. On COManage, navigate to `Configuration` -> `Clusters` -> `Configure` -> `Manage Unix Cluster Groups`
-> `+ Add Unix Cluster Group`
1. Select the name of the Group you are trying to provision from the drop-down menu, then click `ADD`

![Create-Unix-Cluster-Group](../img/comanage-create-unix-cluster-group.png)

### Provision group

In the `PROVISIONED SERVICES` tab of the Edit page for the Group, click the `⚙ Provision` button, then on `Provision`.

![Provision-Group](../img/comanage-group-provision.png)

If all prior steps have been completed, you should get a message that the Group was successfully provisioned.
Binary file added docs/operations/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ nav:
- Acceptance Testing: 'release/acceptance-testing.md'
- Operations:
- COManage SOP: 'operations/comanage-sop.md'
- COManage Recipes: 'operations/comanage-recipes.md'
- COmanage Troubleshooting Guide: 'operations/comanage-troubleshooting-guide.md'
- Policy:
- GridFTP and GSI Migration: 'policy/gridftp-gsi-migration.md'
Expand Down
Loading