Skip to content

Commit 9db172e

Browse files
committed
typos & other updates
1 parent b50a8dd commit 9db172e

1 file changed

Lines changed: 43 additions & 27 deletions

File tree

coldfront/README.md

Lines changed: 43 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11

22

3-
## Seed ColdFront with data for tutorial
3+
## Pre-seeding ColdFront with data for tutorial
4+
5+
Due to time constraints for the half day tutorial we will skip the manual setup steps and have provided a database populated with this information. These manual steps involve setting up ColdFront with user permissions, resources, an example project and allocations. If you'd like to walk through these steps yourself, you can delete the ColdFront database and start from scratch. [Follow the detailed instructions below](#seeding-the-database).
46

5-
This step will populate the ColdFront database with user permissions, resources, an example project and allocations. If you'd like to see how this is done, you can skip this and go through the steps [detailed below](#seeding-the-database). Due to time constraints for the half day tutorial we'll need to skip the manual setup steps and populate the database:
67

7-
```
8-
cat coldfront.dump | docker exec -i mysql mysql --user coldfrontapp --password= coldfront
9-
```
10-
118
## Tutorial: Using ColdFront
129

1310
### PI View: Annual Project Review, Allocation Renewal & Allocation Change Requests
@@ -118,7 +115,13 @@ The information following can be used for reference or to go back through the tu
118115

119116
## Seeding the Database
120117

121-
These steps were done in advance to allow for the presentation of a condensed version of the tutorial.
118+
These steps were done in advance to allow for the presentation of a condensed version of the tutorial. If you would like to go through them yourself, destroy the containers, delete the ColdFront database, start the containers and then follow the steps here:
119+
120+
```
121+
./hpcts destroy
122+
rm database/coldfront.dump
123+
./hpcts start
124+
```
122125

123126
### Login to ColdFront, setup account permissions & create resource
124127
URL https://localhost:2443/
@@ -133,54 +136,65 @@ You'll need to login as some of the users for this tutorial to get things starte
133136
- Logout
134137
- Login locally as username `admin` password: `admin`
135138
- Go to Admin menu and click on `ColdFront Administration` Once there, scroll halfway down to the `Authentication and Authorization` section. Then click on the `Users` link.
136-
- Click on the hpcadmin user and scroll down to the `Permissions` section
137-
- Make this user a `superuser` by checking the boxes next to `Staff Status` and `Superuser Status` - scroll to the bottom and click SAVE
139+
- Click on the `hpcadmin` user and scroll down to the `Permissions` section
140+
- Make this user a `superuser` by checking the boxes next to `Staff Status` and `Superuser Status` - scroll to the bottom and click `SAVE`
138141
- Click on the `sfoster` account and check the box next to `Staff Status` Also under the `User Permissions` section add permissions to make this user the Center Director
139142
`allocation | allocation | Can manage invoice`
140143
`allocation | allocation | Can view all allocations`
141144
`grant | grant | Can view all grants`
142145
`project | project | Can view all projects`
143146
`project | project | Can review pending project reviews`
144-
`publication | publication | Can view publication`
145-
Make sure to SAVE the changes.
147+
`publication | publication | Can view publication`
148+
- Scroll to the bottom and click `SAVE`
146149
- Click on the Home link to go to back to the Admin interface, scroll to the bottom of the page under the `User` section and click `User Profiles`
147-
- Click on `cgray` check ``"Is pi"`` - click SAVE
150+
- Click on `cgray` check ``"Is pi"`` - click `SAVE`
148151

149152
Create a new cluster resource:
150153
- Click on the Home link to go to back to the Admin interface, scroll down near the bottom to the `Resource` section and Click on `Resources` then click the `Add Resource` button
151154
- Add a resource with the following settings:
152155
Resource type: select `cluster`
153156
Name: type `hpc`
154-
Description: enter anything you want
157+
Description: enter anything you want
155158
Ensure that the following are checked: `Is available`, `Is public`, `Is allocatable`
156-
Under the resource attributes section, click `Add another Resource attribute` and select `slurm_cluster` from the drop down menu. In the `value` field, enter `hpc`
159+
Under the resource attributes section, click `Add another Resource attribute` and select `slurm_cluster` from the drop down menu. In the `value` field, enter `hpc`
157160
Click `Add another Resource attribute` and select `OnDemand` from the drop down menu. In the `value` field, enter `Yes`
158-
- Then click SAVE
159-
**See more info on the OnDemand plugin at the end**
161+
- Then click `SAVE`
162+
**See more info on the OnDemand plugin below**
160163

161164
Create a new storage resource:
162-
- Click on the Home link to go to back to the Admin interface, scroll down near the bottom to the `Resource` section and Click on `Resources` then click the `Add Resource` button
165+
- Click the `Add Resource` button
163166
- Add a resource with the following settings:
164167
Resource type: select `storage`
165168
Name: type `project storage`
166-
Description: enter anything you want
169+
Description: enter anything you want
167170
Ensure that the following are checked: `Is available`, `Is public`, `Is allocatable`
168171
Under the resource attributes section, click `Add another Resource attribute` and select `quantity_label` from the drop down menu. In the `value` field, enter `Enter storage in 1TB increments`
169172
Click `Add another Resource attribute` and select `quantity_default_value` from the drop down menu. In the `1`
170173
Click `Add another Resource attribute` and select `OnDemand` from the drop down menu. In the `value` field, enter `Yes`
171-
- Then click SAVE
174+
- Then click `SAVE`
175+
176+
Create a new cloud resource:
177+
- Click the `Add Resource` button
178+
- Add a resource with the following settings:
179+
Resource type: select `cloud`
180+
Name: type `on-prem cloud`
181+
Description: enter anything you want
182+
Ensure that the following are checked: `Is available`, `Is public`, `Is allocatable`
183+
- We will not set any resource attributes on this resource. Scroll to the bottom and click `SAVE`.
172184

173185
Add an allocation attribute type:
174-
- Click on `Allocation attribute types` under the `Allocation` section Click `Add Allocation Attribute Type` button, select `Text` from the `Attribute Type` drop down menu and name it `Storage Directory` Make sure all checkboxes are unchecked and click the `SAVE` button.
186+
- Click on the Home link to go to back to the Admin interface. Under the `Allocation` section click on `Allocation attribute types`
187+
- Click `Add Allocation Attribute Type` button, select `Text` from the `Attribute Type` drop down menu and name it `Storage Directory` Make sure all checkboxes are unchecked and click the `SAVE` button.
175188

176189
Make an allocation attribute changeable:
177-
- Under the `Allocation` section, click on `Allocation Attribute Types` Click on `Storage Quota` check the box next to `Is changeable` and then click the SAVE button.
190+
- Under the `Allocation` section, click on `Allocation Attribute Types`
191+
- Click on `Storage Quota` check the box next to `Is changeable` and then click the `SAVE` button.
178192
- Logout
179193

180194
### Create a project & request an allocation
181-
As the PI user: Request an allocation for the new resource:
195+
As the PI user: Create a project and request an allocation for the new resource:
182196
- Login as the PI using local account username: `cgray` password: `test123`
183-
- Click the `Add a project` button to reate a new project, filling in the name, description, and selecting any field of science
197+
- Click the `Add a project` button to create a new project, filling in the name, description, and selecting any field of science
184198
- Once redirected to the project detail page, request an allocation by clicking on the `Request Resource Allocation` button. Select the `hpc` resource from the drop down menu, provide any justification, and click the `Submit` button
185199
- Request another allocation by clicking on the `Request Resource Allocation` button. Select the `Project Storage` resource from the drop down menu, enter a quantity in TB or leave the default 1, provide any justification, and click the `Submit` button
186200
- Logout
@@ -195,9 +209,10 @@ click the `Add Allocation Attribute` button and select these allocation attribut
195209
`slurm_specs` Enter: `Fairshare=100:DefaultQOS=normal`
196210
`slurm_user_specs` Enter: `Fairshare=parent:DefaultQOS=normal`
197211
- Set the status to `Active`, set the start date to today, and set the expiration date to the end of this month. If you click the `Approve` button, this will set the status to `Active` and set the expiration date out to one year from today. For the purposes of this demo, we wanted to shorten the allocation length. [See here](https://coldfront.readthedocs.io/en/latest/config/#coldfront-core-settings) for more on changing the allocation length default.
198-
- Click the `Update` button
212+
- Click the `Update` button
213+
- Return back to the `Admin` menu and click on the `Allocation Requests`
199214
- Click on the `Details` button next to the `Project Storage` allocation request to configure and activate the allocation:
200-
click the `Add Allocation Attribute` button and select these allocation attributes from the drop down menu:
215+
click the `Add Allocation Attribute` button and select these allocation attributes from the drop down menu and set their values:
201216
`freeipa_group` Enter: `grp-cgray`
202217
`Storage Quota (GB)` Enter: `1000`
203218
`Storage Directory` Enter: `/projects/cgray`
@@ -207,8 +222,9 @@ click the `Add Allocation Attribute` button and select these allocation attribut
207222
### Annual Project Review
208223
When the project review functionality is enabled (it is by default) a PI will be forced to review their project once every 365 days. We can force a project to be under review in less than a year which is what we'll do for the cgray project. [See here](https://coldfront.readthedocs.io/en/latest/config/#coldfront-core-settings) for more on disabling the annual project review process.
209224

210-
- Login as `hpcadmin` password `ilovelinux`
211-
- Navigate to the `Admin` menu and click on the `ColdFront Administration` link. Scroll to the `Project` section and click on `Projects` then click on the project that we created earlier. Check the box next to `Force Review` Scroll to the bottom and click the `Save` button.
225+
- If necessary, login as `hpcadmin` password `ilovelinux`
226+
- Navigate to the `Admin` menu and click on the `ColdFront Administration` link. Scroll to the `Project` section and click on `Projects` then click on the project that we created earlier. Check the box next to `Force Review`
227+
- Scroll to the bottom and click the `Save` button.
212228
NOTE: If there is a project you never want project reviews on, uncheck 'Requires review'
213229

214230
This wraps up the setup done to the ColdFront database to prepare for the condensed half-day tutorial format.

0 commit comments

Comments
 (0)