From 84562964b9e30fcb386a2fc8d1390bf7bfde56f4 Mon Sep 17 00:00:00 2001 From: caoyuan Date: Wed, 25 Apr 2018 11:00:46 +0800 Subject: [PATCH] Fix the openstack endpoint create failed 1. Update the openstack command 2. Update the volume to volumev2 Change-Id: I26bf8b0b53d8ecfbfe7d43d8e92fba22f502d82f --- doc/ha-guide-draft/source/storage-ha-block.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/ha-guide-draft/source/storage-ha-block.rst b/doc/ha-guide-draft/source/storage-ha-block.rst index a9000cbfa5..31c60e053a 100644 --- a/doc/ha-guide-draft/source/storage-ha-block.rst +++ b/doc/ha-guide-draft/source/storage-ha-block.rst @@ -183,8 +183,10 @@ and define your endpoint. For example: .. code-block:: console - $ openstack endpoint create volume --region $KEYSTONE_REGION \ - --publicurl 'http://PUBLIC_VIP:8776/v1/%(tenant_id)s' \ - --adminurl 'http://10.0.0.11:8776/v1/%(tenant_id)s' \ - --internalurl 'http://10.0.0.11:8776/v1/%(tenant_id)s' + $ openstack endpoint create --region $KEYSTONE_REGION \ + volumev2 public http://PUBLIC_VIP:8776/v2/%\(project_id\)s + $ openstack endpoint create --region $KEYSTONE_REGION \ + volumev2 admin http://10.0.0.11:8776/v2/%\(project_id\)s + $ openstack endpoint create --region $KEYSTONE_REGION \ + volumev2 internal http://10.0.0.11:8776/v2/%\(project_id\)s