- 08 Jul, 2008 1 commit
-
-
Guido Trotter authored
Remove empty function _ReleaseLock and all its calls. Since we only have one configwriter per cluster the locking needs to cover all the data in the object, and not just the file contents. Locking in ConfigWriter will be handled using the ganeti locking library. Reviewed-by: iustinp
-
- 07 May, 2008 1 commit
-
-
Michael Hanselmann authored
Upgrades will be handled in future patches. Reviewed-by: iustinp
-
- 05 May, 2008 2 commits
-
-
Guido Trotter authored
nodelist.remove(X) could potentially raise a ValueError (even if the chance that the current node is not in the list are pretty scarce, and its absence should raise a red flag anyway). If this happens let things go on, as that's what the code which previously distributed the config did. Reviewed-by: iustinp
-
Guido Trotter authored
Currently we get the list of nodes, and for each one extract all its info, and just to exclude it if the name matches ours. Since the list of nodes is a list of names just use .remove() to exclude ourself from it, and use that list directly. Reviewed-by: iustinp
-
- 21 Apr, 2008 3 commits
-
-
Iustin Pop authored
This patch makes the _SetInstanceStatus only change the status of the instance (in the config file) if it's not already in the desired state. This skips the increase of the config serial no without actual data changes. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch creates a new method ConfigWriter._SetInstanceStatus that consists of the common code between MarkInstanceUp and MarkInstanceDown. These two methods become wrappers over the _SetInstanceStatus. Reviewed-by: ultrotter
-
Iustin Pop authored
This simple patch adds a new module that holds the simplejson functions for serialization/deserialization. This reduces the amount of redundant code. The patch also adds some normalizations to the json output: - the output text will always have an EOL as last char - extra spaces before EOL are removed Reviewed-by: ultrotter
-
- 08 Apr, 2008 1 commit
-
-
Manuel Franceschini authored
This patch does two things: - Modify LURenameInstance.Exec to rename directory when a file-based instance is renamed - Modify config.RenameInstance() to replace the directory name in config.data for file devices Reviewed-by: iustinp
-
- 04 Apr, 2008 1 commit
-
-
Manuel Franceschini authored
Reviewed-by: imsnah
-
- 31 Mar, 2008 1 commit
-
-
Manuel Franceschini authored
Reviewed-by: iustinp
-
- 27 Dec, 2007 1 commit
-
-
Alexander Schreiber authored
Allow the MAC address of an instance to be specified optionally during instance creation and later to be changed via instance modify. Reviewed-by: iustinp
-
- 27 Nov, 2007 1 commit
-
-
Iustin Pop authored
Currently, the results of ConfigWriter.VerifyConfig() are lost. Make sure we log them too in cluster verify. Reviewed-by: ultrotter
-
- 05 Nov, 2007 1 commit
-
-
Michael Hanselmann authored
Reviewed-by: schreiberal
-
- 24 Oct, 2007 1 commit
-
-
Iustin Pop authored
This is a partially working drbd8 template type. It does: - add/remove - startup/failover/shutdown Not working is replace disks, which needs custom code for this template. Reviewed-by: imsnah
-
- 19 Oct, 2007 1 commit
-
-
Iustin Pop authored
Currently, the disk types are defined using constants in the code. Convert those into constants so that we can easily find them and check their usage. Note that we don't rename the values of the constants as they are used in the configuration file, and as such it's best to leave them as they are. Reviewed-by: imsnah
-
- 11 Oct, 2007 2 commits
-
-
Iustin Pop authored
This allows external callers to determine if the configuration has been changed. Reviewed-by: imsnah
-
Michael Hanselmann authored
This removes the dependency on either the uuid module or e2fsprogs' uuidgen. Reviewed-by: iustinp
-
- 10 Oct, 2007 1 commit
-
-
Iustin Pop authored
Since modules are not directly executables, remove the shebang from them. This helps with lintian warnings. Also make the autogenerated _autoconf.py contain two comment lines at the beginning, like the other modules. Reviewed-by: ultrotter
-
- 09 Oct, 2007 1 commit
-
-
Iustin Pop authored
As far as I understand, this was just a debugging aid. Remove it so that configuration errors are nicely handled. Reviewed-by: imsnah
-
- 04 Oct, 2007 1 commit
-
-
Michael Hanselmann authored
- Add NEWS file with major changes between versions. - Bump RPC version number - No longer serialize in RPC, but just convert to dict Old Pickle based configuration files can be converted using the cfgupgrade utility. Reviewed-by: iustinp, ultrotter
-
- 21 Sep, 2007 1 commit
-
-
Iustin Pop authored
We currently require that hostnames are FQDN not short names (node1.example.com instead of node1). We can allow short names as long as: - we always resolve the names as returned by socket.gethostname() - we rely on having a working resolver These issues are not as big as may seem, as we only did gethostname() in a few places in order to check for the master; we already required working resolver all over the code for the other nodes names (and thus requiring the same for the current node name is normal). The patch moves some resolver calls from within execution path to the checking path (which can abort without any problems). It is important that after this patch is applied, no name resolving is called from the execution path (LU.Exec() or other code that is called from within those methods) as in this case we get much better code flow. This patch also changes the functions for doing name lookups and encapsulates all functionality in a single class. The final change is that, by requiring working resolver at all times, we can change the 'return None' into an exception and thus we don't have to check manually each time; only some special cases will check (ganeti-daemon and ganeti-watcher which are not covered by the generalized exception handling in cli.py). The code is cleaner this way. Reviewed-by: imsnah
-
- 17 Sep, 2007 1 commit
-
-
Iustin Pop authored
This patch adds support for renaming instances to the ConfigWriter class. It's needed in here in order to guarantee that we don't lose the instance during the rename (the instance will be there, either with the old name or with the new name). Reviewed-by: imsnah
-
- 14 Aug, 2007 1 commit
-
-
Iustin Pop authored
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).
-
- 03 Aug, 2007 4 commits
-
-
Iustin Pop authored
- 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
-
Iustin Pop authored
won't reread it if not modified by someone else.
-
Iustin Pop authored
configuration. Reviewed-by: imsnah
-
Iustin Pop authored
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
-
- 27 Jul, 2007 1 commit
-
-
Iustin Pop authored
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
-
- 26 Jul, 2007 3 commits
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
Iustin Pop authored
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
-
- 25 Jul, 2007 1 commit
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- 23 Jul, 2007 1 commit
-
-
Iustin Pop authored
- 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 Jul, 2007 1 commit
-
-
Iustin Pop authored
-