Michael Hanselmann [Fri, 31 Aug 2007 15:36:47 +0000 (15:36 +0000)]
Test “gnt-node volumes”.
Reviewed-by: iustinp
Iustin Pop [Fri, 31 Aug 2007 09:12:26 +0000 (09:12 +0000)]
Add note about Debian default dbrd.conf
Debian's default drbd configuration has some enabled directives, which make the
init script throw errors. Document how to disable the defaults and thus get rid
of the errors.
Reviewed-by: imsnah
Iustin Pop [Thu, 30 Aug 2007 18:33:00 +0000 (18:33 +0000)]
Bump up version to beta1
Michael Hanselmann [Thu, 30 Aug 2007 18:27:05 +0000 (18:27 +0000)]
Fix capitalization.
Reviewed-by: iustinp
Iustin Pop [Thu, 30 Aug 2007 18:19:24 +0000 (18:19 +0000)]
Fix some spelling mistakes
Iustin Pop [Thu, 30 Aug 2007 18:10:34 +0000 (18:10 +0000)]
Add note about lvm.conf tuning
Reviewed-by: imsnah
Michael Hanselmann [Thu, 30 Aug 2007 17:49:38 +0000 (17:49 +0000)]
Pass --os-size and --swap-size to burnin during QA.
Reviewed-by: iustinp
Iustin Pop [Thu, 30 Aug 2007 17:27:12 +0000 (17:27 +0000)]
Fix the path in the example cron file
Reviewed-by: imsnah
Guido Trotter [Thu, 30 Aug 2007 16:50:20 +0000 (16:50 +0000)]
Fix a typo in install.sgml
Reviewed-By: iustinp
Iustin Pop [Thu, 30 Aug 2007 16:37:21 +0000 (16:37 +0000)]
Add information about the recommended Xen settings
Reviewed-by: imsnah
Iustin Pop [Thu, 30 Aug 2007 16:16:32 +0000 (16:16 +0000)]
Fix mdadm -D output compatibility issues.
Also add some debugging output.
Michael Hanselmann [Thu, 30 Aug 2007 15:36:10 +0000 (15:36 +0000)]
- Check for secondary node before doing a failover.
- Replace magic values by constants.
Reviewed-by: iustinp
Iustin Pop [Thu, 30 Aug 2007 14:32:20 +0000 (14:32 +0000)]
Add a safety check to the backend.AddOSToInstance
This changes a ';' to '&&' to make sure we run the create script from
the correct directory.
Reviewed-by: imsnah
Iustin Pop [Thu, 30 Aug 2007 14:30:38 +0000 (14:30 +0000)]
Add one more check on cluster init.
This adds a check that the initial node's IP name doesn't resolve to a
loopback address (127.x.y.z).
Also remove an unused variable.
Reviewed-by: imsnah
Iustin Pop [Thu, 30 Aug 2007 14:21:59 +0000 (14:21 +0000)]
More updates to the installation tutorial.
Changes:
- add note about installing the cron job
- add an example cron job file and modify top-level Makefile.am to put
it into the archive
- modify the tutorial with information about setting a reasonable
number of minors for DRBD
- add note about installing on 32-bit the xen libc
Reviewed-by: imsnah
Iustin Pop [Thu, 30 Aug 2007 12:53:48 +0000 (12:53 +0000)]
Add note about manually loading the drbd module
Iustin Pop [Thu, 30 Aug 2007 12:52:23 +0000 (12:52 +0000)]
Add note about running the Xen kernel before compiling DRBD
Iustin Pop [Thu, 30 Aug 2007 12:30:39 +0000 (12:30 +0000)]
Add mdadm to the debian example
Reviewed-by: roman.marxer
Iustin Pop [Thu, 30 Aug 2007 12:14:15 +0000 (12:14 +0000)]
Add more details about hostname issues
Iustin Pop [Thu, 30 Aug 2007 10:29:03 +0000 (10:29 +0000)]
Fix the manpage gnt-instance w.r.t. units
The manpage wrongly states that the default unit for disk sizes is
gibibytes, whereas currently it's mebibytes. Fix that and also update
the '--help' output to display the default unit.
Reviewed-by: roman.marxer
Iustin Pop [Thu, 30 Aug 2007 09:35:39 +0000 (09:35 +0000)]
Document kernel selection method
This changelist add:
- documentation on how to select the kernel and initrd (if needed) for
instances
- support in hypervisor.py for the initrd
- adds note about internet-connectivity and debootstrap requirements
for the minimal etch os
- documentation on the miminum xenvg size
Reviewed-by: roman.marxer,ultrotter
Iustin Pop [Wed, 29 Aug 2007 14:34:58 +0000 (14:34 +0000)]
New version of install.sgml
This adds more examples and clarifies the existing ones.
Reviewed-by: roman.marxer
Iustin Pop [Tue, 28 Aug 2007 12:25:29 +0000 (12:25 +0000)]
Refuse nodes with non-FQDN hostnames.
This changes the cluster init and node join to refuse a node that has a
different hostname than what the resolver returns.
Reviewed-by: imsnah
Iustin Pop [Tue, 28 Aug 2007 11:35:22 +0000 (11:35 +0000)]
Docbook-relate changes on admin.sgml
This changes a lot of docbook-related stuff and addresses a few consistency
issues.
Reviewed-by: vylavera
Iustin Pop [Tue, 28 Aug 2007 08:54:04 +0000 (08:54 +0000)]
Cleanup of the installation tutorial.
This fixes some consistency issues.
Reviewed-by: vylavera
Iustin Pop [Tue, 28 Aug 2007 08:50:02 +0000 (08:50 +0000)]
Fix compatibility problems with mdadm-2.5.6
This fixes a compatibility problem with recent mdadm (2.x?) by
reimplementing the zero-ing of the superblocks in ganeti itself.
Reviewed-by: imsnah
Iustin Pop [Mon, 27 Aug 2007 09:20:54 +0000 (09:20 +0000)]
Changed INSTALL to point to the tutorial and admin guide.
Michael Hanselmann [Fri, 24 Aug 2007 12:29:54 +0000 (12:29 +0000)]
Implement argument for known_hosts file.
Reviewed-by: iustinp
Michael Hanselmann [Fri, 24 Aug 2007 11:38:31 +0000 (11:38 +0000)]
Set SSH's ClearAllForwardings and ForwardAgent options.
Reviewed-by: iustinp
Michael Hanselmann [Fri, 24 Aug 2007 10:23:50 +0000 (10:23 +0000)]
- Test “gnt-cluster copyfile”
- Run “gnt-cluster verify” and “gnt-cluster info” after adding all nodes
- Remove unused --cleanup option
- Remove --verbose option and always print executed SSH commands
Reviewed-by: iustinp
Iustin Pop [Fri, 24 Aug 2007 09:20:37 +0000 (09:20 +0000)]
Rework ssh known-hosts handling.
This changes:
- cluster setup, we no longer edit /etc/ssh/ssh_known_hosts but our
own file
- node add, we no longer remove root's known_hosts (twice)
- gnt-instance console, both the LU and the script: since now the ssh
setup is not standard, we need to build the ssh cmdline in the LU
(instead of manually building it in the script) with the correct
parameters and use the command line as returned in the script
- ssh.py, many changes, split options in module-level constants so
that building the command line in different places is easier/more
logical
- backend.py, we no longer remove root's known_hosts in Add node, and
we allow our own known_hosts file to be uploaded
Reviewed-by: imsnah
Iustin Pop [Thu, 23 Aug 2007 13:59:11 +0000 (13:59 +0000)]
Improve LURunClusterCommand
This function used a hand-coded ssh call to remote nodes. Fix it to use the
ssh.SSHCall function, and in the process drop the command field from the
results, as it's too verbose and we can use (in gnt-cluster) what we passed in.
Reviewed-by: schreiberal
Iustin Pop [Wed, 22 Aug 2007 15:53:06 +0000 (15:53 +0000)]
Fix one wrong usage of _GetWantedNodes
_GetWantedNodes is used wrongly by the LUClusterCopyFile. This fixes that.
Reviewed-by: imsnah
Michael Hanselmann [Tue, 21 Aug 2007 14:35:59 +0000 (14:35 +0000)]
Fix typo.
Reviewed-by: iustin
Iustin Pop [Tue, 21 Aug 2007 08:39:52 +0000 (08:39 +0000)]
Rename installing.sgml to install.sgml
This is more in line with the other document names.
Also, change the title to simply "Ganeti installation tutorial".
Reviewed-by: ultrotter
Iustin Pop [Mon, 20 Aug 2007 14:43:34 +0000 (14:43 +0000)]
Add information about installing from source.
In case one installs from source, make, tar and gzip are also needed. tar and
gzip are almost always installed, but make not, so let's add a note about that.
Also remove a '>' in the apt-get install example so copy-paste works.
Reviewed-by: imsnah
Iustin Pop [Mon, 20 Aug 2007 13:27:45 +0000 (13:27 +0000)]
Disable hashing of the ssh keys.
In case we use StrictHostKeyChecking=ask, also add HashKnownHosts=no so that
debugging is easier. The nodes to which we are connecting are anyway visible in
/etc/ssh/ssh_known_hosts.
Iustin Pop [Mon, 20 Aug 2007 12:17:50 +0000 (12:17 +0000)]
Add support for listing instance disk sizes.
Reviewed-by: imsnah
Iustin Pop [Mon, 20 Aug 2007 11:29:11 +0000 (11:29 +0000)]
A CheckPrereq method had one unconverted "return 1" statement. Change it to the
appropriate raise.
Reviewed-by: imsnah
Iustin Pop [Mon, 20 Aug 2007 08:21:08 +0000 (08:21 +0000)]
Add ganeti-master to sbin_SCRIPTS
This was forgotten when the init script was changed.
Reviewed-by: imsnah
Iustin Pop [Fri, 17 Aug 2007 09:14:44 +0000 (09:14 +0000)]
Change cli.OutputTable to cli.GenerateTable
Since the table generation might be useful elsewhere, let's change it to
return the data instead of directly printing it.
Its callers have also been updated.
Reviewed-by: imsnah
Iustin Pop [Thu, 16 Aug 2007 15:23:19 +0000 (15:23 +0000)]
Another documentation update.
This removes the section on packages from installing.sgml (until we have
packages) and adds/corrects informations about using the startup script.
It also adds notes about the ``--master-netdev`` option, which one needs
to use if the node doesn't have an interface named xen-br0 (or if it's
not the interface wanted for external access).
Iustin Pop [Thu, 16 Aug 2007 15:13:03 +0000 (15:13 +0000)]
Some small fixes.
It fixes the main Makefile.am to create $localstatedir/{lib,log}/ganeti.
It fixes the testing Makefile.am after the rename fake_config.py ->
mocks.py. It strips the output of "ip link show" to have a nicer output
if the master netdev does not exist.
Iustin Pop [Thu, 16 Aug 2007 13:06:23 +0000 (13:06 +0000)]
Documentation updates.
This changes installing.sgml, adding details about required software and
OS instances. It also updates INSTALL and README to correspond with the
sgml manual.
Reviewed-by: ultrotter
Iustin Pop [Wed, 15 Aug 2007 15:15:38 +0000 (15:15 +0000)]
Some changes to the installation manual.
The biggest change is that at configure time one must specify
--localstatedir=/var since the directories for ganeti (/var/log/ganeti,
/var/lib/ganeti) must be located here.
Reviewed-by: ultrotter
Iustin Pop [Tue, 14 Aug 2007 15:17:50 +0000 (15:17 +0000)]
Style changes for pep-8 and python-3000 compliance.
This changes the raising of exceptions from:
raise Exception, value
to
raise Exception(value)
as the first form will be removed in python-3000 and the second form is
preferred now.
The changes also involve a few cases of changing from raising standard
exceptions and use our own ones.
The new version also fixes many pylint-generated warnings, especially in
ganeti-noded where I changed many methods to @staticmethod.
There is no functionality changed (barring any bugs).
Iustin Pop [Wed, 8 Aug 2007 09:37:52 +0000 (09:37 +0000)]
Implement tag support for cluster, nodes and instances.
This is only the backend part, from the command line the tags can't be
read/modified yet.
Reviewed-by: imsnah
Michael Hanselmann [Mon, 6 Aug 2007 11:26:04 +0000 (11:26 +0000)]
Don't bail out if node isn't there on “gnt-node volumes”.
Reviewed-by: iustinp
Iustin Pop [Fri, 3 Aug 2007 15:04:21 +0000 (15:04 +0000)]
Prepare for the tags implementation:
- add an Update method on the ConfigWriter class;
- make the AddInstance method not log disks for diskless types (helps with testing)
- implement limited testing for the ConfigWriter with focus on the new Update method
Michael Hanselmann [Fri, 3 Aug 2007 13:54:47 +0000 (13:54 +0000)]
Import constants into gnt-cluster.
Reviewed-by: iustinp
Iustin Pop [Fri, 3 Aug 2007 12:51:42 +0000 (12:51 +0000)]
Re-stat the config file when we write it so that the next _OpenConfig()
won't reread it if not modified by someone else.
Michael Hanselmann [Fri, 3 Aug 2007 12:35:59 +0000 (12:35 +0000)]
Add instance name to LVM volume as a tag.
Reviewed-by: iustinp
Iustin Pop [Fri, 3 Aug 2007 11:03:56 +0000 (11:03 +0000)]
Implement a standard way of getting the cluster object from the
configuration.
Reviewed-by: imsnah
Iustin Pop [Fri, 3 Aug 2007 09:57:41 +0000 (09:57 +0000)]
Change logival volume names to not be based on the instance's name, but
instead use an UUID prefix and a suffix denoting the disk iv_name
(sda/sdb) and possibly it's type (data/meta).
Reviewed-by: imsnah
Michael Hanselmann [Fri, 3 Aug 2007 09:18:13 +0000 (09:18 +0000)]
Put synchronization speed into constant.
Reviewed-by: iustinp
Michael Hanselmann [Fri, 3 Aug 2007 09:08:40 +0000 (09:08 +0000)]
- Check for docbook2man and print warning if it's not there
- Cleanup
Reviewed-by: iustinp
Michael Hanselmann [Fri, 3 Aug 2007 09:05:03 +0000 (09:05 +0000)]
Update svn:ignore.
Reviewed-by: iustinp
Guido Trotter [Thu, 2 Aug 2007 22:04:45 +0000 (22:04 +0000)]
Add disk template information to the admin manual
Add warning about avoiding xm commands for instance creation
Also fix a man page reference in installing.sgml to use the docbook format
Reviewed-By: iustinp
Michael Hanselmann [Thu, 2 Aug 2007 16:40:31 +0000 (16:40 +0000)]
Implement --dry-run for cfgupgrade.
Reviewed-by: iustinp
Michael Hanselmann [Thu, 2 Aug 2007 15:54:31 +0000 (15:54 +0000)]
Put default bridge into constant.
Reviewed-by: iustinp
Michael Hanselmann [Thu, 2 Aug 2007 13:45:56 +0000 (13:45 +0000)]
Add configuration upgrade utility.
Reviewed-by: iustinp
Michael Hanselmann [Thu, 2 Aug 2007 12:51:35 +0000 (12:51 +0000)]
Implement __setitem__ for ConfigObject to add container protocol compatibility.
Guido Trotter [Thu, 2 Aug 2007 12:50:04 +0000 (12:50 +0000)]
Add the ganeti admin manual
Refer to the glossary from the installing guide
Reviewed-By: iustinp
Guido Trotter [Thu, 2 Aug 2007 09:41:05 +0000 (09:41 +0000)]
Fix a function's doc string
Reviewed-By: iustinp
Guido Trotter [Mon, 30 Jul 2007 14:30:46 +0000 (14:30 +0000)]
Ganeti installation tutorial
Reviewed-By: iustinp, imsnah
Michael Hanselmann [Mon, 30 Jul 2007 12:40:13 +0000 (12:40 +0000)]
Fix issues reported by pylint.
Reviewed-by: iustinp
Michael Hanselmann [Fri, 27 Jul 2007 13:26:26 +0000 (13:26 +0000)]
Use OutputTable for “gnt-os list”.
Reviewed-by: iustinp
Michael Hanselmann [Fri, 27 Jul 2007 12:28:16 +0000 (12:28 +0000)]
Unify environment variables for instance related hooks.
Reviewed-by: iustinp
Michael Hanselmann [Fri, 27 Jul 2007 10:00:50 +0000 (10:00 +0000)]
Check for instances on “gnt-cluster destroy”.
Reviewed-by: iustinp
Michael Hanselmann [Fri, 27 Jul 2007 09:34:32 +0000 (09:34 +0000)]
Remove defectiv comma.
Reviewed-by: iustinp
Michael Hanselmann [Fri, 27 Jul 2007 09:05:03 +0000 (09:05 +0000)]
- Implement “gnt-instance reinstall --os-type=…”
- Add the command to gnt-instance.sgml
Reviewed-by: iustinp
Iustin Pop [Fri, 27 Jul 2007 08:15:21 +0000 (08:15 +0000)]
Fix the "gnt-cluster getmaster" command by making the LuQueryClusterInfo
runnable on non-master nodes (and remove the list of instances and nodes
returned by it, that information can be retrieved by other opcodes).
Also, remove the node/instance list from "gnt-cluster info" as it
doesn't make sense to duplicate this information.
Reviewed-by: imsnah
Iustin Pop [Fri, 27 Jul 2007 07:41:30 +0000 (07:41 +0000)]
Move the cluster name from ConfigWriter to SimpleStore.
Reason: if left ConfigWriter, nodes don't know to which cluster they belong.
This will bite us later when we'll revisit node join operation.
Cons: we lose the cluster name from the config file, which means a
standalone "cluster.data" is a little bit harder to analyze. But I have
a plan for this which will follow shortly.
Implementing this will also allow us to cleanly fix "gnt-cluster
getmaster".
Reviewed-by: imsnah
Michael Hanselmann [Thu, 26 Jul 2007 16:09:11 +0000 (16:09 +0000)]
- Move --force option to cli.py
- Implement “gnt-instance reinstall”
- Fix two typos
Reviewed-by: iustinp
Michael Hanselmann [Thu, 26 Jul 2007 15:26:55 +0000 (15:26 +0000)]
Don't pass master_node
Reviewed-by: iustinp
Michael Hanselmann [Thu, 26 Jul 2007 11:40:37 +0000 (11:40 +0000)]
Comment formatting updates.
Reviewed-by: iustinp
Iustin Pop [Thu, 26 Jul 2007 08:48:38 +0000 (08:48 +0000)]
The master_node is no longer stored in the config file (but in sstore)
and all users have been converted, let's remove it from the slots of the
cluster object.
Also let's move the tcpudp_port_pool to the cluster object.
Reviewed-by: imsnah
Michael Hanselmann [Wed, 25 Jul 2007 16:16:24 +0000 (16:16 +0000)]
Get ports from configuration if there are some.
Reviewed-by: iustinp
Iustin Pop [Wed, 25 Jul 2007 13:34:46 +0000 (13:34 +0000)]
It seems the _CheckNodesDirs function is no longer used. Let's remove it.
Iustin Pop [Wed, 25 Jul 2007 11:46:06 +0000 (11:46 +0000)]
Since the watcher can run on all nodes, let's get rid of the cron file
handling, as it can be static and outside of ganeti.
This also means we can get rid of a lot of infrastructure too:
- the master/node config files checkers
- one rpc function
Michael Hanselmann [Wed, 25 Jul 2007 10:27:11 +0000 (10:27 +0000)]
Update for the new tests.
Michael Hanselmann [Wed, 25 Jul 2007 10:12:16 +0000 (10:12 +0000)]
- Use new --master-netdev parameter on gnt-cluster init
- Split up info tests and add more of them
- Replace map() by [x for x in y]
Reviewed-by: iustinp
Michael Hanselmann [Wed, 25 Jul 2007 09:44:39 +0000 (09:44 +0000)]
Implement “cd /” and “cd” to get to the root directory.
Reviewed-by: iustinp
Iustin Pop [Wed, 25 Jul 2007 08:05:17 +0000 (08:05 +0000)]
Make the ganeti-watcher exit gracefully if it's not run on the
Reviewed-by: imsnah
Michael Hanselmann [Tue, 24 Jul 2007 14:10:00 +0000 (14:10 +0000)]
Add description, fix indentation.
Reviewed-by: iustinp
Michael Hanselmann [Tue, 24 Jul 2007 13:43:58 +0000 (13:43 +0000)]
Fix parameter formatting.
Reviewed-by: iustinp
Iustin Pop [Tue, 24 Jul 2007 13:29:59 +0000 (13:29 +0000)]
Add small security considerations file.
Reviewed-by: imsnah
Michael Hanselmann [Tue, 24 Jul 2007 13:29:43 +0000 (13:29 +0000)]
Use generic function to output tables.
Reviewed-by: iustinp
Iustin Pop [Tue, 24 Jul 2007 12:18:23 +0000 (12:18 +0000)]
Update the init script to start both the node daemon and the
Reviewed-by: imsnah
Michael Hanselmann [Tue, 24 Jul 2007 11:45:11 +0000 (11:45 +0000)]
- Implement “gnt-node volumes”
- Create all --output options using a constant
- Put node checking code from opcodes into a single function
- Do the same for output fields
Reviewed-by: iustinp
Iustin Pop [Mon, 23 Jul 2007 14:38:05 +0000 (14:38 +0000)]
Big change/cleanup in relation to the master startup:
- move the master node name from the ConfigWriter to SimpleStore (all
nodes need this, and it was the only thing pulled in from the
ConfigWriter on nodes)
- fix mcpu.py and the testing w.r.t. this change; for testing, rename
the fake_config.py to mocks.py and add a FakeSStore object
- then add a ganeti-master script which can be run on any node at boot
and which will not do anything if not master on start (on stop it
will still try to remove the ip address)
- also add a new cluster-wide variable (master_netdev) that determines
on which interface we add this ip address; it's customizable at
cluster init time
- also remove the cluster name file which was separately handled from
ssconf (not needed anymore)
- remove the master init.d links from the list of config files as this
is not our responsibility now
Guido Trotter [Mon, 23 Jul 2007 12:14:01 +0000 (12:14 +0000)]
Do the secondary check and subsequently allocate the drive on all available
logival volumes. This lets you use more than one when none of them can support
your full drive size.
Reviewed-By: iustinp
Guido Trotter [Mon, 23 Jul 2007 11:33:44 +0000 (11:33 +0000)]
Fix a typo in an error message, and actually pass it its parameters.
Reviewed-By: imsnah
Michael Hanselmann [Mon, 23 Jul 2007 10:27:58 +0000 (10:27 +0000)]
Output instance name in error message instead of object representation.
Reviewed-by: iustinp
Iustin Pop [Mon, 23 Jul 2007 08:53:01 +0000 (08:53 +0000)]
Fix small typo.
Reviewed-by: imsnah
Iustin Pop [Mon, 23 Jul 2007 07:45:32 +0000 (07:45 +0000)]
Add the gnt-backup script and man-pages.
Reviewed-by: imsnah
Michael Hanselmann [Mon, 23 Jul 2007 07:44:44 +0000 (07:44 +0000)]
Update svn:ignore
Michael Hanselmann [Mon, 23 Jul 2007 07:44:17 +0000 (07:44 +0000)]
Fix calls to _GenerateMDDRBDBranch.
Reviewed-by: iustinp
Michael Hanselmann [Mon, 23 Jul 2007 07:43:37 +0000 (07:43 +0000)]
Allow default bridge to be configured.
Reviewed-by: iustinp
Michael Hanselmann [Mon, 23 Jul 2007 07:43:06 +0000 (07:43 +0000)]
- Describe -b option for "gnt-cluster init"
- Fix typo