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. #144

Open
wants to merge 2 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.
71 changes: 71 additions & 0 deletions docs/operations/comanage-recipes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
COManage Recipes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
COManage Recipes
COmanage Recipes

==============================
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
==============================
================

Just for visual alignment of the article title


A collection of step-by-step instructions for common actions for use by administrators of the OSG COManage.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
A collection of step-by-step instructions for common actions for use by administrators of the OSG COManage.
A collection of step-by-step instructions for OSG COmanage administrators.

Just a little bit of brevity here. Also, the appropriate capitalization is COmanage



Steps for Common COManage Actions
----
This section contains some common actions administrators perform on the OSG COManage, and how to do so.
Comment on lines +7 to +9
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Steps for Common COManage Actions
----
This section contains some common actions administrators perform on the OSG COManage, and how to do so.

All of this basically just repeats what you say in the sentence above. Also, adding a section level here adds noise to the section hierarchy and it's not entirely clear why we need it (if we have another section in this doc at the same level, what would it actually be?)


### 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),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In order for a CO Group from COManage to show up in LDAP (and thus be made available for reference on Hosts),
In order for a CO Group from COManage to show up in LDAP (and thus be made available for reference on hosts),

Adding a linebreak between the heading and content for readability, not sure why hosts was capitalized

it must first be provisioned.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
it must first be provisioned.
it must first be provisioned.

You don't need the leading space here as the newline will be replaced by a space (unless there are multiple newlines)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be worth adding an admonition here to speak to the fact that OIDC clients needing groups don't need any of these steps outside of the group creation (see https://osg-htc.org/technology/documentation/style-guide/#notes and https://squidfunk.github.io/mkdocs-material/reference/admonitions/#supported-types)


Follow these steps to provision a CO Group into LDAP:

1. #### Create CO Group in COManage and add members (or use existing CO Group)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. #### Create CO Group in COManage and add members (or use existing CO Group)
### Create CO Group in COManage and add members (or use existing CO Group)

I don't think we need to make something a section header AND an enumerated step


Skip the first bullet point if using an existing Group.

- Navigate to the `All Groups` page in COManage and click the `+ Add Group` button near the top-right.
Comment on lines +19 to +21
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Skip the first bullet point if using an existing Group.
- Navigate to the `All Groups` page in COManage and click the `+ Add Group` button near the top-right.
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.

Combining and bolding here helps with clarity. Also, this section has two steps that should happen in order (if doing both). We use bulleted lists more when we're describing exclusive options, or an unordered list

![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)
- Click on `MEMBERS`, then type in the name or identifier for a user you want to give membership to,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Click on `MEMBERS`, then type in the name or identifier for a user you want to give membership to,
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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
As the creator of the Group, you will already have both Membership in, and Ownership over, the new group.
As the creator of the Group, you will already have both Membership in and Ownership over the new group.
Remove yourself as appropriate.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
As the creator of the Group, you will already have both Membership in, and Ownership over, the new group.
As the creator of the group, you will already have both Membership in, and Ownership over, the new group.

Make sure to use consistent capitalization

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

1. #### Find lowest unclaimed OSG GID in the range of non-user GIDS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. #### Find lowest unclaimed OSG GID in the range of non-user GIDS
### Find lowest unclaimed non-user OSG GID

Brevity


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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Fix capitalization


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

:::console
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

1. #### Set OSG GID and OSG Group Name Identifiers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. #### Set OSG GID and OSG Group Name Identifiers
### 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.

- Add an Identifier of type `OSG GID` with a value one greater than the highest one assigned so far
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Add an Identifier of type `OSG GID` with a value one greater than the highest one assigned so far
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).
- Add an Identifier of type `OSG Group Name` with the group's name as it should appear in LDAP.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Add an Identifier of type `OSG Group Name` with the group's name as it should appear in LDAP.
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)

1. #### Create Unix Cluster Group
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. #### Create Unix Cluster Group
### Create Unix Cluster Group


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

- On COManage, navigate to `Configuration` -> `Clusters` -> `Configure` -> `Manage Unix Cluster Groups`
-> `+ Add Unix Cluster Group`
- Select the name of the Group you are trying to provision from the drop-down menu, then click `ADD`
Comment on lines +58 to +60
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- On COManage, navigate to `Configuration` -> `Clusters` -> `Configure` -> `Manage Unix Cluster Groups`
-> `+ Add Unix Cluster Group`
- Select the name of the Group you are trying to provision from the drop-down menu, then click `ADD`
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)

1. #### Provision group
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. #### Provision group
### 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.
Comment on lines +66 to +71
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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.
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.

There aren't multiple actions to take here so you don't need to toss this under a list

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