Difference between revisions of "Obsolete:Manila/ManilaDevstack"
Line 5: | Line 5: | ||
Steps: | Steps: | ||
+ | |||
1. Copy the script to the home directory of the VM. | 1. Copy the script to the home directory of the VM. | ||
+ | |||
2. Run the script. | 2. Run the script. | ||
+ | |||
3. Run stack.sh from the ~/devstack directory when the script completes. | 3. Run stack.sh from the ~/devstack directory when the script completes. | ||
+ | |||
4. Voila. | 4. Voila. | ||
____________________________________________________________________________________________________________________________________________________________________ | ____________________________________________________________________________________________________________________________________________________________________ | ||
# A script to setup manila devstack on Ubuntu 14.04 | # A script to setup manila devstack on Ubuntu 14.04 | ||
+ | |||
git clone git://github.com/stackforge/manila.git | git clone git://github.com/stackforge/manila.git | ||
+ | |||
git clone git://github.com/openstack-dev/devstack.git | git clone git://github.com/openstack-dev/devstack.git | ||
+ | |||
cp -r manila/contrib/devstack/* devstack | cp -r manila/contrib/devstack/* devstack | ||
sudo apt-get -y install git git-review python-pip python-setuptools python-dev libxslt-dev libmysqlclient-dev libpq-dev nfs-common screen | sudo apt-get -y install git git-review python-pip python-setuptools python-dev libxslt-dev libmysqlclient-dev libpq-dev nfs-common screen | ||
+ | |||
sudo apt-get update | sudo apt-get update | ||
+ | |||
sudo apt-get upgrade | sudo apt-get upgrade | ||
Line 25: | Line 34: | ||
[[local|localrc]] | [[local|localrc]] | ||
+ | |||
ADMIN_PASSWORD=nova | ADMIN_PASSWORD=nova | ||
+ | |||
DATABASE_PASSWORD=nova | DATABASE_PASSWORD=nova | ||
+ | |||
RABBIT_PASSWORD=nova | RABBIT_PASSWORD=nova | ||
+ | |||
SERVICE_PASSWORD=nova | SERVICE_PASSWORD=nova | ||
+ | |||
SERVICE_TOKEN=nova | SERVICE_TOKEN=nova | ||
+ | |||
GUEST_PASSWORD=nova | GUEST_PASSWORD=nova | ||
+ | |||
MYSQL_HOST=127.0.0.1 | MYSQL_HOST=127.0.0.1 | ||
+ | |||
MYSQL_USER=root | MYSQL_USER=root | ||
+ | |||
MYSQL_PASSWORD=nova | MYSQL_PASSWORD=nova | ||
+ | |||
RABBIT_HOST=127.0.0.1 | RABBIT_HOST=127.0.0.1 | ||
+ | |||
LIBVIRT_TYPE=qemu | LIBVIRT_TYPE=qemu | ||
+ | |||
GLANCE_HOSTPORT=127.0.0.1:9292 | GLANCE_HOSTPORT=127.0.0.1:9292 | ||
+ | |||
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5 | SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5 | ||
+ | |||
SWIFT_REPLICAS=1 | SWIFT_REPLICAS=1 | ||
+ | |||
SWIFT_DATA_DIR=\$DEST/data/swift | SWIFT_DATA_DIR=\$DEST/data/swift | ||
+ | |||
LOGDAYS=1 | LOGDAYS=1 | ||
+ | |||
LOGFILE=\$DEST/devstack.log | LOGFILE=\$DEST/devstack.log | ||
+ | |||
SCREEN_LOGDIR=\$DEST/logs/screen | SCREEN_LOGDIR=\$DEST/logs/screen | ||
+ | |||
RECLONE=yes | RECLONE=yes | ||
+ | |||
API_RATE_LIMIT=False | API_RATE_LIMIT=False | ||
+ | |||
disable_service horizon | disable_service horizon | ||
disable_service heat | disable_service heat | ||
+ | |||
disable_service h-eng | disable_service h-eng | ||
+ | |||
disable_service h-api | disable_service h-api | ||
+ | |||
disable_service h-api-cfn | disable_service h-api-cfn | ||
+ | |||
disable_service h-api-cw | disable_service h-api-cw | ||
Line 57: | Line 91: | ||
enable_service neutron | enable_service neutron | ||
+ | |||
enable_service q-svc | enable_service q-svc | ||
+ | |||
enable_service q-agt | enable_service q-agt | ||
+ | |||
enable_service q-dhcp | enable_service q-dhcp | ||
+ | |||
enable_service q-l3 | enable_service q-l3 | ||
+ | |||
enable_service q-meta | enable_service q-meta | ||
Line 66: | Line 105: | ||
enable_service manila | enable_service manila | ||
+ | |||
enable_service m-api | enable_service m-api | ||
+ | |||
enable_service m-sch | enable_service m-sch | ||
+ | |||
enable_service m-shr | enable_service m-shr | ||
Q_PLUGIN=ml2 | Q_PLUGIN=ml2 | ||
+ | |||
ENABLE_TENANT_VLANS=True | ENABLE_TENANT_VLANS=True | ||
+ | |||
ML2_VLAN_RANGES=physnet1:100:200 | ML2_VLAN_RANGES=physnet1:100:200 | ||
+ | |||
PHYSICAL_NETWORK=physnet1 | PHYSICAL_NETWORK=physnet1 | ||
+ | |||
OVS_PHYSICAL_BRIDGE=br-eth1 | OVS_PHYSICAL_BRIDGE=br-eth1 | ||
+ | |||
Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch | Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch | ||
+ | |||
Q_ML2_PLUGIN_TYPE_DRIVERS=vlan,vxlan | Q_ML2_PLUGIN_TYPE_DRIVERS=vlan,vxlan | ||
+ | |||
SHARE_BACKING_FILE_SIZE=22G | SHARE_BACKING_FILE_SIZE=22G | ||
+ | |||
EOF | EOF | ||
____________________________________________________________________________________________________________________________________________________________________ | ____________________________________________________________________________________________________________________________________________________________________ |
Revision as of 18:10, 18 September 2014
This is an automated script that will setup manila devstack on a fresh Ubuntu 14.04 VM with all the necessary dependancies.
Requirements: The only requirement is to have a VM running Ubuntu 14.04.
Steps:
1. Copy the script to the home directory of the VM.
2. Run the script.
3. Run stack.sh from the ~/devstack directory when the script completes.
4. Voila. ____________________________________________________________________________________________________________________________________________________________________
# A script to setup manila devstack on Ubuntu 14.04
git clone git://github.com/stackforge/manila.git
git clone git://github.com/openstack-dev/devstack.git
cp -r manila/contrib/devstack/* devstack
sudo apt-get -y install git git-review python-pip python-setuptools python-dev libxslt-dev libmysqlclient-dev libpq-dev nfs-common screen
sudo apt-get update
sudo apt-get upgrade
cd devstack
cat <<EOF >> local.conf
ADMIN_PASSWORD=nova
DATABASE_PASSWORD=nova
RABBIT_PASSWORD=nova
SERVICE_PASSWORD=nova
SERVICE_TOKEN=nova
GUEST_PASSWORD=nova
MYSQL_HOST=127.0.0.1
MYSQL_USER=root
MYSQL_PASSWORD=nova
RABBIT_HOST=127.0.0.1
LIBVIRT_TYPE=qemu
GLANCE_HOSTPORT=127.0.0.1:9292
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
SWIFT_REPLICAS=1
SWIFT_DATA_DIR=\$DEST/data/swift
LOGDAYS=1
LOGFILE=\$DEST/devstack.log
SCREEN_LOGDIR=\$DEST/logs/screen
RECLONE=yes
API_RATE_LIMIT=False
disable_service horizon
disable_service heat
disable_service h-eng
disable_service h-api
disable_service h-api-cfn
disable_service h-api-cw
disable_service n-net
enable_service neutron
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service tempest
enable_service manila
enable_service m-api
enable_service m-sch
enable_service m-shr
Q_PLUGIN=ml2
ENABLE_TENANT_VLANS=True
ML2_VLAN_RANGES=physnet1:100:200
PHYSICAL_NETWORK=physnet1
OVS_PHYSICAL_BRIDGE=br-eth1
Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch
Q_ML2_PLUGIN_TYPE_DRIVERS=vlan,vxlan
SHARE_BACKING_FILE_SIZE=22G
EOF ____________________________________________________________________________________________________________________________________________________________________