| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
|
|
|
|
|
|
| |
This stop it eating standard input.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
Just in case previous version was automatically saved.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
|
|
|
|
|
|
| |
New configuration variable NETWORK_STACK.
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
|
|
|
|
|
|
|
| |
This removes the /24 assumption, embeds the prefix into the ip field
and calculates netmask in the only place it is needed.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
Allows calculation of netmask from prefix.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
This allows removal of a kludge in guess_install_network().
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
| |
Otherwise, if the list of NODES is changed so that nodes are renamed,
then old nodes will come back when the new cluster is booted and
madness will ensue.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
| |
An early step in making cluster_setup.sh independent of autocluster.
* autocluster generates cluster_setup.config during base setup
* cluster_setup.sh sources this configuration file
* cluster_setup.sh sources the per-task scripts
* cluster_setup.sh now exits on first error
* Replace @@ templates in scripts with variable references
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
| |
No use having them print the format string. That actually makes it
more restrictive. Instead, have the functions take cluster name and
index as arguments - these can then be passed to printf in either
order depending on the format string.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
| |
Replace the hardcoded node name regexp with a generated one. Detailed
comments are required to describe the construction of the new regexp.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
... and just call it once before doing any cluster operations.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Reduce the amount of work needed to define how to create a new node
type.
* Each node type definition needs to define node_name_format_<TYPE>()
* Node types that should be part of the CTDB cluster should define
node_is_ctdb_node_<TYPE>() and have it echo 1
* Nodes need not define create_node_<TYPE>() if they don't do anything
unusual.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
The backward compatibility hacking is horrible!
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove configuration variable CLUSTER_TYPE
* Add "build" node type
* Rename setup scripts for "ad" and "build" node type
* Separate out some setup_node_nas.sh from setup_cluster_nas.sh
* Make install_packages.sh and cluster_setup.sh more verbose
* Separate out clusterfs_setup.sh
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
Rewrite cluster_setup() to factor out the common SSH bits.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Single entry point is now setup_cluster.sh.
* Rename old setup_cluster.sh to setup_cluster_nas.sh.
* Split setup_ad_server.sh into install_ad_server.sh and
setup_cluster_ad_server.sh.
* Split setup_build.sh into install_build.sh and
setup_cluster_build.sh.
* Rename setup_gpfs.sh to setup_clusterfs_gpfs.sh.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* New script install_packages.sh is the single entry-point for
installing packages outside kickstart.
* New configuration variable CONFIG_EXTRA_PACKAGES has space-separated
list of extra packages to install. This can help if dependencies
are broken.
* Rename install_gpfs_nas.sh to just install_nas.sh, now just installs
packages (e.g. samba, ctdb, rssh) to support protocols.
* Rename install_gpfs.sh to install_clusterfs_gpfs.sh to provide a
hook to support installation of alternate cluster filesystem
packages.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
| |
It can either be specified in the configuration file via the CLUSTER
variable. If it isn't set there then if the configuration file name
is of the form "foo.autocluster" then the cluster name is "foo".
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
| |
About to introduce "noun verb ..." and want to avoid $command being a
noun. :-)
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
Use "autocluster -e test_proxy" instead.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A previous commit meant that the value of GATEWAY is no longer used as
the gateway for the default network route, so renaming the variable
adds clarity.
This means that GATEWAY is no longer available to kickstart via the
basic post-install script. So generate some new variables INSTALL_GW
and INSTALL_IP in create_base() and tweak the post-install logic to
use them.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It now goes into one of the ifcfg-eth* files instead of
/etc/sysconfig/network.
NetworkManager in RHEL 7.0 seems to have a horrible bug. If GATEWAY
is defined in /etc/sysconfig/network and if it brings up the "wrong"
interface first then it adds a host route to the gateway on the
"wrong" network. This means that outbound traffic is OK. However,
for incoming traffic, ARP responses go out the "wrong" interface and
are either filtered on the node or are ignored by the host machine.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
On RHEL7 most useful boot-time logging disappears.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
| |
Force this to avoid any potential generation of "well known" names.
Simplify the ifcfg-* generation code here, since template subsitution
is not necessary.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
| |
RHEL 7.0 kickstart fails on "key" directive so remove this "feature".
We haven't actually used it for a long time. If needed then do it
post-kickstart.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It no longer supports ks=floppy and needs inst.stage2 to point to the
DVD image.
Label the "floppy" as "KICKSTART" regardless of the version - this
does no harm.
If running RHEL >= 7 then set up the kickstart "floppy" as a hard disk
in libvirt and have the kernel command-line point to the label. Also
set inst.stage2 so it can find root device to install from.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
| |
Much more flexible network configuration.
Replace canned host_setup/etc/libvirt/qemu/networks/*.xml with
setup_networks.sh script.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
Works for base, system and shared disks.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
| |
Something is needed to remove directories, so let's do it this way.
Autocluster only used rm_f in one place, so it is easy.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
This is no longer of any value.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|