591552a786
Fix this warning that appears with openstack version 1.0.3: # openstack service create --type identity --description "OpenStack Identity" keystone WARNING: openstackclient.identity.v2_0.service.CreateService The argument --type is deprecated, use service create --name <service-name> type instead. Note that the order is different, previously "--type TYPE NAME" and now "--name NAME TYPE". partially implements: blueprint installguide-kilo Closes-Bug: #1453883 Closes-Bug: #1453891 Co-Authored-By: Christian Berendt <berendt@b1-systems.de> Co-Authored-By: Flávio Ramalho <flaviosr@lsd.ufcg.edu.br> Change-Id: I72f89defd7f55ce2822b5b511280f40196361f68
119 lines
6.0 KiB
XML
119 lines
6.0 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="keystone-services">
|
|
<title>Create the service entity and API endpoint</title>
|
|
<para>The Identity service provides a catalog of services and their
|
|
locations. Each service that you add to your OpenStack environment
|
|
requires a <glossterm>service</glossterm> entity and several
|
|
<glossterm>API endpoint</glossterm> in the
|
|
catalog.</para>
|
|
<procedure>
|
|
<title>To configure prerequisites</title>
|
|
<para>By default, the Identity service database contains no information
|
|
to support conventional authentication and catalog services. You must
|
|
use a temporary authentication token that you created in
|
|
<xref linkend="keystone-install"/> to initialize the service entity
|
|
and API endpoint for the Identity service.</para>
|
|
<para>You must pass the value of the authentication token to the
|
|
<command>openstack</command> command with the
|
|
<parameter>--os-token</parameter> parameter or set the
|
|
<envar>OS_TOKEN</envar> environment variable. Similarly, you
|
|
must also pass the value of the Identity service URL to the
|
|
<command>openstack</command> command with the
|
|
<parameter>--os-url</parameter> parameter or set the
|
|
<envar>OS_URL</envar> environment variable. This guide
|
|
uses environment variables to reduce command length.</para>
|
|
<warning>
|
|
<para>For security reasons, do not use the temporary authentication
|
|
token for longer than necessary to initialize the Identity
|
|
service.</para>
|
|
</warning>
|
|
<step>
|
|
<para>Configure the authentication token:</para>
|
|
<screen><prompt>$</prompt> <userinput>export OS_TOKEN=<replaceable>ADMIN_TOKEN</replaceable></userinput></screen>
|
|
<para>Replace <replaceable>ADMIN_TOKEN</replaceable> with the
|
|
authentication token that you generated in
|
|
<xref linkend="keystone-install"/>. For example:</para>
|
|
<screen><prompt>$</prompt> <userinput>export OS_TOKEN=294a4c8a8a475f9b9836</userinput></screen>
|
|
</step>
|
|
<step>
|
|
<para>Configure the endpoint URL:</para>
|
|
<screen><prompt>$</prompt> <userinput>export OS_URL=http://<replaceable>controller</replaceable>:35357/v2.0</userinput></screen>
|
|
</step>
|
|
</procedure>
|
|
<procedure>
|
|
<title>To create the service entity and API endpoint</title>
|
|
<note os="debian">
|
|
<para>The packages can automatically create the service entity and
|
|
API endpoint.</para>
|
|
</note>
|
|
<step>
|
|
<para>The Identity service manages a catalog of services in your
|
|
OpenStack environment. Services use this catalog to determine
|
|
the other services available in your environment.</para>
|
|
<para>Create the service entity for the Identity service:</para>
|
|
|
|
<screen><prompt>$</prompt> <userinput>openstack service create \
|
|
--name keystone --description "OpenStack Identity" identity</userinput></screen>
|
|
<screen><computeroutput>+-------------+----------------------------------+
|
|
| Field | Value |
|
|
+-------------+----------------------------------+
|
|
| description | OpenStack Identity |
|
|
| enabled | True |
|
|
| id | 4ddaae90388b4ebc9d252ec2252d8d10 |
|
|
| name | keystone |
|
|
| type | identity |
|
|
+-------------+----------------------------------+</computeroutput></screen>
|
|
<note>
|
|
<para>OpenStack generates IDs dynamically, so you will see
|
|
different values in the example command output.</para>
|
|
</note>
|
|
</step>
|
|
<step>
|
|
<para>The Identity service manages a catalog of API endpoints associated
|
|
with the services in your OpenStack environment. Services use this
|
|
catalog to determine how to communicate with other services in your
|
|
environment.</para>
|
|
<para>OpenStack uses three API endpoint variants for each service:
|
|
admin, internal, and public. The admin API endpoint allows modifying
|
|
users and tenants by default, while the public and internal APIs
|
|
do not. In a production environment, the variants might reside on
|
|
separate networks that service different types of users for security
|
|
reasons. For instance, the public API network might be reachable from
|
|
outside the cloud for management tools, the admin API network might be
|
|
protected, while the internal API network is connected to each host.
|
|
Also, OpenStack supports multiple regions for scalability. For
|
|
simplicity, this guide uses the management network for all
|
|
endpoint variations and the default <literal>RegionOne</literal>
|
|
region.</para>
|
|
<para>Create the Identity service API endpoint:</para>
|
|
<screen><prompt>$</prompt> <userinput>openstack endpoint create \
|
|
--publicurl http://<replaceable>controller</replaceable>:5000/v2.0 \
|
|
--internalurl http://<replaceable>controller</replaceable>:5000/v2.0 \
|
|
--adminurl http://<replaceable>controller</replaceable>:35357/v2.0 \
|
|
--region RegionOne \
|
|
identity</userinput>
|
|
<computeroutput>+--------------+----------------------------------+
|
|
| Field | Value |
|
|
+--------------+----------------------------------+
|
|
| adminurl | http://controller:35357/v2.0 |
|
|
| id | 4a9ffc04b8eb4848a49625a3df0170e5 |
|
|
| internalurl | http://controller:5000/v2.0 |
|
|
| publicurl | http://controller:5000/v2.0 |
|
|
| region | RegionOne |
|
|
| service_id | 4ddaae90388b4ebc9d252ec2252d8d10 |
|
|
| service_name | keystone |
|
|
| service_type | identity |
|
|
+--------------+----------------------------------+</computeroutput></screen>
|
|
</step>
|
|
</procedure>
|
|
<note>
|
|
<para>Each service that you add to your OpenStack environment requires
|
|
one or more service entities and one API endpoint in the Identity
|
|
service.</para>
|
|
</note>
|
|
</section>
|