- Nov 21, 2012
-
-
Michael Hanselmann authored
It is no longer “--enable-remote-commands”, but rather “--enable-restricted-commands”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This patch adds a new command, “gnt-node restricted-command”. Since the semantics are different from “gnt-cluster command”, the same subcommand shouldn't be re-used. The included man page update also includes a small description of how to configure and use remote commands. Restricted commands can be run on a whole node group or on any number of manually chosen nodes. The output is similar to “gnt-cluster command”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
By setting the “delay_iallocator” parameter one could delay the call to the instance allocator. This was not used for some time now, but the code was still there. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
LUInstanceFailover and LUInstanceMigrate use TLMigrateInstance and had the essentially same code for expanding names and declaring locks. In LUInstanceMigrate.ExpandNames there was a mistake which led to node resource locks not being declared properly. The two DeclareLocks methods were exactly the same, down to the byte. TLMigrateInstance had a lot of keyword parameters. Since it is only used on two places, all parameters were made positional, making it easier to determine the value of a parameter. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Helga Velroyen authored
Lint complains about too many variables in the CheckPrereq method. While I think that this method/class would need some refactoring in general, at least this patch makes lint shut up for now. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com> Signed-off-by:
Iustin Pop <iustin@google.com>
-
Helga Velroyen authored
When modifying an instance, so far the specs were not checked against the ipolicy. This patch fixes this issue. Note that for backend parameters which have a minimum and a maximum value (currently only memory), it checks both limits against the ipolicy. Because locking of the instance's node group was necessary, a TODO of commit b8925b86 was fixed as well. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Upcoming changes will add opportunistic locking to “locking.LockSet”. Doing so will require additional code in “LockSet.__acquire_inner”, at which point the existing “want_all” parameter does not always apply. This patch replaces it with a “mode” parameter. For opportunistic locking a new mode will be added. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
The examples given in the RAPI documentation are not exhaustive. This patch tries to clarify this by adding ellipses where appropriate. One example's indentation is also fixed. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
“locking.PipeCondition” and “locking.SharedLock” define “__repr__”, which until now was not tested at all. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Now that 2.6 is essentially finished and 2.7 going to be branched soon-ish, I thought it would be a good moment to replace some single quotes in test/*.py. Merge pains should be limited. In one place in test/ganeti.locking_unittest.py, spaces are added for assignments. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
- Quote characters - Docstrings Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Also update configure.ac. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Some type descriptions are rather long. If "None" is listed at the end or somewhere in between it is easily missed. Therefore it should be at the beginning, e.g. "None or (long description)". Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Fails if the default value of an opcode parameter doesn't verify. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
- Use variables for checks for IP addresses (makes them more consistent, too) - Fix checks to accept default values - Small description improvements (e.g. s/IP/IP address/) Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
* devel-2.6: Fix opcode validation for OpOobCommand.command Fix typo in manpage for gnt-os gnt-instance.8: Add index to disk and nic removal Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
* stable-2.6: Fix opcode validation for OpOobCommand.command Fix typo in manpage for gnt-os gnt-instance.8: Add index to disk and nic removal Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
In this case “frozenset” is good enough as the result's order doesn't matter--it is the input to “sorted” (“utils.UniqueSequence” preserves the order). “frozenset” is ca. 25% faster for this use-case. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Until now there was no test for calling “LockSet.downgrade” without specifying any names. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Nov 20, 2012
-
-
Iustin Pop authored
Sorry… Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Iustin Pop authored
Commits d4117a72 (“Modify LUInstanceCreate to support networks”) and 09a3d21f (“Pass detailed network info in hooks“) expanded the nic information as computed by _NICToTuple, which means that the format of the result value from LUInstanceQueryData has changed, and move-instance has not been changed to deal with this. A proper fix needs to support correctly importing from old clusters, right now this is a temporary fix to ensure QA still passes. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Dimitris Aragiorgis authored
Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
GenerateFree now returns the first available IP in the network or raises AddressPoolError if it is full. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
_UnlockedCommitIp is used either for releasing or reserving an IP inside a network. New constants RELEASE_ACTION/RESERVE_ACTION are used to decide which is the case. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
Introduce new config method _UnlockedGetNetworkMACPrefix and refactor original _GenerateOneMAC so that it takes prefix as an optional argument and returns a function that actually generates a MAC. If prefix is not given or None it uses the cluster level default. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
This bug was introduced after rebasing master branch. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
Support: - gnt-network add --tags. - gnt-network list-tags/add-tags/remove-tags/. - gnt-network list -o +tags Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
If a nic has a network field then encapsulate a network object in netinfo slot for every rpc. This is needed to pass network info to scripts managing nics (kvm-vif-bridge). Introduce _BuildNetworkEnv(). Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-