Collecting diagnostic information for HAProxy used with vSphere with Tanzu
search cancel

Collecting diagnostic information for HAProxy used with vSphere with Tanzu

book

Article ID: 370254

calendar_today

Updated On:

Products

VMware vSphere with Tanzu vSphere with Tanzu

Issue/Introduction

Although the HAProxy appliance is not supported by VMware, to investigate and isolate a HAProxy related issue, it is necessary to collect diagnostic information from the HAProxy load balancer and the TKGs Supervisor Cluster.

This article will provide necessary steps to collect this information.

Environment

vSphere with Tanzu 

HAProxy Load Balancer Virtual Appliance

Resolution

  • Collect diagnostic information from HAProxy Appliance VM
    • SSH login to  the HAProxy VM
    • Run "haproxy-support" command
    • Copy and upload the file /root/haproxy-support.tgz

  • Collect LBAPI logs from a Supervisor Control Plane VM. Follow this KB article for instructions to SSH login to the supervisor VM.
    • SSH login to a Supervisor VM
    • Collect logs from all lbapi pods
      • List lbapi pods using the command, kubectl get pod -A | grep lbapi
        vmware-system-lbapi                         vmware-system-lbapi-lbapi-controller-manager-7949685bff-7jvq2     2/2     Running     6 (25d ago)    34d
        vmware-system-lbapi                         vmware-system-lbapi-lbapi-controller-manager-7949685bff-jd9cq     2/2     Running     4 (25d ago)    34d
      • Export logs from the manager container within the lbapi pods.
        • kubectl logs vmware-system-lbapi-lbapi-controller-manager-7949685bff-7jvq2 -c manager -n vmware-system-lbapi > lbapi_1.log
        • kubectl logs vmware-system-lbapi-lbapi-controller-manager-7949685bff-jd9cq -c manager -n vmware-system-lbapi > lbapi_2.log
    • Copy and upload the exported log files lbapi_1.log & lbapi_2.log 

Additional Information

Note - As clearly stated in below documentation, a support contract is required with HAProxy to get technical support for the HAProxy load balancer. VMware GSS cannot provide support for the HAProxy appliance.
https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-with-tanzu-concepts-planning/GUID-1F885AAE-92FF-41E6-BF04-0F0FD4173BD9.html