ganeti-local
16 years ago- Don't build .tar.bz2, we only distribute .tar.gz anyway.
Michael Hanselmann [Tue, 11 Sep 2007 08:45:54 +0000 (08:45 +0000)]
- Don't build .tar.bz2, we only distribute .tar.gz anyway.
- Clean generated files on “make maintainer-clean”.
- Build _autoconf.py and ganeti.initd on “make all”.

Reviewed-by: iustinp

16 years agoMake import/export use the auxiliary ssh library to build the remote commands.
Guido Trotter [Fri, 7 Sep 2007 11:30:50 +0000 (11:30 +0000)]
Make import/export use the auxiliary ssh library to build the remote commands.

This avoids forgetting some parameters, as it's happening right now
(the correct known host file is not being passed)

In order to do so we split SSHCall into an auxiliary BuildSSHCmd which builds
the command but doesn't actually call it, and SSHCall itself which runs RunCmd
on top of BuildSSHCmd's result. BuildSSHCmd is then explicitely called by
import/export who has to build a more complex command to be run later.

16 years agoFix two errors in man page
Guido Trotter [Fri, 7 Sep 2007 08:09:19 +0000 (08:09 +0000)]
Fix two errors in man page

16 years agoAdd function to get all local IP addresses, will be used in cmdlib.py.
Michael Hanselmann [Wed, 5 Sep 2007 17:14:52 +0000 (17:14 +0000)]
Add function to get all local IP addresses, will be used in cmdlib.py.

Reviewed-by: schreiberal

16 years agoUse configure's paths in the init script example.
Michael Hanselmann [Tue, 4 Sep 2007 15:27:01 +0000 (15:27 +0000)]
Use configure's paths in the init script example.

Reviewed-by: schreiberal

16 years agoNow that we use configure's variables, add --sysconfdir to configure.
Michael Hanselmann [Tue, 4 Sep 2007 13:10:14 +0000 (13:10 +0000)]
Now that we use configure's variables, add --sysconfdir to configure.

Reviewed-by: ultrotter

16 years agoUse _autoconf.py instead of version.py, generated by Makefile with more
Michael Hanselmann [Tue, 4 Sep 2007 11:32:31 +0000 (11:32 +0000)]
Use _autoconf.py instead of version.py, generated by Makefile with more
variables. The underline is there to mark it as a private module.

Reviewed-by: iustinp

16 years agoCombine rules for manpages.
Michael Hanselmann [Tue, 4 Sep 2007 07:35:55 +0000 (07:35 +0000)]
Combine rules for manpages.

Reviewed-by: iustinp

16 years agoUse DESTDIR when creating additional directories.
Michael Hanselmann [Tue, 4 Sep 2007 07:35:12 +0000 (07:35 +0000)]
Use DESTDIR when creating additional directories.

Reviewed-by: iustinp

16 years ago- Generic automake cleanup
Michael Hanselmann [Mon, 3 Sep 2007 14:42:08 +0000 (14:42 +0000)]
- Generic automake cleanup
- Bump version number to 1.2b2
- Add version.py file generated from version.py.in by autoconf

Reviewed-by: schreiberal

16 years ago- Add Makefile in doc/examples/
Michael Hanselmann [Mon, 3 Sep 2007 13:28:54 +0000 (13:28 +0000)]
- Add Makefile in doc/examples/

16 years ago- Rename docs/ to doc/
Michael Hanselmann [Mon, 3 Sep 2007 13:23:20 +0000 (13:23 +0000)]
- Rename docs/ to doc/
- Add Makefile in doc/examples/

Reviewed-by: schreiberal

16 years agoSwitch utils.RunCmd from popen2 to subprocess
Iustin Pop [Mon, 3 Sep 2007 11:22:22 +0000 (11:22 +0000)]
Switch utils.RunCmd from popen2 to subprocess

This changes the implementation of RunCmd from using the popen2 module
to using the (new in 2.4) subprocess module.

This is helpful because the subprocess module has more advanced features
than popen2, the most important ones being the ability to run code in the
child process before the exec and ability to launch with modified
environment.

Reviewed-by: imsnah

16 years agoAdd a small unittext extension for utils.RunCmd
Iustin Pop [Mon, 3 Sep 2007 08:04:24 +0000 (08:04 +0000)]
Add a small unittext extension for utils.RunCmd

Reviewed-by: imsnah

16 years agoTest “gnt-node volumes”.
Michael Hanselmann [Fri, 31 Aug 2007 15:36:47 +0000 (15:36 +0000)]
Test “gnt-node volumes”.

Reviewed-by: iustinp

16 years agoAdd note about Debian default dbrd.conf
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

16 years agoBump up version to beta1 v1.2b1
Iustin Pop [Thu, 30 Aug 2007 18:33:00 +0000 (18:33 +0000)]
Bump up version to beta1

16 years agoFix capitalization.
Michael Hanselmann [Thu, 30 Aug 2007 18:27:05 +0000 (18:27 +0000)]
Fix capitalization.

Reviewed-by: iustinp

16 years agoFix some spelling mistakes
Iustin Pop [Thu, 30 Aug 2007 18:19:24 +0000 (18:19 +0000)]
Fix some spelling mistakes

16 years agoAdd note about lvm.conf tuning
Iustin Pop [Thu, 30 Aug 2007 18:10:34 +0000 (18:10 +0000)]
Add note about lvm.conf tuning

Reviewed-by: imsnah

16 years agoPass --os-size and --swap-size to burnin during QA.
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

16 years agoFix the path in the example cron file
Iustin Pop [Thu, 30 Aug 2007 17:27:12 +0000 (17:27 +0000)]
Fix the path in the example cron file

Reviewed-by: imsnah

16 years agoFix a typo in install.sgml
Guido Trotter [Thu, 30 Aug 2007 16:50:20 +0000 (16:50 +0000)]
Fix a typo in install.sgml

Reviewed-By: iustinp

16 years agoAdd information about the recommended Xen settings
Iustin Pop [Thu, 30 Aug 2007 16:37:21 +0000 (16:37 +0000)]
Add information about the recommended Xen settings

Reviewed-by: imsnah

16 years agoFix mdadm -D output compatibility issues.
Iustin Pop [Thu, 30 Aug 2007 16:16:32 +0000 (16:16 +0000)]
Fix mdadm -D output compatibility issues.

Also add some debugging output.

16 years ago- Check for secondary node before doing a failover.
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

16 years agoAdd a safety check to the backend.AddOSToInstance
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

16 years agoAdd one more check on cluster init.
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

16 years agoMore updates to the installation tutorial.
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

16 years agoAdd note about manually loading the drbd module
Iustin Pop [Thu, 30 Aug 2007 12:53:48 +0000 (12:53 +0000)]
Add note about manually loading the drbd module

16 years agoAdd note about running the Xen kernel before compiling DRBD
Iustin Pop [Thu, 30 Aug 2007 12:52:23 +0000 (12:52 +0000)]
Add note about running the Xen kernel before compiling DRBD

16 years agoAdd mdadm to the debian example
Iustin Pop [Thu, 30 Aug 2007 12:30:39 +0000 (12:30 +0000)]
Add mdadm to the debian example

Reviewed-by: roman.marxer

16 years agoAdd more details about hostname issues
Iustin Pop [Thu, 30 Aug 2007 12:14:15 +0000 (12:14 +0000)]
Add more details about hostname issues

16 years agoFix the manpage gnt-instance w.r.t. units
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

16 years agoDocument kernel selection method
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

16 years agoNew version of install.sgml
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

16 years agoRefuse nodes with non-FQDN hostnames.
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

16 years agoDocbook-relate changes on admin.sgml
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

16 years agoCleanup of the installation tutorial.
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

16 years agoFix compatibility problems with mdadm-2.5.6
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

16 years agoChanged INSTALL to point to the tutorial and admin guide.
Iustin Pop [Mon, 27 Aug 2007 09:20:54 +0000 (09:20 +0000)]
Changed INSTALL to point to the tutorial and admin guide.

16 years agoImplement argument for known_hosts file.
Michael Hanselmann [Fri, 24 Aug 2007 12:29:54 +0000 (12:29 +0000)]
Implement argument for known_hosts file.

Reviewed-by: iustinp

16 years agoSet SSH's ClearAllForwardings and ForwardAgent options.
Michael Hanselmann [Fri, 24 Aug 2007 11:38:31 +0000 (11:38 +0000)]
Set SSH's ClearAllForwardings and ForwardAgent options.

Reviewed-by: iustinp

16 years ago- Test “gnt-cluster copyfile”
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

16 years agoRework ssh known-hosts handling.
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

16 years agoImprove LURunClusterCommand
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

16 years agoFix one wrong usage of _GetWantedNodes
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

16 years agoFix typo.
Michael Hanselmann [Tue, 21 Aug 2007 14:35:59 +0000 (14:35 +0000)]
Fix typo.

Reviewed-by: iustin

16 years agoRename installing.sgml to install.sgml
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

16 years agoAdd information about installing from source.
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

16 years agoDisable hashing of the ssh keys.
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.

16 years agoAdd support for listing instance disk sizes.
Iustin Pop [Mon, 20 Aug 2007 12:17:50 +0000 (12:17 +0000)]
Add support for listing instance disk sizes.

Reviewed-by: imsnah

16 years agoA CheckPrereq method had one unconverted "return 1" statement. Change it to the
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

16 years agoAdd ganeti-master to sbin_SCRIPTS
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

16 years agoChange cli.OutputTable to cli.GenerateTable
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

16 years agoAnother documentation update.
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).

16 years agoSome small fixes.
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.

16 years agoDocumentation updates.
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

16 years agoSome changes to the installation manual.
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

16 years agoStyle changes for pep-8 and python-3000 compliance.
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).

16 years agoImplement tag support for cluster, nodes and instances.
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

16 years agoDon't bail out if node isn't there on “gnt-node volumes”.
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

16 years agoPrepare for the tags implementation:
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

16 years agoImport constants into gnt-cluster.
Michael Hanselmann [Fri, 3 Aug 2007 13:54:47 +0000 (13:54 +0000)]
Import constants into gnt-cluster.

Reviewed-by: iustinp

16 years agoRe-stat the config file when we write it so that the next _OpenConfig()
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.

16 years agoAdd instance name to LVM volume as a tag.
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

16 years agoImplement a standard way of getting the cluster object from the
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

16 years agoChange logival volume names to not be based on the instance's name, but
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

16 years agoPut synchronization speed into constant.
Michael Hanselmann [Fri, 3 Aug 2007 09:18:13 +0000 (09:18 +0000)]
Put synchronization speed into constant.

Reviewed-by: iustinp

16 years ago- Check for docbook2man and print warning if it's not there
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

16 years agoUpdate svn:ignore.
Michael Hanselmann [Fri, 3 Aug 2007 09:05:03 +0000 (09:05 +0000)]
Update svn:ignore.

Reviewed-by: iustinp

16 years agoAdd disk template information to the admin manual
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

16 years agoImplement --dry-run for cfgupgrade.
Michael Hanselmann [Thu, 2 Aug 2007 16:40:31 +0000 (16:40 +0000)]
Implement --dry-run for cfgupgrade.

Reviewed-by: iustinp

16 years agoPut default bridge into constant.
Michael Hanselmann [Thu, 2 Aug 2007 15:54:31 +0000 (15:54 +0000)]
Put default bridge into constant.

Reviewed-by: iustinp

16 years agoAdd configuration upgrade utility.
Michael Hanselmann [Thu, 2 Aug 2007 13:45:56 +0000 (13:45 +0000)]
Add configuration upgrade utility.

Reviewed-by: iustinp

16 years agoImplement __setitem__ for ConfigObject to add container protocol compatibility.
Michael Hanselmann [Thu, 2 Aug 2007 12:51:35 +0000 (12:51 +0000)]
Implement __setitem__ for ConfigObject to add container protocol compatibility.

16 years agoAdd the ganeti admin manual
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

16 years agoFix a function's doc string
Guido Trotter [Thu, 2 Aug 2007 09:41:05 +0000 (09:41 +0000)]
Fix a function's doc string

Reviewed-By: iustinp

16 years agoGaneti installation tutorial
Guido Trotter [Mon, 30 Jul 2007 14:30:46 +0000 (14:30 +0000)]
Ganeti installation tutorial

Reviewed-By: iustinp, imsnah

16 years agoFix issues reported by pylint.
Michael Hanselmann [Mon, 30 Jul 2007 12:40:13 +0000 (12:40 +0000)]
Fix issues reported by pylint.

Reviewed-by: iustinp

16 years agoUse OutputTable for “gnt-os list”.
Michael Hanselmann [Fri, 27 Jul 2007 13:26:26 +0000 (13:26 +0000)]
Use OutputTable for “gnt-os list”.

Reviewed-by: iustinp

16 years agoUnify environment variables for instance related hooks.
Michael Hanselmann [Fri, 27 Jul 2007 12:28:16 +0000 (12:28 +0000)]
Unify environment variables for instance related hooks.

Reviewed-by: iustinp

16 years agoCheck for instances on “gnt-cluster destroy”.
Michael Hanselmann [Fri, 27 Jul 2007 10:00:50 +0000 (10:00 +0000)]
Check for instances on “gnt-cluster destroy”.

Reviewed-by: iustinp

16 years agoRemove defectiv comma.
Michael Hanselmann [Fri, 27 Jul 2007 09:34:32 +0000 (09:34 +0000)]
Remove defectiv comma.

Reviewed-by: iustinp

16 years ago- Implement “gnt-instance reinstall --os-type=…”
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

16 years agoFix the "gnt-cluster getmaster" command by making the LuQueryClusterInfo
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

16 years agoMove the cluster name from ConfigWriter to SimpleStore.
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

16 years ago- Move --force option to cli.py
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

16 years agoDon't pass master_node
Michael Hanselmann [Thu, 26 Jul 2007 15:26:55 +0000 (15:26 +0000)]
Don't pass master_node

Reviewed-by: iustinp

16 years agoComment formatting updates.
Michael Hanselmann [Thu, 26 Jul 2007 11:40:37 +0000 (11:40 +0000)]
Comment formatting updates.

Reviewed-by: iustinp

16 years agoThe master_node is no longer stored in the config file (but in sstore)
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

16 years agoGet ports from configuration if there are some.
Michael Hanselmann [Wed, 25 Jul 2007 16:16:24 +0000 (16:16 +0000)]
Get ports from configuration if there are some.

Reviewed-by: iustinp

16 years agoIt seems the _CheckNodesDirs function is no longer used. Let's remove it.
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.

16 years agoSince the watcher can run on all nodes, let's get rid of the cron file
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

16 years agoUpdate for the new tests.
Michael Hanselmann [Wed, 25 Jul 2007 10:27:11 +0000 (10:27 +0000)]
Update for the new tests.

16 years ago- Use new --master-netdev parameter on gnt-cluster init
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

16 years agoImplement “cd /” and “cd” to get to the root directory.
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

16 years agoMake the ganeti-watcher exit gracefully if it's not run on the master.
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

16 years agoAdd description, fix indentation.
Michael Hanselmann [Tue, 24 Jul 2007 14:10:00 +0000 (14:10 +0000)]
Add description, fix indentation.

Reviewed-by: iustinp

16 years agoFix parameter formatting.
Michael Hanselmann [Tue, 24 Jul 2007 13:43:58 +0000 (13:43 +0000)]
Fix parameter formatting.

Reviewed-by: iustinp