|
4 | 4 | - This is where you'd enable or disable any plugins and set variables for your local installation. Check out the [full configuration options available in the ColdFront documentation](https://coldfront.readthedocs.io/en/latest/config/) |
5 | 5 | - View `hpc-toolset-tutorial/coldfront/coldfront-nginx.conf` for an example of ColdFront web configuration |
6 | 6 |
|
7 | | -### Seed ColdFront with data for tutorial |
8 | | -This step allows you to skip the next section and go right into testing out ColdFront. This will seed the ColdFront database with user permissions and resources. If you'd like to see how this is done (because you'll need to do this if you install for your organization), you can skip this and go through the steps in the next section. |
| 7 | +## Seed ColdFront with data for tutorial |
| 8 | + |
| 9 | +This step will seed the ColdFront database with user permissions, resources, an example project and allocation requests. 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 setup and populate the database: |
9 | 10 |
|
10 | 11 | ``` |
11 | 12 | cat coldfront.dump | docker exec -i mysql mysql --user coldfrontapp --password=9obCuAphabeg coldfront |
12 | 13 | ``` |
13 | | - |
14 | | -### Login to ColdFront, setup account permissions & create resource |
15 | | -URL https://localhost:2443/ |
16 | | -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. |
17 | | -- Login locally as username `hpcadmin` password: `ilovelinux` |
18 | | -- Logout |
19 | | -- Login locally as username `cgray` password: `test123` |
20 | | -- Logout |
21 | | -- Login locally as username `csimmons` password: `ilovelinux` |
22 | | -- Logout |
23 | | -- Login locally as username `sfoster` password: `ilovelinux` |
24 | | -- Logout |
25 | | -- Login locally as username `admin` password: `admin` |
26 | | -- 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. |
27 | | -- Click on the hpcadmin user and scroll down to the `Permissions` section |
28 | | -- Make this user a `superuser` by checking the boxes next to `Staff Status` and `Superuser Status` - scroll to the bottom and click SAVE |
29 | | -- 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 |
30 | | - `allocation | allocation | Can manage invoice` |
31 | | - `allocation | allocation | Can view all allocations` |
32 | | - `grant | grant | Can view all grants` |
33 | | - `project | project | Can view all projects` |
34 | | - `project | project | Can review pending project reviews` |
35 | | - `publication | publication | Can view publication` |
36 | | - Make sure to SAVE the changes. |
37 | | -- 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` |
38 | | -- Click on `cgray` check ``"Is pi"`` - click SAVE |
39 | | - |
40 | | -Create a new cluster resource: |
41 | | -- 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 |
42 | | -- Add a resource with the following settings: |
43 | | -Resource type: select `cluster` |
44 | | -Name: type `hpc` |
45 | | -Description: enter anything you want |
46 | | -Ensure that the following are checked: `Is available`, `Is public`, `Is allocatable` |
47 | | -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` |
48 | | -Click `Add another Resource attribute` and select `OnDemand` from the drop down menu. In the `value` field, enter `Yes` |
49 | | -- Then click SAVE |
50 | | - **See more info on the OnDemand plugin at the end** |
51 | | - |
52 | | -Create a new storage resource: |
53 | | -- 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 |
54 | | -- Add a resource with the following settings: |
55 | | -Resource type: select `storage` |
56 | | -Name: type `project storage` |
57 | | -Description: enter anything you want |
58 | | -Ensure that the following are checked: `Is available`, `Is public`, `Is allocatable` |
59 | | -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` |
60 | | -Click `Add another Resource attribute` and select `quantity_default_value` from the drop down menu. In the `1` |
61 | | -Click `Add another Resource attribute` and select `OnDemand` from the drop down menu. In the `value` field, enter `Yes` |
62 | | -- Then click SAVE |
63 | | - |
64 | | -Make an allocation attribute changeable: |
65 | | -- 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. |
66 | | -- Logout |
67 | | - |
68 | | -### Create a project & request an allocation |
69 | | -As the PI user: Request an allocation for the new resource: |
70 | | -- Login as the PI using local account username: `cgray` password: `test123` |
71 | | -- Click the `Add a project` button to reate a new project, filling in the name, description, and selecting any field of science |
72 | | -- 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 |
73 | | -- 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` |
74 | | -- Logout |
| 14 | + |
75 | 15 |
|
76 | 16 | ### Activate the allocation request |
77 | 17 | As the HPC admin user, activate and setup the new allocation: |
@@ -189,6 +129,76 @@ We have already added the OnDemand instance URL to the ColdFront config. You ca |
189 | 129 | When creating the resource at the start of the tutorial, we added the `OnDemand` attribute to the `hpc` resource which tells it to display the OnDemand logo and link to the OnDemand URL for any allocations for this resource. Notice on the ColdFront home page next to the allocation for the HPC cluster resource you see the OnDemand logo. Click on the Project name and see this logo also shows up next to the allocation. When we click on that logo, it directs us to the OnDemand instance. |
190 | 130 |
|
191 | 131 |
|
| 132 | +## Seeding the Database |
| 133 | + |
| 134 | +These steps were done in advance to allow for the presentation of a condensed version of the tutorial. |
| 135 | + |
| 136 | +### Login to ColdFront, setup account permissions & create resource |
| 137 | +URL https://localhost:2443/ |
| 138 | +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. |
| 139 | +- Login locally as username `hpcadmin` password: `ilovelinux` |
| 140 | +- Logout |
| 141 | +- Login locally as username `cgray` password: `test123` |
| 142 | +- Logout |
| 143 | +- Login locally as username `csimmons` password: `ilovelinux` |
| 144 | +- Logout |
| 145 | +- Login locally as username `sfoster` password: `ilovelinux` |
| 146 | +- Logout |
| 147 | +- Login locally as username `admin` password: `admin` |
| 148 | +- 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. |
| 149 | +- Click on the hpcadmin user and scroll down to the `Permissions` section |
| 150 | +- Make this user a `superuser` by checking the boxes next to `Staff Status` and `Superuser Status` - scroll to the bottom and click SAVE |
| 151 | +- 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 |
| 152 | + `allocation | allocation | Can manage invoice` |
| 153 | + `allocation | allocation | Can view all allocations` |
| 154 | + `grant | grant | Can view all grants` |
| 155 | + `project | project | Can view all projects` |
| 156 | + `project | project | Can review pending project reviews` |
| 157 | + `publication | publication | Can view publication` |
| 158 | + Make sure to SAVE the changes. |
| 159 | +- 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` |
| 160 | +- Click on `cgray` check ``"Is pi"`` - click SAVE |
| 161 | + |
| 162 | +Create a new cluster resource: |
| 163 | +- 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 |
| 164 | +- Add a resource with the following settings: |
| 165 | +Resource type: select `cluster` |
| 166 | +Name: type `hpc` |
| 167 | +Description: enter anything you want |
| 168 | +Ensure that the following are checked: `Is available`, `Is public`, `Is allocatable` |
| 169 | +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` |
| 170 | +Click `Add another Resource attribute` and select `OnDemand` from the drop down menu. In the `value` field, enter `Yes` |
| 171 | +- Then click SAVE |
| 172 | + **See more info on the OnDemand plugin at the end** |
| 173 | + |
| 174 | +Create a new storage resource: |
| 175 | +- 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 |
| 176 | +- Add a resource with the following settings: |
| 177 | +Resource type: select `storage` |
| 178 | +Name: type `project storage` |
| 179 | +Description: enter anything you want |
| 180 | +Ensure that the following are checked: `Is available`, `Is public`, `Is allocatable` |
| 181 | +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` |
| 182 | +Click `Add another Resource attribute` and select `quantity_default_value` from the drop down menu. In the `1` |
| 183 | +Click `Add another Resource attribute` and select `OnDemand` from the drop down menu. In the `value` field, enter `Yes` |
| 184 | +- Then click SAVE |
| 185 | + |
| 186 | +Make an allocation attribute changeable: |
| 187 | +- 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. |
| 188 | +- Logout |
| 189 | + |
| 190 | +### Create a project & request an allocation |
| 191 | +As the PI user: Request an allocation for the new resource: |
| 192 | +- Login as the PI using local account username: `cgray` password: `test123` |
| 193 | +- Click the `Add a project` button to reate a new project, filling in the name, description, and selecting any field of science |
| 194 | +- 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 |
| 195 | +- 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 |
| 196 | +- 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` |
| 197 | +- Logout |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
192 | 202 | ## Tutorial Navigation |
193 | 203 | [Next - Open XDMoD](../xdmod/README.md) |
194 | 204 | [Previous Step - Accessing the Applications](../docs/applications.md) |
|
0 commit comments