FAQ | This is a LIVE service | Changelog

Update Regression Testing Script authored by Wajdi Hajji's avatar Wajdi Hajji
......@@ -110,6 +110,104 @@ When executing this regression test script the tester should paste this list int
confirm that the project has been suspended.
- [ ] Check in the UI that the project no longer exists.
## Institutional Storage [WIP]
The following tests apply to "Institutional File Store" storage.
- Navigate to the home page.
- Find "Institutional File Store" (IFS) storage.
- Click "More info" and check is pointing to https://help.uis.cam.ac.uk/ifs.
- Click "Choose".
- Enter the size of requested storage in "Get quote" input field.
- Check maximum storage is 100 TB.
- Enter quote size in range [2, 100] for any available duration (1, 3 or 5 years). At least 2TB to create two projects.
- Click "Get quote".
- Fill in the paymnet form with fake data.
- Click "Pay", wait a minute or so, and then:
- Check you received an email with subject "UIS data storage: your order (storage-<ID>)"
- On https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/svmdashboard
- Check a new SVM with the prefix `ifs_` has been created.
- Select the new SVM record, check in "Details" below there's an entry of replica SVM associated with it.
- On https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/clustervolume, check root and data volumes for the new SVM have been created.
- On https://ifs-test-netapp2.srv.uis.private.cam.ac.uk/sysmgr/svmdashboard, check the replica SVM is there.
- On https://ifs-test-netapp2.srv.uis.private.cam.ac.uk/sysmgr/clustervolume, check root and data volumes for the replica SVM have been created.
- In "Configure the license", set yourself as a Data Owner
- Click "Save".
- Accept T&Cs.
- Check you received an email with subject "UIS data storage: you are now a Data Owner"
- In my Account page, find the storage account that has just been created.
- Click "Vserver Configuration"
- Click "Configure All Services" and confirm.
- Wait until you see "Service configuration succeeded"
- On https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/svmdashboard, click the new SVM, then click "SVM Settings" and verify the settings are the same as they appear in "Vserver Configuration" page tabs.
- Check there are two network interfaces for NFS and CIFS/SMB protocols for your SVM are created on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/interfaces.
- Click "My Account" and click "Unallocated" in your IFS storage.
- Provision a CIFS project: enter project name and click "Save"
- Wait until you received an email with subject "UIS data storage: Your storage is ready to use". The email should contain the project name you've just provisioned.
- Refresh the project page. Project should have state "Ready"
- Check that project has:
- Qtree on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/qtree
- Quota on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/quota
- SMB Share on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/share
- Select the CIFS share on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/share and check in details that you have full control permissions over it.
- Click "My Account" and Click "Unallocated" in your IFS storage.
- Provision an NFS project: enter project name, select "NFS" for project type, and click "Save"
- Wait until you received an email with subject "UIS data storage: Your storage is ready to use". The email should contain the project name you've just provisioned.
- Refresh the project page. Project should have state "Ready"
- Check that project has:
- Qtree on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/qtree
- Quota on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/quota
- Check your Kerberos identity is mapped to the Unix user root on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/namemapping
- Click "My Account" and click the NFS project you've just created in your IFS storage.
- Click the delete icon to delete the project, enter project name and confirm.
- Wait a minute and check the resources of that project have been deleted:
- Associated Qtree deleted on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/qtree
- Associated Quota deleted on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/quota
- Click "My Account" and click the CIFS project in your IFS storage.
- Increase CIFS project by 1TB and click "Save"
- Check you received an email with subject "UIS data storage: Your project size is increased" mentioning the CIFS project.
- Generate two Voucher for storage capacity extension and duration extension. To generate one, see [Voucher generator](https://gitlab.developers.cam.ac.uk/uis/infra/simple-voucher-generation-tool), and [Voucher debugger](https://rjw57.github.io/voucher-tool/) to verify it.
- On "My Account" page, click "View license".
- On "Configure the license" page, click "Increase My Storage Size".
- Enter 1 TB (or what is specified in the voucher) in the size field, click "Get quote"
- In "Pay for the storage" form, choose the Voucher tab.
- Enter the voucher and click "Pay"
- Check you received an email with subject "UIS data storage: your order (storage-<ID>)" indicating licence details.
- On https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/clustervolume, verify your SVM's data volume has been increased by the additional space.
- On "My Account", verify your storage size has increased.
- Now extend the licence duration. On "Configure the license" page, click "Extend My Storage Duration".
- Choose for how long you want the duration extension, and click "Get Quote"
- In "Pay for the storage form", enter the voucher and click "Pay".
- On "Configure the license" page, check the duration extension licence is indicated in "License information".
- On IFS Admin page (/ifs/admin/), find your SVM, and run the following in the specified order.
- Select your SVM and click "Failover to DR", wait a few minutes and check:
- SVM stopped on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/svmdashboard
- Replica SVM running on https://ifs-test-netapp2.srv.uis.private.cam.ac.uk/sysmgr/svmdashboard
- Snapmirror relationship broken-off on https://ifs-test-netapp2.srv.uis.private.cam.ac.uk/sysmgr/svmdr
- Select your SVM and click "Create Mirrors (DR -> Prod)", wait a few minutes and check:
- A new snapmirror relationship is created on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/svmdr
- Wait until sync from DR and Prod completes, and check the snapmirror relationship has state "snapmirrored" and status "idle".
- On IFS Admin page, check Lag Time (DR to Prod) value for your SVM is different than NA.
- Select your SVM and click "Cut Back to Prod", wait a few minutes and check:
- The existing snapmirror relationship on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/svmdr has now state "broken-off" and status "idle".
- Your SVM on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/svmdashboard in state running.
- The replica SVM on https://ifs-test-netapp2.srv.uis.private.cam.ac.uk/sysmgr/svmdashboard in state stopped.
- Select your SVM and click "Cut Back to Prod", wait a few minutes and check:
- The existing snapmirror relationship on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/svmdr has now state "broken-off" and status "idle".
- Your SVM on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/svmdashboard in state running.
- The replica SVM on https://ifs-test-netapp2.srv.uis.private.cam.ac.uk/sysmgr/svmdashboard in state stopped.
- On IFS Admin page, check Lag Time columns value for your SVM are all set to NA.
- Select your SVM and click "Resync Mirros (Prod -> DR)", wait a few minutes and check:
- The existing snapmirror relationship on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/svmdr is deleted.
- The replica SVM on https://ifs-test-netapp2.srv.uis.private.cam.ac.uk/sysmgr/svmdashboard in state stopped and also has a subtype "dp-destination".
- Snapmirror relationship on https://ifs-test-netapp2.srv.uis.private.cam.ac.uk/sysmgr/svmdr becomes in state "snapmirrored" and status "idle".
- On IFS Admin page, check Lag Time (Prod to DR) value for your SVM is different than NA.
- On IFS Admin page (/ifs/admin/), click your SVM (on production cluster), click "Delete Vserver", confirm by entering your CRSID (as you are a Data Owner). Wait a few minutes, then:
- Check SVM is deleted on https://ifs-test-netapp1.srv.uis.private.cam.ac.uk/sysmgr/svmdashboard
- Its replica is deleted on https://ifs-test-netapp2.srv.uis.private.cam.ac.uk/sysmgr/svmdashboard
- On "My Account", check your IFS storage is deleted.
- End.
#### Notes:
1. The tester will need SSGW admin rights when performing the above tests.
......@@ -129,5 +227,7 @@ curl -H "Content-Type: application/json" -H "Authorization: Bearer $HPC_API_TOKE
--data '{"timestamp":"2021-06-17T15:29","space_available":4000,"space_used":2000,"space_usedsnap":500,"space_usedds":1500,"snapshot_ratio":2}' \
$SSGW_HOST/api/storage/usage/{hpc_id}
```
7. [User impersonation doesn't seem to be functional](https://gitlab.developers.cam.ac.uk/uis/devops/ssgw/webapp/-/issues/257) so some tests have been skipped for now.
The `hpc_id` can be retrieved using the `/api/storage/project/` endpoint.
\ No newline at end of file