ganeti-local
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

16 years agoAdd small security considerations file.
Iustin Pop [Tue, 24 Jul 2007 13:29:59 +0000 (13:29 +0000)]
Add small security considerations file.

Reviewed-by: imsnah

16 years agoUse generic function to output tables.
Michael Hanselmann [Tue, 24 Jul 2007 13:29:43 +0000 (13:29 +0000)]
Use generic function to output tables.

Reviewed-by: iustinp

16 years agoUpdate the init script to start both the node daemon and the master.
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

16 years ago- Implement “gnt-node volumes”
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

16 years agoBig change/cleanup in relation to the master startup:
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

16 years agoDo the secondary check and subsequently allocate the drive on all available
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

16 years agoFix a typo in an error message, and actually pass it its parameters.
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

16 years agoOutput instance name in error message instead of object representation.
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

16 years agoFix small typo.
Iustin Pop [Mon, 23 Jul 2007 08:53:01 +0000 (08:53 +0000)]
Fix small typo.

Reviewed-by: imsnah

16 years agoAdd the gnt-backup script and man-pages.
Iustin Pop [Mon, 23 Jul 2007 07:45:32 +0000 (07:45 +0000)]
Add the gnt-backup script and man-pages.

Reviewed-by: imsnah

16 years agoUpdate svn:ignore
Michael Hanselmann [Mon, 23 Jul 2007 07:44:44 +0000 (07:44 +0000)]
Update svn:ignore

16 years agoFix calls to _GenerateMDDRBDBranch.
Michael Hanselmann [Mon, 23 Jul 2007 07:44:17 +0000 (07:44 +0000)]
Fix calls to _GenerateMDDRBDBranch.

Reviewed-by: iustinp

16 years agoAllow default bridge to be configured.
Michael Hanselmann [Mon, 23 Jul 2007 07:43:37 +0000 (07:43 +0000)]
Allow default bridge to be configured.

Reviewed-by: iustinp

16 years ago- Describe -b option for "gnt-cluster init"
Michael Hanselmann [Mon, 23 Jul 2007 07:43:06 +0000 (07:43 +0000)]
- Describe -b option for "gnt-cluster init"
- Fix typo

16 years agoCheck for memory size requirements before failing over an instance.
Guido Trotter [Thu, 19 Jul 2007 14:41:21 +0000 (14:41 +0000)]
Check for memory size requirements before failing over an instance.

Reviewed-By: iustinp

16 years agoRename the config dir to autotools
Iustin Pop [Thu, 19 Jul 2007 13:58:31 +0000 (13:58 +0000)]
Rename the config dir to autotools

16 years agoImplement space requirement checking before creating/importing an instance.
Guido Trotter [Thu, 19 Jul 2007 12:08:17 +0000 (12:08 +0000)]
Implement space requirement checking before creating/importing an instance.

Reviewed-By: iustinp

16 years agoIgnore *.pyc.
Michael Hanselmann [Thu, 19 Jul 2007 12:01:13 +0000 (12:01 +0000)]
Ignore *.pyc.

16 years agoIgnore automatically generated files.
Michael Hanselmann [Thu, 19 Jul 2007 11:40:52 +0000 (11:40 +0000)]
Ignore automatically generated files.

16 years agoMove files
Michael Hanselmann [Wed, 18 Jul 2007 15:54:00 +0000 (15:54 +0000)]
Move files

16 years agoAdd new directories.
Michael Hanselmann [Wed, 18 Jul 2007 15:52:14 +0000 (15:52 +0000)]
Add new directories.

17 years agoReplace tabs with spaces.
Michael Hanselmann [Wed, 18 Jul 2007 12:07:33 +0000 (12:07 +0000)]
Replace tabs with spaces.

Reviewed-by: iustinp

17 years agoFix burnin - when removed from cmdlib, it lost locking functionality.
Iustin Pop [Wed, 18 Jul 2007 11:55:55 +0000 (11:55 +0000)]
Fix burnin - when removed from cmdlib, it lost locking functionality.

Also improve the burnin by doing an optional replace-disks.

17 years agoFix casings of program names, add URLs, add info about PyYAML.
Michael Hanselmann [Wed, 18 Jul 2007 09:44:28 +0000 (09:44 +0000)]
Fix casings of program names, add URLs, add info about PyYAML.

Reviewed-by: iustinp

17 years agoAdd autogen.bash, move some files to config/
Michael Hanselmann [Wed, 18 Jul 2007 08:38:39 +0000 (08:38 +0000)]
Add autogen.bash, move some files to config/

17 years agoadded drbd to list of requirements listed in INSTALL file
Alexander Schreiber [Tue, 17 Jul 2007 12:50:35 +0000 (12:50 +0000)]
added drbd to list of requirements listed in INSTALL file

Reviewed-by: iustinp

17 years agoInitial commit.
Iustin Pop [Mon, 16 Jul 2007 13:39:48 +0000 (13:39 +0000)]
Initial commit.

17 years agoCreate ganeti dir under trunk
Iustin Pop [Mon, 16 Jul 2007 12:29:02 +0000 (12:29 +0000)]
Create ganeti dir under trunk