Skip to content

Commit 68b0a54

Browse files
authored
Merge pull request #145 from dsajdak/master
minor re-arrange of order
2 parents 850af4b + f9e5f4f commit 68b0a54

File tree

1 file changed

+33
-30
lines changed

1 file changed

+33
-30
lines changed

coldfront/README.md

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- View `hpc-toolset-tutorial/coldfront/coldfront-nginx.conf` for an example of ColdFront web configuration
66

77

8-
## Login to ColdFront website
8+
### Login to ColdFront, setup account permissions & create resource
99
URL https://localhost:2443/
1010
You'll need to login as some of the users for this tutorial to get things started. Do NOT use the OpenID Connect login option at this point.
1111
- Login locally as username `hpcadmin` password: `ilovelinux`
@@ -39,17 +39,22 @@ Ensure that the following are checked: `Is available`, `Is public`, `Is allocat
3939
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`
4040
Click `Add another Resource attribute` and select `OnDemand` from the drop down menu. In the `value` field, enter `Yes`
4141
- Then click SAVE
42+
**See more info on the OnDemand plugin at the end**
43+
44+
Make an allocation attribute changeable:
45+
- Under the `Allocation` section, click on `Allocation Attribute Types` Click on `slurm_account_name` check the box next to `Is changeable` and then click the SAVE button.
4246
- Logout
43-
**See below for more info on the OnDemand plugin at the end**
4447

45-
Request an allocation for the new resource as the PI user:
48+
### Create a project & request an allocation
49+
As the PI user: Request an allocation for the new resource:
4650
- Login as the PI using local account username: `cgray` password: `test123`
47-
- Create a new project, filling in the name, description, and selecting any field of science
48-
- Request an allocation for resource: hpc
49-
- Add a user to the project - search for `csimmons` and add to the HPC cluster allocation
51+
- Click the `Add a project` button to reate a new project, filling in the name, description, and selecting any field of science
52+
- 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
53+
- Click the `Add Users` button to add a user to the project - search for `csimmons`, select the HPC cluster allocation, check the box next to the username, and click the `Add Selected Users to Project`
5054
- Logout
5155

52-
Activate and setup the new allocation:
56+
### Activate the allocation request
57+
As the HPC admin user, activate and setup the new allocation:
5358
- Login using local account username: `hpcadmin` password: `ilovelinux`
5459
- Navigate to the `Admin` menu and click on `Allocation Requests`
5560
- Click on the `Detail` button to configure and activate the allocation:
@@ -60,7 +65,7 @@ click the `Add Allocation Attribute` button and select these allocation attribut
6065
Set the status to `Active`, set the start date to today, and set the expiration date to the end of this month (you'll see why later)
6166
Click the `Update` button
6267

63-
## Login to OnDemand website
68+
### Login to OnDemand & test interactive app
6469
- Login to Open OnDemand https://localhost:3443/ as username: `cgray` password: `test123`
6570
- Click on the `Interactive Apps` menu and click on `HPC Desktop`
6671
- Try to launch an interactive Job by clicking on the `Launch` button
@@ -69,7 +74,7 @@ You will get an error message that you do not have permission to run on the clus
6974
This is because we have not synced the allocation information in ColdFront with Slurm yet.
7075

7176

72-
## Run Slurm plugin to sync active allocations from ColdFront to Slurm
77+
### Run Slurm plugin to sync active allocations from ColdFront to Slurm
7378
- Login to the frontend container first, then to the coldfront container:
7479
`ssh -p 6222 hpcadmin@localhost`
7580
password: `ilovelinux`
@@ -99,7 +104,7 @@ NOTE: The csimmons user is under the cgray slurm account
99104
`exit`
100105

101106

102-
## Login (or go back) to frontend container
107+
### Login (or go back) to frontend container
103108
NOTE: you should already be on the frontend but just in case you're not:
104109
`ssh -p 6222 hpcadmin@localhost`
105110
password: `ilovelinux`
@@ -113,52 +118,50 @@ password: `test123`
113118
`exit` (logout from cgray account)
114119

115120

116-
## Login to OnDemand website
121+
### Try interactive app in OnDemand again
117122
- Login back into or refresh your login to Open OnDemand https://localhost:3443/ as username: `cgray` password: `test123`
118123
- Try to launch an interactive job again. Does it work this time?
119124
- Go to the `Jobs` menu and click `Active Jobs` and click on your running jobs to see more details
120125
- Delete (cancel) the jobs so they show the `completed` status
121126

122127

123-
## Annual Project Review
128+
### Annual Project Review, Allocation Renewal & Allocation Change Requests
124129
When the project review functionality is enabled (it is by default) a PI will be forced to review their project once every 365 days. To change this time frame, edit the default in `coldfront.env` We can force a project to be under review in less than a year which is what we'll do for the cgray project.
125130

126131
Login as `hpcadmin` password `ilovelinux`
127132
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`
128133
NOTE: If there is a project you never want project reviews on, uncheck 'Requires review'
129134

130-
Logout as `hpcadmin` and login as `cgray` password `test123` and notice the warning banner. Click on the allocation and try to renew it. You should see a warning banner telling you it can't be done because the project review is due. When a project review is required, a PI can't request new allocations or renew expiring allocations. They can, however, add/remove users, publications, grants, and research output. Click on the `renew now` link for the allocation to test this out.
131-
132-
Click the `Review Project` link. Provide a reason for not providing grant or publication information, check the box to acknowledge the update and click the Submit button. Now try to renew the expiring allocation.
133-
134-
Log out as `cgray`
135+
- Logout as `hpcadmin` and login as `cgray` password `test123` and notice the `Needs Review` label next to the project. Click on the allocation and try to renew it. You should see a warning banner telling you it can't be done because the project review is due. When a project review is required, a PI can't request new allocations or allocation change requests nor renew expiring allocations. They can, however, add/remove users, publications, grants, and research output. Click on the `renew now` link for the allocation to test this out.
135136

137+
- Click the `Review Project` link. Provide a reason for not providing grant or publication information, check the box to acknowledge the update and click the Submit button. Now try to renew the expiring allocation.
136138

137-
## Allocation Change Requests
138-
Allocation change requests are turned on by default. This will allow PIs to request date extensions for their allocations. The date ranges default to 30, 60, & 90 days but can be set changed or disabled completely in `hpc-toolset-tutorial/coldfront/coldfront.env`
139-
See https://coldfront.readthedocs.io/en/latest/config/#coldfront-core-settings for more information.
139+
- Click on the allocation `RENEWAL REQUESTED` button or navigate to the Allocation Detail page through the project. Click on the `Request Change` button, select a date extension, enter a new slurm account and provide a justification. Then click the `SUBMIT` button. Logout.
140140

141-
If you want PIs to be able to request changes to allocation attributes (i.e. storage quotas, unix group) this needs to be set on the allocation attribute. For this demo, we will allow the PI to request changes on the `slurm_account` attribute.
142-
- Login as `hpcadmin` password `ilovelinux`
143-
- Navigate to the `Admin` menu and click on the `ColdFront Administration` link. Under the `Allocation` section, click on `Allocation Attribute Types` Click on `slurm_account_name` check the box next to `Is changeable` and then click the SAVE button. Logout.
144-
- Login as `cgray` password `test123`
145-
- Click on the allocation `RENEWAL REQUESTED` button or navigate to the Allocation Detail page through the project. Click on the `Request Change` button, select a date extension, enter a new slurm account and provide a justification. Then click the `SUBMIT` button. Logout.
146141
- Login as `hpcadmin` password `ilovelinux`
147142
- Go to the `Admin` menu and click on `Allocation Change Requests`
148143
- As the admin you have the ability to approve the date extension, change it to another setting or select `no extension` You can remove the `slurm_account_name` request or change it. You can add notes for the PI and users on the allocation to see. Then you can take action such as `Approve` or `Deny` the request. For this demo, let's click the `Approve` button.
149144
- Next review the pending allocation requests. Navigate to the `Admin` menu and click on `Allocation Requests` Note that the project review status is pending.
150-
- Click on the `Admin` menu and click on `Pending project reviews`.
145+
- Logout as the `hpcadmin` user
146+
**See more info on allocation change requests at the end**
147+
148+
### Center Director Role and Permissions
149+
At the start of the tutorial we configured the user `sfoster` with the 'Staff Status' role and gave permissions to act as the Center Director. This allows `sfoster` to view all projects, allocations, publications, and grants. We've also given permission to view the pending project review list.
151150

152-
## Center Director Role and Permissions
153-
At the start of the tutorial we configured the user `sfoster` with the 'Staff Status' role and gave permissions to act as the Center Director. This allows `sfoster` to view all projects, allocations, publications, and grants. We've also given permission to view the pending project review list. Login as `sfoster` password `ilovelinux` to see what additional menus and functionality this account has access to.
151+
- Login as `sfoster` password `ilovelinux` to see what additional menus and functionality this account has access to.
154152

155-
Navigate to the `Staff` menu and click on `Project Reviews`
153+
- Navigate to the `Staff` menu and click on `Project Reviews`
156154
Click the `Email` button to see this functionality. Go back to the `Project Reviews` and click `Mark Complete`.
157155

158156
For more options on allowing permissions for various types of staff access, see the ColdFront manual: https://coldfront.readthedocs.io/en/latest/manual/users/
159157

158+
### More info on Allocation Change Requests
159+
Allocation change requests are turned on by default. This will allow PIs to request date extensions for their allocations. The date ranges default to 30, 60, & 90 days but can be set changed or disabled completely in `hpc-toolset-tutorial/coldfront/coldfront.env`
160+
See https://coldfront.readthedocs.io/en/latest/config/#coldfront-core-settings for more information.
161+
162+
If you want PIs to be able to request changes to allocation attributes (i.e. storage quotas, unix group) this needs to be set on the allocation attribute. For this demo, we allowed the PI to request changes on the `slurm_account` attribute.
160163

161-
## Integrating OnDemand with ColdFront
164+
### More info on the OnDemand Plugin
162165
This is a very simple example of modifying the ColdFront configuration to use a plugin. This plugin allows us to provide a link to our OnDemand instance for any allocations for resources that have "OnDemand enabled"
163166

164167
We have already added the OnDemand instance URL to the ColdFront config. You can see this outside the containers in your git directory: See `hpc-toolset-tutorial/coldfront/coldfront.env`

0 commit comments

Comments
 (0)