Fix usage of $/# prompts
Use # prompt for root and $ for user actions. Change-Id: Ia241921d4f3d072cf4d7459557a5d78d31d7049c
This commit is contained in:
parent
25c95b418b
commit
bbab391aeb
@ -103,8 +103,8 @@
|
||||
<para>You can configure the CPU limits with control parameters
|
||||
with the nova tool. For example, to configure the I/O
|
||||
limit:</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova flavor-key m1.small set quota:read_bytes_sec=10240000</userinput>
|
||||
<prompt>#</prompt> <userinput>nova flavor-key m1.small set quota:write_bytes_sec=10240000</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>nova flavor-key m1.small set quota:read_bytes_sec=10240000</userinput>
|
||||
<prompt>$</prompt> <userinput>nova flavor-key m1.small set quota:write_bytes_sec=10240000</userinput></screen>
|
||||
<para>There are CPU control parameters for weight shares,
|
||||
enforcement intervals for runtime quotas, and a quota for
|
||||
maximum allowed bandwidth.</para>
|
||||
@ -129,14 +129,14 @@
|
||||
18446744073709551]</literal> or less than 0. A quota with
|
||||
value 0 means no value. You can use this feature to ensure
|
||||
that all vcpus run at the same speed. For example:</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova flavor-key m1.low_cpu set quota:cpu_quota=10000</userinput>
|
||||
<prompt>#</prompt> <userinput>nova flavor-key m1.low_cpu set quota:cpu_period=20000</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>nova flavor-key m1.low_cpu set quota:cpu_quota=10000</userinput>
|
||||
<prompt>$</prompt> <userinput>nova flavor-key m1.low_cpu set quota:cpu_period=20000</userinput></screen>
|
||||
<para>In this example, the instance of
|
||||
<literal>m1.low_cpu</literal> can only consume a maximum
|
||||
of 50% CPU of a physical CPU computing capability.</para>
|
||||
<para>Through disk I/O quotas, you can set maximum disk write to
|
||||
10 MB per second for a VM user. For example:</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova flavor-key m1.medium set disk_write_bytes_sec=10485760</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>nova flavor-key m1.medium set disk_write_bytes_sec=10485760</userinput></screen>
|
||||
<para>The disk I/O options are:</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
@ -197,13 +197,13 @@
|
||||
to the network.</para>
|
||||
<para>This example configures a bandwidth limit for instance
|
||||
network traffic:</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova flavor-key m1.small set quota:inbound_average=10240</userinput>
|
||||
<prompt>#</prompt> <userinput>nova flavor-key m1.small set quota:outbound_average=10240</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>nova flavor-key m1.small set quota:inbound_average=10240</userinput>
|
||||
<prompt>$</prompt> <userinput>nova flavor-key m1.small set quota:outbound_average=10240</userinput></screen>
|
||||
<para>Flavors can also be assigned to particular projects. By
|
||||
default, a flavor is public and available to all projects.
|
||||
Private flavors are only accessible to those on the access
|
||||
list and are invisible to other projects. To create and assign
|
||||
a private flavor to a project, run these commands:</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova flavor-create --is-public false p1.medium auto 512 40 4</userinput>
|
||||
<prompt>#</prompt> <userinput>nova flavor-access-add 259d06a0-ba6d-4e60-b42d-ab3144411d58 86f94150ed744e08be565c2ff608eef9</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>nova flavor-create --is-public false p1.medium auto 512 40 4</userinput>
|
||||
<prompt>$</prompt> <userinput>nova flavor-access-add 259d06a0-ba6d-4e60-b42d-ab3144411d58 86f94150ed744e08be565c2ff608eef9</userinput></screen>
|
||||
</section>
|
||||
|
@ -214,7 +214,7 @@
|
||||
<literal>ssd=true</literal> key-value pair. Setting a
|
||||
key-value pair on a flavor is done using the <command>nova
|
||||
flavor-key set_key</command> command.</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova flavor-key set_key --name=ssd.large --key=ssd --value=true</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>nova flavor-key set_key --name=ssd.large --key=ssd --value=true</userinput></screen>
|
||||
<para>Once it is set, you should see the
|
||||
<literal>extra_specs</literal> property of the
|
||||
<literal>ssd.large</literal> flavor populated with a
|
||||
|
@ -252,10 +252,10 @@
|
||||
</step>
|
||||
<step>
|
||||
<para>Update a particular quota value, as follows:</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova quota-update --<replaceable>quotaName</replaceable> <replaceable>quotaValue</replaceable> <replaceable>tenantID</replaceable></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>nova quota-update --<replaceable>quotaName</replaceable> <replaceable>quotaValue</replaceable> <replaceable>tenantID</replaceable></userinput></screen>
|
||||
<para>For example:</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova quota-update --floating-ips 20 $tenant
|
||||
<prompt>#</prompt> nova quota-show --tenant $tenant</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>nova quota-update --floating-ips 20 $tenant</userinput>
|
||||
<prompt>$</prompt> <userinput>nova quota-show --tenant $tenant</userinput>
|
||||
<computeroutput>+-----------------------------+-------+
|
||||
| Quota | Limit |
|
||||
+-----------------------------+-------+
|
||||
@ -327,10 +327,10 @@
|
||||
</step>
|
||||
<step>
|
||||
<para>Update a particular quota value, as follows:</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova quota-update --user $tenantUser --<replaceable>quotaName</replaceable> <replaceable>quotaValue</replaceable> $tenant</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>nova quota-update --user $tenantUser --<replaceable>quotaName</replaceable> <replaceable>quotaValue</replaceable> $tenant</userinput></screen>
|
||||
<para>For example:</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova quota-update --user $tenantUser --floating-ips 12 $tenant
|
||||
<prompt>#</prompt> nova quota-show --user $tenantUser --tenant $tenant</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>nova quota-update --user $tenantUser --floating-ips 12 $tenant</userinput>
|
||||
<prompt>$</prompt> <userinput>nova quota-show --user $tenantUser --tenant $tenant</userinput>
|
||||
<computeroutput>+-----------------------------+-------+
|
||||
| Quota | Limit |
|
||||
+-----------------------------+-------+
|
||||
|
@ -150,7 +150,7 @@ auth_blob=i-am-openstack</programlisting>
|
||||
<para>Use the <command>nova flavor-key set</command> command
|
||||
to set a flavor as trusted. For example, to set the
|
||||
<literal>m1.tiny</literal> flavor as trusted:</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova flavor-key m1.tiny set trust:trusted_host trusted</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>nova flavor-key m1.tiny set trust:trusted_host trusted</userinput></screen>
|
||||
<para>To request that their instances run on a trusted host,
|
||||
users can specify a trusted flavor on the <command>nova
|
||||
boot</command> command:</para>
|
||||
|
@ -168,7 +168,7 @@
|
||||
Image Service with
|
||||
<literal>disk-format=iso</literal>, and boot
|
||||
them in OpenStack Compute:</para>
|
||||
<screen><prompt>#</prompt> <userinput>glance image-create --name=fedora_iso --disk-format=iso --container-format=bare < Fedora-16-x86_64-netinst.iso</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>glance image-create --name=fedora_iso --disk-format=iso --container-format=bare < Fedora-16-x86_64-netinst.iso</userinput></screen>
|
||||
</step>
|
||||
</procedure>
|
||||
</section>
|
||||
|
@ -129,7 +129,7 @@ name=<replaceable>cell1</replaceable></programlisting></para>
|
||||
for the particular cell.</para>
|
||||
<para>Use the <command>nova-manage cell create</command> command to add this information to
|
||||
the database in each
|
||||
cell:<screen><prompt>$</prompt> <userinput>nova-manage cell create -h</userinput>
|
||||
cell:<screen><prompt>#</prompt> <userinput>nova-manage cell create -h</userinput>
|
||||
<computeroutput>Options:
|
||||
-h, --help show this help message and exit
|
||||
--name=<name> Name for the new cell
|
||||
|
@ -15,7 +15,7 @@
|
||||
services access the database through the <systemitem
|
||||
class="service">nova-conductor</systemitem> service.</para>
|
||||
<para>To ensure that the database schema is current, run the following command:</para>
|
||||
<screen><prompt>$</prompt> <userinput>nova-manage db sync</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>nova-manage db sync</userinput></screen>
|
||||
<para>If <systemitem class="service">nova-conductor</systemitem>
|
||||
is not used, entries to the database are mostly written by the
|
||||
<systemitem class="service">nova-scheduler</systemitem>
|
||||
|
@ -60,13 +60,13 @@
|
||||
<literal>swift</literal> user. Use the
|
||||
<literal>service</literal> tenant and give the user the
|
||||
<literal>admin</literal> role:</para>
|
||||
<screen><prompt>#</prompt> <userinput>keystone user-create --name=swift --pass=<replaceable>SWIFT_PASS</replaceable> \
|
||||
<screen><prompt>$</prompt> <userinput>keystone user-create --name=swift --pass=<replaceable>SWIFT_PASS</replaceable> \
|
||||
--email=<replaceable>swift@example.com</replaceable></userinput>
|
||||
<prompt>#</prompt> <userinput>keystone user-role-add --user=swift --tenant=service --role=admin</userinput></screen>
|
||||
<prompt>$</prompt> <userinput>keystone user-role-add --user=swift --tenant=service --role=admin</userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Create a service entry for the Object Storage Service:</para>
|
||||
<screen><prompt>#</prompt> <userinput>keystone service-create --name=swift --type=object-store \
|
||||
<screen><prompt>$</prompt> <userinput>keystone service-create --name=swift --type=object-store \
|
||||
--description="OpenStack Object Storage"</userinput>
|
||||
<computeroutput>+-------------+----------------------------------+
|
||||
| Property | Value |
|
||||
@ -85,7 +85,7 @@
|
||||
provide URLs for the public API, internal API, and admin API.
|
||||
In this guide, the <literal>controller</literal> host name is
|
||||
used:</para>
|
||||
<screen><prompt>#</prompt> <userinput>keystone endpoint-create \
|
||||
<screen><prompt>$</prompt> <userinput>keystone endpoint-create \
|
||||
--service-id=$(keystone service-list | awk '/ object-store / {print $2}') \
|
||||
--publicurl='http://<replaceable>controller</replaceable>:8080/v1/AUTH_%(tenant_id)s' \
|
||||
--internalurl='http://<replaceable>controller</replaceable>:8080/v1/AUTH_%(tenant_id)s' \
|
||||
|
@ -22,6 +22,6 @@
|
||||
<para>To start all swift services at once, run the command:</para>
|
||||
<screen><prompt>#</prompt> <userinput>swift-init all start</userinput></screen>
|
||||
<para>To know more about <literal>swift-init</literal> command, run:</para>
|
||||
<screen><prompt>#</prompt> <userinput>man swift-init</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>man swift-init</userinput></screen>
|
||||
</note>
|
||||
</section>
|
||||
|
@ -11,7 +11,7 @@
|
||||
<envar>OS_SERVICE_TOKEN</envar> and
|
||||
<envar>OS_SERVICE_ENDPOINT</envar> environment
|
||||
variables:</para>
|
||||
<screen><prompt>#</prompt> <userinput>unset OS_SERVICE_TOKEN OS_SERVICE_ENDPOINT</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>unset OS_SERVICE_TOKEN OS_SERVICE_ENDPOINT</userinput></screen>
|
||||
<para>These variables, which were used to bootstrap the
|
||||
administrative user and register the Identity Service, are no
|
||||
longer needed.</para>
|
||||
@ -22,7 +22,7 @@
|
||||
<para>Request a authentication token by using the
|
||||
<literal>admin</literal> user and the password you chose for
|
||||
that user:</para>
|
||||
<screen><prompt>#</prompt> <userinput>keystone --os-username=admin --os-password=<replaceable>ADMIN_PASS</replaceable> \
|
||||
<screen><prompt>$</prompt> <userinput>keystone --os-username=admin --os-password=<replaceable>ADMIN_PASS</replaceable> \
|
||||
--os-auth-url=http://controller:35357/v2.0 token-get</userinput></screen>
|
||||
<para>In response, you receive a token paired with your user ID.
|
||||
This verifies that the Identity Service is running on the
|
||||
@ -32,7 +32,7 @@
|
||||
<step>
|
||||
<para>Verify that authorization behaves as expected. To do so,
|
||||
request authorization on a tenant:</para>
|
||||
<screen><prompt>#</prompt> <userinput>keystone --os-username=admin --os-password=<replaceable>ADMIN_PASS</replaceable> \
|
||||
<screen><prompt>$</prompt> <userinput>keystone --os-username=admin --os-password=<replaceable>ADMIN_PASS</replaceable> \
|
||||
--os-tenant-name=admin --os-auth-url=http://controller:35357/v2.0 \
|
||||
token-get</userinput></screen>
|
||||
<para>In response, you receive a token that includes the ID of
|
||||
@ -53,7 +53,7 @@ export OS_AUTH_URL=http://controller:35357/v2.0</programlisting>
|
||||
<step>
|
||||
<para>Source this file to read in the environment
|
||||
variables:</para>
|
||||
<screen><prompt>#</prompt> <userinput>source openrc.sh</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>source openrc.sh</userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Verify that your <filename>openrc.sh</filename> file is
|
||||
@ -67,13 +67,13 @@ export OS_AUTH_URL=http://controller:35357/v2.0</programlisting>
|
||||
<step>
|
||||
<para>Verify that your admin account has authorization to
|
||||
perform administrative commands:</para>
|
||||
<screen><prompt>#</prompt> <userinput>keystone user-list</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>keystone user-list</userinput>
|
||||
<computeroutput>+----------------------------------+---------+--------------------+--------+
|
||||
| id | enabled | email | name |
|
||||
+----------------------------------+---------+--------------------+--------+
|
||||
| a4c2d43f80a549a19864c89d759bb3fe | True | admin@example.com | admin |
|
||||
+----------------------------------+---------+--------------------+--------+</computeroutput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>keystone user-role-list</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>keystone user-role-list</userinput>
|
||||
<computeroutput>+----------------------------------+----------+----------------------------------+----------------------------------+
|
||||
| id | name | user_id | tenant_id |
|
||||
+----------------------------------+----------+----------------------------------+----------------------------------+
|
||||
|
@ -46,14 +46,14 @@ IDENTIFIED BY '<replaceable>NEUTRON_DBPASS</replaceable>';</userinput></screen>
|
||||
<para>Create the required user, service, and endpoint so that
|
||||
Networking can interface with the Identity Service.</para>
|
||||
<para>Create a <literal>neutron</literal> user:</para>
|
||||
<screen><prompt>#</prompt> <userinput>keystone user-create --name=neutron --pass=<replaceable>NEUTRON_PASS</replaceable> --email=<replaceable>neutron@example.com</replaceable></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>keystone user-create --name=neutron --pass=<replaceable>NEUTRON_PASS</replaceable> --email=<replaceable>neutron@example.com</replaceable></userinput></screen>
|
||||
<para>Add the user role to the neutron user:</para>
|
||||
<screen><prompt>#</prompt> <userinput>keystone user-role-add --user=neutron --tenant=service --role=admin</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>keystone user-role-add --user=neutron --tenant=service --role=admin</userinput></screen>
|
||||
<para>Create the neutron service:</para>
|
||||
<screen><prompt>#</prompt> <userinput>keystone service-create --name=neutron --type=network \
|
||||
<screen><prompt>$</prompt> <userinput>keystone service-create --name=neutron --type=network \
|
||||
--description="OpenStack Networking"</userinput></screen>
|
||||
<para>Create a Networking endpoint:</para>
|
||||
<screen><prompt>#</prompt> <userinput>keystone endpoint-create \
|
||||
<screen><prompt>$</prompt> <userinput>keystone endpoint-create \
|
||||
--service-id $(keystone service-list | awk '/ network / {print $2}') \
|
||||
--publicurl http://<replaceable>controller</replaceable>:9696 \
|
||||
--adminurl http://<replaceable>controller</replaceable>:9696 \
|
||||
|
@ -21,21 +21,21 @@
|
||||
<literal>ext-net</literal> might be assigned to VMs so that the
|
||||
external network can contact them. Neutron-based services route the
|
||||
traffic appropriately.</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron net-create ext-net --router:external=True <replaceable>SPECIAL_OPTIONS</replaceable></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron net-create ext-net --router:external=True <replaceable>SPECIAL_OPTIONS</replaceable></userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Create the associated subnet with the same gateway and
|
||||
CIDR as <replaceable>EXTERNAL_INTERFACE</replaceable>. It
|
||||
does not have DHCP because it represents a slice of the
|
||||
external world:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron subnet-create ext-net \
|
||||
<screen><prompt>$</prompt> <userinput>neutron subnet-create ext-net \
|
||||
--allocation-pool start=<replaceable>FLOATING_IP_START</replaceable>,end=<replaceable>FLOATING_IP_END</replaceable> \
|
||||
--gateway=<replaceable>EXTERNAL_INTERFACE_GATEWAY</replaceable> --enable_dhcp=False \
|
||||
<replaceable>EXTERNAL_INTERFACE_CIDR</replaceable></userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Create one or more initial tenants, for example:</para>
|
||||
<screen><prompt>#</prompt> <userinput>keystone tenant-create --name <replaceable>DEMO_TENANT</replaceable></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>keystone tenant-create --name <replaceable>DEMO_TENANT</replaceable></userinput></screen>
|
||||
<para os="rhel;centos;fedora;opensuse;sles;ubuntu"> See <xref
|
||||
linkend="keystone-users"/> for further details.</para>
|
||||
<para os="debian"> See <xref linkend="keystone-install"/> for
|
||||
@ -50,15 +50,15 @@
|
||||
command.</para>
|
||||
<para>Use the following to quickly get the
|
||||
<replaceable>DEMO_TENANT</replaceable> tenant-id:</para>
|
||||
<screen><prompt>#</prompt> <userinput>keystone tenant-list | grep <replaceable>DEMO_TENANT</replaceable> | awk '{print $2;}'</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>keystone tenant-list | grep <replaceable>DEMO_TENANT</replaceable> | awk '{print $2;}'</userinput></screen>
|
||||
<para>Then create the router:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron router-create ext-to-int --tenant-id <replaceable>DEMO_TENANT_ID</replaceable></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron router-create ext-to-int --tenant-id <replaceable>DEMO_TENANT_ID</replaceable></userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Connect the router to <literal>ext-net</literal> by
|
||||
setting the gateway for the router as
|
||||
<literal>ext-net</literal>:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron router-gateway-set <replaceable>EXT_TO_INT_ID</replaceable> <replaceable>EXT_NET_ID</replaceable></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron router-gateway-set <replaceable>EXT_TO_INT_ID</replaceable> <replaceable>EXT_NET_ID</replaceable></userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Create an internal network for
|
||||
@ -66,9 +66,9 @@
|
||||
subnet over an arbitrary internal IP range, such as,
|
||||
<literal>10.5.5.0/24</literal>), and connect it to the
|
||||
router by setting it as a port:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron net-create --tenant-id <replaceable>DEMO_TENANT_ID</replaceable> demo-net <replaceable>SPECIAL_OPTIONS</replaceable></userinput>
|
||||
<prompt>#</prompt> <userinput>neutron subnet-create --tenant-id <replaceable>DEMO_TENANT_ID</replaceable> demo-net 10.5.5.0/24 --gateway 10.5.5.1</userinput>
|
||||
<prompt>#</prompt> <userinput>neutron router-interface-add <replaceable>EXT_TO_INT_ID</replaceable> <replaceable>DEMO_NET_SUBNET_ID</replaceable></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>neutron net-create --tenant-id <replaceable>DEMO_TENANT_ID</replaceable> demo-net <replaceable>SPECIAL_OPTIONS</replaceable></userinput>
|
||||
<prompt>$</prompt> <userinput>neutron subnet-create --tenant-id <replaceable>DEMO_TENANT_ID</replaceable> demo-net 10.5.5.0/24 --gateway 10.5.5.1</userinput>
|
||||
<prompt>$</prompt> <userinput>neutron router-interface-add <replaceable>EXT_TO_INT_ID</replaceable> <replaceable>DEMO_NET_SUBNET_ID</replaceable></userinput></screen>
|
||||
</step>
|
||||
</procedure>
|
||||
<section
|
||||
|
@ -413,7 +413,7 @@ export OS_AUTH_URL=http://<replaceable>controller</replaceable>:5000/v2.0/</prog
|
||||
<step>
|
||||
<para>Get the tenant ID (Used as $TENANT_ID
|
||||
later):</para>
|
||||
<screen><prompt>#</prompt> <userinput>keystone tenant-list</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>keystone tenant-list</userinput>
|
||||
<computeroutput>+----------------------------------+---------+---------+
|
||||
| id | name | enabled |
|
||||
+----------------------------------+---------+---------+
|
||||
@ -426,7 +426,7 @@ export OS_AUTH_URL=http://<replaceable>controller</replaceable>:5000/v2.0/</prog
|
||||
</step>
|
||||
<step>
|
||||
<para>Get user information:</para>
|
||||
<screen><prompt>#</prompt> <userinput>keystone user-list</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>keystone user-list</userinput>
|
||||
<computeroutput>+----------------------------------+-------+---------+-------------------+
|
||||
| id | name | enabled | email |
|
||||
+----------------------------------+-------+---------+-------------------+
|
||||
@ -440,7 +440,7 @@ export OS_AUTH_URL=http://<replaceable>controller</replaceable>:5000/v2.0/</prog
|
||||
<step>
|
||||
<para>Create the external network and its subnet by
|
||||
admin user:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron net-create Ext-Net --provider:network_type local --router:external true</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>neutron net-create Ext-Net --provider:network_type local --router:external true</userinput>
|
||||
<computeroutput>Created a new network:
|
||||
+---------------------------+--------------------------------------+
|
||||
| Field | Value |
|
||||
@ -458,7 +458,7 @@ export OS_AUTH_URL=http://<replaceable>controller</replaceable>:5000/v2.0/</prog
|
||||
| tenant_id | b7445f221cda4f4a8ac7db6b218b1339 |
|
||||
+---------------------------+--------------------------------------+</computeroutput></screen>
|
||||
|
||||
<screen><prompt>#</prompt> <userinput>neutron subnet-create Ext-Net 30.0.0.0/24 --disable-dhcp</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>neutron subnet-create Ext-Net 30.0.0.0/24 --disable-dhcp</userinput>
|
||||
<computeroutput>Created a new subnet:
|
||||
+------------------+--------------------------------------------+
|
||||
| Field | Value |
|
||||
@ -500,7 +500,7 @@ export OS_AUTH_URL=http://<replaceable>controller</replaceable>:5000/v2.0/</prog
|
||||
<substeps>
|
||||
<step>
|
||||
<para>Create a network for TenantA:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron --os-tenant-name TenantA --os-username UserA --os-password password \
|
||||
<screen><prompt>$</prompt> <userinput>neutron --os-tenant-name TenantA --os-username UserA --os-password password \
|
||||
--os-auth-url=http://localhost:5000/v2.0 net-create TenantA-Net</userinput>
|
||||
<computeroutput>Created a new network:
|
||||
+-----------------+--------------------------------------+
|
||||
@ -518,7 +518,7 @@ export OS_AUTH_URL=http://<replaceable>controller</replaceable>:5000/v2.0/</prog
|
||||
<para>After that, you can use admin user to
|
||||
query the provider network
|
||||
information:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron net-show TenantA-Net</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>neutron net-show TenantA-Net</userinput>
|
||||
<computeroutput>+---------------------------+--------------------------------------+
|
||||
| Field | Value |
|
||||
+---------------------------+--------------------------------------+
|
||||
@ -541,7 +541,7 @@ export OS_AUTH_URL=http://<replaceable>controller</replaceable>:5000/v2.0/</prog
|
||||
<step>
|
||||
<para>Create a subnet on the network
|
||||
TenantA-Net:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron --os-tenant-name TenantA --os-username UserA --os-password password \
|
||||
<screen><prompt>$</prompt> <userinput>neutron --os-tenant-name TenantA --os-username UserA --os-password password \
|
||||
--os-auth-url=http://localhost:5000/v2.0 subnet-create TenantA-Net 10.0.0.0/24</userinput>
|
||||
<computeroutput>Created a new subnet:
|
||||
+------------------+--------------------------------------------+
|
||||
@ -584,7 +584,7 @@ export OS_AUTH_URL=http://<replaceable>controller</replaceable>:5000/v2.0/</prog
|
||||
<step>
|
||||
<para>Create and configure a router for
|
||||
TenantA:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron --os-tenant-name TenantA --os-username UserA --os-password password \
|
||||
<screen><prompt>$</prompt> <userinput>neutron --os-tenant-name TenantA --os-username UserA --os-password password \
|
||||
--os-auth-url=http://localhost:5000/v2.0 router-create TenantA-R1</userinput>
|
||||
<computeroutput>Created a new router:
|
||||
+-----------------------+--------------------------------------+
|
||||
@ -597,12 +597,12 @@ export OS_AUTH_URL=http://<replaceable>controller</replaceable>:5000/v2.0/</prog
|
||||
| status | ACTIVE |
|
||||
| tenant_id | 247e478c599f45b5bd297e8ddbbc9b6a |
|
||||
+-----------------------+--------------------------------------+</computeroutput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>neutron --os-tenant-name TenantA --os-username UserA --os-password password \
|
||||
<screen><prompt>$</prompt> <userinput>neutron --os-tenant-name TenantA --os-username UserA --os-password password \
|
||||
--os-auth-url=http://localhost:5000/v2.0 router-interface-add \
|
||||
TenantA-R1 51e2c223-0492-4385-b6e9-83d4e6d10657</userinput></screen>
|
||||
<para>Added interface to router
|
||||
TenantA-R1</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron --os-tenant-name TenantA --os-username UserA --os-password password \
|
||||
<screen><prompt>$</prompt> <userinput>neutron --os-tenant-name TenantA --os-username UserA --os-password password \
|
||||
--os-auth-url=http://localhost:5000/v2.0 \
|
||||
router-gateway-set TenantA-R1 Ext-Net</userinput></screen>
|
||||
</step>
|
||||
@ -614,7 +614,7 @@ export OS_AUTH_URL=http://<replaceable>controller</replaceable>:5000/v2.0/</prog
|
||||
|
||||
<step>
|
||||
<para>Create a floating IP:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron --os-tenant-name TenantA --os-username UserA --os-password password \
|
||||
<screen><prompt>$</prompt> <userinput>neutron --os-tenant-name TenantA --os-username UserA --os-password password \
|
||||
--os-auth-url=http://localhost:5000/v2.0 floatingip-create Ext-Net</userinput>
|
||||
<computeroutput>Created a new floatingip:
|
||||
+---------------------+--------------------------------------+
|
||||
@ -707,21 +707,21 @@ rtt min/avg/max/mdev = 0.898/15.621/45.027/20.793 ms
|
||||
<step>
|
||||
<para>Create networks and subnets for
|
||||
TenantC:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
<screen><prompt>$</prompt> <userinput>neutron --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
--os-auth-url=http://localhost:5000/v2.0 net-create TenantC-Net1</userinput>
|
||||
<prompt>#</prompt> <userinput>neutron --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
<prompt>$</prompt> <userinput>neutron --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
--os-auth-url=http://localhost:5000/v2.0 subnet-create TenantC-Net1 \
|
||||
10.0.0.0/24 --name TenantC-Subnet1</userinput>
|
||||
<prompt>#</prompt> <userinput>neutron --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
<prompt>$</prompt> <userinput>neutron --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
--os-auth-url=http://localhost:5000/v2.0 net-create TenantC-Net2</userinput>
|
||||
<prompt>#</prompt> <userinput>neutron --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
<prompt>$</prompt> <userinput>neutron --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
--os-auth-url=http://localhost:5000/v2.0 subnet-create TenantC-Net2 \
|
||||
10.0.1.0/24 --name TenantC-Subnet2</userinput>
|
||||
</screen>
|
||||
<para>After that you can use admin user to
|
||||
query the network's provider network
|
||||
information:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron net-show TenantC-Net1</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>neutron net-show TenantC-Net1</userinput>
|
||||
<computeroutput>+---------------------------+--------------------------------------+
|
||||
| Field | Value |
|
||||
+---------------------------+--------------------------------------+
|
||||
@ -738,7 +738,7 @@ rtt min/avg/max/mdev = 0.898/15.621/45.027/20.793 ms
|
||||
| tenant_id | 2b4fec24e62e4ff28a8445ad83150f9d |
|
||||
+---------------------------+--------------------------------------+
|
||||
</computeroutput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>neutron net-show TenantC-Net2</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>neutron net-show TenantC-Net2</userinput>
|
||||
<computeroutput>+---------------------------+--------------------------------------+
|
||||
| Field | Value |
|
||||
+---------------------------+--------------------------------------+
|
||||
@ -763,20 +763,20 @@ rtt min/avg/max/mdev = 0.898/15.621/45.027/20.793 ms
|
||||
<step>
|
||||
<para>Create a server TenantC-VM1 for TenantC
|
||||
on TenantC-Net1.</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
<screen><prompt>$</prompt> <userinput>nova --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
--os-auth-url=http://localhost:5000/v2.0 boot --image tty --flavor 1 \
|
||||
--nic net-id=91309738-c317-40a3-81bb-bed7a3917a85 TenantC_VM1</userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Create a server TenantC-VM3 for TenantC
|
||||
on TenantC-Net2.</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
<screen><prompt>$</prompt> <userinput>nova --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
--os-auth-url=http://localhost:5000/v2.0 boot --image tty --flavor 1 \
|
||||
--nic net-id=5b373ad2-7866-44f4-8087-f87148abd623 TenantC_VM3</userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>List servers of TenantC.</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
<screen><prompt>$</prompt> <userinput>nova --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
--os-auth-url=http://localhost:5000/v2.0 list</userinput>
|
||||
<computeroutput>+--------------------------------------+-------------+--------+-----------------------+
|
||||
| ID | Name | Status | Networks |
|
||||
@ -798,15 +798,15 @@ rtt min/avg/max/mdev = 0.898/15.621/45.027/20.793 ms
|
||||
<step>
|
||||
<para>Create and configure a router for
|
||||
TenantC:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
<screen><prompt>$</prompt> <userinput>neutron --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
--os-auth-url=http://localhost:5000/v2.0 router-create TenantC-R1</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>neutron --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
<screen><prompt>$</prompt> <userinput>neutron --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
--os-auth-url=http://localhost:5000/v2.0 router-interface-add \
|
||||
TenantC-R1 cf03fd1e-164b-4527-bc87-2b2631634b83</userinput>
|
||||
<prompt>#</prompt> <userinput>neutron --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
<prompt>$</prompt> <userinput>neutron --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
--os-auth-url=http://localhost:5000/v2.0 router-interface-add \
|
||||
TenantC-R1 38f0b2f0-9f98-4bf6-9520-f4abede03300</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>neutron --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
<screen><prompt>$</prompt> <userinput>neutron --os-tenant-name TenantC --os-username UserC --os-password password \
|
||||
--os-auth-url=http://localhost:5000/v2.0 \
|
||||
router-gateway-set TenantC-R1 Ext-Net</userinput></screen>
|
||||
</step>
|
||||
|
@ -380,7 +380,7 @@ export OS_AUTH_URL="http://<replaceable>controller</replaceable>:5000/v2.0/"</pr
|
||||
<listitem>
|
||||
<para>Export the environment variables in the
|
||||
<filename>adminrc</filename> file:</para>
|
||||
<screen><prompt>#</prompt> <userinput>source adminrc</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>source adminrc</userinput></screen>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<para>The <literal>admin</literal> tenant can define resources
|
||||
@ -396,13 +396,13 @@ export OS_AUTH_URL="http://<replaceable>controller</replaceable>:5000/v2.0/"</pr
|
||||
<step>
|
||||
<para>Get the <literal>tenant_A</literal> tenant
|
||||
ID:</para>
|
||||
<screen><prompt>#</prompt> <userinput>TENANT_ID=$(keystone tenant-list | awk '/ tenant_A / { print $2 }')</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>TENANT_ID=$(keystone tenant-list | awk '/ tenant_A / { print $2 }')</userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Create the <literal>net1</literal> internal
|
||||
network for the <literal>tenant_A</literal>
|
||||
tenant:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron net-create --tenant-id $TENANT_ID net1</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>neutron net-create --tenant-id $TENANT_ID net1</userinput>
|
||||
<computeroutput>+---------------------------+--------------------------------------+
|
||||
| Field | Value |
|
||||
+---------------------------+--------------------------------------+
|
||||
@ -422,7 +422,7 @@ export OS_AUTH_URL="http://<replaceable>controller</replaceable>:5000/v2.0/"</pr
|
||||
<step>
|
||||
<para>Create a subnet on the <literal>net1</literal>
|
||||
network and store its ID in a variable:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron subnet-create --tenant-id $TENANT_ID net1 10.5.5.0/24 \
|
||||
<screen><prompt>$</prompt> <userinput>neutron subnet-create --tenant-id $TENANT_ID net1 10.5.5.0/24 \
|
||||
--dns_nameservers list=true 8.8.8.7 8.8.8.8</userinput>
|
||||
<computeroutput>+------------------+--------------------------------------------+
|
||||
| Field | Value |
|
||||
@ -440,7 +440,7 @@ export OS_AUTH_URL="http://<replaceable>controller</replaceable>:5000/v2.0/"</pr
|
||||
| network_id | e99a361c-0af8-4163-9feb-8554d4c37e4f |
|
||||
| tenant_id | e40fa60181524f9f9ee7aa1038748f08 |
|
||||
+------------------+--------------------------------------------+</computeroutput>
|
||||
<prompt>#</prompt> <userinput>SUBNET_ID=<replaceable>c395cb5d-ba03-41ee-8a12-7e792d51a167</replaceable></userinput></screen>
|
||||
<prompt>$</prompt> <userinput>SUBNET_ID=<replaceable>c395cb5d-ba03-41ee-8a12-7e792d51a167</replaceable></userinput></screen>
|
||||
<note>
|
||||
<para>The <literal>id</literal> value will be
|
||||
different on your system.</para>
|
||||
@ -457,7 +457,7 @@ export OS_AUTH_URL="http://<replaceable>controller</replaceable>:5000/v2.0/"</pr
|
||||
<para>Create a <literal>router1</literal> router and
|
||||
store its ID in the <literal>ROUTER_ID</literal>
|
||||
variable:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron router-create router1</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>neutron router-create router1</userinput>
|
||||
<computeroutput>+-----------------------+--------------------------------------+
|
||||
| Field | Value |
|
||||
+-----------------------+--------------------------------------+
|
||||
@ -468,7 +468,7 @@ export OS_AUTH_URL="http://<replaceable>controller</replaceable>:5000/v2.0/"</pr
|
||||
| status | ACTIVE |
|
||||
| tenant_id | 48fb81ab2f6b409bafac8961a594980f |
|
||||
+-----------------------+--------------------------------------+</computeroutput>
|
||||
<prompt>#</prompt> <userinput>ROUTER_ID=<replaceable>685f64e7-a020-4fdf-a8ad-e41194ae124b</replaceable></userinput></screen>
|
||||
<prompt>$</prompt> <userinput>ROUTER_ID=<replaceable>685f64e7-a020-4fdf-a8ad-e41194ae124b</replaceable></userinput></screen>
|
||||
<note>
|
||||
<para>The <literal>id</literal> value will be
|
||||
different on your system.</para>
|
||||
@ -485,7 +485,7 @@ export OS_AUTH_URL="http://<replaceable>controller</replaceable>:5000/v2.0/"</pr
|
||||
<literal>router1</literal> router and attach
|
||||
it to the subnet from
|
||||
<literal>net1</literal>:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron router-interface-add $ROUTER_ID $SUBNET_ID</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>neutron router-interface-add $ROUTER_ID $SUBNET_ID</userinput>
|
||||
<computeroutput>Added interface to router 685f64e7-a020-4fdf-a8ad-e41194ae124b</computeroutput></screen>
|
||||
<note>
|
||||
<para>You can repeat this step to add interfaces
|
||||
@ -498,7 +498,7 @@ export OS_AUTH_URL="http://<replaceable>controller</replaceable>:5000/v2.0/"</pr
|
||||
network and store its ID in a the
|
||||
<literal>EXTERNAL_NETWORK_ID</literal>
|
||||
variable:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron net-create ext_net \
|
||||
<screen><prompt>$</prompt> <userinput>neutron net-create ext_net \
|
||||
--router:external=True --provider:network_type=vlan \
|
||||
--provider:physical_network=physnet1 --provider:segmentation_id=1</userinput>
|
||||
<computeroutput>+---------------------------+--------------------------------------+
|
||||
@ -516,7 +516,7 @@ export OS_AUTH_URL="http://<replaceable>controller</replaceable>:5000/v2.0/"</pr
|
||||
| subnets | |
|
||||
| tenant_id | 48fb81ab2f6b409bafac8961a594980f |
|
||||
+---------------------------+--------------------------------------+</computeroutput>
|
||||
<prompt>#</prompt> <userinput>EXTERNAL_NETWORK_ID=<replaceable>8858732b-0400-41f6-8e5c-25590e67ffeb</replaceable></userinput></screen>
|
||||
<prompt>$</prompt> <userinput>EXTERNAL_NETWORK_ID=<replaceable>8858732b-0400-41f6-8e5c-25590e67ffeb</replaceable></userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Create the subnet for floating IPs.</para>
|
||||
@ -524,7 +524,7 @@ export OS_AUTH_URL="http://<replaceable>controller</replaceable>:5000/v2.0/"</pr
|
||||
<para>The DHCP service is disabled for this
|
||||
subnet.</para>
|
||||
</note>
|
||||
<screen><prompt>#</prompt> <userinput>neutron subnet-create ext_net \
|
||||
<screen><prompt>$</prompt> <userinput>neutron subnet-create ext_net \
|
||||
--allocation-pool start=7.7.7.130,end=7.7.7.150 \
|
||||
--gateway 7.7.7.1 7.7.7.0/24 --disable-dhcp</userinput>
|
||||
<computeroutput>+------------------+--------------------------------------------------+
|
||||
@ -546,7 +546,7 @@ export OS_AUTH_URL="http://<replaceable>controller</replaceable>:5000/v2.0/"</pr
|
||||
<step>
|
||||
<para>Set the gateway for the router to the external
|
||||
network:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron router-gateway-set $ROUTER_ID $EXTERNAL_NETWORK_ID</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>neutron router-gateway-set $ROUTER_ID $EXTERNAL_NETWORK_ID</userinput>
|
||||
<computeroutput>Set gateway for router 685f64e7-a020-4fdf-a8ad-e41194ae124b</computeroutput></screen>
|
||||
</step>
|
||||
</procedure>
|
||||
@ -560,25 +560,25 @@ export OS_AUTH_URL="http://<replaceable>controller</replaceable>:5000/v2.0/"</pr
|
||||
VM after it starts. Store the port ID that was
|
||||
allocated for the VM in the
|
||||
<literal>PORT_ID</literal> variable:</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova list</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>nova list</userinput>
|
||||
<computeroutput>+--------------------------------------+--------+--------+---------------+
|
||||
| ID | Name | Status | Networks |
|
||||
+--------------------------------------+--------+--------+---------------+
|
||||
| 1cdc671d-a296-4476-9a75-f9ca1d92fd26 | testvm | ACTIVE | net1=10.5.5.3 |
|
||||
+--------------------------------------+--------+--------+---------------+</computeroutput>
|
||||
<prompt>#</prompt> <userinput>neutron port-list -- --device_id <replaceable>1cdc671d-a296-4476-9a75-f9ca1d92fd26</replaceable></userinput>
|
||||
<prompt>$</prompt> <userinput>neutron port-list -- --device_id <replaceable>1cdc671d-a296-4476-9a75-f9ca1d92fd26</replaceable></userinput>
|
||||
<computeroutput>+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
|
||||
| id | name | mac_address | fixed_ips |
|
||||
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
|
||||
| 9aa47099-b87b-488c-8c1d-32f993626a30 | | fa:16:3e:b4:d6:6c | {"subnet_id": "c395cb5d-ba03-41ee-8a12-7e792d51a167", "ip_address": "10.5.5.3"} |
|
||||
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+</computeroutput>
|
||||
<prompt>#</prompt> <userinput>PORT_ID=<replaceable>9aa47099-b87b-488c-8c1d-32f993626a30</replaceable></userinput></screen>
|
||||
<prompt>$</prompt> <userinput>PORT_ID=<replaceable>9aa47099-b87b-488c-8c1d-32f993626a30</replaceable></userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Allocate a floating IP and store its ID in the
|
||||
<literal>FLOATING_ID</literal>
|
||||
variable:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron floatingip-create ext_net</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>neutron floatingip-create ext_net</userinput>
|
||||
<computeroutput>+---------------------+--------------------------------------+
|
||||
| Field | Value |
|
||||
+---------------------+--------------------------------------+
|
||||
@ -590,17 +590,17 @@ export OS_AUTH_URL="http://<replaceable>controller</replaceable>:5000/v2.0/"</pr
|
||||
| router_id | |
|
||||
| tenant_id | e40fa60181524f9f9ee7aa1038748f08 |
|
||||
+---------------------+--------------------------------------+</computeroutput>
|
||||
<prompt>#</prompt> <userinput>FLOATING_ID=<replaceable>7.7.7.131</replaceable></userinput></screen>
|
||||
<prompt>$</prompt> <userinput>FLOATING_ID=<replaceable>7.7.7.131</replaceable></userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Associate the floating IP with the port for the
|
||||
VM:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron floatingip-associate $FLOATING_ID $PORT_ID</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>neutron floatingip-associate $FLOATING_ID $PORT_ID</userinput>
|
||||
<computeroutput>Associated floatingip 40952c83-2541-4d0c-b58e-812c835079a5</computeroutput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Show the floating IP:</para>
|
||||
<screen><prompt>#</prompt> <userinput>neutron floatingip-show $FLOATING_ID</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>neutron floatingip-show $FLOATING_ID</userinput>
|
||||
<computeroutput>+---------------------+--------------------------------------+
|
||||
| Field | Value |
|
||||
+---------------------+--------------------------------------+
|
||||
@ -615,7 +615,7 @@ export OS_AUTH_URL="http://<replaceable>controller</replaceable>:5000/v2.0/"</pr
|
||||
</step>
|
||||
<step>
|
||||
<para>Test the floating IP:</para>
|
||||
<screen><prompt>#</prompt> <userinput>ping 7.7.7.131</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>ping 7.7.7.131</userinput>
|
||||
<computeroutput>PING 7.7.7.131 (7.7.7.131) 56(84) bytes of data.
|
||||
64 bytes from 7.7.7.131: icmp_req=2 ttl=64 time=0.152 ms
|
||||
64 bytes from 7.7.7.131: icmp_req=3 ttl=64 time=0.049 ms</computeroutput></screen>
|
||||
|
@ -489,7 +489,7 @@ export OS_AUTH_URL=http://<replaceable>controller</replaceable>:5000/v2.0/</prog
|
||||
<listitem>
|
||||
<para>Get the tenant ID (Used as $TENANT_ID
|
||||
later):</para>
|
||||
<screen><prompt>#</prompt> <userinput>keystone tenant-list</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>keystone tenant-list</userinput>
|
||||
<computeroutput>+----------------------------------+---------+---------+
|
||||
| id | name | enabled |
|
||||
+----------------------------------+---------+---------+
|
||||
@ -502,7 +502,7 @@ export OS_AUTH_URL=http://<replaceable>controller</replaceable>:5000/v2.0/</prog
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Get the user information:</para>
|
||||
<screen><prompt>#</prompt> <userinput>keystone user-list</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>keystone user-list</userinput>
|
||||
<computeroutput>+----------------------------------+-------+---------+-------------------+
|
||||
| id | name | enabled | email |
|
||||
+----------------------------------+-------+---------+-------------------+
|
||||
|
@ -92,8 +92,8 @@
|
||||
xlink:href="http://docs.openstack.org/user-guide/content/"
|
||||
><citetitle>OpenStack User
|
||||
Guide</citetitle></link>.</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova secgroup-add-rule <replaceable>default</replaceable> tcp 22 22 0.0.0.0/0</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>nova secgroup-add-rule <replaceable>default</replaceable> icmp -1 -1 0.0.0.0/0</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>nova secgroup-add-rule <replaceable>default</replaceable> tcp 22 22 0.0.0.0/0</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>nova secgroup-add-rule <replaceable>default</replaceable> icmp -1 -1 0.0.0.0/0</userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Launch the instance:</para>
|
||||
|
@ -173,9 +173,9 @@ admin_password = <replaceable>NOVA_PASS</replaceable></programlisting>
|
||||
that other OpenStack services can locate it. Register the
|
||||
service and specify the endpoint:</para>
|
||||
|
||||
<screen><prompt>#</prompt> <userinput>keystone service-create --name=nova --type=compute \
|
||||
<screen><prompt>$</prompt> <userinput>keystone service-create --name=nova --type=compute \
|
||||
--description="OpenStack Compute"</userinput>
|
||||
<prompt>#</prompt> <userinput>keystone endpoint-create \
|
||||
<prompt>$</prompt> <userinput>keystone endpoint-create \
|
||||
--service-id=$(keystone service-list | awk '/ compute / {print $2}') \
|
||||
--publicurl=http://<replaceable>controller</replaceable>:8774/v2/%\(tenant_id\)s \
|
||||
--internalurl=http://<replaceable>controller</replaceable>:8774/v2/%\(tenant_id\)s \
|
||||
@ -208,7 +208,7 @@ admin_password = <replaceable>NOVA_PASS</replaceable></programlisting>
|
||||
<step>
|
||||
<para>To verify your configuration, list available
|
||||
images:</para>
|
||||
<screen><prompt>#</prompt> <userinput>nova image-list</userinput>
|
||||
<screen><prompt>$</prompt> <userinput>nova image-list</userinput>
|
||||
<computeroutput>+--------------------------------------+-----------------+--------+--------+
|
||||
| ID | Name | Status | Server |
|
||||
+--------------------------------------+-----------------+--------+--------+
|
||||
|
@ -104,7 +104,7 @@ public_interface=eth1</programlisting>
|
||||
for the entire installation and not on each compute node. Run the
|
||||
<command>nova network-create</command> command on the
|
||||
controller:</para>
|
||||
<screen><prompt>#</prompt> <userinput>source openrc.sh</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>nova network-create vmnet --fixed-range-v4=10.0.0.0/24 \
|
||||
<screen><prompt>$</prompt> <userinput>source openrc.sh</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>nova network-create vmnet --fixed-range-v4=10.0.0.0/24 \
|
||||
--bridge=br100 --multi-host=T</userinput></screen>
|
||||
</section>
|
||||
|
@ -76,9 +76,9 @@
|
||||
<step>
|
||||
<para>View Block Storage Service quotas for a project, as
|
||||
follows:</para>
|
||||
<screen><prompt>#</prompt> <userinput>cinder quota-show <replaceable>TENANT_NAME</replaceable></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>cinder quota-show <replaceable>TENANT_NAME</replaceable></userinput></screen>
|
||||
<para>For example:</para>
|
||||
<screen><prompt>#</prompt> <userinput>cinder quota-show tenant01</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>cinder quota-show tenant01</userinput></screen>
|
||||
<screen><computeroutput>+-----------+-------+
|
||||
| Property | Value |
|
||||
+-----------+-------+
|
||||
@ -96,10 +96,10 @@
|
||||
<step>
|
||||
<para>Update a particular quota value, as
|
||||
follows:</para>
|
||||
<screen><prompt>#</prompt> <userinput>cinder quota-update --<replaceable>quotaName</replaceable> <replaceable>NewValue</replaceable> <replaceable>tenantID</replaceable></userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>cinder quota-update --<replaceable>quotaName</replaceable> <replaceable>NewValue</replaceable> <replaceable>tenantID</replaceable></userinput></screen>
|
||||
<para>For example:</para>
|
||||
<screen><prompt>#</prompt> <userinput>cinder quota-update --volumes 15 $tenant</userinput></screen>
|
||||
<screen><prompt>#</prompt> <userinput>cinder quota-show tenant01</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>cinder quota-update --volumes 15 $tenant</userinput></screen>
|
||||
<screen><prompt>$</prompt> <userinput>cinder quota-show tenant01</userinput></screen>
|
||||
<screen><computeroutput>+-----------+-------+
|
||||
| Property | Value |
|
||||
+-----------+-------+
|
||||
|
Loading…
Reference in New Issue
Block a user