Statistics
| Branch: | Tag: | Revision:

root @ cec9845c

# Date Author Comment
cec9845c 09/13/2007 03:46 pm Michael Hanselmann

Split QA script into different modules.

Reviewed-by: iustinp

8a23d2d3 09/13/2007 02:49 pm Iustin Pop

Move string formatting out of LUQueryInstances

Currently, LUQueryInstances will provide strings for its results. This makes it
hard for other consumers than "gnt-instance list" to use the OpQueryInstances
opcode for whatever they wish to.

The change moves the formatting in five of the six cases where this happens to...

72f0f7fd 09/13/2007 02:31 pm Iustin Pop

Fix the ssh change which breaks remote ssh commands

Explanation: since we use lists and not a string, every argument we give
is passed unchanged to the remote shell. So, for example, passing
'/etc/init.d/ganeti restart' to the remote shell, it will try to run the...

4e5e8bfc 09/12/2007 08:46 pm Michael Hanselmann

Complete rename of testing/ to test/.

Reviewed-by: iustin

5ca84bdd 09/12/2007 06:54 pm Michael Hanselmann

Fix typo in last commit.

a2ce5c4d 09/12/2007 06:51 pm Michael Hanselmann

Rename testing/ to test/.

b945849c 09/12/2007 06:17 pm Michael Hanselmann

Clean *.py[co] in testing/.

Reviewed-by: iustin

44c23fa6 09/12/2007 06:12 pm Michael Hanselmann

Move QA script from testing/ to qa/.

Reviewed-by: iustin

23f41a3e 09/12/2007 03:02 pm Michael Hanselmann

Change the way how locales are overridden:
- Set only LC_ALL, it overrides any other variable
- Restore environment after unittest

Reviewed-by: iustinp

3312b702 09/12/2007 02:58 pm Iustin Pop

Clone cmdlib._GetWantedNodes into _GetWantedInstances

This duplicates _GetWantedNodes to _GetWantedInstances, after doing some
changes to it:
- fix an indentation error that should result in only the last node
name passed being chosen
- change the function to have a single return statement...

fdc267f4 09/12/2007 01:32 pm Iustin Pop

Fix docstrings of many opcodes

Reviewed-by: imsnah

f6441c7c 09/11/2007 03:18 pm Iustin Pop

Filters out LANG and LC_* on RunCmd

This filters out the LANG and LC_ variables from the environment of programs
executed by RunCmd, in order to get consistent output of execute programs like
lvs, etc.

Reviewed-by: imsnah

8e587e52 09/11/2007 11:45 am Michael Hanselmann

- 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

00003458 09/07/2007 02:30 pm Guido Trotter

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...

017778ac 09/07/2007 11:09 am Guido Trotter

Fix two errors in man page

88d14415 09/05/2007 08:14 pm Michael Hanselmann

Add function to get all local IP addresses, will be used in cmdlib.py.

Reviewed-by: schreiberal

c1671c0e 09/04/2007 06:27 pm Michael Hanselmann

Use configure's paths in the init script example.

Reviewed-by: schreiberal

bd205d0e 09/04/2007 04:10 pm Michael Hanselmann

Now that we use configure's variables, add --sysconfdir to configure.

Reviewed-by: ultrotter

2ec08468 09/04/2007 02:32 pm Michael Hanselmann

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

9dda7cb1 09/04/2007 10:35 am Michael Hanselmann

Combine rules for manpages.

Reviewed-by: iustinp

38d9d95d 09/04/2007 10:35 am Michael Hanselmann

Use DESTDIR when creating additional directories.

Reviewed-by: iustinp

7c18ef8e 09/03/2007 05:42 pm Michael Hanselmann

- Generic automake cleanup
- Bump version number to 1.2b2
- Add version.py file generated from version.py.in by autoconf

Reviewed-by: schreiberal

7d4ee540 09/03/2007 04:28 pm Michael Hanselmann

- Add Makefile in doc/examples/

04daec5d 09/03/2007 04:23 pm Michael Hanselmann

- Rename docs/ to doc/
- Add Makefile in doc/examples/

Reviewed-by: schreiberal

113b55aa 09/03/2007 02:22 pm Iustin Pop

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...

7fcf849f 09/03/2007 11:04 am Iustin Pop

Add a small unittext extension for utils.RunCmd

Reviewed-by: imsnah

9df6d173 08/31/2007 06:36 pm Michael Hanselmann

Test “gnt-node volumes”.

Reviewed-by: iustinp

61bf23ec 08/31/2007 12:12 pm Iustin Pop

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

3571f686 08/30/2007 09:33 pm Iustin Pop

Bump up version to beta1

051f92ec 08/30/2007 09:27 pm Michael Hanselmann

Fix capitalization.

Reviewed-by: iustinp

ac232de3 08/30/2007 09:19 pm Iustin Pop

Fix some spelling mistakes

89624642 08/30/2007 09:10 pm Iustin Pop

Add note about lvm.conf tuning

Reviewed-by: imsnah

a0e7cec8 08/30/2007 08:49 pm Michael Hanselmann

Pass --os-size and --swap-size to burnin during QA.

Reviewed-by: iustinp

78ac0e0d 08/30/2007 08:27 pm Iustin Pop

Fix the path in the example cron file

Reviewed-by: imsnah

958c8f40 08/30/2007 07:50 pm Guido Trotter

Fix a typo in install.sgml

Reviewed-By: iustinp

0a2a0d91 08/30/2007 07:37 pm Iustin Pop

Add information about the recommended Xen settings

Reviewed-by: imsnah

8d519422 08/30/2007 07:16 pm Iustin Pop

Fix mdadm -D output compatibility issues.

Also add some debugging output.

2a710df1 08/30/2007 06:36 pm Michael Hanselmann

- Check for secondary node before doing a failover.
- Replace magic values by constants.

Reviewed-by: iustinp

c20494cd 08/30/2007 05:32 pm Iustin Pop

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

130e907e 08/30/2007 05:30 pm Iustin Pop

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

727830bf 08/30/2007 05:21 pm Iustin Pop

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...

dd3701d1 08/30/2007 03:53 pm Iustin Pop

Add note about manually loading the drbd module

851765bb 08/30/2007 03:52 pm Iustin Pop

Add note about running the Xen kernel before compiling DRBD

65ca7c46 08/30/2007 03:30 pm Iustin Pop

Add mdadm to the debian example

Reviewed-by: roman.marxer

5a96795f 08/30/2007 03:14 pm Iustin Pop

Add more details about hostname issues

b9ac33e9 08/30/2007 01:29 pm Iustin Pop

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

16450d30 08/30/2007 12:35 pm Iustin Pop

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...

32ad0582 08/29/2007 05:34 pm Iustin Pop

New version of install.sgml

This adds more examples and clarifies the existing ones.

Reviewed-by: roman.marxer

ff98055b 08/28/2007 03:25 pm Iustin Pop

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

ec377077 08/28/2007 02:35 pm Iustin Pop

Docbook-relate changes on admin.sgml

This changes a lot of docbook-related stuff and addresses a few consistency
issues.

Reviewed-by: vylavera

0bac47cf 08/28/2007 11:54 am Iustin Pop

Cleanup of the installation tutorial.

This fixes some consistency issues.

Reviewed-by: vylavera

1a87dca7 08/28/2007 11:50 am Iustin Pop

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

4096472d 08/27/2007 12:20 pm Iustin Pop

Changed INSTALL to point to the tutorial and admin guide.

94508060 08/24/2007 03:29 pm Michael Hanselmann

Implement argument for known_hosts file.

Reviewed-by: iustinp

807d926c 08/24/2007 02:38 pm Michael Hanselmann

Set SSH's ClearAllForwardings and ForwardAgent options.

Reviewed-by: iustinp

180bdd1f 08/24/2007 01:23 pm Michael Hanselmann

- 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

82122173 08/24/2007 12:20 pm Iustin Pop

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...

02715459 08/23/2007 04:59 pm Iustin Pop

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....

8bd562f5 08/22/2007 06:53 pm Iustin Pop

Fix one wrong usage of _GetWantedNodes

_GetWantedNodes is used wrongly by the LUClusterCopyFile. This fixes that.

Reviewed-by: imsnah

31ee599c 08/21/2007 05:35 pm Michael Hanselmann

Fix typo.

Reviewed-by: iustin

b212bf8b 08/21/2007 11:39 am Iustin Pop

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

5cd0d9c0 08/20/2007 05:43 pm Iustin Pop

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....

3899870e 08/20/2007 04:27 pm Iustin Pop

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.

644eeef9 08/20/2007 03:17 pm Iustin Pop

Add support for listing instance disk sizes.

Reviewed-by: imsnah

a02bc76e 08/20/2007 02:29 pm Iustin Pop

A CheckPrereq method had one unconverted "return 1" statement. Change it to the
appropriate raise.

Reviewed-by: imsnah

ce482672 08/20/2007 11:21 am Iustin Pop

Add ganeti-master to sbin_SCRIPTS

This was forgotten when the init script was changed.

Reviewed-by: imsnah

16be8703 08/17/2007 12:14 pm Iustin Pop

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

1005b0c1 08/16/2007 06:23 pm Iustin Pop

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...

8925faaa 08/16/2007 06:13 pm Iustin Pop

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.

a7a19281 08/16/2007 04:06 pm Iustin Pop

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

5d6dd340 08/15/2007 06:15 pm Iustin Pop

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

3ecf6786 08/14/2007 06:17 pm Iustin Pop

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...

5c947f38 08/08/2007 12:37 pm Iustin Pop

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

37d19eb2 08/06/2007 02:26 pm Michael Hanselmann

Don't bail out if node isn't there on “gnt-node volumes”.

Reviewed-by: iustinp

e00fb268 08/03/2007 06:04 pm Iustin Pop

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

c2a62a33 08/03/2007 04:54 pm Michael Hanselmann

Import constants into gnt-cluster.

Reviewed-by: iustinp

fee9556c 08/03/2007 03:51 pm Iustin Pop

Re-stat the config file when we write it so that the next _OpenConfig()
won't reread it if not modified by someone else.

a0c3fea1 08/03/2007 03:35 pm Michael Hanselmann

Add instance name to LVM volume as a tag.

Reviewed-by: iustinp

62779dd0 08/03/2007 02:03 pm Iustin Pop

Implement a standard way of getting the cluster object from the
configuration.

Reviewed-by: imsnah

923b1523 08/03/2007 12:57 pm Iustin Pop

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

e31c43f7 08/03/2007 12:18 pm Michael Hanselmann

Put synchronization speed into constant.

Reviewed-by: iustinp

a5d17f9f 08/03/2007 12:08 pm Michael Hanselmann

- Check for docbook2man and print warning if it's not there
- Cleanup

Reviewed-by: iustinp

4aae7c5a 08/03/2007 12:05 pm Michael Hanselmann

Update svn:ignore.

Reviewed-by: iustinp

53b78ba4 08/03/2007 01:04 am Guido Trotter

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

60edf71e 08/02/2007 07:40 pm Michael Hanselmann

Implement --dry-run for cfgupgrade.

Reviewed-by: iustinp

cf62a272 08/02/2007 06:54 pm Michael Hanselmann

Put default bridge into constant.

Reviewed-by: iustinp

0006af7d 08/02/2007 04:45 pm Michael Hanselmann

Add configuration upgrade utility.

Reviewed-by: iustinp

47c28c5b 08/02/2007 03:51 pm Michael Hanselmann

Implement setitem for ConfigObject to add container protocol compatibility.

6bf0c9bb 08/02/2007 03:50 pm Guido Trotter

Add the ganeti admin manual
Refer to the glossary from the installing guide

Reviewed-By: iustinp

bdb8c997 08/02/2007 12:41 pm Guido Trotter

Fix a function's doc string

Reviewed-By: iustinp

f1a808df 07/30/2007 05:30 pm Guido Trotter

Ganeti installation tutorial

Reviewed-By: iustinp, imsnah

ecb215b5 07/30/2007 03:40 pm Michael Hanselmann

Fix issues reported by pylint.

Reviewed-by: iustinp

606d909d 07/27/2007 04:26 pm Michael Hanselmann

Use OutputTable for “gnt-os list”.

Reviewed-by: iustinp

396e1b78 07/27/2007 03:28 pm Michael Hanselmann

Unify environment variables for instance related hooks.

Reviewed-by: iustinp

db915bd1 07/27/2007 01:00 pm Michael Hanselmann

Check for instances on “gnt-cluster destroy”.

Reviewed-by: iustinp

739ecd56 07/27/2007 12:34 pm Michael Hanselmann

Remove defectiv comma.

Reviewed-by: iustinp

d0834de3 07/27/2007 12:05 pm Michael Hanselmann

- Implement “gnt-instance reinstall --os-type=…”
- Add the command to gnt-instance.sgml

Reviewed-by: iustinp

59322403 07/27/2007 11:15 am Iustin Pop

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...

5fcdc80d 07/27/2007 10:41 am Iustin Pop

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...

fe7b0351 07/26/2007 07:09 pm Michael Hanselmann

- Move --force option to cli.py
- Implement “gnt-instance reinstall”
- Fix two typos

Reviewed-by: iustinp