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

FusionAccess V100R006C20 on FusionCloud V100R006C10 Software Installation Guide 11 (Microsoft AD)

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

After OpenStack is installed, the authentication mode is enabled by default. You need to manually import environment variables before executing the CPS and OpenStack commands.

The system provides scripts used for importing environment variables.

Prerequisites

  • The first FusionSphere OpenStack host has been installed.
  • You have logged in to the host as user root.

Procedure

  1. Run the following commands 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) 
     (4) openstack environment variable of cloud_admin (keystone v3) 
     please choose:[1|2|3|4]  

  2. Select an authentication mode.

    Currently, there are four available authentication modes, including the built-in DC administrator's Keystone V3 authentication, CPS authentication, and keystone V2 authentication, and the built-in cloud administrator's Keystone V3 authentication. Select the mode based on actual requirements.

    • To enable the built-in DC administrator's OpenStack Keystone V3 authentication, enter 1, press Enter, and enter the password of OS_USERNAME as prompted.

      The default password is FusionSphere123.

      The environment variables are successfully imported if the command outputs of the cps host-list and nova list commands are automatically displayed. After the environment variables are imported, the system uses the built-in DC administrator's Keystone V3 to authenticate requests. You can run CPS and OpenStack commands.

      In OpenStack Mitaka, Keystone command line interfaces (CLIs) are encapsulated as OpenStack commands. When the Identity service is registered as a V3 path, the original Keystone tenant/role/service commands cannot be executed due to compatibility issues. In FusionSphere OpenStack V100R006C10SPC301 installation, the default registered Identity endpoint is a V3 path. Therefore, after the installation is complete, use Keystone V3 for authentication and use OpenStack project/role/service commands with equivalent functions.

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

      The username is cps_admin and the default password 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 OpenStack command nova list after environment variables are imported. Therefore, the ERROR... message is displayed under the nova list output. Ignore the 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 OpenStack Keystone V2 authentication, enter 3, press Enter, and enter the password of OS_USERNAME as prompted.

      The default password is FusionSphere123.

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

      In FusionSphere OpenStack V100R006C10SPC301 installation, if Keystone V2 authentication is used, the original Keystone tenant/role/service commands cannot be executed due to compatibility issues. Keystone V2 is still supported to enable compatibility with earlier versions, but Keystone V3 is recommended for authentication.

    • To enable the built-in cloud administrator's OpenStack Keystone V3 authentication, enter 4, press Enter, and enter the password of cloud_admin (the built-in cloud administrator account) as prompted.

      The default password is FusionSphere123.

      The environment variables are successfully imported if the command outputs of the cps host-list and nova list commands are automatically displayed. After the environment variables are imported, the system uses the built-in cloud administrator's Keystone V3 to authenticate requests. You can run CPS and OpenStack commands.

    NOTE:
    • Use Keystone V3 authentication if FusionSphere OpenStack Management Console or ManageOne ServiceCenter is connected to the system.
    • If the operations must be performed using the cloud_admin account rights (for example, run the PasswordManager command to reset the account and its password of GaussDB), use the built-in cloud administrator's OpenStack Keystone V3 authentication.
    • If you select Keystone authentication when importing environment variables, the command output of cps host-list is normal but that of nova list is abnormal because nova-api has not been deployed. After deploying nova-api, you can run Nova commands.

  3. (Optional) In multi-DC scenarios, if each DC has an independent Glance service deployed, run the following command to import the OS_IMAGE_URL environment variable of the DC when importing environment variables:

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

    az.dc.domainname.com:443 is the Glance domain name configured for a DC.

Translation
Download
Updated: 2019-07-01

Document ID: EDOC1100021785

Views: 49449

Downloads: 108

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