summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* New configuration variables BASE_PER_NODE_TYPE.Martin Schwenke2010-05-212-0/+7
| | | | | | | | If set to "yes", this adds the node type to the base image filename when creating each node. This means you can have different base images for each node type. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add a comment to explain the previous commit.Martin Schwenke2010-05-211-2/+3
| | | | | | Otherwise someone will wonder why... Signed-off-by: Martin Schwenke <martin@meltin.net>
* Fold setup_network() into setup_base().Martin Schwenke2010-05-211-2/+10
| | | | | | | Actually add it to setup_base_hooks but ensure that if $hosts_file is unset then the function returns without doing anything. Signed-off-by: Martin Schwenke <martin@meltin.net>
* New config variable KS_DONE_MESSAGE, used to find end of kickstart install.Martin Schwenke2010-05-212-1/+4
| | | | | | | | Currently we look for a fixed string to indicate that a kickstart install is complete. This changes that string to be parametrised, in case we're using a non-standard installer. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add new function clear_hooks() to clear the value of a hook variable.Martin Schwenke2010-05-211-0/+8
| | | | | | | Yes, this is overkill (we could just unset the hook variable)... but it gives us a consistent API. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Move SSH key and grub config hacks to functions for use in setup_base_hooks.Martin Schwenke2010-05-211-10/+22
| | | | | | | | This creates new functions setup_base_ssh_keys() and setup_base_grub_conf(). These are added to setup_base_hooks by default. There may be cases where these hacks aren't necessary. Signed-off-by: Martin Schwenke <martin@meltin.net>
* New hook kickstart_floppy_create_hooks.Martin Schwenke2010-05-121-0/+6
| | | | | | Allows extra things to be done when creating kickstart floppy. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Only print message about creating a disk when actually creating a disk.Martin Schwenke2010-05-121-1/+2
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* New value for SYSTEM_DISK_FORMAT: "none".Martin Schwenke2010-05-122-3/+6
| | | | | | | | This skips disk image creation but still creates the libvirt XML files for the nodes. This can be used if you want to take advantage of some of autocluster's features but don't actually want to create a cluster. Signed-off-by: Martin Schwenke <martin@meltin.net>
* New function create_node_configure_image() to do the per-image configuration.Martin Schwenke2010-05-121-4/+12
| | | | | | | Move existing code to a function to make it easier to call conditionally. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Test SONAS releases after 1.1.0.x with RHEL5.5.Martin Schwenke2010-05-121-1/+2
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* nbd-client is also optional if SYSTEM_DISK_FORMAT is not "raw".Martin Schwenke2010-04-301-2/+4
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Always set SONAS_VERSION, since it is no longer a configuration variable.Martin Schwenke2010-04-291-6/+2
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Revert "New SOFS configuration variable SONAS_VERSION, default to null."Martin Schwenke2010-04-291-3/+0
| | | | | | | | This reverts commit 91a7e656612a3bd94cb7922b5918a73048743d5c. Given 7cccfaa022972988ee262f4014037c62abdecdf4 we no longer need this is a configuration variable, so let's not support too many ways of doing things!
* Allow releases of the form <product>-<version> to use product.release.Martin Schwenke2010-04-291-5/+9
| | | | | | | | Make releases more consistent with how they've always been. If there's no <product>-<version>.release file then look for <product>.release and, if it exists, pass <version> to it. Signed-off-by: Martin Schwenke <martin@meltin.net>
* New release file for SONAS.Martin Schwenke2010-04-291-0/+35
| | | | | | | | This is essentially the same as SoFS-2.0.release but respects either $SONAS_VERSION or an argument to the release file. It also sets a few variables to more SONAS-specific values. Signed-off-by: Martin Schwenke <martin@meltin.net>
* New SOFS configuration variable SONAS_VERSION, default to null.Martin Schwenke2010-04-291-0/+3
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Make with_release() pass args $2.. to the release file when sourcing it.Martin Schwenke2010-04-291-0/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add support for RHEL5.5 cluster nodes.Martin Schwenke2010-04-281-0/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* setup_gpfs.sh must source nsd_server_common.bash before processing args.Martin Schwenke2010-04-201-3/+5
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Add command-line options to setup_gpfs.sh.Martin Schwenke2010-04-201-14/+70
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Usage for SHARED_DISK_TYPE option should mention "iscsi".Martin Schwenke2010-03-311-1/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Makefile: Use time in the version string as well.Martin Schwenke2010-03-291-1/+3
| | | | | | Otherwise the versions are less likely to be monotonic. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Makefile: Add rpm target and fix version.Martin Schwenke2010-03-291-1/+4
| | | | | | Version can't contain hyphens or rpmbuild gets upset. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Makefile: Make dist target and associated generated targets more robust.Martin Schwenke2010-03-291-3/+3
| | | | | | | | In the version, use the date from the last git commit rather than the current date. This means that debian/changelog and autocluster.spec can be more reliably generated. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Document how to use autocluster with RHEL5 KVM package.Martin Schwenke2010-03-241-8/+81
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Parameterise the iSCSI target deletion with ISCSI_TID.Martin Schwenke2010-03-231-1/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Use tgt-admin --delete with --force to delete targets.Martin Schwenke2010-03-231-1/+1
| | | | | | | | | | This has 2 advantages: * It disconnect any existing sessions to help force the deletion. * It doesn't print an error message if the target doesn't exist. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Only check for QEMU_NBD command if SYSTEM_DISK_FORMAT is not "raw".Martin Schwenke2010-03-231-1/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Improve iSCSI host setup.Martin Schwenke2010-03-191-8/+13
| | | | | | | | | This adds a command to delete the iSCSI target. This also changes the message printed after cluster creation: the script should always be run since leaving LUNs between clusters may result in cached data surviving even though the disks have been recreated. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Remove any old shared disks before creating new ones.Martin Schwenke2010-03-181-0/+1
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* iscsimultipath initscript should identify itself when running.Martin Schwenke2010-03-181-0/+4
| | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
* Attempt to fix the iscsimultipath initscript.Martin Schwenke2010-03-181-13/+35
| | | | | | | | Even if all of the devices are there, multipath doesn't necessarily do what we expect. This attempts to run multipath for up to 30 seconds until the right number of slave devices appear. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Improve iSCSI multipath handling.Martin Schwenke2010-03-182-8/+90
| | | | | | | | | | | | | The current code uses a sleep to try to ensure that all the iSCSI devices have appeared before running multipath. Like any situation involving a seemingly random sleep this is a bug. When the host machine is heavily loaded 5 seconds isn't enough. This adds an extra initscript to handle this more properly. The initscript is always installed but is only enabled using chkconfig on relevant nodes. Signed-off-by: Martin Schwenke <martin@meltin.net>
* If $SYSTEM_DISK_FORMAT is raw then just do a loopback mount.Martin Schwenke2010-03-171-8/+48
| | | | | | In this case we don't need any qemu-nbd magic. Signed-off-by: Martin Schwenke <martin@meltin.net>
* If SYSTEM_DISK_FORMAT is "raw" then BASE_FORMAT must also be "raw".Martin Schwenke2010-03-171-0/+4
| | | | | | Add a check to ensure this and a corresponding error if it isn't true. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Base image filename now ends in $BASE_FORMAT.Martin Schwenke2010-03-171-4/+5
| | | | | | | | | | | | | Using $BASE_FORMAT in the base image filename will make error more obvious. For raw system disks we will just be copying the base image, so it needs to be raw too. Currently changing BASE_FORMAT doesn't change the name of the base image so, unless we do complicated things (perhaps involving the "file" command), we won't be able to tell if we're copying an old qcow2 image or current raw image. Signed-off-by: Martin Schwenke <martin@meltin.net>
* New configuration option SYSTEM_DISK_FORMAT.Martin Schwenke2010-03-172-2/+14
| | | | | | | | | | | | If this is: * "qcow2" then use qemu-img create with a a base image. * "raw" then use cp to copy base image. * otherwise, error. Signed-off-by: Martin Schwenke <martin@meltin.net>
* Merge branch 'iscsi'Martin Schwenke2010-03-169-34/+250
|\
| * Fix iSCSI host setup bug.Martin Schwenke2010-03-161-1/+1
| | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
| * iscsi_out needs to be set in a function so it gets the value of CLUSTER.Martin Schwenke2010-03-161-3/+3
| | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
| * Fix careless error in iSCSI host configuration.Martin Schwenke2010-03-161-4/+8
| | | | | | | | | | | | | | | | | | | | | | The code to generate a LUN for each path was mostly missing and otherwise broken. This also reverts a stupid change in a recent commit that changed the filename for the shared disk in the LUN specification. We actually use a variable that has the filename already in it... Signed-off-by: Martin Schwenke <martin@meltin.net>
| * Make iscsi_cluster_created() point to file containing the tgtadm commands.Martin Schwenke2010-03-161-4/+4
| | | | | | | | | | | | | | The list of commands is too long, so we no longer print them out, we just point to the file. Signed-off-by: Martin Schwenke <martin@meltin.net>
| * Move iSCSI host setup from shared_disk_template() to shared_disk_setup().Martin Schwenke2010-03-161-37/+36
| | | | | | | | | | | | | | | | shared_disk_template() is called for each node, so that was the wrong place for this code. This means shared_disk_template() is approximately back to where it was a few versions ago. Signed-off-by: Martin Schwenke <martin@meltin.net>
| * New configuration variables for shared disks.Martin Schwenke2010-03-161-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | This adds variables SHARED_DISK_FIRST_SUFFIX and SHARED_DISK_MULTIPATH_NUMPATHS, which are used for default values of arguments to shared_disk_template(). Passing arguments to shared_disk_template() is now deprecated. Use the variables instead. That said, it should rarely be necessary to modify the either variable from its default value. Signed-off-by: Martin Schwenke <martin@meltin.net>
| * Remove indentation from message in iscsi_cluster_created().Martin Schwenke2010-03-161-6/+5
| | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
| * iSCSI bug fixes.Martin Schwenke2010-03-161-3/+3
| | | | | | | | | | | | | | | | Make iSCSI host setup add tgtadm commands instead of overwriting existing file contents. Fix a command that tried to use configuration variables in the template style instead of required shell style. Signed-off-by: Martin Schwenke <martin@meltin.net>
| * Add missing backslashes to sed commands in iSCSI code.Martin Schwenke2010-03-151-2/+2
| | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
| * Print a message when setting up iSCSI shared disks for each client.Martin Schwenke2010-03-151-0/+2
| | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net>
| * iscsi_cluster_created should only be registered if using iSCSI shared disks.Martin Schwenke2010-03-151-1/+3
| | | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net>