- 10 Aug, 2009 3 commits
-
-
Guido Trotter authored
From time to time we're adding new be or hv parameters. With this patch missing parameters get set to the default value when loading the cluster object. This patch version also considers the case when hv/be params don't exist at all, and fixes a broken unit test triggered in that case. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> (cherry picked from commit c1b42c18)
-
Guido Trotter authored
If --no-etc-hosts is passed in at cluster init time we set a new parameter in the cluster's object to false, and avoid adding nodes to the hosts file. The UpgradeConfig function is used to set the value to True, when upgrading from an old configuration version. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> (cherry picked from commit b86a6bcd)
-
Guido Trotter authored
Add a very basic configuration update mechanism to objects. An object can define the UpgradeConfig method, which will be called at init time, and use it to fill in missing defaults in the configuration. In the future we may want to make it more complex, for example adding the config version, but for now a basic solution will do. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> (cherry picked from commit 560428be)
-
- 04 Aug, 2009 1 commit
-
-
Iustin Pop authored
This method recursively resets the size of the disk and its children to zero. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- 03 Aug, 2009 1 commit
-
-
Iustin Pop authored
This small patch adds a simple Copy method that is can be used for 'throw-away' copies of objects. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- 07 Jul, 2009 1 commit
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- 16 Jun, 2009 1 commit
-
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- 02 Mar, 2009 1 commit
-
-
Iustin Pop authored
This patch restricts the use of spaces in tags, as this does not allow nice exporting of tags to environment in hooks. One can use underscores or dashes instead of spaces. Reviewed-by: schreiberal
-
- 12 Feb, 2009 1 commit
-
-
Iustin Pop authored
While running burnin: File "/usr/lib/python2.4/site-packages/ganeti/objects.py", line 497, in __str__ val += ", size=%dm)>" % self.size TypeError: int argument required This happened while handling another error, so we lose the original error information. So we should try to handle this better. Reviewed-by: ultrotter
-
- 10 Feb, 2009 1 commit
-
-
Iustin Pop authored
This attribute will be used to prevent any allocation on the node (any of replace-disks with new secondary this node, failover to the node, migration to the node). The patch adds the attribute and initializes it correctly in cluster init and for new nodes. Reviewed-by: imsnah
-
- 27 Jan, 2009 1 commit
-
-
Iustin Pop authored
This patch adds a simple check that the 'mode' attribute of top-level disks is correct. It does not recurse over children. The framework could be extended with other checks in the future. Reviewed-by: imsnah
-
- 21 Jan, 2009 2 commits
-
-
Iustin Pop authored
Due to historic reasons, the “should run or not” attribute of an instance was denoted by its “status” attribute having a string value of either ‘up’ or ‘down’. Checking this is in code was done via hardcoding of the strings. This was long done for a redo, and this patch changes this attribute to “admin_up” having a boolean value. The patch is in fact shorter than I expected, and passes burnin. The patch also fixes an error in BuildInstanceHookEnvByObject where the instance.os was passed as the status value. Reviewed-by: ultrotter
-
Iustin Pop authored
With the addition of minors, this needs to show them too. Reviewed-by: ultrotter
-
- 20 Jan, 2009 1 commit
-
-
Guido Trotter authored
Reviewed-by: iustinp
-
- 19 Jan, 2009 2 commits
-
-
Iustin Pop authored
Commit 2294 introduced a new instance.all_nodes property, which unfortunately is working incorrectly for non-drbd instances. This patch fixes it by making sure the primary node is always added to the set, even before recursing over (any potential) children. Reviewed-by: imsnah
-
Iustin Pop authored
We don't need to pre-create the node entries in lvmap, since they will be created at recursion time. Reviewed-by: ultrotter
-
- 16 Jan, 2009 1 commit
-
-
Iustin Pop authored
Since we often need the list of all nodes of an instance, we add a new "all_nodes" property that returns all nodes of the instance, and we switch secondary_nodes to a simpler implementation based on this new function. Reviewed-by: ultrotter
-
- 11 Dec, 2008 1 commit
-
-
Iustin Pop authored
This patch should fix all outstanding epydoc parsing errors; as such, we switch epydoc into verbose mode so that any new errors will be visible. Reviewed-by: imsnah
-
- 05 Dec, 2008 1 commit
-
-
Iustin Pop authored
This patch adds a new node parameter called offline that will be used to mark nodes which should be touched by commands. We also add this flag at cluster init, node add, and export it to iallocator scripts. Reviewed-by: ultrotter
-
- 02 Dec, 2008 2 commits
-
-
Iustin Pop authored
This patch adds a new cluster paramater "candidate_pool_size" which tracks the desired size of the list of nodes with the master_candidate flag set. Reviewed-by: imsnah
-
Iustin Pop authored
The field is not yet used. Reviewed-by: imsnah
-
- 21 Nov, 2008 1 commit
-
-
Iustin Pop authored
This patch changes the instance.FindDisk method to take index arguments (instead of iv_names), and changes GrowDisk and list instances accordingly. Reviewed-by: ultrotter
-
- 20 Nov, 2008 1 commit
-
-
Iustin Pop authored
This patch adds support for mult-disk/multi-nic in: - instance add - burnin The start/stop/failover/cluster verify work as expected. Replace disk and grow disk are TODO. There's also a change gnt-job to allow dictionaries to be listed in gnt-job info. Reviewed-by: imsnah
-
- 20 Oct, 2008 1 commit
-
-
Alexander Schreiber authored
During cluster init, set the default hypervisor to be used for instances. Ensure that the default hypervisor belongs to the set enabled hypervisors for this cluster. Also fix a small bug with setting the default enabled hypervisor list. Reviewed-by: imsnah
-
- 14 Oct, 2008 3 commits
-
-
Iustin Pop authored
Reviewed-by: ultrotter
-
Iustin Pop authored
This big patch changes instance create to the new hvparams structure. Old parameters are removed, so old jobs or old instances file will break current clusters. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch adds the instance and cluster be/hvparams attributes, and the Fill* methods on the cluster object. Nothing else is changes, except that these attributes exist now on the objects. Reviewed-by: ultrotter
-
- 10 Oct, 2008 1 commit
-
-
Guido Trotter authored
Allow multiple api versions in an OS. This is according to the OS API changes design doc, by which an OS can support multiple versions of the Ganeti API and if one is supported by Ganeti it will work. Since up to version 5 of the API mandates an OS could support only one version, this change is retrocompatible with it and requires no version bump up. Reviewed-by: iustinp
-
- 08 Oct, 2008 1 commit
-
-
Iustin Pop authored
This (big) patch moves the hypervisor type from the cluster to the instance level; the cluster attribute remains as the default hypervisor, and will be renamed accordingly in a next patch. The cluster also gains the ‘enable_hypervisors’ attribute, and instances can be created with any of the enabled ones (no provision yet for changing that attribute). The many many changes in the rpc/backend layer are due to the fact that all backend code read the hypervisor from the local copy of the config, and now we have to send it (either in the instance object, or as a separate parameter) for each function. The node list by default will list the node free/total memory for the default hypervisor, a new flag to it should exist to select another hypervisor. Instance list has a new field, hypervisor, that shows the instance hypervisor. Cluster verify runs for all enabled hypervisor types. The new FIXMEs are related to IAllocator, since now the node total/free/used memory counts are wrong (we can't reliably compute the free memory). Reviewed-by: imsnah
-
- 01 Oct, 2008 1 commit
-
-
Michael Hanselmann authored
ssconf will become write-only from ganeti-masterd's point of view, therefore all settings in there need to go into the main configuration file. Reviewed-by: iustinp
-
- 29 Sep, 2008 1 commit
-
-
Iustin Pop authored
This patch, which is similar to r1679 (Extend DRBD disks with minors attribute), extends the logical and physical id of the DRBD disks with a shared secret attribute. This is generated at disk creation time and saved in the config file. The generation of the secret is done so that we don't have duplicates in the configuration (otherwise the goal of preventing cross-connection will not be reached), so we add to config.py more than just a simple call to utils.GenerateSecret(). The patch does not yet enable the use of the secrets. Reviewed-by: imsnah
-
- 27 Sep, 2008 1 commit
-
-
Iustin Pop authored
This patch adds the ‘serial_no’ attribute to the other top-level objects (the configuration object itself, the nodes and the instances). Reviewed-by: ultrotter
-
- 22 Sep, 2008 1 commit
-
-
Iustin Pop authored
This patch converts the DRBD disks to contain also a minor (per each node) attribute. This minor is not yet used and is always initialized with None, so the patch does not have any real-world impact - except for automatically upgrading config files (it adds the minors as None, None). Reviewed-by: imsnah
-
- 29 Aug, 2008 1 commit
-
-
Alexander Schreiber authored
Add HVM device type flags 1/4 Reviewed-by: ultrotter
-
- 25 Jun, 2008 1 commit
-
-
Michael Hanselmann authored
Apparently there were still some leftovers. While removing an instance, I got the message "unhandled exception 'module' object has no attribute 'LD_MD_R1'". Reviewed-by: iustinp
-
- 23 Jun, 2008 1 commit
-
-
Michael Hanselmann authored
Reviewed-by: ultrotter
-
- 17 Jun, 2008 2 commits
-
-
Iustin Pop authored
Currently, the way to customize a DRBD disk from (node name 1, node name 2, port) to (ip1, port, ip2, port) is to use the ConfigWriter method SetDiskID. However, since this needs a ConfigWriter object, it can be run only on the master, and therefore disk object can't be passed to more than one node unchanged. This, coupled with the rpc layer limitation that all nodes in a multi-node call receive the same arguments, prevent any kind of multi-node operation that has disks as an argument. This patch takes the SetDiskID method from ConfigWriter and ports it to the disk object itself, and instead of the full node configuration it uses a simple {node_name: replication_ip} mapping for all the nodes involved in the disk tree (currently we only pass primary and secondary node since we don't support nested drbd devices). This allows us to send disks to both the primary and secondary nodes at once and perform synchronized drbd activation on primary/secondary nodes. Note that while for the 1.2 branch this will not change old methods, it is worth to investigate and possible replace all such calls on the master to the nodes themselves for the 2.0 branch. Reviewed-by: ultrotter
-
Iustin Pop authored
This patch adds a method that implements updating of a disk (object.Disk) size, together with its children. While this will not track the exact disk size, it allows at least an approximate size to be recorded in the configuration (and queried). Reviewed-by: imsnah
-
- 30 May, 2008 1 commit
-
-
Iustin Pop authored
This patch removes the last of the md and drbd 0.7 code. Cluster which have the old device types will be broken if they have this applied. Reviewed-by: imsnah
-
- 25 Apr, 2008 1 commit
-
-
Iustin Pop authored
This patch extends the config objects with the slots to handle more HVM configuration items. Author: schreiberal Reviewed-by: iustinp,imsnah
-