Here is a list of steps for installing CDMI proxy server (v 1.0.1). See VCDM documentation page for any update.
A. VM CONFIGURATION
#############################
Here is a snapshot of a virtual machine where CDMI server is installed:
root@cdmi-virtual-machine:/home/cdmi/cdmi_vcdm/install# uname -a
Linux cdmi-virtual-machine 3.2.0-45-generic-pae #70-Ubuntu SMP Wed May 29 20:31:05 UTC 2013 i686 i686 i386 GNU/Linux
root@cdmi-virtual-machine:/home/cdmi/cdmi_vcdm/install# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 31994800 4528176 25841384 15% /
udev 505320 4 505316 1% /dev
tmpfs 205052 724 204328 1% /run
none 5120 0 5120 0% /run/lock
none 512624 220 512404 1% /run/shm
root@cdmi-virtual-machine:/home/cdmi/cdmi_vcdm/install#
B. INSTALLATION
#############################
Documentation path:
http://www.pip-installer.org/en/latest/installing.html
Installation steps:
# python --version
Python 2.7.3
INSTALL curl
# apt-get install curl
INSTALL distribute
# curl -O http://python-distribute.org/distribute_setup.py
# python distribute_setup.py
INSTALL pip
# curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
# python get-pip.py
Successfully installed pip
INSTALL vcdm dependencies
#apt-get install build-essential python-dev
#pip install zope.interface Twisted CouchDB pyOpenSSL pycrypto
#apt-get install python-setuptools
INSTALL vcdm CDMI proxy
# wget http://resources.venus-c.eu/cdmiproxy/deb/cdmiproxy_0.1-latest_all.deb
# dpkg -i ./cdmiproxy_0.1-latest_all.deb
INSTALL libcdmi CDMI python client library
# wget http://resources.venus-c.eu/cdmiproxy/deb/libcdmi_0.1.2-latest_all.deb
# dpkg -i ./libcdmi_0.1.2-latest_all.deb
INSTALL couchdb seperately (required for storing metadata and containers)
# apt-get install couchdb
C. CONFIGURATION
#############################
Documentation path:
http://resources.venus-c.eu/cdmiproxy/docs/configuration.html
Configuration steps: above documentation is followed.
D. RUNNING VCDM proxy
#############################
Steps for running proxy server:
#sudo service couchdb start
Ensure that couchdb is running
#netstat -na | grep 5984
shows server is listening on port 5984
$ curl http://127.0.0.1:5984/
It should give following result:
{"couchdb":"Welcome","version":"1.0.1"}
RUN CDMI proxy daemon
$ sudo cdmipd
# netstat -na | grep 8080
shows server is listening on port 8080
# netstat -na | grep 2364
shows server is listening on port 2364 (no authentication no encryption i.e. debug mode port)
E. TROUBLESHOOTING
##############################
In case couchdb eats too much disk space (/var/lib/couchdb) and there is no need to retain data, stop proxy and re-install couchdb:
# sudo service couchdb stop
# sudo apt-get remove couchdb
# sudo reboot
# sudo rm -rf /var/lib/couchdb
# sudo apt-get install couchdb