-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #549 from Kitware/volumes-view
Volumes view
- Loading branch information
Showing
43 changed files
with
1,259 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# EBS Volumes | ||
|
||
Complementing the ability to create and run simulations on AWS EC2 instances, HPCCloud also supports mounting of AWS Elastic Block Store (EBS) volumes to provide input and to store output for these simulations. Volumes can also be reused between EC2 instances. For example, you could run a resource intensive simulation on a large expensive cluster and map its output to a EBS volume. You could then use that same volume as input for a visualization job on a smaller cluster which is not as expensive. | ||
|
||
## Creating New Volumes | ||
|
||
There are two methods to create new volumes. Through the preference panel and a taskflow run: | ||
|
||
### Preferences Panel | ||
|
||
Volumes created here are not instantiated on AWS but are available to select when starting a new taskflow. To create one you need a valid AWS profile already created and available. | ||
|
||
### Taskflow Run | ||
|
||
On a run panel there are three fields for volumes, these fields are only available on the with EC2 server type is selected. You can either select an existing volume or you can create a new one by specifying the name and the size. Existing volumes have either been used in previous taskflows or were created from the Preference panel, they must be in the detached or available state. If you provide a volume name and size a volume will be created and attached to the cluster. | ||
|
||
## Removing Volumes | ||
|
||
To remove a volume the volume needs to be in either the detached or available state. You do so from the volume preference page with the delete button. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import { transformRequest } from './utils'; | ||
|
||
const headers = { | ||
'Content-Type': 'application/json', | ||
}; | ||
|
||
export default function ({ client, filterQuery, mustContain, encodeQueryAsString, busy }) { | ||
return { | ||
|
||
// get /volumes | ||
// List available volumes. | ||
listVolumes(limit = null) { | ||
if (limit) { | ||
return busy(client._.get(`/volumes?limit=${limit}`)); | ||
} | ||
return busy(client._.get('/volumes')); | ||
}, | ||
|
||
// post /volumes | ||
// Create a volume | ||
createVolume(volume) { | ||
return busy(client._.post('/volumes', volume, { | ||
transformRequest, headers, | ||
})); | ||
}, | ||
|
||
// get /volumes/{id} | ||
// Get a volume | ||
getVolume(id) { | ||
return busy(client._.get(`/volumes/${id}`)); | ||
}, | ||
|
||
// delete /volumes/{id} | ||
// Delete a volume | ||
deleteVolume(id) { | ||
return busy(client._.delete(`/volumes/${id}`)); | ||
}, | ||
|
||
// get /volumes/{id}/log | ||
// Get log entries for volume | ||
getVolumeLog(volumeId, offset = 0) { | ||
if (offset) { | ||
return busy(client._.get(`/volumes/${volumeId}/log?offset=${offset}`)); | ||
} | ||
return busy(client._.get(`/volumes/${volumeId}/log`)); | ||
}, | ||
|
||
// get /volumes/{id}/status | ||
// Get the volume's current state | ||
getVolumeStatus(id) { | ||
return busy(client._.get(`/volumes/${id}/status`)); | ||
}, | ||
|
||
// put /volumes/{id}/attach/{cluster} | ||
// Attach a volume to a cluster | ||
attachVolume(id, cluster) { | ||
return busy(client._.put(`/volumes/${id}/attach/${cluster}`)); | ||
}, | ||
|
||
// put /volumes/{id}/attach/{cluster} | ||
// Detach a volume to a cluster | ||
detachVolume(id) { | ||
return busy(client._.put(`/volumes/${id}/detach`)); | ||
}, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.