When debugging it's great to have a unified method of collecting
necessary support bundles for the VMware environment.
This commit adds a script to collect support bundles. It collects
information that could possibly result in a botched deployment such
as general network information, route tables, anyip configuration,
and HAProxy and Dataplane API logs.
Verification
Deployed HAProxy and collected support bundles. Verified that the support bundles were collected successfully.
root@haproxy [ ~ ]# ls
haproxy-2.2.2.rpm
root@haproxy [ ~ ]# haproxy-support
Starting support bundle collection
Support bundle collected at /root/haproxy-support.tgz
root@haproxy [ ~ ]# tar xzf haproxy-support.tgz
root@haproxy [ ~ ]# ls
etc haproxy-2.2.2.rpm haproxy-support.tgz var
root@haproxy [ ~ ]# find etc
etc
etc/haproxy
etc/haproxy/ca.key
etc/haproxy/ca.srl
etc/haproxy/server.key
etc/haproxy/server.crt
etc/haproxy/haproxy.cfg.lkg
etc/haproxy/.haproxy.cfg.lkg699114575
etc/haproxy/dataplaneapi-version
etc/haproxy/haproxy.cfg
etc/haproxy/dataplaneapi.cfg
etc/haproxy/ca.crt
etc/haproxy/haproxy-version
etc/vmware
etc/vmware/route-tables.cfg
etc/vmware/anyip-routes.cfg
root@haproxy [ ~ ]# find var
var
var/log
var/log/vmware-vmtoolsd-root.log
var/log/vmware-vgauthsvc.log.0
var/log/cloud-init.log
var/log/btmp
var/log/vmware-vmsvc-root.log
var/log/vmware-network.log
var/log/wtmp
var/log/haproxy.log
var/log/network-info.log
var/log/cloud-init-output.log
var/log/conntrackd-stats.log
var/log/routes.log
var/log/lastlog
var/log/vmware
var/log/vmware/net-postconfig.log
var/log/vmware/ovf-to-cloud-init.log
var/log/vmware/new_cert.log
var/log/anyip.log
var/log/private
root@haproxy [ ~ ]# cat var/log/network-info.log | grep - -A 3
--- IP TABLES ---
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
--- IP ADDRS ---
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
--
--- IP ROUTES ---
default via 10.182.63.254 dev management proto static
10.182.48.0/20 dev management proto kernel scope link src 10.182.61.109
172.16.10.0/24 dev frontend proto kernel scope link src 172.16.10.2
--
--- IP ROUTE TABLE LOCAL ---
broadcast 10.182.48.0 dev management proto kernel scope link src 10.182.61.109
local 10.182.61.109 dev management proto kernel scope host src 10.182.61.109
broadcast 10.182.63.255 dev management proto kernel scope link src 10.182.61.109
--
--- IP ROUTE TABLES ---
rtctl_workload
default via 192.168.1.1 dev workload proto static
192.168.0.0/16 dev workload proto kernel scope link src 192.168.1.2
--
--- OPEN PORTS ---
sshd 941 root 3u IPv4 19584 0t0 TCP 10.182.61.109:22 (LISTEN)
dataplane 1422 root 6u IPv4 32303 0t0 TCP 10.182.61.109:5556 (LISTEN)
dataplane 1422 1423 dataplane root 6u IPv4 32303 0t0 TCP 10.182.61.109:5556 (LISTEN)
3 Add support bundle collection script
When debugging it's great to have a unified method of collecting necessary support bundles for the VMware environment.
This commit adds a script to collect support bundles. It collects information that could possibly result in a botched deployment such as general network information, route tables, anyip configuration, and HAProxy and Dataplane API logs.
Verification
Deployed HAProxy and collected support bundles. Verified that the support bundles were collected successfully.