- Feb 20, 2013
-
-
Michael Hanselmann authored
Use a sort key function instead of using a comparing function (“cmp=…”). The latter is not supported in Python 3 and using a sort key function is easier. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michael Hanselmann authored
Having a readable representation makes debugging easier. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michael Hanselmann authored
This patch adds unit tests for success and failure of the “GetNodeInfo” method for the Xen hypervisor abstractions. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michael Hanselmann authored
Also make “used” a property. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michael Hanselmann authored
* devel-2.7: NEWS: Fix the fix in commit 82b6f9ac NEWS: Fix release date for 2.7.0 beta1 Minor fixes regarding nic.network change Fix issue 378 NEWS: Mention multi-alloc and fix typo Add cfgupgrade for changing nic.network to uuid Remove useless code in backend for network hooks Show network name and not uuid in instance info Add IQ_NETWORKS in query tests Implement network locking in Instance queries Changes in query to support nic.network as uuid Modify query LUs to supoprt nic.network as uuid Add GetInstanceNetworks() config method cmdlib changes to support nic.network as uuid Make network config methods take uuid as argument Document possible hypervisor bug in serial_console Update man pages wrt ExtStorage Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
February 2, 2013 was a Wednesday, not a Thursday. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michael Hanselmann authored
Commit b6ad806f used a wrong date. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michael Hanselmann authored
Sometimes it can be difficult to determine the access permissions needed for a certain RAPI resource without looking at code. This table, added at the end of “rapi.rst”, shows all resources and the permissions needed for their methods. Another nice side-effect of this change is that there's an automatic cross-checking between implemented resources and methods and the documentation. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Until now the RAPI resource table returned by “rapi.connector.GetHandlers” always uses fixed strings or compiled regular expressions as dictionary keys. Now that a table of all RAPI resources (and their access rights) should be written for the documentation, a plain string version of the URIs must be available. The compiled pattern might contain escape sequences and is not suitable. This patch changes “GetHandlers” to accept a hook function which is used to translate non-static resource URIs such as “/2/jobs/[job_id]/wait”. The default implemention retains the original behaviour by translating to compiled regular expressions. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Feb 19, 2013
-
-
Guido Trotter authored
- Specify that there will be options for selecting nodes by at least nodegroups and tags, rather than just individually. - Specify a better handling for non-redundant instances (eg. plain or file) which today are simply ignored - Specify that the rolling maintenance behavior is triggered by instances being up, but also overridable - Remove execution of rolling maintenances altogether, as it is deemed unsafe in the current version, and move it to future work, discuss the requirements that were pointed out for it to be safe. Cosmetic: - Fix numbered list, which were rendered incorrectly in the HTML version Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dimitris Aragiorgis authored
Make LookupNetwork() return None in case target is None. This fixes Issue 380. Rapi passes network=None and the lookup should not fail. Make network client aware of new nic.network.gnt-network info shows the IPs of each instance inside the network. It parses nic.networks field of QueryInstances() output, which now is a list of uuids an not names. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michael Hanselmann authored
"_OPCODE_ATTRS" will also be used in the Sphinx extension. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
The RAPI documentation now depends on “connector.py” (handler registration) and “rlib2.py” (access permissions). Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
A newly added table of RAPI access permissions will link to all resources and their supported methods. For this reason link targets need to be added. The GET method on “/2/nodes/[node_name]” was not separately mentioned. This is also fixed. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Dimitris Aragiorgis authored
In case a NIC is not inside a network then netinfo None. Thus netinfo["name"] fails. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michael Hanselmann authored
Merge similar code into a helper function. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Use a module-level constant for the tab width. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Michael Hanselmann authored
Assert that the documented fields are equal to those in the actual object. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
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>
-
Michele Tartara authored
This patch introduces some infrastructural modifications that will be used by the following commits to implement the support for specifying the reason for the last status change of an instance. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
As far as I could see, the ability to allocate multiple instances via RAPI was not mentioned at all. A superfluous word is also removed. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Feb 18, 2013
-
-
Helga Velroyen authored
This patch adds a couple of unit tests for Query/Network.hs. Note that they'll need to be adapted, once issue 362 is addressed. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michele Tartara authored
Allow the Confd client to be able to connect to an arbitrary server instead of just the real one running on a cluster. This is meant to be used for testing. If a data collector using the Confd client is tested with shelltest, it will need to receive through the CLI the address and port of the server, and also the FQDN for which information is being requested. In normal usage it will likely be the name of the node the data collector is running on, but for testing we need a way to explicitly specify it so that it corresponds to the one used inside the configuration files that the test confd server is reading. So, optConfdAddr and optConfdPort and optNode are provided by this patch, even if not used, because they are an important part of the modifications for making the Confd client testable. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michele Tartara authored
In order to fetch precise information about the uptime of the VMs running in Xen, we need to analyze the output of the "xm uptime" command. This commit adds the parser to do that, and its tests. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michele Tartara authored
In order to fetch precise information about the status of the VMs running in Xen, we need to analyze the output of the "xm list --long" command. This commit adds the parser to do that, and its tests. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michele Tartara authored
Add to Confd server a new request type (and its implementation) to ask for the list of instances in a node. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michele Tartara authored
This commit expands the monitoring agent design document improving the description of the general report file format. There can be two kinds of data collectors (performance and status collectors). Every collector can now be part of a category of collectors (such as storage, instance, daemon, hypervisor, etc.) that defines a minimum basic structure that has to be common to all the collectors part of the same class. Also, such basic structure is defined for all the currently envisioned class of collectors. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Dimitris Aragiorgis authored
This gets all network info from config_data and parses all instances and their NICs and makes the substitution. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Dimitris Aragiorgis authored
In backend NICs arrive with netinfo filled. If nic.network is not None nic.netinfo is not too. Thus all the info is derived from HooksDict() and nic.network must not be checked. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Dimitris Aragiorgis authored
This was before the case too. Now is bit trickier because nic.network is uuid. Info must derive from nic.netinfo. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Dimitris Aragiorgis authored
Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Dimitris Aragiorgis authored
This is needed in case more info than each nic's network uuid is to be returned. We need to lock networks to get valid data. For now only the name is returned as an extra field. All other can be added with trivial effort. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Dimitris Aragiorgis authored
Queries now return the network uuid as well as it's name. Here we only use info provided be LUInstanceQueryData context. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Dimitris Aragiorgis authored
Make _InstanceQuery gather all network info related to instance's NICs and in case of NETQ_INST in _NetworkQuery get all network uuids directly from nic.network Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Dimitris Aragiorgis authored
This will be needed for Instance Queries. It walks through the instance's NICs and returns a list network uuids that the NICs are attached to. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Dimitris Aragiorgis authored
Refactor Instance related LUs to support nic.network as a uuid. This removes all the unnecessary invocations to LookupNetwork(). Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Dimitris Aragiorgis authored
This will be needed in the following patches where nic.network will refer to network's uuid and not name. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- Feb 15, 2013
-
-
Guido Trotter authored
This is described in Issue 83. Update both the install guide and the gnt-instance manpage. In the install guide move another KVM specific example inside a new KVM admonition for the hypervisor parameters section. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Constantinos Venetsanopoulos authored
* ganeti-extstorage-interface: add examples * gnt-instance: document the “ext” template * remove a few double spaces Also link to its design doc in the design-2.7 doc Signed-off-by:
Constantinos Venetsanopoulos <cven@grnet.gr> Reviewed-by:
Guido Trotter <ultrotter@google.com> Signed-off-by:
Guido Trotter <ultrotter@google.com>
-