Quickstart¶
Installation¶
Stoxy comes with a buildout configuration file that defines all requires dependencies.
$ git clone -b 0.1 https://github.com/stoxy/stoxy.git
$ cd stoxy
$ python bootstrap.py
$ ./bin/buildout -N
Set groups¶
Create an oms_groups file in the folder you’d like to run Stoxy. A template is provided in oms_group_template. Optionally, set the location of a file in stoxy.conf.
Admin accounts¶
Before starting we need at least an admin user account:
$ bin/omspasswd -a john -g admins
You can change the password later on with the same bin/omspasswd utility, see bin/omspasswd –help for additional info.
User accounts¶
Before starting we need at least an admin user account:
$ bin/omspasswd -a john -g cdmiusers
You can change the password later on with the same bin/omspasswd utility, see bin/omspasswd –help for additional info.
Connecting¶
You can connect to the Stoxy via ssh:
$ ssh john@localhost -p 6022
john@oms:/# cd storage/
john@oms:/storage# mk storagecontainer name=mycdmicontainer
mycdmicontainer
john@oms:/storage# cat mycdmicontainer/
CDMI Object ID: 00FFFFFF0018DE73C99C88787DC7474E893BC313BB1C3CB2
Container name: mycdmicontainer
Metadata:
mtime: 2013-11-26T11:29:29.563157
ctime: 2013-11-26T11:29:29.564023
or REST:
$ curl -u john:john localhost:8080/storage