autocluster.git
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
10 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>
10 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>
10 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>
10 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>

10 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>
10 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>
10 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>
10 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>
10 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>

10 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

10 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>
10 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>
10 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>
10 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 years agoRemove spurious ISO=... from system_disk_access_method_hook()
Martin Schwenke [Mon, 4 Mar 2013 02:01:45 +0000 (13:01 +1100)]
Remove spurious ISO=... from system_disk_access_method_hook()

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoNew hook hack_disk_hooks to customise the value of $DISK autocluster-0.7
Martin Schwenke [Tue, 19 Feb 2013 01:55:47 +0000 (12:55 +1100)]
New hook hack_disk_hooks to customise the value of $DISK

Works for base, system and shared disks.

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoAllow hooks to take arguments that are specified when they are run
Martin Schwenke [Tue, 19 Feb 2013 01:42:39 +0000 (12:42 +1100)]
Allow hooks to take arguments that are specified when they are run

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoscripts: provision command changed to samba-tool domain provision
Amitay Isaacs [Mon, 17 Sep 2012 02:21:07 +0000 (12:21 +1000)]
scripts: provision command changed to samba-tool domain provision

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
11 years agopackaging: rpmbuild does not like '-' in version, replace it with '_'
Amitay Isaacs [Mon, 10 Sep 2012 06:46:09 +0000 (16:46 +1000)]
packaging: rpmbuild does not like '-' in version, replace it with '_'

11 years agoMerge remote-tracking branch 'amitay/master'
Martin Schwenke [Tue, 28 Aug 2012 00:39:01 +0000 (10:39 +1000)]
Merge remote-tracking branch 'amitay/master'

11 years agoscripts: Stop redirecting output of onnode command
Amitay Isaacs [Tue, 21 Aug 2012 02:11:27 +0000 (12:11 +1000)]
scripts: Stop redirecting output of onnode command

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
11 years agoPackaging: construct version using "git describe" autocluster-0.6
Martin Schwenke [Wed, 15 Aug 2012 01:56:57 +0000 (11:56 +1000)]
Packaging: construct version using "git describe"

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoBackward incompatible: rename/extend rm_f diskimage function to be rm_rf
Martin Schwenke [Wed, 15 Aug 2012 00:13:48 +0000 (10:13 +1000)]
Backward incompatible: rename/extend rm_f diskimage function to be rm_rf

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>
11 years agoKickstart: Move modprobe.conf config to a file that isn't deprecated
Martin Schwenke [Mon, 23 Jul 2012 07:19:02 +0000 (17:19 +1000)]
Kickstart: Move modprobe.conf config to a file that isn't deprecated

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoFix base creation with newer libvirt and/or qemu-kvm
Martin Schwenke [Wed, 18 Jul 2012 01:28:36 +0000 (11:28 +1000)]
Fix base creation with newer libvirt and/or qemu-kvm

Seeing this problem:

  qemu: could not load PC BIOS '[...]/tmp/isolinux.bin'

From the libvirt NEWS file:

  0.9.12: May 14 2012:
  ...
     -  Bug Fixes:
        ...
        Wire up <loader> to set the QEMU BIOS path (Daniel P. Berrange),
        ...

So, it looks like we've been misusing <loader> forever, since it is
meant to be BIOS and not bootloader, but this bug fix has exposed
that.

"isolinux.bin" isn't present in the qemu-kvm command-line on the older
machines.  This suggests that libvirt hasn't been able to do anything
"useful" with the <loader> option... until now...  ;-)

The libvirt documentation seems to suggest that it would be correct to
use <bootloader> instead of <loader>.  However, it also seems to imply
that if you use <kernel> then you probably don't need <bootloader>.

So, for now, I'm deleting the <loader> option from install.xml.

If this causes problems then can someone please try <bootloader>?  :-)

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoKickstart: suddenly we need zerombr with RHEL6.3 guests
Martin Schwenke [Mon, 9 Jul 2012 03:57:09 +0000 (13:57 +1000)]
Kickstart: suddenly we need zerombr with RHEL6.3 guests

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoAdd RHEL 6.3 ISO details
Martin Schwenke [Mon, 9 Jul 2012 03:19:02 +0000 (13:19 +1000)]
Add RHEL 6.3 ISO details

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoAdd install of e2fsprogs-devel to setup_build.sh
Martin Schwenke [Tue, 19 Jun 2012 04:01:06 +0000 (14:01 +1000)]
Add install of e2fsprogs-devel to setup_build.sh

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoClean up /etc/hosts modification in create_cluster.sh
Martin Schwenke [Fri, 1 Jun 2012 03:10:58 +0000 (13:10 +1000)]
Clean up /etc/hosts modification in create_cluster.sh

Existing code usually moves the entries for a cluster to the end of
/etc/hosts, even when the entries don't change.

Make it a little bit smarter.

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoRename gpfs-nas-postinstall.sh to install_gpfs_nas.sh and factor out GPFS fu
Martin Schwenke [Fri, 1 Jun 2012 02:51:02 +0000 (12:51 +1000)]
Rename gpfs-nas-postinstall.sh to install_gpfs_nas.sh and factor out GPFS fu

The script name should say what it does, not what it might be used
for...

Also add setup_build.sh.

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agopostinstall: Install ctdb-tests package along with ctdb
Amitay Isaacs [Thu, 31 May 2012 02:47:38 +0000 (12:47 +1000)]
postinstall: Install ctdb-tests package along with ctdb

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
11 years agoUpdate rhel_gen_yum_repos() to handle repositories with slashes
Martin Schwenke [Wed, 30 May 2012 04:51:03 +0000 (14:51 +1000)]
Update rhel_gen_yum_repos() to handle repositories with slashes

Replaces slashes with dashes in repository IDs, given that they are
only allowed to be 1 word and slashes don't seem to be word
characters.

This allows trees of repos to be structured instead of flat.

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoRPM dependency improvements
Martin Schwenke [Wed, 30 May 2012 03:59:15 +0000 (13:59 +1000)]
RPM dependency improvements

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoInstallation and packaging changes reflecting recent file removals/renames
Martin Schwenke [Wed, 30 May 2012 03:51:38 +0000 (13:51 +1000)]
Installation and packaging changes reflecting recent file removals/renames

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agowaitfor command requires expect package
Amitay Isaacs [Mon, 28 May 2012 04:28:22 +0000 (14:28 +1000)]
waitfor command requires expect package

Signed-off-by: Amitay Isaacs <amitay@gmail.com>