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).
ALM-6008 Failed to Upload Logs to the OBS Service

ALM-6008 Failed to Upload Logs to the OBS Service

Description

FusionSphere OpenStack periodically (default interval: 300s) checks whether logs are successfully uploaded to Universal Distributed Storage (OBS).

Attribute

Alarm ID

Alarm Severity

Auto Clear

6008

Major

Yes

Parameters

Name

Meaning

Fault Location Info

host_id: specifies the ID of the host for which the alarm is generated.

Additional Info

  • host_id: specifies the ID of the host for which the alarm is generated.
  • hostname: specifies the name of the host for which the alarm is generated.

Impact on the System

If the logs have no local backups, these logs are lost after the uploading fails.

Possible Causes

  • Network connection between the host and the OBS service is interrupted.
  • An ApacheProxy service exception occurred.
  • The IP address and port of the OBS service are not correctly configured in the log configuration file.
  • The space specified for storing logs on the OBS service is fully occupied.

Procedure

  1. Log in to the FusionSphere OpenStack web client.

    For details, see Logging In to the FusionSphere OpenStack Web Client (ManageOne Mode).

  2. On the Summary page, obtain the management IP address of the host in the OM IP Address column based on the host ID or host name in the alarm additional information.
  3. Use PuTTY to log in to the host for which the alarm is generated using the management IP address of the host.

    The default user name is fsp. The default password is Huawei@CLOUD8.

    The system supports both password and public-private key pair for identity authentication. If the public-private key pair is used for login authentication, see detailed operations in Using PuTTY to Log In to a Node in Key Pair Authentication Mode.

  4. Run the following command and enter the password of user root to switch to user root:

    su - root

    The default password of user root is Huawei@CLOUD8!.

  5. Run the following command to disable user logout upon system timeout:

    TMOUT=0

  6. 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] 

  7. Enter 1 to enable Keystone V3 authentication and enter the password of OS_USERNAME as prompted.

    Default account format: DCname_admin; default password: FusionSphere123.

An ApacheProxy service exception occurred.

  1. Perform the following operations to query the status of the ApacheProxy service:

    1. Run the following command to enter the secure operation mode:

      cpssafe

      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. Enter 1 to enable Keystone V3 authentication.

      Information similar to the following is displayed:

      Input command:
    3. Run the following command to query the status of the ApacheProxy service:

      cps template-instance-list --service apacheproxy apacheproxy

      Information similar to the following is displayed when the ApacheProxy service is deployed in active/standby mode.

      Information similar to the following is displayed when the ApacheProxy service is deployed on a single instance.

    • If the service status is fault, go to 9.
    • If the status is not fault, go to 12.

  2. Perform the following operations to stop the ApacheProxy service:

    1. Run the following command to enter the secure operation mode:

      cpssafe

      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. Enter 1 to enable Keystone V3 authentication.

      Information similar to the following is displayed:

      Input command:
    3. Run the following command to stop the ApacheProxy service:

      cps host-template-instance-operate --service apacheproxy apacheproxy --action stop

      Information similar to the following is displayed.

      Check whether the operation result is success.

    • If yes, go to 10.
    • If no, go to 17.

  3. Perform the following operations to start the ApacheProxy service:

    1. Run the following command to enter the secure operation mode:

      cpssafe

      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. Enter 1 to enable Keystone V3 authentication.

      Information similar to the following is displayed:

      Input command:
    3. Run the following command to start the ApacheProxy service:

      cps host-template-instance-operate --service apacheproxy apacheproxy --action start

      Information similar to the following is displayed.

      Check whether the operation result is success.

    • If yes, go to 11.
    • If no, go to 17.

  4. Perform the following operations to query the status of the ApacheProxy service:

    1. Run the following command to enter the secure operation mode:

      cpssafe

      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. Enter 1 to enable Keystone V3 authentication.

      Information similar to the following is displayed:

      Input command:
    3. Run the following command to query the status of the ApacheProxy service:

      cps template-instance-list --service apacheproxy apacheproxy

      Information similar to the following is displayed when the ApacheProxy service is deployed in active/standby mode.

      Information similar to the following is displayed when the ApacheProxy service is deployed on a single instance.

    • If the service status is not fault, go to 12.
    • If the service status is still fault, go to 17.

The IP address and port of the OBS service are not correctly configured in the log configuration file.

  1. Check whether the IP address of the OBS service is correct.

    • If yes, go to 14.
    • If no, go to 13.

  2. Run the following command to configure the OBS service IP address (policy_s3_host), access key (policy_s3_access_key), and secret key (policy_s3_secret_key):

    1. Run the following command to enter the secure operation mode:

      cpssafe

      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. Enter 1 to enable Keystone V3 authentication.

      Information similar to the following is displayed:

      Input command:
    3. Run the following command to configure the OBS service IP address (policy_s3_host), access key (policy_s3_access_key), and secret key (policy_s3_secret_key):

      log policy-set --parameter policy_s3_access_key=ACCESS_KEY policy_s3_secret_key=SECRET_KEY policy_s3_host=S3_HOST

      Check whether information similar to the following is displayed:

      +----------------------+----------------------------------+ 
        | Property             | Value                            | 
        +----------------------+----------------------------------+ 
        | policy_s3_access_key | 92514a3e0b5a4acbb532aba957a9d66f | 
        | policy_s3_host       | s3.dc1.domainname.com:5443       | 
        | policy_s3_secret_key | 3d99c09e38614b31930e349ec63842a3 | 
        +----------------------+----------------------------------+
    • If yes, go to 14.
    • If no, go to 17.

  3. Perform the following operations to upload the logs:

    1. Run the following command to enter the secure operation mode:

      cpssafe

      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. Enter 1 to enable Keystone V3 authentication.

      Information similar to the following is displayed:

      Input command:
    3. Run the following command to upload the logs:

      log log-flush --host Host ID

  4. After 5 minutes, perform the following operations to query the log uploading status of each component:

    1. Run the following command to enter the secure operation mode:

      cpssafe

      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. Enter 1 to enable Keystone V3 authentication.

      Information similar to the following is displayed:

      Input command:
    3. Run the following command to check the log uploading status of each component:

      log log-state-get --host Host ID

    • If the uploading time is displayed as the uploading status, go to 16.
    • If log flushing is displayed as the uploading status, repeat 15.
    • If not flushed yet is displayed as the uploading status, go to 17.

  5. After 1 minute, check whether the alarm is cleared.

    • If yes, no further action is required.
    • If no, go to 17.

  6. Contact technical support for assistance.

Related Information

None

Translation
Download
Updated: 2019-08-30

Document ID: EDOC1100062365

Views: 47720

Downloads: 33

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