Commit ca8dba39 authored by Jan Siersch's avatar Jan Siersch
Browse files

script to install cinder on storagenode

- removed heat trove from default installation
parent dd23f77d
#############
# OpenStack #
#############
[composite:osapi_volume]
use = call:cinder.api:root_app_factory
/: apiversions
/v1: openstack_volume_api_v1
/v2: openstack_volume_api_v2
[composite:openstack_volume_api_v1]
use = call:cinder.api.middleware.auth:pipeline_factory
noauth = faultwrap sizelimit noauth apiv1
keystone = faultwrap sizelimit authtoken keystonecontext apiv1
keystone_nolimit = faultwrap sizelimit authtoken keystonecontext apiv1
[composite:openstack_volume_api_v2]
use = call:cinder.api.middleware.auth:pipeline_factory
noauth = faultwrap sizelimit noauth apiv2
keystone = faultwrap sizelimit authtoken keystonecontext apiv2
keystone_nolimit = faultwrap sizelimit authtoken keystonecontext apiv2
[filter:faultwrap]
paste.filter_factory = cinder.api.middleware.fault:FaultWrapper.factory
[filter:noauth]
paste.filter_factory = cinder.api.middleware.auth:NoAuthMiddleware.factory
[filter:sizelimit]
paste.filter_factory = cinder.api.middleware.sizelimit:RequestBodySizeLimiter.factory
[app:apiv1]
paste.app_factory = cinder.api.v1.router:APIRouter.factory
[app:apiv2]
paste.app_factory = cinder.api.v2.router:APIRouter.factory
[pipeline:apiversions]
pipeline = faultwrap osvolumeversionapp
[app:osvolumeversionapp]
paste.app_factory = cinder.api.versions:Versions.factory
##########
# Shared #
##########
[filter:keystonecontext]
paste.filter_factory = cinder.api.middleware.auth:CinderKeystoneContext.factory
[filter:authtoken]
paste.filter_factory=keystoneclient.middleware.auth_token:filter_factory
auth_host=controlnode
auth_port = 35357
auth_protocol = http
admin_tenant_name=service
admin_user=cinder
admin_password=${CINDER_PASS}
[DEFAULT]
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /etc/cinder/api-paste.ini
iscsi_helper = tgtadm
volume_name_template = volume-%s
volume_group = vg_cinder
verbose = True
auth_strategy = keystone
state_path = /var/lib/cinder
lock_path = /var/lock/cinder
volumes_dir = /var/lib/cinder/volumes
rpc_backend = qpid
glance_host = controlnode
qpid_hostname = controlnode
qpid_username = guest
qpid_password = ${QPID_PASS}
debug = True
use_syslog = True
syslog_log_facility = LOG_LOCAL0
control_exchange = cinder
notification_driver = cinder.openstack.common.notifier.rpc_notifier
[database]
connection = mysql://cinder:${CINDER_DBPASS}@controlnode/cinder
[keystone_authtoken]
auth_uri = http://controlnode:5000
auth_host = controlnode
auth_protocol = http
auth_port = 35357
admin_user = cinder
admin_tenant_name = service
admin_password = ${CINDER_PASS}
......@@ -41,19 +41,12 @@ arr+=(openstack-cinder-api)
arr+=(openstack-cinder-scheduler)
arr+=(openstack-glance-api)
arr+=(openstack-glance-registry)
arr+=(openstack-heat-api-cfn)
arr+=(openstack-heat-api)
arr+=(openstack-heat-engine)
arr+=(openstack-nova-api)
arr+=(openstack-nova-cert)
arr+=(openstack-nova-conductor)
arr+=(openstack-nova-consoleauth)
arr+=(openstack-nova-scheduler)
arr+=(openstack-nova-novncproxy)
arr+=(openstack-trove-api)
arr+=(openstack-trove-conductor)
arr+=(openstack-trove-taskmanager)
if $doStatus; then
for i in ${arr[*]}; do
......
This diff is collapsed.
#!/bin/bash
if (( $# != 1 )); then
echo "usage: $0 [status|start|stop|restart]";
exit 1;
fi
doStop=false;
doStart=false;
doStatus=false;
if [ "$1" == "status" ]; then
doStatus=true;
elif [ "$1" == "start" ]; then
doStart=true;
elif [ "$1" == "stop" ]; then
doStop=true;
elif [ "$1" == "restart" ]; then
doStart=true;
doStop=true;
else
echo "usage: $0 [status|start|stop|restart]";
exit 1;
fi
# services in starting order
arr=()
arr+=(tgtd)
arr+=(openstack-cinder-volume)
if $doStatus; then
for i in ${arr[*]}; do
service "$i" status;
done
fi
if $doStop; then
# stop in reverse order
for i in $(echo ${arr[@]} | tr " " "\n" | tac - | tr "\n" " "); do
service "$i" stop;
done
fi
if $doStart; then
for i in ${arr[*]}; do
service "$i" start;
done
fi
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment