Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning

This is only available on EUMETSAT side of the EWC


Info

Pre-requisites: EWC OpenStack API access - Install and use Command-Line client

Manila credentials TODO


Table of Contents

Verify Share Network

...

File shares can be created using the Manila or OpenStack CLIsCLI. First it is recommended to check what types of SFS are available in your cloud, to do that, run 

...

Then create a file share with either of the following commands

Code Block
openstack share create --name <share_name> --description <description> --share-type SFS --share-network <share_network> NFS <size>
manila create --name <share_name> --description <description> --share-type SFS --share-type> --share-network <share_network> NFS <size> 

where <share_name> is the name of the newly created share, with some optional <description> , and a type <share_type>  from the ones above, SFS by default. The value of <share_network_id> is the name or ID of the share network created in the previous step. Lastly <size> is the required size in GB of the file share.

To see the list of shares in the cloud run either of the commandscommand

Code Block
openstack share list
manila list

and to see the details of a specific file share, one can do

Code Block
openstack share show <share_name_or_id>
manila show <share_name_or_id>

Grant access to the SFS to a VM

...

Code Block
openstack share access create <share> ip <instance_ip>
manila access-allow <share> ip <instance_ip>

where <share>  can the name or ID of the file share to give access to. If read-only access is required, this can be specified with the option --access-level ro . Furthermore, to give access to a range of IPs, one can use the CIDR format, e.g. 10.0.0.0/24.

One can list the IPs that have access to the share with the commandscommand

Code Block
openstack share access list <share>
manila access-list <share>

with <share> , as usual, the name or id of the share.

...

Code Block
openstack share access delete <access_id>
manila access-deny myshare <access_id>

Mount file share to a VM

Even if the file share is accessible to the VM, one can not read or write on it until it is mounted to a directory in the VM. In order to do so, first create an appropriate directory on the VM

...

Code Block
openstack share show <share_name_or_id>
manila show <share_name_or_id>

under the export_locations field. It is recommended to use the path with the preferred=True  keyword. An example output that has the right information can be seen here

...

where <share> is the name or ID of the share to resize and <new_size>  is the new required size in GB. Alternatively one can use the Manila CLI commands to either increase or decrease the size of a share with

...

Note that if the new size is smaller than the original size, the resizing will fail to avoid data loss.