Building a Science Gateway Experience
Introduction
This tutorial provides step-by-step information on building a complete science gateway experience for science and scholarly communities using Airavata as a middle-ware platform. As we progress with the tutorial we would also discuss main features and services provided for gateway communities via Airavata.
At the the end of the tutorial you will know;
- Available options for using PHP reference gateway and Airavata.
- How to setup the PHP reference gateway and Airavata environment; configuring PHP reference gateway and Airavata.
- How to register users in PHP reference gateway.
- How to create, execute and monitor, etc... experiment.
- Reporting issues and user feedback/user request for new applications.
For more details on Airavata please visit Airavata site
Tutorial I - Gateway Login
Create Account
- New user has to create the account using ‘Create account’ link on top right hand corner of the gateway top banner.
To create an account;
- Please enter User information and submit. A confirmation message will confirm the creation.
NOTE: Username cannot have spaces
Username & password must be longer than 5 characters.
password is case sensitive - Enter all the mandatory fields indicated by a star; *.
- Account creation link
http://test-drive.airavata.org/PHP-Reference-Gateway/create_account.php
Login to Account
- Once the account is created successfully; login to the gateway using the created account.
Gateway login screen link
http://test-drive.airavata.org/PHP-Reference-Gateway/login.php
OR - use the 'Log In' link given on the 'Create New Account' page after account retain is successful.
Tutorial II - Create & Search Projects
Create Project
- To create Projects navigate to ‘Project --> Create project’ from the menu. Enter Project Name (Mandatory) & Project Description (Optional) and Save.
Screen Link
http://test-drive.airavata.org/PHP-Reference-Gateway/create_project.php - Prior to submission, fields can be cleared using Clear button.
- Successful creation of projects will be confirmed by confirmation message;
Project <Project Name> created!
Search Projects
- To search for existing projects created by him/her using screen http://test-drive.airavata.org/PHP-Reference-Gateway/search_projects.php
- Screen navigation 'Project --> Search Projects' from the menu bar.
- Search keys are;
- Project Name
- Project Description
- After selecting the search by key, user has to give a value to search for using the key.
- Click on Search once the search key is selected and value is entered.
- All the Projects as per entered Key value pair will be listed.
- User can search for all projects created by using (*).
- Experiments created under each project also gets listed; user can click on the experiment status and navigate to Experiment Summery page.
Tutorial III - Create & Launch Experiment
Create Experiment
- To create an experiment click on ‘Create Experiment’ from the menu bar. Navigation Experiment --> Create Experiment
Screen Link
http://test-drive.airavata.org/PHP-Reference-Gateway/create_experiment.php - To create an experiment please enter information into fields as per directed.
Mandatory fields
- Experiment Name
- Project (Projects created by the logged in user will be listed for selection)
- Application (Applications available will be listed for selection)
- Experiment Input - Depending on the application user can either enter input data or upload files.
Echo application - Input data is entered as text
WRF/Amber application - Input data uploaded as files. User can either upload a single file or multiple files; all depends on the application.
- Compute Resource
Advance (Optional) Fields
Select the resource to run the application. If user doesn’t select one the application will be executed with default values for the resource.- Node Count
- Total CPU Count
- Number of Threads
- Wall Time Limit
- Total Physical Memory
Other Optional Fields- Experiment Description
- Experiment infomration is captured in two stages; Once click on 'Continue' button user cannot change values entered for
- Experiment Name - If blank when clicking 'Continue' a message will be prompted.
- Experiment Description
- Project - Project selected will be saved if user didn't select one from the provided list.
- Application - Application selected will be saved if user didn't select one from the provided list.
- Save the Experiment. Upon successful creation of an experiment, confirmation message will be displayed;
Experiment <Experiment Name> created! - While entering field values the screen can be cleared using ‘Reset values’ button.
Launch Experiment
- To launch an Experiment can use the same 'Create Experiment' screen. Apart from saving the experiment user can Save & Launch at the same time using button ‘Save and Launch’.
- When an experiment is saved and launched at the same time, two messages will be displayed; Experiment <Experiment Name> created! & Experiment launched!
- User can also create and save an experiment and launch later. To launch later user has to first search for the experiment and navigate to 'Experiment Summery' Page.
- In ‘Browse experiments’ all the projects created by the logged in user will be listed along with any existing experiments for each project.
- To launch click on ‘Launch’ button; A confirmation message will be displayed when successfully launched; Experiment launched!
- If the experiment is not suppose to be launched e.g.: a COMPLETED experiment, then the Launch button will be disabled.
Tutorial IV - Search Experiments
- User can search for experiment created by him/her using screen http://test-drive.airavata.org/PHP-Reference-Gateway/search_experiments.php
- Search keys are;
- Experiment Name
- Experiment Description
- Application
- After selecting the search by key, user has to give a value to search for using the key. Partial values, complete values, (* ) wild card can be used to search.
- Click on Search once the search key is selected and value is entered.
- All the Experiments as per entered Key value pair will be listed.
- By clicking on the 'Status' user will be navigated to ‘Experiment Summary’ screen of each experiment.
- In experiment summary users can;
- Launch experiment - Explained in above Tutorial III
- Cancel experiment
- Clone experiment
- Edit experiment
- User can edit an experiment by navigating to 'Edit Experiment' page. Edit button next to each experiment name will navigate user to 'Edit Experiment' page of each experiment.
- Experiment Summery Page
![](/confluence/download/attachments/42569229/Screen%20Shot%202014-07-11%20at%206.07.53%20PM.png?version=1&modificationDate=1405117778000&api=v2)
Image - Experiment Summery Page
Edit/Update Experiment
- Can edit experiment by clicking on the edit icon next to experiment name OR by clicking on edit button in Experiment Summery Page.
- User can modify all available fields except for the Experiment status, Application & Experiment ID.
- User can update experiments with statuses;
- CREATED
- CANCELED
- FAILED
- UNKNOWN
- VALIDATED
Cancel Experiment
- Experiments can be canceled by navigating to experiment’s 'Experiment Summary’ screen.
- Experiment statuses which allows cancellations;
- CREATED
- VALIDATED
- LAUNCHED
- EXECUTING
- SCHEDULED
- Click on Cancel button and on successful cancellation confirmation message will be displayed; Experiment cancelled! In Experiment Summery page the experiment status will be CANCELLED or CANCELING.
Clone Experiment
- Experiments can be cloned irrespective of the experiment status by clicking ‘Clone’ in ‘Experiment Summary’ window.
- When cloned the new experiment will have exact same information as the earlier existing experiment.
- The new experiment will have a new experiment ID and the status will be CREATED.
- User can change existing information by updating the newly created experiment.
Tutorial V - Help
Report Issue
- Gateway user can report issues faced within the gateway through Report Issue page.
- Page navigation: Help --> Report Issue
![](/confluence/download/attachments/42569229/Screen%20Shot%202014-07-11%20at%209.14.07%20PM.png?version=1&modificationDate=1405127664000&api=v2)
Request Fature
- Gateway allows users to provide feedback as well as request for application via Request Feature Page.
- Page Navigation; Help --> Request Feature
![](/confluence/download/attachments/42569229/Screen%20Shot%202014-07-11%20at%209.18.35%20PM.png?version=1&modificationDate=1405127957000&api=v2)