autocluster.git
4 years agoRemove NUMNODES and WITH_TSM_NODE configuration variables
Martin Schwenke [Wed, 2 Jul 2014 01:08:45 +0000 (11:08 +1000)]
Remove NUMNODES and WITH_TSM_NODE configuration variables

The backward compatibility hacking is horrible!

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRework cluster_setup() to use node types instead of $CLUSTER_TYPE
Martin Schwenke [Mon, 30 Jun 2014 06:39:15 +0000 (16:39 +1000)]
Rework cluster_setup() to use node types instead of $CLUSTER_TYPE

* 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>
4 years agoNo need to chkconfig ctdb - it is enabled by default
Martin Schwenke [Tue, 1 Jul 2014 12:28:29 +0000 (22:28 +1000)]
No need to chkconfig ctdb - it is enabled by default

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRename cluster "configure" action to "setup"
Martin Schwenke [Mon, 30 Jun 2014 06:37:25 +0000 (16:37 +1000)]
Rename cluster "configure" action to "setup"

Rewrite cluster_setup() to factor out the common SSH bits.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoStore shared disk IDs in a variable instead of a file
Martin Schwenke [Mon, 30 Jun 2014 04:39:49 +0000 (14:39 +1000)]
Store shared disk IDs in a variable instead of a file

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRename node type "sofs_front" to "nas"
Martin Schwenke [Mon, 30 Jun 2014 03:54:49 +0000 (13:54 +1000)]
Rename node type "sofs_front" to "nas"

Rename 50.sofs.defconf too.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRename node type "sofs_storage" to "storage_gpfs"
Martin Schwenke [Mon, 30 Jun 2014 03:36:07 +0000 (13:36 +1000)]
Rename node type "sofs_storage" to "storage_gpfs"

Move the code to new a new file and globally rename variable
NSD_SERVERS to NODES_STORAGE_GPFS.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoSplit hack_nodes_sofs()
Martin Schwenke [Mon, 30 Jun 2014 02:48:18 +0000 (12:48 +1000)]
Split hack_nodes_sofs()

... into hack_nodes_sofs_front() and hack_nodes_sofs_storage().  This
allows 50.sofs.defconf to be split

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoMove shared disk presence logic from nodes into shared disk code
Martin Schwenke [Mon, 30 Jun 2014 02:08:16 +0000 (12:08 +1000)]
Move shared disk presence logic from nodes into shared disk code

Currently this is distributed around the node logic and is hard to
manage.

Instead, introduce 2 new functions (well, meta-functions, called using
call_func):

* is_dedicated_storage_node()

  Defaults to false.  Is true for sofs_storage.

* node_has_shared_disks()

  Defaults to false.  True for sofs_storage.  True for sofs_front when
  there are no dedicated storage nodes.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoSimplify shared disk logic for sofs_front and sofs_storage nodes
Martin Schwenke [Mon, 30 Jun 2014 00:19:29 +0000 (10:19 +1000)]
Simplify shared disk logic for sofs_front and sofs_storage nodes

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoLimit functionality of rhel_base nodes
Martin Schwenke [Fri, 27 Jun 2014 02:25:53 +0000 (12:25 +1000)]
Limit functionality of rhel_base nodes

They are not part of the CTDB cluster and do not have shared disks.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRemove unused has_public_addresses_* functions
Martin Schwenke [Mon, 30 Jun 2014 00:14:36 +0000 (10:14 +1000)]
Remove unused has_public_addresses_* functions

They have been unused since public address generation was changed.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRemove some unused SOFS_* variables
Martin Schwenke [Fri, 27 Jun 2014 01:56:15 +0000 (11:56 +1000)]
Remove some unused SOFS_* variables

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoUpdate README to reflect latest development and testing
Martin Schwenke [Fri, 27 Jun 2014 01:46:18 +0000 (11:46 +1000)]
Update README to reflect latest development and testing

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoReplace external waitfor script with a function
Martin Schwenke [Fri, 27 Jun 2014 01:45:49 +0000 (11:45 +1000)]
Replace external waitfor script with a function

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agokickstart - Replacing multipath.conf here is redundant
Martin Schwenke [Fri, 27 Jun 2014 01:16:24 +0000 (11:16 +1000)]
kickstart - Replacing multipath.conf here is redundant

It is done later when nodes are created.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agokickstart - sadc has no -d option so don't add it
Martin Schwenke [Fri, 27 Jun 2014 01:12:45 +0000 (11:12 +1000)]
kickstart - sadc has no -d option so don't add it

-S DISK is the default on at least RHEL 5 and 6, so that should
 collect the disk statistics we want.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoAdd "autocluster cluster build" command shortcut
Martin Schwenke [Thu, 26 Jun 2014 01:05:36 +0000 (11:05 +1000)]
Add "autocluster cluster build" command shortcut

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoAdd gpfs.gskit package
Martin Schwenke [Thu, 26 Jun 2014 01:04:58 +0000 (11:04 +1000)]
Add gpfs.gskit package

Failure here doesn't matter, so add it unconditionally.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoClean up GPFS setup script
Martin Schwenke [Wed, 25 Jun 2014 10:33:04 +0000 (20:33 +1000)]
Clean up GPFS setup script

Remove the mknsd.sh and nsd_server_common.bash scripts, merging their
functionaility into the main script.

Separate the logic into functions, and default to calling each
function in turn.  Arguments can be passed to potentially run only
some functions but this is probably pointless.

Clean up a lot of contorted logic for building the GPFS nodes file and
deciding on primary/secondary nodes.  Create all files in the same
directory as the scripts (instead of /tmp) since they should be
available for post-mortem anyway.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoCleanup post-boot cluster configuration
Martin Schwenke [Tue, 24 Jun 2014 05:01:16 +0000 (15:01 +1000)]
Cleanup post-boot cluster configuration

* 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>
4 years agoMove wait_until_healthy() into setup_cluster.sh
Martin Schwenke [Tue, 24 Jun 2014 04:19:28 +0000 (14:19 +1000)]
Move wait_until_healthy() into setup_cluster.sh

... and remove functions file.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoGit should ignore autocluster RPM packages
Martin Schwenke [Tue, 24 Jun 2014 04:10:31 +0000 (14:10 +1000)]
Git should ignore autocluster RPM packages

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoDon't manually mess with ntpd, just enable it in kickstart
Martin Schwenke [Tue, 24 Jun 2014 04:08:40 +0000 (14:08 +1000)]
Don't manually mess with ntpd, just enable it in kickstart

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRework package installation during post-boot configuration
Martin Schwenke [Tue, 24 Jun 2014 03:46:54 +0000 (13:46 +1000)]
Rework package installation during post-boot configuration

* 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>
4 years agoRename gpfs-nas.conf to nas.conf
Martin Schwenke [Tue, 24 Jun 2014 02:16:10 +0000 (12:16 +1000)]
Rename gpfs-nas.conf to nas.conf

It is now cluster-filesystem-agnostic.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoNew configuration variables CLUSTERFS_TYPE, CLUSTERFS_DEFAULT_MOUNTPOINT
Martin Schwenke [Tue, 24 Jun 2014 02:10:18 +0000 (12:10 +1000)]
New configuration variables CLUSTERFS_TYPE, CLUSTERFS_DEFAULT_MOUNTPOINT

* CLUSTERFS_DEFAULT_MOUNTPOINT replaces GPFS_DEFAULT_MOUNTPOINT

* Tweak various scripts and configuration files to allow cluster
  filesystem type to be configured

* Also tweak chroot-related options to not have GPFS-specific values

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoUpdate comments in basic post-install
Martin Schwenke [Tue, 24 Jun 2014 01:44:55 +0000 (11:44 +1000)]
Update comments in basic post-install

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoUpdate cluster_configure README
Martin Schwenke [Tue, 24 Jun 2014 01:43:15 +0000 (11:43 +1000)]
Update cluster_configure README

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRemove SoFS GUI support
Martin Schwenke [Tue, 24 Jun 2014 01:40:27 +0000 (11:40 +1000)]
Remove SoFS GUI support

This hasn't been used in a long time.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRemove "sofs" command on nodes
Martin Schwenke [Tue, 24 Jun 2014 01:36:14 +0000 (11:36 +1000)]
Remove "sofs" command on nodes

"onnode -P" implements the only useful feature.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoSimplify setting of KS_RHEL_PACKAGES and KS_RHEL_SERVICES
Martin Schwenke [Tue, 24 Jun 2014 01:29:58 +0000 (11:29 +1000)]
Simplify setting of KS_RHEL_PACKAGES and KS_RHEL_SERVICES

The functions are unnecessary.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoMove kickstart options to new 02kickstart.defconf
Martin Schwenke [Tue, 24 Jun 2014 01:27:16 +0000 (11:27 +1000)]
Move kickstart options to new 02kickstart.defconf

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRename some kickstart variables to start with "KS_"
Martin Schwenke [Tue, 24 Jun 2014 00:09:27 +0000 (10:09 +1000)]
Rename some kickstart variables to start with "KS_"

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRemove add_extra_package() and add_extra_chkconfig()
Martin Schwenke [Mon, 23 Jun 2014 04:04:36 +0000 (14:04 +1000)]
Remove add_extra_package() and add_extra_chkconfig()

These were a hack to get around EXTRA_PACKAGES having a default
non-empty value.  That's no longer true.

Just use EXTRA_PACKAGES and EXTRA_CHKCONFIGS directly.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoEnable nfslock in services file instead of in basic post-install
Martin Schwenke [Mon, 23 Jun 2014 01:18:13 +0000 (11:18 +1000)]
Enable nfslock in services file instead of in basic post-install

Note sure why it was done this way...

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRemove create_cluster.sh
Martin Schwenke [Fri, 20 Jun 2014 06:31:42 +0000 (16:31 +1000)]
Remove create_cluster.sh

This is now:

  autocluster cluster destroy create update_hosts boot configure

:-)

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoAdd "cluster configure" command
Martin Schwenke [Fri, 20 Jun 2014 06:19:27 +0000 (16:19 +1000)]
Add "cluster configure" command

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoAdd new commands cluster [ destroy | update_hosts | boot ]
Martin Schwenke [Fri, 20 Jun 2014 05:36:43 +0000 (15:36 +1000)]
Add new commands cluster [ destroy | update_hosts | boot ]

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoAdd new function announce() to print a header for an action
Martin Schwenke [Fri, 20 Jun 2014 05:35:59 +0000 (15:35 +1000)]
Add new function announce() to print a header for an action

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRename some of the internal functions to NOUN_VERB
Martin Schwenke [Fri, 20 Jun 2014 05:33:23 +0000 (15:33 +1000)]
Rename some of the internal functions to NOUN_VERB

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoAllow command line with noun first and (potentially) multiple verbs
Martin Schwenke [Fri, 20 Jun 2014 05:02:59 +0000 (15:02 +1000)]
Allow command line with noun first and (potentially) multiple verbs

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoMake cluster name optional for "create cluster"
Martin Schwenke [Fri, 20 Jun 2014 04:58:37 +0000 (14:58 +1000)]
Make cluster name optional for "create cluster"

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>
4 years agoRemove remainder of unused --with-release code
Martin Schwenke [Fri, 20 Jun 2014 04:30:40 +0000 (14:30 +1000)]
Remove remainder of unused --with-release code

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoGeneralise variables used in main case statement
Martin Schwenke [Fri, 20 Jun 2014 04:24:49 +0000 (14:24 +1000)]
Generalise variables used in main case statement

About to introduce "noun verb ..." and want to avoid $command being a
noun.  :-)

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRemove testproxy option
Martin Schwenke [Fri, 20 Jun 2014 04:19:27 +0000 (14:19 +1000)]
Remove testproxy option

Use "autocluster -e test_proxy" instead.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoSupport RHEL 7 multipath configuration changes
Martin Schwenke [Thu, 19 Jun 2014 02:09:42 +0000 (12:09 +1000)]
Support RHEL 7 multipath configuration changes

getuid_callout and udev_dir are no longer supported so don't use them.
If serial numbers work with the shared disks then it will just work.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoAdd shared disk ID as serial number in shared disk XML
Martin Schwenke [Thu, 19 Jun 2014 01:33:32 +0000 (11:33 +1000)]
Add shared disk ID as serial number in shared disk XML

Hedge bets by continuing to write the ID to the image file.

While touching this code, add the cluster name to the temporary
filename for the shared disk ID map.  Setting $shared_disk_ids needs
to move to shared_disk_setup() so $CLUSTER can be used.  Also need to
update this path in mknsd.sh.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoFix the value of NETWORK_PRIVATE_PREFIX when there are options
Martin Schwenke [Wed, 18 Jun 2014 03:06:36 +0000 (13:06 +1000)]
Fix the value of NETWORK_PRIVATE_PREFIX when there are options

The current calculation is incorrect when the private network has
options.  This causes broken hosts and CTDB nodes files.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoSuggest selinux magic as well as chattr after create base
Martin Schwenke [Wed, 18 Jun 2014 02:32:33 +0000 (12:32 +1000)]
Suggest selinux magic as well as chattr after create base

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoAdd chrony.conf for RHEL 7.0
Martin Schwenke [Wed, 18 Jun 2014 02:28:31 +0000 (12:28 +1000)]
Add chrony.conf for RHEL 7.0

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRename configuration variable GATEWAY to KVMHOST
Martin Schwenke [Wed, 18 Jun 2014 02:24:32 +0000 (12:24 +1000)]
Rename configuration variable GATEWAY to KVMHOST

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>
4 years agoDefine gateway for default route in $NETWORKS
Martin Schwenke [Wed, 18 Jun 2014 02:18:58 +0000 (12:18 +1000)]
Define gateway for default route in $NETWORKS

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>
4 years agoAdd -n dry-run option to setup_networks.sh
Martin Schwenke [Wed, 18 Jun 2014 00:41:44 +0000 (10:41 +1000)]
Add -n dry-run option to setup_networks.sh

This allows basic testing.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoMake setup_networks.sh ignore unknown options
Martin Schwenke [Wed, 18 Jun 2014 00:28:47 +0000 (10:28 +1000)]
Make setup_networks.sh ignore unknown options

In preparation for adding more options.  Unknown options are now
ignored.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRemove unused virtual network configuration files
Martin Schwenke [Wed, 18 Jun 2014 00:27:59 +0000 (10:27 +1000)]
Remove unused virtual network configuration files

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agogrub: Don't use Red Hat graphical boot
Martin Schwenke [Wed, 18 Jun 2014 00:17:13 +0000 (10:17 +1000)]
grub: Don't use Red Hat graphical boot

On RHEL7 most useful boot-time logging disappears.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agocreate_cluster: Avoid -e exit when cluster isn't in hosts file
Martin Schwenke [Tue, 17 Jun 2014 04:40:18 +0000 (14:40 +1000)]
create_cluster: Avoid -e exit when cluster isn't in hosts file

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRemove console=tty1 from node kernel command-line
Martin Schwenke [Tue, 17 Jun 2014 04:07:45 +0000 (14:07 +1000)]
Remove console=tty1 from node kernel command-line

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoAdd template for /etc/hostname to overwrite new RHEL7 file
Martin Schwenke [Tue, 17 Jun 2014 03:57:58 +0000 (13:57 +1000)]
Add template for /etc/hostname to overwrite new RHEL7 file

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoAdd "diskimage put" support for source file from stdin
Martin Schwenke [Tue, 17 Jun 2014 03:44:20 +0000 (13:44 +1000)]
Add "diskimage put" support for source file from stdin

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoHandle grub2 configuration hacking in RHEL 7+
Martin Schwenke [Tue, 17 Jun 2014 02:31:38 +0000 (12:31 +1000)]
Handle grub2 configuration hacking in RHEL 7+

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoUpdate kickstart done message to include "Power down."
Martin Schwenke [Tue, 17 Jun 2014 02:01:28 +0000 (12:01 +1000)]
Update kickstart done message to include "Power down."

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years ago"poweroff" when kickstart is complete
Martin Schwenke [Tue, 17 Jun 2014 01:48:38 +0000 (11:48 +1000)]
"poweroff" when kickstart is complete

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoInitial RHEL 7 service enable/disable file
Martin Schwenke [Mon, 16 Jun 2014 10:15:03 +0000 (20:15 +1000)]
Initial RHEL 7 service enable/disable file

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoAdd packages list for RHEL 7.0
Martin Schwenke [Mon, 16 Jun 2014 06:06:52 +0000 (16:06 +1000)]
Add packages list for RHEL 7.0

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoGenerate 70-persistent-net.rules when configuring node network
Martin Schwenke [Mon, 16 Jun 2014 06:05:41 +0000 (16:05 +1000)]
Generate 70-persistent-net.rules when configuring node network

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>
4 years agoRemove INSTALLKEY configuration variable
Martin Schwenke [Mon, 16 Jun 2014 06:05:01 +0000 (16:05 +1000)]
Remove INSTALLKEY configuration variable

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>
4 years agoRHEL 7.0 kickstart needs %end for %packages section
Martin Schwenke [Mon, 16 Jun 2014 06:04:20 +0000 (16:04 +1000)]
RHEL 7.0 kickstart needs %end for %packages section

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRHEL 7.0 can't use --initlabel with --drives
Martin Schwenke [Mon, 16 Jun 2014 06:02:35 +0000 (16:02 +1000)]
RHEL 7.0 can't use --initlabel with --drives

It claims that it needs --all but it seems to work with --linux.
--all is potentially nasty because it also relabels the kickstart
disk.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoSupport RHEL 7.0 "well known" network interface names in kickstart
Martin Schwenke [Mon, 16 Jun 2014 06:00:58 +0000 (16:00 +1000)]
Support RHEL 7.0 "well known" network interface names in kickstart

The names aren't easy for autocluster to guess so hack to find the
first ethernet interface.

Also remove any ifcfg-* ethernet-related configuration files.

Signed-off-by: Martin Schwenke <martin@meltin.net>
4 years agoRHEL 7 needs different boot options to support kickstart
Martin Schwenke [Mon, 16 Jun 2014 05:57:44 +0000 (15:57 +1000)]
RHEL 7 needs different boot options to support kickstart

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>
5 years agoInitial attempts at various defaults for RHEL 7.0
Martin Schwenke [Thu, 12 Jun 2014 23:40:39 +0000 (09:40 +1000)]
Initial attempts at various defaults for RHEL 7.0

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoAdd RHEL 7.0 ISO
Martin Schwenke [Thu, 12 Jun 2014 23:29:04 +0000 (09:29 +1000)]
Add RHEL 7.0 ISO

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoMove service enable/disable in kickstart to per-RHEL config file
Martin Schwenke [Mon, 16 Jun 2014 10:14:20 +0000 (20:14 +1000)]
Move service enable/disable in kickstart to per-RHEL config file

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoClean up RHEL package list generation
Martin Schwenke [Mon, 16 Jun 2014 10:09:05 +0000 (20:09 +1000)]
Clean up RHEL package list generation

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoRename gpfs-nas-kickstart.cfg since it no longer references GPFS
Martin Schwenke [Mon, 16 Jun 2014 10:00:01 +0000 (20:00 +1000)]
Rename gpfs-nas-kickstart.cfg since it no longer references GPFS

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoMove GPFS path setting from to GPFS-specific code
Martin Schwenke [Mon, 16 Jun 2014 09:58:30 +0000 (19:58 +1000)]
Move GPFS path setting from to GPFS-specific code

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoUpdate git URL
Martin Schwenke [Tue, 17 Jun 2014 01:22:39 +0000 (11:22 +1000)]
Update git URL

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoAdd RHEL6.5 ISO
Martin Schwenke [Fri, 29 Nov 2013 00:48:29 +0000 (11:48 +1100)]
Add RHEL6.5 ISO

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoguestfish/guestmount: Set empty SYSTEM_DISK_MOUNTS autocluster-0.9
Martin Schwenke [Mon, 25 Nov 2013 02:58:21 +0000 (13:58 +1100)]
guestfish/guestmount: Set empty SYSTEM_DISK_MOUNTS

At least some versions of guestfish are now using /dev/sd* instead of
/dev/vd*, so don't set this explicitly.

This and the previous change mean that SYSTEM_DISK_MOUNTS can still
still be set if needed.

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoguestfish/guestmount: If no SYSTEM_DISK_MOUNTS specified then pass -i
Martin Schwenke [Mon, 25 Nov 2013 02:57:02 +0000 (13:57 +1100)]
guestfish/guestmount: If no SYSTEM_DISK_MOUNTS specified then pass -i

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoRecovery lock directory should be created in cluster_configure
Martin Schwenke [Fri, 25 Oct 2013 01:24:12 +0000 (12:24 +1100)]
Recovery lock directory should be created in cluster_configure

This hasn't really got anything to do with GPFS.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>

5 years agoFix CTDB configuration
Martin Schwenke [Fri, 11 Oct 2013 05:39:18 +0000 (16:39 +1100)]
Fix CTDB configuration

Cut down CTDB configuration to bare minimum and move CTDB options from
other sysconfig files (i.e. nfs, vsftp).

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agocluster_configure: Hack ctdbd socket location in smb.conf template
Martin Schwenke [Fri, 11 Oct 2013 05:11:52 +0000 (16:11 +1100)]
cluster_configure: Hack ctdbd socket location in smb.conf template

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoAdd a hook to allow the network name to be hacked
Martin Schwenke [Tue, 16 Jul 2013 06:07:46 +0000 (16:07 +1000)]
Add a hook to allow the network name to be hacked

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoCTDB configuration should use CTDB_SYSLOG="yes"
Martin Schwenke [Thu, 11 Jul 2013 05:22:38 +0000 (15:22 +1000)]
CTDB configuration should use CTDB_SYSLOG="yes"

Not CTDB_OPTIONS, which will be removed.

Signed-off-by: Martin Schwenke <martin@meltin.net>
5 years agoAdd rsyslog configuration that uses high precision time format
Martin Schwenke [Thu, 20 Jun 2013 02:27:07 +0000 (12:27 +1000)]
Add rsyslog configuration that uses high precision time format

This allows accurate merging of logs from multiple cluster nodes for
easier CTDB debugging.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>

6 years agoShared disks need shareable attribute for correct sVirt selinux label autocluster-0.8
Amitay Isaacs [Fri, 7 Jun 2013 05:49:10 +0000 (15:49 +1000)]
Shared disks need shareable attribute for correct sVirt selinux label

6 years agoInstall Performance Co-Pilot development libraries on build VM
Martin Schwenke [Sat, 1 Jun 2013 21:36:15 +0000 (07:36 +1000)]
Install Performance Co-Pilot development libraries on build VM

Signed-off-by: Martin Schwenke <martin@meltin.net>
6 years agoVerify argument to setup_network.sh script
Amitay Isaacs [Wed, 8 May 2013 12:39:37 +0000 (22:39 +1000)]
Verify argument to setup_network.sh script

Also, validate if network map can be successfully generated.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
6 years agoFix empty case string in setup_networks.sh
Amitay Isaacs [Wed, 8 May 2013 12:37:54 +0000 (22:37 +1000)]
Fix empty case string in setup_networks.sh

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
6 years agoInstall tdb-tools required for CTDB init script
Amitay Isaacs [Wed, 8 May 2013 12:14:42 +0000 (22:14 +1000)]
Install tdb-tools required for CTDB init script

This is required when Samba 4 is used.  It no longer includes those
binaries.

The script fails gracefully when tdb-tools doesn't exist.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
6 years agoFix setting of convenience variable NETWORKS_PUBLIC
Martin Schwenke [Tue, 12 Mar 2013 05:09:18 +0000 (16:09 +1100)]
Fix setting of convenience variable NETWORKS_PUBLIC

Signed-off-by: Martin Schwenke <martin@meltin.net>
6 years agoFix setup_networks.sh to run autocluster without dirty hacks
Martin Schwenke [Tue, 12 Mar 2013 04:36:54 +0000 (15:36 +1100)]
Fix setup_networks.sh to run autocluster without dirty hacks

Signed-off-by: Martin Schwenke <martin@meltin.net>
6 years agoAllow --dump and -e options to ignore errors
Martin Schwenke [Tue, 12 Mar 2013 04:36:12 +0000 (15:36 +1100)]
Allow --dump and -e options to ignore errors

Signed-off-by: Martin Schwenke <martin@meltin.net>
6 years agoFix NETWORKS configuration to support non-standard interface names
Martin Schwenke [Tue, 12 Mar 2013 04:22:23 +0000 (15:22 +1100)]
Fix NETWORKS configuration to support non-standard interface names

Signed-off-by: Martin Schwenke <martin@meltin.net>
6 years agoNew configuration variable NETWORKS - IPBASE, IPNET* no longer used
Martin Schwenke [Tue, 5 Mar 2013 00:36:16 +0000 (11:36 +1100)]
New configuration variable NETWORKS - IPBASE, IPNET* no longer used

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>
6 years agoAdd some extra failure exits in rhel_post_config_hook()
Martin Schwenke [Mon, 4 Mar 2013 02:02:24 +0000 (13:02 +1100)]
Add some extra failure exits in rhel_post_config_hook()

Signed-off-by: Martin Schwenke <martin@meltin.net>
6 years agoAdd RHEL 6.4 ISO
Martin Schwenke [Mon, 4 Mar 2013 02:02:12 +0000 (13:02 +1100)]
Add RHEL 6.4 ISO

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