Skip to main content

Collect data for support

Collect this data if the pages of the Troubleshooting section did not help. Collect what you have access to: the Center web interface, the nodes, the management VM (the virtual machine where Center runs).

Before you begin​

  • Do not refresh the browser tab where the failure occurred, and do not sign out of the web interface: this clears Log at the bottom of the page.
  • To export the security event log, you need the Cluster master or Security Admin role.

1. From the web interface​

  1. Write down the name and ID of the object and its virtual data center (VDC). For a pool — Name, GUID and Current node in the Pools table.
  2. Write down the time of the failure with the time zone and the action after which it occurred, for example Actions → Start.
  3. Copy the text of the notification exactly.
  4. Click Log at the bottom of the web interface: it shows the last 50 requests from this tab. Copy the request row: ID, Action, Method, Status, Report, Start Time and End time.
  5. Find the task in Tasks — the Tasks button at the bottom of the web interface or Provider Data Center → Tasks. Open it and copy Task ID, Status and Reason — View tasks and terminate a stuck one.
  6. For a VM — open its page, expand Event history and take a screenshot of the statuses for the time of the failure.
  7. Export the security event log for the time of the failure: Security Event Log → the period in the Select date field → CSV or JSON above the table — View the security event log and archive.
  8. Copy the line at the bottom right of the web interface: Version, Git hash and Build date. Center fills in the Version field at every installation and upgrade; if it is missing, write down the version of the Center package on the management VM — step 3.

2. From the nodes​

Save the output of these commands from each node you can reach over SSH. The commands only read the state — View the cluster state on a node.

date -u
vstack-cluster status
vstack-cluster service status
zpool status
vstack-vm vm list
ls /dev/vmm
freebsd-version -kru
pkg query '%n %v' | grep -iE '^(vstack|FreeBSD-kernel|cpu-microcode)'
pkg check -d -a

Back up the node configuration together with the last lines of the logs — with the --no-secrets option, so that password files and the private keys of the node do not get into the archive. You run the command on your workstation, and it changes nothing on the node except the collection directory — Back up the node configuration:

ssh root@<node> 'sh -s -- --tag <label> --no-secrets --with-logs --tar' < vstackos.config-backup.sh

The archive is /root/vstackos-config-backup/<cluster>/<UTC date>/vstackos-config-backup-<node>-<date>.tar.gz on the node.

If the node did not boot — for example, the screen shows X64 Exception or the boot loader prompt — attach a screenshot of the BMC console.

If the failure happened during a node update — Update nodes to 3.2.6 — attach the files of the update script run from the node:

  • the log /root/upgrade-326/update.log; if the script was run without --log — /var/log/vstack-os-update-<time>.log;
  • /root/upgrade-326/update.out, update.rc, dry.out;
  • the summary /var/backups/update-summary-<time>.txt, the files /var/backups/versions-before-<time>.txt and versions-after-<time>.txt;
  • /var/backups/swap-wipe.pending, if it exists.

3. From the management VM​

Save the output of these commands from the management VM. Connect over SSH to the web interface address — it is the address of the management VM.

date -u
df -h /
service vstack_center_dispatcher status
service vstack_center_endpoint status
service rabbitmq status
service postgresql status
service angie status
freebsd-version -kru
pkg query '%n %v' vstack-center vstack-center-dispatcher vstack-center-endpoint vstack-center-web
service -e | grep -iE 'vstack|postgres|rabbit|influx|angie'

What the responses mean — Cluster web interface and API are unavailable.

Attach the logs of the Center services for the day of the failure: /var/log/vstack-center-dispatcher/<date>.log and /var/log/vstack-center-endpoint/<date>.log.

Check the result​

You have the object and the time of the failure, the error text, the row from Log and the task data from Tasks, for a VM — a screenshot of Event history, the security event log export, the Center version, and the command output from the nodes and the management VM you had access to. With this data, contact support — Where to get help.

Where to get help​

  1. First, contact the partner or integrator who maintains your cluster.
  2. vStack technical support — by email at support@vstack.com.

If work has stopped at a step of an instruction, do not proceed to the next steps: leave the cluster in the state that the instruction page describes for a stop — for example, Update nodes to 3.2.6. In your request, specify:

  • the instruction page, the step number and the output of its check — as is, as text;
  • what has already been done after the last successful step.

What not to do​

  • Do not attach the /var/db/vstack/secrets/ directory, the center.cred file from your workstation, or the whole /usr/local/etc/vstack/settings.yml file from the management VM: center.cred holds the password of the Center account, and settings.yml can contain passwords.
  • Do not attach a Center database dump until support asks for it.
  • Do not attach a node configuration archive taken without --no-secrets: it contains password files and the private keys of the node.

Next​