| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
| |
For some reason when creating a base image on RHEL6.0, expect exits
before it finds the designated pattern. Using strace or expect -d
makes things mysteriously work, so debugging is very difficult.
On a whim, I wondered if expect is getting confused about multibyte
characters, so tried setting LANG=C. This either fixes or works
around the problem. It will do for now...
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
| |
The previous default of 262144KB is not enough for RHEL6. We use the
old default for RHEL5 and set an intial default of 512000KB for RHEL6.
A smaller limit may be possible for RHEL6... but this works. :-)
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
| |
New function system_disk_mounts() returns a default value for
SYSTEM_DISK_MOUNTS that depend on $RHEL_VERSION.
New function rhel_post_config_hook() resets SYSTEM_DISK_MOUNTS and ISO
if they are equal to the magic value "@uto". This is now the default
value for both of these variables.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is run after all configuration has been processed. That is,
after command-line options processing.
It is also run before other exits where you can reasonably expect
configuration to be complete (--dump, -e <expr>).
It is not run before -E. If you want to run in combination with -E
then add "run_hooks post_config_hooks" to the expression (or to a
previous -E option). However, bear in mind that this may preempt any
magic the hooks might otherwise do after subsequent configuration
option processing.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
$RHEL_PACKAGES points to a file containing the standard package list,
which is inserted into the kickstart packages section along with
$_EXTRA_RHEL_PACKAGES and $EXTRA_PACKAGES. The old packages list is
in RHEL5.packages, with an initial list of RHEL6 in RHEL6.packages.
The RHEL5 list has been slightly updated in the area of compat
packages. The default value of $RHEL_PACKAGES invokes new function
rhel_package_list(), which prints the contents of the packages file
corresponding to the current $RHEL_VERSION.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
| |
RHEL6 does not say "you may safely reboot your system" so we match
"System halted." to know when to halt the kickstart guest.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
| |
Different MAC addresses are used in guests for base creation than for
actual clusters. We don't want the cluster nodes to remember any
NIC/MAC associations from the kickstart run.
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 current code uses a bash variable pattern substitution. This can
be horrendously slow on a large value. On my laptop it takes bash
about 0.7s to do a single replacement of the 1st newline in a ~50KB
value. Doing a template substitution during the generation of XML for
100 shared disks causes the creation of a 1000 line value that is
about 35KB... so handling 100 shared disks can be very slow! :-(
This changes newlines to character 0x01 using tr and then uses sed to
replace these by "\\n".
There are other subsitutions nearby in the code but they don't tend to
cause this type of problem because they escape characters that tend to
be used less frequently.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
| |
This is now a trivial change due to the use of arrays.
Based on a patch from Eugen Anghel <eugen.anghel@ro.ibm.com>.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
| |
Based on a patch for more shared disks from Eugen Anghel
<eugen.anghel@ro.ibm.com>.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
This can be done much better using arrays.
This reverts commit 5a5494821b51abfe2d6bf6f6dc9d960b8c3f0cde.
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
| |
Master configuration file for cluster_configure and a wrapper script
to hold it all together. The script may eventually become part of
cluster_configure.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
See base/all/root/scripts/cluster_configure/README.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
| |
This currently uses /var/mmfs/etc/nsddevices to list the disks but
this script isn't generally available.
Instead we implement some custom logic that asks multipath about
available devices and then filters on those created by KVM or via
autocluster's iSCSI code.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
Use a more generic combination of onnode and rsync.
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 introduces new variables IPNET0, IPNET1, IPNET2. These default
to 0, 1, 2 respectively. That is, this change is backward compatible.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
| |
In complex configurations it can be useful to add a function in a
configuration file and run it on the command-line.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
| |
* Incorrect reference to $c instead of $_c caused loop to never
terminate.
* Need to flush multipath devices before trying again.
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 points to a file containing static entries that should be
inserted into /etc/hosts on each node.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
| |
This version seems cleaner and clearer than the previous version, so
is more likely to be correct.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
| |
When template variables are surround by valid variable characters the
substitutions can fail. This makes it more robust.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
| |
This make the generation of IP addresses for iSCSI client
configurable. If, for example, you're using an IP addressing scheme
that is out of autocluster's control, you can override this function
to try and provide an alternate solution.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Only register this is in setup_base_hooks if iSCSI shared disks are
being used. It was registered globally. This may, this hook is
registered even if you run clear_hooks on setup_base_hooks.
This obeys the "principal of least surprise" in the case where iSCSI
should work if you select iSCSI. However, it might surprise people to
find a hook registered when they've clear the hook variable. Can't
win 'em all. If necessary, shared_disk_iscsi_setup_base() can be
overridden.
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>
|
|
|
|
|
|
| |
i.e. Pass "-E" to grep.
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 maps between $ip_offset and UUID. This isn't used anywhere
yet... however, there will be some autocluster applications where a
node will need to know the UUIDs of other nodes.
Note: after testing that the UUID map looks right, we'll actually use
it in create_node_COMMON().
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
| |
Also clean up some of the progress messages.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
|
|
|
|
|
| |
Allows multiple filesystems to be mounted by mount_disk() at cluster
creation time. This is useful if, for example, the base image has
been created with separate partitions for / and /var, and you need to
copy configuration to both filesystems.
Signed-off-by: Martin Schwenke <martin@meltin.net>
|
|
|
|
| |
Signed-off-by: Martin Schwenke <martin@meltin.net>
|