Remove internal use of vircmd
authorMartin Schwenke <martin@meltin.net>
Mon, 16 Mar 2015 04:21:19 +0000 (15:21 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Mon, 16 Mar 2015 04:49:59 +0000 (15:49 +1100)
commit604ac38ad38f7b920b72b8011d8ada0896aacac0
treeea65316124d640794028a65a731c6e2b395d585f
parentea99d69a193cac8e1a34992a993941dd428aeb5e
Remove internal use of vircmd

It is too easy to clobber/interact with domains that are no specified
in the cluster configuration.

Replace use of vircmd with new function virsh_cluster().  The only
possible loss here is that unmatched nodes may not be destroyed, so
duplicate IP addresses might occur when cluster configuration changes.
To try to avoid this a warning is printed by virsh_cluster() when
domains that are not part of the cluster are found to match
CLUSTER/CLUSTER_PATTERN.

Signed-off-by: Martin Schwenke <martin@meltin.net>
autocluster