In an ideal state, if the galera containers are shut down
cleanly, they will leave behind a gvwstate.dat file on each
node which provides the cluster member details so that it
can automatically start up again without intervention.
However, when imaging the MNAIO systems we only interact
with the hosts, so the galera containers sometimes do no
shut down cleanly.
To cater for this, we inspect the disk images for the
primary component, then build the gvwstate.dat file for
the other galera containers. With those put back into the
image, when the VM's start, the cluster forms immediately.
References:
http://galeracluster.com/documentation-webpages/pcrecovery.htmlhttp://galeracluster.com/documentation-webpages/restartingcluster.html
Change-Id: Icfe067607baefd661147f3c22ce846f06fff7c60