1 | # An extension for specifying storage resources to reserve or already reserved within an RSpec. |
---|
2 | # Based on http://geni-orca.renci.org/owl/storage.owl |
---|
3 | # Storage is just a different kind of node. It uses a 'storage' sliver_type. |
---|
4 | # A storage node has a client_id, component_manager_id, sliver_id like a normal node. |
---|
5 | # It gets a component_id like a normal node as well. |
---|
6 | # A storage node has interfaces as well. |
---|
7 | # If the node connects via a shared VLAN, then it has a single interface on that VLAN. |
---|
8 | # If the node connects via a dedicated VLAN, then it may have multiple interfaces. |
---|
9 | # Hosted here: http://www.geni.net/resources/rspec/ext/storage/1/storage.xsd |
---|
10 | default namespace = "http://www.geni.net/resoruces/rspec/ext/storage/1" |
---|
11 | |
---|
12 | # This is meant to extend the sliver_type element when its value is "storage" |
---|
13 | # This may be used in request or manifest RSpecs |
---|
14 | StorageSpec = element storage { |
---|
15 | # resource_type should be 'LUN' (aka iSCSI). Maybe 'NFS' in future |
---|
16 | attribute resource_type { xsd:string } & |
---|
17 | # do_format is a boolean: should the VM format the storage |
---|
18 | attribute do_format { xsd:boolean } & |
---|
19 | # fs_param is a string of arguments to mkfs. EG for an ext filesystem you need "-F -b <block size" |
---|
20 | attribute fs_param { xsd:string } & |
---|
21 | # fs_type is a string of arguments to mkfs, as in mkfs -t XXXX |
---|
22 | attribute fs_type { xsd:string } & |
---|
23 | # mnt_point: Where to mount the storage in the VM |
---|
24 | attribute mnt_point { xsd:string } & |
---|
25 | # Capacity is in GB; Reservable in fixed quanta usually. |
---|
26 | attribute capacity { xsd:integer } & |
---|
27 | # Connection type - shared VLAN or dedicated or either |
---|
28 | attribute connection { xsd:string }? |
---|
29 | } |
---|
30 | |
---|
31 | start = StorageSpec |
---|
32 | |
---|