- 10 Apr, 2014 1 commit
-
-
Hrvoje Ribicic authored
Due to a missing base class, the test that was supposed to check if RAPI instance parameter renames during modifications are working did not execute. As the instances are not covered by the QA tests, the tests failed to show that custom nicparams cannot actually be set through RAPI at the time. Given that the instance interface is asymmetric beyond simple repairs, this is fine in 2.10. This patch sets the test to execute, removes the setting of custom_nicparams in the test, and removes the renaming of the param in the RAPI request. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 26 Mar, 2014 4 commits
-
-
Hrvoje Ribicic authored
Much like the groups before, this patch allows custom_* params to be submitted under the same name they can be retrieved as in the info call. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
This patch adds the ability to set the group-specific parameters in the same way they are described when returned by the info command - with the "custom_" prefix. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
This patch adds a single alias for the secondary_ip property of the node. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
This patch adds aliases for two cluster parameters. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
- 29 Jan, 2014 2 commits
-
-
Hrvoje Ribicic authored
The instance multi-allocation had no tests to detect its breakage, and this patch fixes that. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Hrvoje Ribicic authored
The OpInstanceMultiAlloc that the instances-multi-alloc RAPI method uses accepts a list of OpInstanceCreate opcodes rather than a list of dictionaries as provided by the method. This patch correctly constructs the opcodes, allowing the RAPI call to work as expected. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 09 Jan, 2014 1 commit
-
-
Michele Tartara authored
Commit e6e4ff4c fixed Issue 649 by switching the separator for usb_devices from comma to space. That solved the problem with the command line, but RAPI was able to work with commas too, so, for backwards compatibility we need to keep supporting that as well. Also, in order to avoid changing the format of the config file, the default internal representation is brought back to being comma-based, and it is changed at the interface level (CLI or RAPI) before being passed on. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 16 Dec, 2013 1 commit
-
-
Hrvoje Ribicic authored
The network tags were absent from an if check used to actually list tags. The patch fixes the oversight, and adds a proper error message in case the issue occurs again for a new tag type. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 18 Nov, 2013 1 commit
-
-
Dimitris Aragiorgis authored
Until now, the shutdown_timeout parameter could only be passed to ShutdownInstance() inside kwargs, causing it to be included in the request body. Based on that, extend RebootInstance() and RemoveInstance() so that they can take extra arguments (e.g. shutdown_timeout) and pass them eventually to the corresponding opcode. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
- 19 Jul, 2013 1 commit
-
-
Christos Stavrakakis authored
Add UUIDs and names of instance's disks and NICs to the list of instance fields that are returned from RAPI. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 10 Jul, 2013 1 commit
-
-
Christos Stavrakakis authored
Fix RAPI interface to include missing network fields. Specifically, fix instance queries to include the network name for instance NICs. Also fix network queries to include missing common fields, like uuid and serial. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 01 Jul, 2013 1 commit
-
-
Bernardo Dal Seno authored
They are exported through the LUXI, RAPI, and IAllocator interfaces. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 07 Jun, 2013 1 commit
-
-
Bernardo Dal Seno authored
Node spindles (queried live) are exported through the LUXI, RAPI, and iallocator interfaces. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 03 Jun, 2013 1 commit
-
-
Bernardo Dal Seno authored
Instance disk spindles can be queried via LUXI and RAPI, and are exported through the allocator interface. This is a prerequisite for htools to handle spindles. The length of a RAPI query including all the instance fields now has become ~4400 characters. For this reason the server buffer has been increased. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 22 Apr, 2013 1 commit
-
-
Michele Tartara authored
Remove the useless parts of the old, partial, implementation of the support for tracking the reason of instances state change, before implementing the new reason trail support, as per the design document. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 20 Mar, 2013 1 commit
-
-
Michele Tartara authored
We are not ready for this change yet. Let's push it to 2.8. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 12 Mar, 2013 1 commit
-
-
Iustin Pop authored
Now that all fields are implemented, and (I think) behave equivalent to the Python implementation, we can switch on the split queries for networks. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 25 Feb, 2013 1 commit
-
-
Michael Hanselmann authored
- Commit 4a90bd4f contained a rather large number of style violations: - Indentation/sequence formatting - Wrapping of long lines - Docstrings whose first line was wrapped - A stray backslash in a docstring - opcodes: Don't check for list or tuple. None of the other opcodes does it explicitely. As long as the length and the items match the value is accepted. - server/noded: “if variable” doesn't test for None, but False Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 19 Feb, 2013 1 commit
-
-
Michele Tartara authored
Add support to the Reboot command for specifying the reason for the last status change. Some features are implemented as functions, even if used only once, because they will be used by the future patches introducing reason support for all the others commands able to alter the state of instances. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- 15 Feb, 2013 1 commit
-
-
Iustin Pop authored
This reverts commit fb251c2c . On the master branch we want to continue to have them enabled. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 11 Feb, 2013 1 commit
-
-
Dimitris Aragiorgis authored
This slot was not used by Ganeti so the same info can be provided via tags. In order not to break configuration data we add a FromDict() method in Network config object that removes the deprecated network_type (if found) and then invoke the parent's method (which does the validation). Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 31 Jan, 2013 1 commit
-
-
Iustin Pop authored
Currently, the node listing RPC is very slow due to missing parallelisation. For the 2.7 release, we reset these back to masterd, hoping to revert them by the time 2.8 is ready. There are a number of queries that I've left pointing to confd, as they are non-RPC: - node fields query - node static fields query (and added a note in one case where it could become a problem) All the other converted queries (job listing, group queries, tags, cluster config) remain pointing to confd, as they don't use RPC. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 19 Dec, 2012 2 commits
-
-
Michael Hanselmann authored
This is not a trivial s/frozenset/compat.UniqueFrozenset/, but rather only replaces “frozenset” where appropriate. Most of the places are “static” information that doesn't change after the module has been loaded. Some docstrings and code formatting (e.g. empty lines) issues are addressed as well. Some lines got too long and were wrapped. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
This patch is enabling split queries for jobs for gnt-node and rapi access (only for job listing, not job waiting). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 20 Nov, 2012 4 commits
-
-
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
Support: - GetNetwork(s) - CreateNetwork - ConnectNetwork - DisconnectNetwork - RemoveNetwork Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- 16 Nov, 2012 1 commit
-
-
Michael Hanselmann authored
This was requested in issue 301. Before this patch, requests to “/2/query/*” and “/2/instances/*/console” would require authentication with a user with write access. Since that is not strictly necessary, a new user option named “read” is added. Console information can also be retrieved as a normal query, therefore the change applies there too. This was the first user option to be added after “write”, therefore quite a few changes were necessary. Documentation, including NEWS, is updated as well. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 08 Nov, 2012 1 commit
-
-
Michael Hanselmann authored
Commit 208a6cff just included empty docstrings. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- 11 Oct, 2012 1 commit
-
-
Iustin Pop authored
This switches gnt-node/gnt-group (and their equivalent RAPI resources) to go over the query socket. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- 27 Sep, 2012 1 commit
-
-
René Nussbaumer authored
This is needed so we can load it as an opcode. However, this information should not be available on the client, so we inject that info when we receive the request. Provided unittest to verify behaviour. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- 24 Sep, 2012 1 commit
-
-
René Nussbaumer authored
This is straightforward. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- 03 Sep, 2012 1 commit
-
-
Iustin Pop authored
Since we have now access to all cluster parameters, we can "fill" the parameters, and can finally enable it in CLI/RAPI. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Agata Murawska <agatamurawska@google.com>
-
- 28 Aug, 2012 2 commits
-
-
Iustin Pop authored
This patch adds the tags field to the objects which were missing it (all except Cluster), implements handling the LuxiCall QueryTags, and then enables the use of the query socket in cli.ListTags, used by all commands, and in the RAPI client. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Agata Murawska <agatamurawska@google.com>
-
Iustin Pop authored
Currently, RAPI uses queries (as in QueryNode with field tags) for getting the tags, whereas the CLI uses the QueryTags Luxi command. Since this discrepancy is not good, let's switch RAPI to use the same method as the CLI. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Agata Murawska <agatamurawska@google.com>
-
- 06 Jul, 2012 1 commit
-
-
René Nussbaumer authored
For compatibility with the old Ganeti version, we want to keep the beparams/memory field around for another release. This patch fixes this regression. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- 15 Jun, 2012 1 commit
-
-
Iustin Pop authored
Sadly we don't have a way to test that, for example, all (G|N|I)Q_CONFIG fields are exported in RAPI, so for now we don't test this; but we should, in the future. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- 21 Feb, 2012 1 commit
-
-
Iustin Pop authored
The fast that most classes don't override the @cvars means that direct references to FillOpcode can fail (they do on my workstation, but not on buildbot?). Anyway, for safety, it's best to qualify the name. Additionally a small typo is fixed. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-