From 8b02e9576c9586879c6cbcdb9230b3de24358bb1 Mon Sep 17 00:00:00 2001 From: Fang Jinxing Date: Mon, 9 Nov 2015 08:55:40 +0000 Subject: [PATCH] refine the ironic installation guide From the Juno version, we have the OpenStackClient to identify the component. So we can substitute OpenStackClient for keystone to identify the ironic. I checked the OpenStackClient commands guide: https://wiki.openstack.org/wiki/OpenStackClient/Commands#endpoint The OpenStackClient API version is:API v2.0 The OpenStackClient command is: os endpoint create --publicurl [--adminurl ] [--internalurl ] [--region ] And the keystone command is: keystone endpoint-create [--region ] [--service_id ] [--publicurl ] [--adminurl ] [--internalurl ] Change-Id: I51ced0aeb04aed486cbe644305a9c19233e1d398 --- doc/source/deploy/install-guide.rst | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/doc/source/deploy/install-guide.rst b/doc/source/deploy/install-guide.rst index 9e11918ee0..c095deda8e 100644 --- a/doc/source/deploy/install-guide.rst +++ b/doc/source/deploy/install-guide.rst @@ -92,31 +92,25 @@ Configure the Identity service for the Bare Metal service The service uses this to authenticate with the Identity service. Use the ``service`` tenant and give the user the ``admin`` role:: - keystone user-create --name=ironic --pass=IRONIC_PASSWORD --email=ironic@example.com - keystone user-role-add --user=ironic --tenant=service --role=admin + openstack user create --password IRONIC_PASSWORD \ + --email ironic@example.com ironic + openstack role add --project service --user ironic admin #. You must register the Bare Metal service with the Identity service so that other OpenStack services can locate it. To register the service:: - keystone service-create --name=ironic --type=baremetal \ - --description="Ironic bare metal provisioning service" + openstack service create --name ironic --description \ + "Ironic baremetal provisioning service" baremetal #. Use the ``id`` property that is returned from the Identity service when registering the service (above), to create the endpoint, and replace IRONIC_NODE with your Bare Metal service's API node:: - keystone endpoint-create \ - --service-id=the_service_id_above \ - --publicurl=http://IRONIC_NODE:6385 \ - --internalurl=http://IRONIC_NODE:6385 \ - --adminurl=http://IRONIC_NODE:6385 - -.. error:: - If the keystone endpoint-create operation returns an error about not being - able to find the region "regionOne", the error is due to this keystone bug: - https://bugs.launchpad.net/keystone/+bug/1400589. As a workaround until - that bug is fixed you can force the creation of "RegionOne" by passing - --region=RegionOne as an argument to the keystone endpoint-create command. + openstack endpoint create --region RegionOne \ + --publicurl http://IRONIC_NODE:6385 \ + --internalurl http://IRONIC_NODE:6385 \ + --adminurl http://IRONIC_NODE:6385 \ + baremetal Set up the database for Bare Metal ----------------------------------