openstack-manuals/doc/install-guide/basic-install-files/basic-install_controller-cinder.xml
Diane Fleming 64b6c9261e Folder rename, file rename, flattening of directories
Current folder name	New folder name	        Book title
----------------------------------------------------------
basic-install 	        DELETE
cli-guide	        DELETE
common	                common
NEW	                admin-guide-cloud	Cloud Administrators Guide
docbkx-example	        DELETE
openstack-block-storage-admin 	DELETE
openstack-compute-admin 	DELETE
openstack-config 	config-reference	OpenStack Configuration Reference
openstack-ha 	        high-availability-guide	OpenStack High Availabilty Guide
openstack-image	        image-guide	OpenStack Virtual Machine Image Guide
openstack-install 	install-guide	OpenStack Installation Guide
openstack-network-connectivity-admin 	admin-guide-network 	OpenStack Networking Administration Guide
openstack-object-storage-admin 	DELETE
openstack-security 	security-guide	OpenStack Security Guide
openstack-training 	training-guide	OpenStack Training Guide
openstack-user 	        user-guide	OpenStack End User Guide
openstack-user-admin 	user-guide-admin	OpenStack Admin User Guide
glossary	        NEW        	OpenStack Glossary

bug: #1220407

Change-Id: Id5ffc774b966ba7b9a591743a877aa10ab3094c7
author: diane fleming
2013-09-08 15:15:50 -07:00

134 lines
6.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<section xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"
xml:id="basic-install_controller-cinder">
<title>OpenStack Block Storage</title>
<para>While OpenStack Block Storage contains many different storage drivers, the
most basic configuration uses LVM and iSCSI. This
guide illustrates how to use one disk
(<literal>/dev/sdb</literal>) in an LVM Volume Group
called <literal>cinder-volumes</literal>. When a user requests
a block storage volume, a Logical Volume is created from this
Volume Group and then mounted on the user's instance by way of
iSCSI. <orderedlist>
<listitem>
<para>Install the OpenStack Block Storage packages:
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>apt-get install cinder-api cinder-scheduler cinder-volume iscsitarget \
open-iscsi iscsitarget-dkms python-cinderclient \
linux-headers-`uname -r`</userinput></screen>
<screen os="centos;rhel;fedora"><prompt>#</prompt> <userinput>yum install openstack-cinder openstack-cinder-doc \
iscsi-initiator-utils scsi-target-utils</userinput></screen>
<screen os="opensuse"><prompt>#</prompt> <userinput>zypper install openstack-cinder-api openstack-cinder-scheduler \
openstack-cinder-volume open-iscsi iscsitarget</userinput></screen>
</para>
</listitem>
<listitem>
<para>Configure &amp; start the iSCSI services: <screen os="ubuntu;debian"><prompt>#</prompt> <userinput>sed -i 's/false/true/g' /etc/default/iscsitarget</userinput>
<prompt>#</prompt> <userinput>service iscsitarget start</userinput>
<prompt>#</prompt> <userinput>service open-iscsi start</userinput></screen>
<screen os="centos;rhel;fedora"><prompt>#</prompt> <userinput>service tgtd start</userinput>
<prompt>#</prompt> <userinput>service iscsi start</userinput>
<prompt>#</prompt> <userinput>chkconfig tgtd on</userinput>
<prompt>#</prompt> <userinput>chkconfig iscsi on</userinput></screen>
<screen os="opensuse"><prompt>#</prompt> <userinput>systemctl start iscsitarget.service iscsid.service</userinput>
<prompt>#</prompt> <userinput>systemctl enable iscsitarget.service iscsid.service</userinput></screen>
</para>
</listitem>
<listitem>
<para>Configure OpenStack Block Storage:</para>
<itemizedlist>
<listitem>
<para>Edit <filename>/etc/cinder/cinder.conf</filename>:
<programlisting os="ubuntu;debian" language="ini">[DEFAULT]
sql_connection = mysql://cinder:password@localhost/cinder
rabbit_password = password
[keystone_authtoken]
admin_tenant_name = service
admin_user = cinder
admin_password = password
service_protocol = http
service_host = localhost
service_port = 5000
auth_host = localhost
auth_port = 35357
auth_protocol = http</programlisting><programlisting os="centos;rhel;fedora" language="ini">[DEFAULT]
rpc_backend = cinder.openstack.common.rpc.impl_qpid
sql_connection = mysql://cinder:password@localhost/cinder
qpid_user = guest
qpid_password = quest
[keystone_authtoken]
admin_tenant_name = service
admin_user = cinder
admin_password = password
service_protocol = http
service_host = localhost
service_port = 5000
auth_host = localhost
auth_port = 35357
auth_protocol = http</programlisting>
<programlisting os="opensuse" language="ini">[DEFAULT]
sql_connection = mysql://cinder:password@localhost/cinder
rabbit_password = password
[keystone_authtoken]
admin_tenant_name = service
admin_user = cinder
admin_password = password
service_protocol = http
service_host = localhost
service_port = 5000
auth_host = localhost
auth_port = 35357
auth_protocol = http</programlisting>
</para>
</listitem>
<listitem>
<para>Edit <filename>/etc/cinder/api-paste.ini</filename> in the
<literal>filter_authtoken</literal> section so it does not contain
any of the variables defined in the
<literal>keystone_authtoken</literal> section of
<filename>cinder.conf</filename>:
<programlisting language="ini">[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
# This section should not contain any other config options</programlisting>
</para>
</listitem>
<listitem>
<para>Create the LVM Physical Volume and
Logical Volume:
<screen><prompt>#</prompt> <userinput>pvcreate /dev/sdb</userinput>
<prompt>#</prompt> <userinput>vgcreate cinder-volumes /dev/sdb</userinput></screen>
</para>
</listitem>
<listitem>
<para>Create the OpenStack Block Storage tables in the database:
<screen><prompt>#</prompt> <userinput>cinder-manage db sync</userinput></screen>
</para>
</listitem>
<listitem>
<para>Restart the services: <screen os="ubuntu;debian"><prompt>#</prompt> <userinput>service cinder-api restart</userinput>
<prompt>#</prompt> <userinput>service cinder-scheduler restart</userinput>
<prompt>#</prompt> <userinput>service cinder-volume restart</userinput></screen>
<screen os="centos;rhel;fedora"><prompt>#</prompt> <userinput>service openstack-cinder-api restart</userinput>
<prompt>#</prompt> <userinput>service openstack-cinder-scheduler restart</userinput>
<prompt>#</prompt> <userinput>service openstack-cinder-volume restart</userinput>
<prompt>#</prompt> <userinput>chkconfig openstack-cinder-api on</userinput>
<prompt>#</prompt> <userinput>chkconfig openstack-cinder-scheduler on</userinput>
<prompt>#</prompt> <userinput>chkconfig openstack-cinder-volume on</userinput></screen>
<screen os="opensuse"><prompt>#</prompt> <userinput>systemctl restart openstack-cinder-api</userinput>
<prompt>#</prompt> <userinput>systemctl restart openstack-cinder-scheduler.service</userinput>
<prompt>#</prompt> <userinput>systemctl restart openstack-cinder-volume.service</userinput>
<prompt>#</prompt> <userinput>systemctl enable openstack-cinder-api.service</userinput>
<prompt>#</prompt> <userinput>systemctl enable openstack-cinder-scheduler.service</userinput>
<prompt>#</prompt> <userinput>systemctl enable openstack-cinder-volume.service</userinput></screen></para>
</listitem>
</itemizedlist>
</listitem>
</orderedlist>
</para>
</section>