No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

FusionStorage V100R006C20 Block Storage Service Software Installation Guide 07

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Importing Environment Variables

Importing Environment Variables

Scenarios

Manually import environment variables before running the CPS commands and OpenStack commands.

The system provides a quick script to import environment variables.

Prerequisites

You have installed the first host of FusionSphere OpenStack.

Procedure

    1. Run the following command to import environment variables:

      source set_env

      Information similar to the following is displayed:

      please choose environment variable which you want to import:
      (1) openstack environment variable (keystone v3)
      (2) cps environment variable
      (3) openstack environment variable legacy (keystone v2)
      please choose:[1|2|3] 

    2. Select an authentication mode.

      • To enable Keystone V3 authentication, enter 1, press Enter, and enter the password of OS_USERNAME as instructed.

        The default password is FusionSphere123.

        The environment variables are successfully imported if the command outputs of both cps host-list and nova list are automatically displayed. After the environment variables are imported, the system uses Keystone V3 to authenticate requests, and you can run CPS and OpenStack commands.

        To use Keystone authentication, ensure that Keystone is successfully connected. Therefore, Keystone authentication is available only after FusionSphere OpenStack is successfully deployed. Keystone V3 authentication is recommended after FusionSphere OpenStack is installed and deployed.

      • To enable CPS authentication, enter 2, press Enter, and enter the password of CPS_USERNAME as instructed.

        The default password of user cps_admin is FusionSphere123.

        The environment variables are successfully imported if the command output of cps host-list is automatically displayed. After the environment variables are imported, the system uses CPS to authenticate requests, and you can run only CPS commands. The system automatically runs the OpenStack command nova list after environment variables are imported. Therefore, the "ERROR..." message is displayed under the nova list output. Ignore this message.

        CPS authentication is recommended only when Keystone authentication is not available, for example when FusionSphere OpenStack deployment is not complete, or an exception has occurred in Keystone authentication.

      • To enable Keystone V2 authentication, enter 3, press Enter, and enter the password of OS_USERNAME as instructed. The default password is FusionSphere123.

        The environment variables are successfully imported if the command outputs of both cps host-list and nova list are automatically displayed. After the environment variables are imported, the system uses Keystone V2 to authenticate requests, and you can run CPS and OpenStack commands.

      NOTE:
      1 and 3 indicate the Keystone V3 and V2 authentication modes, respectively.
      • 3 indicates the Keystone V2 authentication mode used before FusionSphere OpenStack V100R006C10.
      • 1 indicates the Keystone V3 authentication mode used in FusionSphere OpenStack V100R006C10. This authentication mode is compatible with Keystone V2.
        • When FusionManager or ServiceCenter is connected to the system, use the Keystone V3 authentication mode.
        • In other scenarios, you can use either Keystone V2 or V3 authentication mode. Keystone V3 authentication is recommended.

    3. (Optional) Run the following command when importing DC environment variables to import the OS_IMAGE_URL environment variable of the DC if each DC has a dedicated Glance service deployed in multi-DC scenarios:

      export OS_IMAGE_URL=https://image.az.dc.domainname.com:443

      az.dc.domainname.com:443 specifies the Glance service domain name of the DC.

Translation
Download
Updated: 2019-06-29

Document ID: EDOC1100016637

Views: 23796

Downloads: 14

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next