Fix the openstack endpoint create failed

Change-Id: Ie9b95c688dfacd118a1eebed587b015065866210
This commit is contained in:
wu.chunyang 2018-04-27 23:41:57 +08:00
parent ca0c116a98
commit 7ed8ebf90d
2 changed files with 18 additions and 11 deletions

View File

@ -40,14 +40,18 @@ Local endpoint example:
.. sourcecode:: console
$ openstack service create --name sahara_local --description \
"Sahara Data Processing (local installation)" \
data_processing_local
"Sahara Data Processing (local installation)" \
data_processing_local
$ openstack endpoint create --region RegionOne \
--publicurl http://127.0.0.1:8386/v1.1/%\(project_id\)s \
--adminurl http://127.0.0.1:8386/v1.1/%\(project_id\)s \
--internalurl http://127.0.0.1:8386/v1.1/%\(project_id\)s \
data_processing_local
data_processing_local public http://127.0.0.1:8386/v1.1/%\(project_id\)s
$ openstack endpoint create --region RegionOne \
data_processing_local internal http://127.0.0.1:8386/v1.1/%\(project_id\)s
$ openstack endpoint create --region RegionOne \
data_processing_local admin http://127.0.0.1:8386/v1.1/%\(project_id\)s
..
Then the endpoint name should be changed in ``sahara.py`` under the module of

View File

@ -207,13 +207,16 @@ Then restart the mysql server to ensure these changes are active.
.. sourcecode:: console
$ openstack service create --name sahara --description \
"Sahara Data Processing" data-processing
"Sahara Data Processing" data-processing
$ openstack endpoint create --region RegionOne \
--publicurl http://10.0.0.2:8386/v1.1/%\(project_id\)s \
--adminurl http://10.0.0.2:8386/v1.1/%\(project_id\)s \
--internalurl http://10.0.0.2:8386/v1.1/%\(project_id\)s \
data-processing
data-processing public http://10.0.0.2:8386/v1.1/%\(project_id\)s
$ openstack endpoint create --region RegionOne \
data-processing internal http://10.0.0.2:8386/v1.1/%\(project_id\)s
$ openstack endpoint create --region RegionOne \
data-processing admin http://10.0.0.2:8386/v1.1/%\(project_id\)s
.. note::