- Sep 24, 2009
-
-
Iustin Pop authored
It does “print >> sys.stderr, …” but there is no import sys. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
This also simplifies a little the field declaration in RAPI. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Also corrects wrong indentation in the gnt-instance.sgml file. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
The patch modifies LUQueryInstanceData to return the uuid too and also adds support for it in the gnt-* scripts. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
For fields that correspond directly to an object's field, we can simplify the handling. The patch also adds the new 'uuid' fields to objects so that it can be queried. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
The patch also starts using the current UUIDs (in the new attributes) while computing the _AllIDs list. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
We will need this in another place, so we abstract the 'compute all current IDs' functionality into a separate function. We also change the name of the _ComputeAllLVs to _AllLVs to match the other _All*s functions. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
Without this confd will not start when a node is added to the cluster. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
The networking section is updated to talk about both routing and bridging. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
Currently the section is called "Installing Xen" and also mentions KVM. Updating the title and also make it slightly less xen-centric. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
Currently this feature is hypervisor specific, but under kvm we use it by default (aka: if the user hasn't specified another network script which overrides our auto-generated one) to specify the routing table. This was already hinted as a possibility in the manpages, but never explicitely stated as a reality, so we update gnt-cluster(8) to actually say this, and gnt-{backup,instance}(8) to point to gnt-cluster(8) for more information. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
If forwarding is enabled globally this is a no-op. If instead it's enabled only for some special interfaces where instance traffic has to go to/comes from (for example a gre tunnel) then it's useful to explicitely enable it for the instances interfaces as well. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
In order to be able to maintain the node network standard routing untouched while routing instance traffic through a different dedicated interface (eg: a gre tunnel) we need to specify the instance routing path inside a separate table, which will also contain different default gateway values. This patch fixes the kvm default network script to use the nic link, if present, as a routing table to use instead of the default one. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Sep 23, 2009
-
-
Guido Trotter authored
If a logger is passed in, we log some debugging messages that might help someone who's debugging a confd client to understand what's going on. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
The port can be now chosen at library init time, with a default of calling GetDaemonPort. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
We move to one callback in total, rather than one per call, and call it both for server replies and request expiring. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
By default "None" will be used as an args value Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Sep 22, 2009
-
-
Iustin Pop authored
Currently the config upgrade is done at each object instantiation, that means that ganeti-noded will run UpgradeConfig on all objects received remotely (instances, disks, nics). This is not so good, so this patch changes it so that only the ConfigWriter runs this method at configuration load time. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Luca Bigliardi authored
Extend confd to answer queries about instances IPs. Signed-off-by:
Luca Bigliardi <shammash@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
While ‘test1’ matches both ‘test1’ and ‘test1.example’, it has a full, exact match and we should return it if that is the case. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Sep 21, 2009
-
-
Guido Trotter authored
During 621b7678 two typos were introduced which prevent file based instances removal to work correctly. Fixing both of them to what they were meant to be. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This reverts commit 350ecfec. It broke distcheck. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Guido Trotter authored
In branch-2.1 the conversion of NICs to Tuples has been unified to the _NICListToTuple function, which is used by both hook generation and instance info generation. Unfortunately the ip and mac fields got swapped from what instance info expected, so the mac is shown as ip, and vice versa. Fixing this. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
The format string has the ": %s" at the end, but no argument is passed, which of course raises a TypeError. Removing ": %s" as it's added by the RpcResult Raise() method anyway. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Sep 18, 2009
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
- Add markup for titles - Convert quotes - Reindent and rewrap to 72 chars per line Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
Currently the AddInstance in gnt-instance and ImportInstance in gnt-backup duplicate all of their code except the actual opcode creation (the parameters to it). By moving this to cli.py (not optimal location, but we don't have another one), we can use a single copy of the code, and simply change based on the mode parameter the few different opcode parameters. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Start, stop and reboot have the same code for dealing with multi-instance handling. This patch moves all that into a single generic function, and leaves only the building of the specific opcode for the operation in the individual functions. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
The gnt-instance commands that have the multi-filter can take also zero arguments, if the --all flag is passed. But they currently are declared with min=1, and this is a regression due to the recent bash completion changes. There is also the problem that --primary/--secondary expect a node and not an instance, but currently the completion doesn't support this distinction. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Since >90% of the commands take the “--debug” option, and all should actually take it (the gnt-job command is currently missing it), it makes sense to simply remove this and add it by default in cli.py. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Currently, the indentation level for a command's definition depends on the command name length, and this makes the commands dict unpleasant to the eye. This patch changes it so that a new line begins right after the left parenthesis starting the command tuple. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-