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

eSight V300R010C00 Maintenance 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).
3rd Party OpenStack Command Reference

3rd Party OpenStack Command Reference

List of commands used by different application in 3rd Party OpenStack.

NOTE:

V300R010C00SPC500 does not support virtualization management (3rd Openstack).

Sensu Command

List of Sensu Commands for Management and Maintenance.

Command used for basic usage mentioned in this document, for detailled Command list refer respective porduct website

Software Name

Software Version

Web Site

Sensu Client

As per Redhat OpenStack 10.0 Support

https://sensuapp.org/

Check the status of Sensu Clients

This topic explain the procedure to check the status of Sensu Clients.

Procedure
  1. Login to Redhat OpenStack controller/compute/ceph node using root user
  2. Run the below command to check the status

    # systemctl status sensu-client

Start or Restart Sensu Clients

This topic explain the procedure to start or restart Sensu Clients.

Performing the operation will have the business impact on collecting alarm and performance meters for Redhat OpenStack. It is suggested to perform the operation during maintenance period with prior operation approvals.

Procedure
  1. Login to Redhat OpenStack controller/compute/ceph node using root user
  2. Run the below command to perform the operation

    # /etc/sensu/restart_sensu.rb

    After running the command, enter the password for rabbitmq user when prompted.

    Enter Password for RABBITMQ user sensu:

Batch Start or Restart Sensu Clients

This topic explain the procedure to batch start or restart Sensu Clients.

Performing the operation will have the business impact on collecting alarm and performance meters for Redhat OpenStack. It is suggested to perform the operation during maintenance period with prior operation approvals.

Prerequisite

Configure conf.txt file.

Procedure
  1. Login to Redhat OpenStack undercloud node using stack user
  2. Run the below command to perform the operation

    > cd /home/stack/eSight/sensu/Deploy/

    > sh restartSensu.sh

    After running the command, enter the password for rabbitmq user when prompted. Enter twice to confirm.

    Password for RABBITMQ user sensu: 
    Enter password again :

Batch Configure RabbitMQ

This topic explain the procedure to batch configure RabbitMQ.

Performing the operation will have the business impact on collecting alarm and performance meters for Redhat OpenStack. It is suggested to perform the operation during maintenance period with prior operation approvals.

Prerequisite

Configure conf.txt file.

Procedure
  1. Login to Redhat OpenStack undercloud node using stack user
  2. Run the below command to perform the operation

    > cd /home/stack/eSight/sensu/Deploy/

    > sh configureRabbitMQInfoForSensuClient.sh

    After running the command, enter the password for rabbitmq user when prompted. Enter twice to confirm.

    Password for RABBITMQ user sensu: 
    Enter password again :

    After viewing the rabbitMQ JSON generated, enter 'y' to continue.

    [QUESTION] Continue?(y/n): 

Configure OpenStack Services

This topic explain the procedure to configure OpenStack services.

Prerequisite

Configure conf.txt file.

Procedure
  1. Login to Redhat OpenStack undercloud node using stack user
  2. Run the below command to perform the operation

    > cd /home/stack/eSight/sensu/Deploy/

    > sh configureOpenStackService.sh

    After running the command, type yes at the below prompt to confirm.

    Configuring and restarting HA Proxy service. 
    /etc/haproxy/haproxy.cfg will be modified. 
    haproxy service will be restarted.
    Are you sure to continue?(y/n):

    The deployment is successful if the following information is displayed.

    [INFO] Configurations completed successfully.

NOTE:

HAProxy restart will cause all the REDHAT OPENSTACK services to be unavailable during restart, most of the functionality will be impacted. This is very critical. Perform this restart only after analyzing the impact of unavailable services, and at a time where impact of restart can be minimized. Till the time HA proxy is not restarted after configuration, the alarm 10051 will not be monitored properly in eSight.

RabbitMQ Command

List of RabbitMQ Commands for Management and Maintenance

Command used for basic usage mentioned in this document, for detailed Command list refer respective product website

Software Name

Software Version

Web Site

rabbitmq

RabbitMQ 3.7.9

https://www.rabbitmq.com/

erlang

Erlang 21.2

https://www.erlang.org/

Start RabbitMQ Server

To start RabbitMQ server

Utility

To start RabbitMQ server

Syntax
./rabbitmq-server -detached
Path
/opt/rabbitmq/rabbitmq_server-3.7.9/sbin
Prerequisite
  • Erlang is installed
  • RabbitMQ server is installed.
Parameter Description

Parameter

Description

-detached

To start the RabbitMQ Service in background

Precautions

Performing the operation will have the business impact on collecting alarm and performance meters for Redhat OpenStack. It is suggested to perform the operation during maintenance period with prior operation approvals.

Example
  1. Log in to the eSight server as the rabbitmq user and enter the following directory.

    > cd /opt/rabbitmq/rabbitmq_server-3.7.9/sbin

  2. Start the rabbitmq using below command

    > ./rabbitmq-server -detached

    After the command is successfully executed, the following information is displayed

    Warning: PID file not written; -detached was passed.

Stop RabbitMQ Server

To stop RabbitMQ server

Utility

To stop RabbitMQ server

Syntax
./rabbitmqctl stop
Path
/opt/rabbitmq/rabbitmq_server-3.7.9/sbin
Prerequisite
  • Erlang is installed
  • RabbitMQ server is installed.
  • RabbitMQ is running
Precautions

Performing the operation will have the business impact on collecting alarm and performance meters for Redhat OpenStack. It is suggested to perform the operation during maintenance period with prior operation approvals.

Example
  1. Log in to the eSight server as the rabbitmq user and enter the following directory.

    > cd /opt/rabbitmq/rabbitmq_server-3.7.9/sbin

  2. Stop the rabbitmq using below command

    > ./rabbitmqctl stop

    After the command is successfully executed, the following information is displayed:

    Stopping and halting node rabbit@eSightServer ...

Check RabbitMQ Server Status

To Check RabbitMQ server status

Utility

To check RabbitMQ server

Syntax
./rabbitmqctl status
Path
/opt/rabbitmq/rabbitmq_server-3.7.9/sbin
Prerequisite
  • Erlang is installed
  • RabbitMQ server is installed.
  • RabbitMQ is running
Parameter Description

Parameter

Description

status

To check status of the RabbitMQ Service

Precautions

NA

Example
  1. Log in to the eSight server as the rabbitmq user and enter the following directory.

    > cd /opt/rabbitmq/rabbitmq_server-3.7.9/sbin

  2. Check the RabbitMQ server status using below command

    > ./rabbitmqctl status

Add RabbitMQ Connection User

Command instructs the RabbitMQ broker to create a (non-administrative) user with (initial) password.

Utility

Command instructs the RabbitMQ broker to create a (non-administrative) user with (initial) password.

Syntax
./rabbitmqctl add_user {username} {password}
Path
/opt/rabbitmq/rabbitmq_server-3.7.9/sbin
Prerequisite
  • Erlang is installed
  • RabbitMQ server is installed.
  • RabbitMQ is running
Parameter Description

Parameter

Description

Username

The name of the user to create

password

The password the created user will use to log in to the broker.

Precautions

NA

Example
  1. Log in to the eSight server as the rabbitmq user and enter the following directory.

    > cd /opt/rabbitmq/rabbitmq_server-3.7.9/sbin

  2. Add the rabbitmq connection user using below command

    > ./rabbitmqctl add_user sensu Changeme_123

    After the command is successfully executed, the following information is displayed:

    Creating user "sensu" ...

Delete RabbitMQ Connection User

Ensure the operation done at the system maintenance period, since during this period Alarms and Some of the resource information will not be collected from OpenStack

Utility

Command instructs the RabbitMQ broker to delete a (non-administrative) user

Syntax
./rabbitmqctl delete_user {username}
Path
/opt/rabbitmq/rabbitmq_server-3.7.9/sbin
Prerequisite
  • Erlang is installed
  • RabbitMQ server is installed.
  • RabbitMQ is running
Parameter Description

Parameter

Description

Username

The name of the user to delete

Precautions

Performing the operation will have the business impact on collecting alarm and performance meters for Redhat OpenStack. It is suggested to perform the operation during maintenance period with prior operation approvals.

Example
  1. Log in to the eSight server as the rabbitmq user and enter the following directory.

    > cd /opt/rabbitmq/rabbitmq_server-3.7.9/sbin

  2. Delete the RabbitMQ Connection user using below command

    > ./rabbitmqctl delete_user sensu1

    After the command is successfully executed, the following information is displayed:

     Deleting user "sensu1" ...

Change RabbitMQ Connection User Password

This command instructs the RabbitMQ broker to change the password for the user

Utility

This command instructs the RabbitMQ broker to change the password for the user

Syntax
./rabbitmqctl change_password {username} {newpassword}
Path
/opt/rabbitmq/rabbitmq_server-3.7.9/sbin
Prerequisite
  • Erlang is installed
  • RabbitMQ server is installed.
  • RabbitMQ is running
Parameter Description

Parameter

Description

Username

The name of the user whose password is to be changed.

newpassword

The new password for the user.

Precautions

Performing the operation will have the business impact on collecting alarm and performance meters for Redhat OpenStack. It is suggested to perform the operation during maintenance period with prior operation approvals.

Example
  1. Log in to the eSight server as the rabbitmq user and enter the following directory.

    > cd /opt/rabbitmq/rabbitmq_server-3.7.9/sbin

  2. Change the rabbitmq connection password using below command

    > ./rabbitmqctl change_password sensu Changeme_123

    After the command is successfully executed, the following information is displayed:

    Changing password for user "sensu" ....

Add RabbitMQ Connection Vhost

To add new Vhost

Utility

To add new Vhost

Syntax
sh create_vhost.sh
Path
/opt/rabbitmq/scripts
Prerequisite
  • Erlang is installed
  • RabbitMQ server is installed.
  • RabbitMQ is running
Example
  1. Log in to the eSight server as the rabbitmq user and enter the following directory.

    > cd /opt/rabbitmq/scripts

  2. Execute the following command

    > sh create_vhost.sh

    Enter the name of the Vhost when promted,

    [QUESTION] Provide the vhost name to create..: sensu_2

    The following information is displayed:

    Creating vhost "/sensu_2" ...

    Enter the username to grant access to the new vhost when prompted.

    [QUESTION] Provide the user name to grant access to the above virtual host.. (default user is sensu): sensu

    After the command is successfully executed, the following information is displayed:

    Setting permissions for user "sensu" in vhost "/sensu_2"
    /sensu_2 created successfully and authorised to sensu..

List RabbitMQ Connection User

Command instructs the list of user in RabbitMQ

Utility

This command instructs the list of user in RabbitMQ

Syntax
./rabbitmqctl list_users
Path
/opt/rabbitmq/rabbitmq_server-3.7.9/sbin
Prerequisite
  • Erlang is installed
  • RabbitMQ server is installed.
  • RabbitMQ is running
Parameter Description

Parameter

Description

list_users

To check the list of users of the RabbitMQ Service

Precautions

NA

Example
  1. Log in to the eSight server as the rabbitmq user and enter the following directory.

    > cd /opt/rabbitmq/rabbitmq_server-3.7.9/sbin

  2. List the rabbitmq users using below command.

    > ./rabbitmqctl list_users

    After the command is successfully executed, the following information is displayed:

    Listing users ...
    guest [administrator]
    sensu [administrator]
    sensu1      [administrator] 

Modify RabbitMQ Certificate

This command instructs to generate and modify the rabbitmq certificate

Syntax
sh modify_certs.sh
Path
/opt/rabbitmq/scripts
Prerequisite
  • Erlang is installed
  • RabbitMQ server is installed.
  • RabbitMQ is running
Parameter Description

NA

Precautions

Performing the operation will have the business impact on collecting alarm and performance meters for Redhat OpenStack. It is suggested to perform the operation during maintenance period with prior operation approvals.

Example
  1. Log in to the eSight server as the rabbitmq user and enter the following directory.

    > cd /opt/rabbitmq/scripts

  2. List the rabbitmq users using below command

    > sh modify_certs.sh

    After the command is successfully executed, need to provide the certificate password:

    [INFO] Started generating certificates.....
    [QUESTION] Please provide certificate password.
    Password should contain minimum 5 characters and maximum 15 characters..:
    [QUESTION]
    Please provide certificate password again (confirmation)...:
    [INFO]
    Password matched .....
    [INFO]  Regenerated the SSL certificates.
    [INFO]  Restart the RabbitMQ..!
    [INFO]  To stop RabbitMQ service:   sh stop_rabbitmq.sh
    [INFO]  To start RabbitMQ service:   rabbitmq-server –detached

  3. New certificate can be found in /opt/rabbitmq/rabbitmq_server-3.7.9/ssl directory.
RabbitMQ Scripts

Section explains the use of scripts of RabbitMQ.

Prerequisites
  1. Go to /opt/rabbitmq/scripts directory.

    > cd /opt/rabbitmq/scripts

  2. It must contain following scripts or configurations :

    create_vhost.sh
    generate_certs.sh
    log4sh.sh
    log_rotation_job.sh
    log_rotation.sh
    modify_certs.sh
    openssl.cnf
    uninstall_rabbitmq.sh

log_rotation.sh
  1. This scripts is used to rotate the log.
  2. Run this script as

    > sh log_rotation.sh

log_rotation_job.sh
  1. This script will start a cron job to rotate the rabbitmq log.
  2. Run this scripts as

    > sh log_rotation_job.sh

uninstall_rabbitmq.sh
  1. This script will uninstall the rabbitmq and erlang
  2. Run this script as

    > sh uninstall_rabbitmq.sh

    Performing the operation will have the business impact on collecting alarm and performance meters for Redhat OpenStack. It is suggested to perform the operation during maintenance period with prior operation approvals

modify_certs.sh
  1. This script will generate and modify the rabbitmq certificate
  2. Run this script as

    > sh modify_certs.sh

    Performing the operation will have the business impact on collecting alarm and performance meters for Redhat OpenStack. It is suggested to perform the operation during maintenance period with prior operation approvals.

create_vhost.sh
  1. This script will add new vhost to specified user.
  2. Run this script as :

    > sh create_vhost.sh

Translation
Download
Updated: 2019-06-30

Document ID: EDOC1100044373

Views: 24763

Downloads: 74

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