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

HUAWEI CLOUD Stack 6.5.0 Alarm and Event Reference 04

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

Scenario

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.
  • You have logged in to the host as user root.

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

  2. Select an authentication mode.

    Four authentication modes are available: Keystone V3 authentication with the built-in DC administrator, CPS authentication, Keystone V2 authentication, and Keystone V3 authentication with the built-in cloud administrator. You need to select a mode based on the following descriptions:

    • To enable Keystone V3 authentication with the built-in DC administrator, 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 cps host-list and nova list are automatically displayed. After the environment variables are imported, the system uses the built-in DC administrator's Keystone V3 to authenticate requests. CPS and OpenStack commands can be executed.

      In the Mitaka release of OpenStack, Keystone command line interfaces (CLIs) are normalized and encrypted 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. Preferentially 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 username 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 nova list after environment variables are imported. Therefore, the "ERROR..." message is displayed in the command output.

      CPS authentication is recommended only when the FusionSphere OpenStack deployment is incomplete, OpenStack authentication is unavailable, 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 prompted.

      The default password is FusionSphere123.

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

      Keystone V2 authentication is still supported to enable compatibility with earlier versions, but Keystone V3 authentication is recommended.

    • If Keystone V3 of the built-in cloud administrator is used for authentication, enter 4, press Enter, and enter the password of cloud_admin (the built-in cloud administrator) as prompted.

      The default password is FusionSphere123.

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

    NOTE:
    • If Service OM or ManageOne is connected, use the Keystone V3 authentication mode.
    • If the operations must be performed using the cloud_admin account rights (for example, run the PasswordManager command to reset the GaussDB database account and its password), 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. In multi-DC scenarios, if each DC has an independent Glance service deployed, run the following command to import OS_IMAGE_URL when importing environment variables for each DC:

    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-08-30

Document ID: EDOC1100062365

Views: 37352

Downloads: 31

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