- Feb 21, 2012
-
-
Iustin Pop authored
This will represent the instance (count) per spindle_count of their node(s). Debatable whether we need to add a per-instance spindle_weight. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Currently this is not handled by Ganeti, just recorded. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Currently, we only upgrade the ndparams if they are missing completely, which creates problems if we add any new parameters on an already-upgraded cluster. Fix this by adding an UpgradeNDParams function. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Fix a typo, and cleanup the code a bit. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Feb 20, 2012
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Only whitelisted opcodes may not have a result check. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
This check verifies “iv_name” of all instance disks. If one is wrong (which shouldn't happen in the first place), cluster verification will warn: “ERROR: cluster: Instance 'inst.example.com' has wrongly named disks: name of disk 1 should be 'disk/1', but is 'disk/4'” Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
René Nussbaumer authored
The result is a list of a list with elements with size of 2. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Feb 17, 2012
-
-
Michael Hanselmann authored
To remove the last disk, or to add a NIC to the end, one can use the index -1. This wouldn't work as intended as “-” is a special prefix. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
The function adds an ellipse if the string was actually truncated. Also start using it in mcpu for result checks (where the message is also slightly changed to use a colon). Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
Forgot “enumerate”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
When modifications are made, disks may not have the same index anymore. Updating all disks fixes this. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
When adding an item the index given to the callback function would be incorrect under certain conditions. This patch also adds assertions and more tests. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
Stop using the disk index encoded in “iv_name” when renaming an instance. This patch also changes the code to operate on a copy of the instance until the major changes have been applied. In the case of a failure we won't loose the instance object anymore. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
This patch adds support for adding/removing NICs/disks at arbitrary indices on the command line. To add a disk at a specified index, use “--disk 3:size=16G”. To remove the second disk, use “--disk 2:remove”. Unittests are included. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Feb 15, 2012
-
-
Michael Hanselmann authored
There has been a lot of duplicated code in _GenerateDiskTemplate, and some cases of very similar, but not quite same duplicates. This patch merges them. Generating a disk's “logical_id” attribute is done via a lambda/function. Maybe the ID's could be pre-computed and stored in a list. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
This is in preparation to de-duplicating significant chunks of code in cmdlib._GenerateDiskTemplate. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
These can be used by third-party code to verify mock code. Further work on mocks is forthcoming, so this is only a start. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Feb 14, 2012
-
-
Michael Hanselmann authored
The callback is expected to return a two-valued tuple. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Feb 13, 2012
-
-
Iustin Pop authored
Commit 12637df5 changed/generalised how we build fields in the sphinx extension, however it resulted in this uncaught-so-far result: $ echo @QUERY_FIELDS_GROUP@ | ./autotools/docpp <generator object BuildValuesDoc at 0x28fd370> There's no point in yield-ing a single value (as opposed to a stream of values), so let's just "return" it. By the way, there's no test for this kind of error, but I don't think it would happen too often, so I didn't add one (e.g. grep "<.* at 0x[0-9a-f]+>" man/*.[178]). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Guido Trotter authored
Notes: - it'd be nice if there was a way to automatically generate the DiskTemplate list instead of manually specifying it. After all we have C.diskTemplates - Of course this actually does nothing, as for other "half-implemented" templates :( Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
… instead of passing the list of changes as a parameter. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
Sorry, I missed this when I wrote the code originally. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Unfortunately this got a bit messier than I intended, but then again it cleans up a lot of messy code with heaps of local variables (“this_nic_override”) and LU attributes (“nic_pnew”, “nic_pinst”). Most of these variables were index by a number, or one of the constants.DDM_* constants. This patch moves the code for adding/modifying/removing a NIC/disk to dedicated, small functions. The previously added generic algorithm for applying changes to containers is then used to actually change the instance's network interfaces or disks based on the requested modifications. The LU now supports adding/removing disks/NICs in arbitrary positions. The compuation of all network interface changes has been moved to CheckPrereq, so that its result can be used for hooks. For this to work without side-effects, the NIC objects need to be copied (only done if there are actual changes). The command line utility still needs to be updated. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
While preparing this patch series I identified at least three different implementations of the algorithm for adding/removing/changing NICs/disks. These two functions and corresponding unittests provide a generic implementation with added support for adding/removing arbitrary disks or NICs. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Thou shalt run “make check” before sending patches. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Disk changes aren't allowed at the same time as a disk template change. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
They'll be used for tests in cmdlib.py. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Start accepting a new form of NIC/disk modifications for adding/removing arbitrary NICs/disks. Unlike before the index must always be given. An index of “-1” stands for the last item. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Until now it would not be possible to add/remove a NIC/disk in an arbitrary position. This constant will be used in the data structures necessary to add/remove arbitrary NICs/disks. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
These comments appear in the RAPI documentation. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Feb 10, 2012
-
-
Stratos Psomadakis authored
Add documentation and modify manpages for the RBD disk template. Signed-off-by:
Constantinos Venetsanopoulos <cven@grnet.gr> Signed-off-by:
Stratos Psomadakis <psomas@grnet.gr> Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Feb 01, 2012
-
-
Michael Hanselmann authored
“INSTANCE_DOWN” is still being used. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
René Nussbaumer authored
They were not referenced through the whole code and were marked internal only. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
Replaces some uses of TOr(TNone, TListOf(…)). Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-