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-2000909 haproxy vip:port not reachable

ALM-2000909 haproxy vip:port not reachable

Description

This alarm is generated when a port is inaccessible after it is checked by running the wget VIP:Port command.

Attribute

Alarm ID

Alarm Severity

Auto Clear

2000909

Critical

Yes

Parameters

Parameter

Description

Resource name

Name of the device for which the alarm is generated

Resource type

MONITOR

Monitor type

Service monitoring

Host IP address

IP address of the host

Details

Data in recent periods

Threshold

Threshold for generating an alarm

Impact on the System

The node bound to the floating IP address fails to interconnect with HAProxy. As a result, messages of the service cannot be normally forwarded by HAProxy.

Possible Causes

  • The involved floating IP address and the HAProxy node IP address are not in the same network segment.
  • The involved floating IP address and port are configured only on one HAProxy node and not configured on another HAProxy node.

Procedure

  1. Log in to ManageOne Maintenance Portal using a browser.

    • URL: https://Address for accessing the homepage of ManageOne Maintenance Portal:31943, for example, https://oc.type.com:31943
    • Default username: admin; default password: Huawei12#$

  2. On the menu bar in the upper part of the page, choose Alarms > Current Alarms.
  3. In the alarm list, locate the alarm to be handled, and click on the left of the alarm. The Details page is displayed.
  4. Choose Location Info, obtain the host IP address, that is, the IP address of the node where the alarm is generated.
  5. Use PuTTY to log in to the VM identified in 4.

    The default username is ulb. The default password is cnp200@HW.

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

    TMOUT=0

  7. Run the following command to switch to the root user:

    sudo su - root

    The default username is root. The default password is Cloud12#$.

  8. Run the following command to check whether the floating IP address is successfully bound to the HAProxy nodes:

    ip a

    • If yes, go to 9.
    • If no, bind the floating IP address to the HAProxy nodes again.

  9. Check whether the floating IP address and the HAProxy node IP address are in the same network segment.

    • If yes, go to 10.
    • If no, assign a floating IP address again and go to 10.

  10. Run the following command on two HAProxy nodes, respectively, to check whether the floating IP address is configured on the two nodes:

    cat /home/elb/keepalived/etc/keepalived/keepalived.conf

    ! Configuration File for keepalived
       vrrp_script chk_http_port {
       script "/home/elb/keepalived/script/check_haproxy.sh"interval 2weight 20
       }
        vrrp_instance VI_1 {
        state BACKUP
        nopreempt
        interface eth0
        virtual_router_id 162
        priority 100
        advert_int 1
        virtual_ipaddress {
             IP address
             ......
    
       }
       track_script {
       chk_http_port
       }
        notify_master "/home/elb/keepalived/script/notify.sh master"
        notify_backup "/home/elb/keepalived/script/notify.sh backup"
    }
    • If yes, go to 12.
    • If no, go to 11.

  11. Configure the floating IP address in the keepalived.conf file.
  12. Run the following command to check whether the floating IP address is conflict with other IP addresses:

    arping Floating IP address

    NOTE:

    If two MAC addresses are displayed, the floating IP address is conflict with other floating IP addresses.

    • If yes, assign a floating IP address again and go to 13.
    • If no, go to 13.

  13. Run the following commands to check whether the floating IP addresses in the haproxy.conf file and the keepalived.conf file of the corresponding service are consistent:

    cat /etc/haproxy/haproxy.cfg

    cat /home/elb/keepalived/etc/keepalived/keepalived.conf

    • If yes, contact technical support for assistance.
    • If no, go to 14.

  14. Run the following command to edit the haproxy.conf file:

    vim /etc/haproxy/haproxy.cfg

    listen Service name Planned floating IP address: Planned port number

  15. Run the following commands to restart the processes and then check whether the alarm persists:

    service keepalived restart

    service haproxy restart

    • If yes, contact technical support for assistance.
    • If no, no further action is required.

Reference

None

Translation
Download
Updated: 2019-08-30

Document ID: EDOC1100062365

Views: 35290

Downloads: 31

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