User Tools

Site Tools


storperf:installing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
storperf:installing [2016/01/29 18:32]
Mark Beierl [Running StorPerf Container]
storperf:installing [2016/03/08 18:34]
Mark Beierl [Running StorPerf Container]
Line 15: Line 15:
  
  
 +  # Create the StorPerf network
 +  neutron net-create StorPerf_Agent_Network
 +  neutron subnet-create StorPerf_Agent_Network 192.168.0.0/​16 --name StorPerf_Agent_Subnet --gateway 192.168.0.1
 +
 +  # Create the StorPerf Agent Flavor
 +  nova flavor-create "​StorPerf Agent" auto 4096 4 4
  
 ===== Running StorPerf in a VM ===== ===== Running StorPerf in a VM =====
Line 32: Line 38:
   # Put an Ubuntu Image in glance   # Put an Ubuntu Image in glance
   wget https://​cloud-images.ubuntu.com/​trusty/​current/​trusty-server-cloudimg-amd64-disk1.img   wget https://​cloud-images.ubuntu.com/​trusty/​current/​trusty-server-cloudimg-amd64-disk1.img
-  glance image-create --name '​StorPerf Ubuntu 14.04' --is-public=true --disk-format=qcow2 \+  glance image-create --name '​StorPerf Ubuntu 14.04' --visibility ​public --disk-format=qcow2 \
   --container-format=bare --file=trusty-server-cloudimg-amd64-disk1.img   --container-format=bare --file=trusty-server-cloudimg-amd64-disk1.img
   ​   ​
Line 41: Line 47:
   # Create the StorPerf Flavor - Depending on how much data you are collecting, you may want to make   # Create the StorPerf Flavor - Depending on how much data you are collecting, you may want to make
   # the disk larger.   # the disk larger.
-  nova flavor-create StorPerf auto 8192 60 8+  nova flavor-create StorPerf auto 8192 120 8 
 +  nova flavor-create "​StorPerf Agent" auto 4096 4 4
   ​   ​
   # (Optional) Create a keypair for your StorPerf master   # (Optional) Create a keypair for your StorPerf master
Line 49: Line 56:
   ​   ​
   # Create the StorPerf VM itself. ​ Here we use the network ID generated by OPNFV FUEL.   # Create the StorPerf VM itself. ​ Here we use the network ID generated by OPNFV FUEL.
-  ​NET04_ID=`neutron net-list | grep 'net04 ' | awk '​{print $2}'`+  ​ADMIN_NET_ID=`neutron net-list | grep 'admin_internal_net ​' | awk '​{print $2}'`
   STORPERF_ID=`neutron net-list | grep '​StorPerf_Agent_Network ' | awk '​{print $2}'`   STORPERF_ID=`neutron net-list | grep '​StorPerf_Agent_Network ' | awk '​{print $2}'`
   ​   ​
-  nova boot --nic net-id=$NET04_ID ​--nic net-id=$STORPERF_ID --flavor StorPerf --key-name=StorPerf \+  nova boot --nic net-id=$ADMIN_NET_ID ​--nic net-id=$STORPERF_ID --flavor StorPerf --key-name=StorPerf \
   --image '​StorPerf Ubuntu 14.04' '​StorPerf Master'​   --image '​StorPerf Ubuntu 14.04' '​StorPerf Master'​
  
 At this point, you may associate a floating IP with the StorPerf master VM. At this point, you may associate a floating IP with the StorPerf master VM.
 +
 +  ssh -i StorPerf.pem ubuntu@10.9.15.138
  
 === Docker Installation === === Docker Installation ===
Line 67: Line 76:
   ​   ​
   sudo apt-get update   sudo apt-get update
-  sudo apt-get install docker-engine+  sudo apt-get install ​-y docker-engine
   sudo usermod -aG docker ubuntu   sudo usermod -aG docker ubuntu
  
Line 87: Line 96:
   * 5000 for StorPerf ReST API.   * 5000 for StorPerf ReST API.
   * 8000 for StorPerf'​s Graphite Web Server   * 8000 for StorPerf'​s Graphite Web Server
 +
 +You might want to have the local disk used for storage as the default size of the docker container is only 10g.  This is done with the -v option, mounting under /​opt/​graphite/​storage/​whisper
  
 Running the StorPerf Container with all ports open: Running the StorPerf Container with all ports open:
  
-  docker run -t --env-file admin-rc -p 5022:22 -p 5000:5000 -p 8000:8000 opnfv/​storperf ​+  docker run -t --env-file admin-rc -p 5022:22 -p 5000:5000 -p 8000:​8000 ​-v /​home/​ubuntu/​carbon:/​opt/​graphite/​storage/​whisper --name storperf ​opnfv/​storperf ​
   ​   ​
  This will then permit ssh to localhost port 5022 for CLI access.  This will then permit ssh to localhost port 5022 for CLI access.
  
storperf/installing.txt · Last modified: 2016/03/08 18:58 by Mark Beierl