IBM Cloud Orchestrator, Version 2.5.0.8

Configuring V3 API endpoints for Keystone

You must create Keystone V3 endpoints and delete V2 endpoints for IBM® Cloud Orchestrator. Verify in the documentation of your OpenStack distribution if your installation already uses Keystone V3 API or still the V2 API. Also verify if the V2 endpoints still exists. The sample script as described in this procedure assumes that Keystone V2 is still used. This means that the V2 endpoints still exist and no V3 endpoints are defined. If your OpenStack installation is different, you must adapt the sample scripts accordingly.

Before you begin

Ensure that the IBM Cloud Orchestrator extensions for Horizon are installed on each OpenStack server, as described in Installing the IBM Cloud Orchestrator extensions for Horizon.

Ensure that you copied the configure_endpoints.sh script from the IBM Cloud Orchestrator server, as described in Copying the IBM Cloud Orchestrator scripts to the OpenStack servers.

Verify in the documentation of your OpenStack distribution if your installation already uses Keystone V3 API or still the V2 API. Also verify if the V2 endpoints still exists. The sample script in this procedure assumes that Keystone V2 is still used. This means that the V2 endpoints still exist and no V3 endpoint is defined. If your OpenStack installation is different, you must adapt the sample script accordingly.

About this task

You must run the configure_endpoints.sh script on an OpenStack server where the Keystone and OpenStack command line is installed and configured. Usually, this server is the master controller server where the Keystone service is running. You must run the script only once. OpenStack command line client must be version 1.0.3 or later.

The script creates endpoints for the Keystone V3 API and deletes the endpoints for Keystone V2 API. It does this operations for all the regions.

In this procedure, the example scripts directory on the OpenStack server is /opt/ico_scripts. Replace this value with the appropriate value for your installation.

Procedure

  1. Log on to the OpenStack server as a root user.
  2. Change directory to the directory where you store the IBM Cloud Orchestrator scripts:
    cd /opt/ico_scripts
  3. Set the environment to the correct OpenStack values. Most OpenStack distributions provide an RC file containing these values, for example /root/openrc or /root/keystonerc. Run the following command:
    source /root/openrc
    If an RC file is not provided by your OpenStack distribution, set the values manually, for example:
    export OS_USERNAME=admin
    export OS_PASSWORD=openstack1
    export OS_TENANT_NAME=admin
    export OS_AUTH_URL=http://192.0.2.68:5000/v2.0
    export OS_REGION_NAME=kvm-allinone2
    export OS_VOLUME_API_VERSION=2
    Values might differ for your OpenStack distribution.
  4. Run the script:
    ./configure_endpoints.sh

Results

Keystone V3 endpoints are created and V2 endpoints are deleted.