| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Otherwise someone will wonder why...
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Allows extra things to be done when creating kickstart floppy.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Move existing code to a function to make it easier to call
conditionally.
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>
|
|
|
|
|
|
|
|
| |
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!
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Otherwise the versions are less likely to be monotonic.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
Version can't contain hyphens or rpmbuild gets upset.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
In this case we don't need any qemu-nbd magic.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
Add a check to ensure this and a corresponding error if it isn't true.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|\ |
|
| |
| |
| |
| | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
| |
| |
| |
| | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
| |
| |
| |
| | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
| |
| |
| |
| | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|