Add additional instructions for cinder install

the volume creation was not documented for cinder install

this patch adds it.

Backport: stable/havana

Cherry-Picked from: https://review.openstack.org/#/c/52572/

Change-Id: I70e2c2a537ce35225fbf4210b05be06052431246
This commit is contained in:
Tom Fifield
2013-10-18 17:01:39 +11:00
parent 0a832ca5f8
commit a1a7fa39bf
2 changed files with 15 additions and 10 deletions

View File

@@ -97,9 +97,9 @@ admin_password=<replaceable>CINDER_PASS</replaceable>
the endpoint.</para>
<screen><prompt>#</prompt> <userinput>keystone endpoint-create \
--service-id=<replaceable>the_service_id_above</replaceable> \
--publicurl=http://<replaceable>controlller</replaceable>:8776/v1/%\(tenant_id\)s \
--internalurl=http://<replaceable>controlller</replaceable>:8776/v1/%\(tenant_id\)s \
--adminurl=http://<replaceable>controlller</replaceable>:8776/v1/%\(tenant_id\)s</userinput></screen>
--publicurl=http://<replaceable>controller</replaceable>:8776/v1/%\(tenant_id\)s \
--internalurl=http://<replaceable>controller</replaceable>:8776/v1/%\(tenant_id\)s \
--adminurl=http://<replaceable>controller</replaceable>:8776/v1/%\(tenant_id\)s</userinput></screen>
</step>
<step><para>Also register a service and endpoint for version 2 of the
Block Storage Service API.</para>
@@ -109,9 +109,9 @@ admin_password=<replaceable>CINDER_PASS</replaceable>
the endpoint.</para>
<screen><prompt>#</prompt> <userinput>keystone endpoint-create \
--service-id=<replaceable>the_service_id_above</replaceable> \
--publicurl=http://<replaceable>controlller</replaceable>:8776/v2/%\(tenant_id\)s \
--internalurl=http://<replaceable>controlller</replaceable>:8776/v2/%\(tenant_id\)s \
--adminurl=http://<replaceable>controlller</replaceable>:8776/v2/%\(tenant_id\)s</userinput></screen>
--publicurl=http://<replaceable>controller</replaceable>:8776/v2/%\(tenant_id\)s \
--internalurl=http://<replaceable>controller</replaceable>:8776/v2/%\(tenant_id\)s \
--adminurl=http://<replaceable>controller</replaceable>:8776/v2/%\(tenant_id\)s</userinput></screen>
</step>
<step os="ubuntu;debian">

View File

@@ -28,8 +28,7 @@
<step><para>After you configure the operating system, install the appropriate
packages for the block storage service.</para>
<!-- FIXME: Double check list of packages for ubuntu -->
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>apt-get install cinder-volume</userinput></screen>
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>apt-get install cinder-volume lvm2</userinput></screen>
<screen os="centos;rhel;fedora"><prompt>#</prompt> <userinput>yum install openstack-cinder openstack-utils openstack-selinux</userinput></screen>
<screen os="opensuse;sles"><prompt>#</prompt> <userinput>zypper install openstack-cinder-volume</userinput></screen>
</step>
@@ -84,6 +83,13 @@ rabbit_port = 5672
DEFAULT rabbit_port 5672</userinput></screen>
</step>
<step>
<para>Now, create the LVM Physical Volume and Logical Volume.
This guide assumes a second disk <literal>/dev/sdb</literal> that
will be used for this purpose.</para>
<screen><prompt>#</prompt> <userinput>pvgreate /dev/sdb</userinput>
<prompt>#</prompt> <userinput>vgcreate cinder-volumes /dev/sdb</userinput></screen>
</step>
<step>
<para>Add a filter entry to the devices section
@@ -96,7 +102,7 @@ rabbit_port = 5672
"<literal>a</literal>" for accept, or an "<literal>r</literal>" for reject.
Physical volumes that are needed on the Cinder host begin with
"<literal>a</literal>". The array must end with
"<literal>r/.*/</literal>"</para>
"<literal>r/.*/</literal>" to reject any device not listed.</para>
<programlisting>devices {
...
filter = [ "a/sda1/", "a/sdb1/", "r/.*/"]
@@ -104,7 +110,6 @@ filter = [ "a/sda1/", "a/sdb1/", "r/.*/"]
}</programlisting>
</step>
<step os="ubuntu;debian">
<para>We now restart the cinder service with its new settings.</para>
<screen><prompt>#</prompt> <userinput>service cinder-volume restart</userinput>