Activity

From 01/28/2013 to 02/26/2013

02/26/2013

02:04 pm Revision 27d75ee0: rapi.rst: Replace manual method lists with directive
Many resources, but not all, list their supported methods. With a new
reST directive, this list is now automatically ...
Michael Hanselmann
03:53 am Revision e0519c34: Add networks to _AllIDs()
networks config objects have UUIDs and thus should be included
in _AllUUIDObjects().
Signed-off-by: Dimitris Aragior...
Dimitris Aragiorgis
03:53 am Revision 5a76adf7: Fix HooksDict() in case of no tags
In this method self.tags might be None and cannot be used
in join(). Use GetTags instead.
Signed-off-by: Dimitris Ar...
Dimitris Aragiorgis
03:53 am Revision 6d96f116: Fix locking in LUNetworkConnect()
Locks for group instances are aquired only if conflicts are checked.
To this end we must _CheckNodeGroupInstances() o...
Dimitris Aragiorgis
03:49 am Revision 076a2938: Fix networks in LUInstanceSetParams()
Params passed in _CreateNewNic() are not yet evaluated and include
the value passed by user for the network. A lookup...
Dimitris Aragiorgis

02/25/2013

08:05 pm Revision 777ea2c6: Officially require Python 2.6+
We have no way to test Python 2.4 compatibility anymore, and that
version is long deprecated. From version 2.8+ requi...
Guido Trotter
08:05 pm Revision 544029d3: HRoller: print only online nodes
To make the graphs work even when instances live on offline nodes (eg.
because we're offlining them just to exclude t...
Guido Trotter
08:05 pm Revision 2fce67b6: HRoller: allow filtering by node group
Accept the -G option, and if it's passed require that it matches a
nodegroup, then only output nodes belonging to tha...
Guido Trotter
05:54 pm Revision a5da38fa: bootstrap: Wait for SSH daemon to become reachable
In some situations after restarting the SSH daemon by
“prepare-node-join” it's not immediately reachable. Like with t...
Michael Hanselmann
05:53 pm Revision 25ba209e: TcpPing: Better error handling, logging
Log every attempt to reach a port on another node. Don't silently return
False if a target not recognized as an IP ad...
Michael Hanselmann
05:39 pm Revision 965e0e6a: Wipe disks added through "gnt-instance modify"
In issue 353 Sascha Lucas reported that disks are not wiped when added
through “gnt-instance modify”. This patch adds...
Michael Hanselmann
05:03 pm Revision 6bf7dad4: vcluster-setup: Create $vnode/etc/ganeti directory
This directory is required by “cfgupgrade” and some other tools.
Signed-off-by: Michael Hanselmann <hansmi@google.co...
Michael Hanselmann
05:03 pm Revision d1ab11f2: constants: Use SSH constant for daemon ports
Moving the SSH/SCP constants around was necessary for this.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Re...
Michael Hanselmann
02:52 pm Revision a82d9394: Fix style violations in commit 4a90bd4, small changes
- Commit 4a90bd4 contained a rather large number of style violations:
- Indentation/sequence formatting
- Wrappin...
Michael Hanselmann
02:13 pm Revision d59633a6: sphinx_ext: New directive for supported methods
Until now many resources, but not all and not consistently list their
supported methods (e.g. “Supports the following...
Michael Hanselmann
02:13 pm Revision aa82eb62: sphinx_ext: Factorize getting RAPI handlers
The list of resources and handlers will also be used for generating
a per-resource table.
Signed-off-by: Michael Han...
Michael Hanselmann
02:13 pm Revision 60b47261: sphinx_ext: Factorize handler methods/access
The factorized parts will be used to show a small table with methods and
required permissions for each resource.
Sig...
Michael Hanselmann
02:13 pm Revision 61c13f94: Use "none" instead of "everyone" in RAPI documentation
The list of required access permissions uses the word “everyone” to mean
“no special permissions are needed”. The wor...
Michael Hanselmann
02:11 pm Revision 0fd1fd29: .gitignore: Add test/hs/harep
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Dato Simó <dato@google.com>
Michael Hanselmann
11:37 am Revision 0c9d7319: Rewrap a comment in constants.py
As it was 80 chars, and you know that bothers me :)
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Miche...
Iustin Pop
11:37 am Revision 5ba392f9: Enable split queries for export in CLI
Rapi doesn't seem to export backup lists, so we enable the split query
only in gnt-backup.
Signed-off-by: Iustin Pop...
Iustin Pop
11:37 am Revision b9b4f1bf: Improve the rpc-test program
This is an ugly patch, sorry. It adds the following features to
rpc-test, to help with (stress) testing the Haskell R...
Iustin Pop
11:37 am Revision c4bf507b: Implement Export queries in Haskell
This is a simple query as it has only two fields, however it's the
first query that doesn't have a clear 'base' objec...
Iustin Pop
11:37 am Revision 0b1c7a55: Fix exports query with failed RPCs
When the RPC to a node has failed (for whatever reason), we currently
return _FS_UNAVAIL, which means "this node does...
Iustin Pop
11:36 am Revision 842515dd: Add export_list RPC call definitions
This is straightforward, as the call has no parameters and a very simple return type.
Signed-off-by: Iustin Pop <ius...
Iustin Pop
11:36 am Revision 08f7d24d: Improve TemplateHaskell code to support empty objects
Currently, an empty objects will generate warnings as the arguments of
various functions are unused. By adding condit...
Iustin Pop

02/22/2013

02:09 pm Revision 466b7a39: Fix Curl/Internal.hs not being in gitignore
This is an autogenerated file, so it has to go into gitignore, thanks
Michael!
Signed-off-by: Iustin Pop <iustin@goo...
Iustin Pop
02:09 pm Revision 055d6ac0: Add option to redirect luxi socket for debugging
Currently, the choice between masterd and conf/queryd is made
statically, based on whether a query is converted or no...
Iustin Pop
02:07 pm Revision 2412bdea: Fix another docstring typo
… no comment :)
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
Review...
Iustin Pop
12:51 pm Revision 1302ce18: Improve RAPI documentation on users and options
- Document fields in “rapi/users” file in the order they appear
(username, password, options)
- Mention new “--requ...
Michael Hanselmann
12:51 pm Revision 27a8a190: RAPI: Add flag to require authentication
Most RAPI resources do not require authentication for the “GET” method.
In some setups it can be desirable to always ...
Michael Hanselmann
12:51 pm Revision 5d0b2888: sphinx_ext: Drop text map for RAPI permissions
Other parts of the documentation directly refer to the constants through
“pyeval”. There's no need for this map as it...
Michael Hanselmann

02/21/2013

11:05 am Revision ea322c27: Describe format of the monitoring agent HTTP queries
The previous patch was incomplete when erroneously pushed.
This patch, originally intended as part of the previous o...
Michele Tartara
10:39 am Revision b166dcfc: Describe format of the monitoring agent HTTP queries
Update the monitoring agent design document adding the format of the HTTP
queries that will have to be used to query ...
Michele Tartara

02/20/2013

07:12 pm Revision 0b08c8bf: Remove test of obsolete getNetworkUuid method
This will remove the tests for the getNetworkUuid method.
The method will be obsolete after the changes regarding
ide...
Helga Velroyen
06:47 pm Revision 1ca709c1: Switch the curl bindings from optional to required
Currently, we support curl being optional via some sporting exercises:
ifdefs in the code, data types that represent ...
Iustin Pop
06:47 pm Revision 85f6a869: Reduce duplication of curl options computation
Some curl option are request-specific, but not node specific: e.g. rpc
timeout, etc. The patch changes the HttpClient...
Iustin Pop
06:47 pm Revision 9c0a27d0: Simplify RPC error cases
This patch removes the node from the RPC error constructurs
CurlLayerError and OfflineNodeError. The rationale is tha...
Iustin Pop
06:47 pm Revision da9e2aff: Add two utility functions for handling Either lists
These two functions permit operating in bulk on only the Left or Right
values in the original list, then reassembling...
Iustin Pop
06:47 pm Revision 8920fa09: Switch the RPC module over to the multi interface
This replaces the very-basic parMap of IO actions (fully serialised,
as parMap won't work here), to the multi interfa...
Iustin Pop
06:47 pm Revision cc40185c: Add a Ganeti-specific implementation of Curl Multi
As we want to be able to run queries against multiple nodes in
parallel, and furthermore in parallel with other work,...
Iustin Pop
06:45 pm Revision 41be279f: qa_config.AcquireNode: Use sort key function
Use a sort key function instead of using a comparing function (“cmp=…”).
The latter is not supported in Python 3 and ...
Michael Hanselmann
06:45 pm Revision e80edd3b: qa_config: Add __repr__ for instance/node classes
Having a readable representation makes debugging easier.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Revie...
Michael Hanselmann
06:13 pm Revision 76eeabc7: Locking fixes regarding Issue 324
LUNetworkConnect/LUNetworkDisconnect, in case locking is used, might
lock instances that exist in the requested node ...
Dimitris Aragiorgis
05:40 pm Revision 1b9e1f42: Test "GetNodeInfo" for Xen hypervisor
This patch adds unit tests for success and failure of the “GetNodeInfo”
method for the Xen hypervisor abstractions.
...
Michael Hanselmann
05:26 pm Revision 5454737c: Fix small typo in a docstring
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
Iustin Pop
03:38 pm Revision 47aa6ec9: QA: Add validation for cluster name
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Bernardo Dal Seno <bdalseno@google.com>
Michael Hanselmann
03:38 pm Revision 2176724e: QA: Acquire instance via method
Also make “used” a property.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Bernardo Dal Seno <b...
Michael Hanselmann
03:24 pm Revision 1657353c: check-news: Ensure release date is within three days
Commit b6ad806f contained a date a month in the future. With this patch
all release dates in NEWS may at most be thre...
Michael Hanselmann
03:20 pm Revision 3234695b: Merge branch 'devel-2.7'
* devel-2.7:
NEWS: Fix the fix in commit 82b6f9a
NEWS: Fix release date for 2.7.0 beta1
Minor fixes regarding n...
Michael Hanselmann
02:44 pm Revision b5a21c81: NEWS: Fix the fix in commit 82b6f9a
February 2, 2013 was a Wednesday, not a Thursday.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by:...
Michael Hanselmann
01:51 pm Revision 82b6f9ac: NEWS: Fix release date for 2.7.0 beta1
Commit b6ad806f used a wrong date.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Helga Velroyen...
Michael Hanselmann
01:28 pm Revision daff2f81: Build table with access permissions for RAPI resources
Sometimes it can be difficult to determine the access permissions needed
for a certain RAPI resource without looking ...
Michael Hanselmann
01:14 pm Revision 798f1ac9: Allow generating different RAPI resource lookup tables
Until now the RAPI resource table returned by
“rapi.connector.GetHandlers” always uses fixed strings or compiled
regu...
Michael Hanselmann

02/19/2013

09:36 pm Revision fb4b885a: HRoller design updates
- Specify that there will be options for selecting nodes by at least
nodegroups and tags, rather than just individu...
Guido Trotter
07:21 pm Revision 9394f4d1: Minor fixes regarding nic.network change
Make LookupNetwork() return None in case target is None. This fixes
Issue 380. Rapi passes network=None and the looku...
Dimitris Aragiorgis
06:57 pm Revision c3a5176f: baserlib: Make "_OPCODE_ATTRS" public
"_OPCODE_ATTRS" will also be used in the Sphinx extension.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Rev...
Michael Hanselmann
06:56 pm Revision d6ee0e41: Makefile: Add dependencies
The RAPI documentation now depends on “connector.py” (handler
registration) and “rlib2.py” (access permissions).
Sig...
Michael Hanselmann
06:55 pm Revision 180fdc32: RAPI documentation: Add link targets
A newly added table of RAPI access permissions will link to all
resources and their supported methods. For this reaso...
Michael Hanselmann
06:07 pm Revision c8f4e425: Fix issue 378
In case a NIC is not inside a network then netinfo None. Thus
netinfo["name"] fails.
Signed-off-by: Dimitris Aragior...
Dimitris Aragiorgis
04:29 pm Revision 5224c9bf: Helper to retrieve access permissions for RAPI resource
Merge similar code into a helper function.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido ...
Michael Hanselmann
04:29 pm Revision c6793656: Sphinx extension: Module-level constant for tab width
Use a module-level constant for the tab width.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Mi...
Michael Hanselmann
04:29 pm Revision 46ab58d4: RAPI documentation: Assertion for console fields
Assert that the documented fields are equal to those in the actual
object.
Signed-off-by: Michael Hanselmann <hansmi...
Michael Hanselmann
04:27 pm Revision 4a90bd4f: Status change reason support for Reboot
Add support to the Reboot command for specifying the reason for the last
status change.
Some features are implemente...
Michele Tartara
04:27 pm Revision a59d5fa1: Infrastructure for specifying instance status change reason
This patch introduces some infrastructural modifications that will be used by
the following commits to implement the ...
Michele Tartara
04:05 pm Revision 03be57a9: NEWS: Mention multi-alloc and fix typo
As far as I could see, the ability to allocate multiple instances via
RAPI was not mentioned at all. A superfluous wo...
Michael Hanselmann

02/18/2013

06:08 pm Revision 834bea99: Unit tests for Query/Network.hs
This patch adds a couple of unit tests for Query/Network.hs.
Note that they'll need to be adapted, once issue 362 is ...
Helga Velroyen
05:35 pm Revision 7dc27988: Make Confd client usable for testing
Allow the Confd client to be able to connect to an arbitrary server
instead of just the real one running on a cluster...
Michele Tartara
05:35 pm Revision c5a957c3: Add Haskell parser for "xm uptime"
In order to fetch precise information about the uptime of the VMs
running in Xen, we need to analyze the output of th...
Michele Tartara
05:35 pm Revision b8585908: Add Haskell parser for "xm list --long"
In order to fetch precise information about the status of the VMs running in
Xen, we need to analyze the output of th...
Michele Tartara
05:34 pm Revision 332a83ca: Add request type to Confd server for getting instance list
Add to Confd server a new request type (and its implementation) to ask for
the list of instances in a node.
Signed-o...
Michele Tartara
12:32 pm Revision 3301805f: Update monitoring agent report format
This commit expands the monitoring agent design document improving the
description of the general report file format....
Michele Tartara
12:16 pm Revision f032d55c: Add cfgupgrade for changing nic.network to uuid
This gets all network info from config_data and parses
all instances and their NICs and makes the substitution.
Sign...
Dimitris Aragiorgis
12:06 pm Revision aee9a8a0: Remove useless code in backend for network hooks
In backend NICs arrive with netinfo filled. If nic.network is not None
nic.netinfo is not too. Thus all the info is d...
Dimitris Aragiorgis
12:05 pm Revision 68c13560: Show network name and not uuid in instance info
This was before the case too. Now is bit trickier because nic.network
is uuid. Info must derive from nic.netinfo.
Si...
Dimitris Aragiorgis
12:05 pm Revision 1635eec0: Add IQ_NETWORKS in query tests
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Reviewed-by: Helga Velroyen <helgav@google.com>
Dimitris Aragiorgis
12:03 pm Revision 271fee18: Implement network locking in Instance queries
This is needed in case more info than each nic's network uuid is to
be returned. We need to lock networks to get vali...
Dimitris Aragiorgis
12:03 pm Revision f98e1175: Changes in query to support nic.network as uuid
Queries now return the network uuid as well as it's name. Here we
only use info provided be LUInstanceQueryData conte...
Dimitris Aragiorgis
12:03 pm Revision 434b96a2: Modify query LUs to supoprt nic.network as uuid
Make _InstanceQuery gather all network info related to instance's
NICs and in case of NETQ_INST in _NetworkQuery get ...
Dimitris Aragiorgis
12:03 pm Revision 922610c9: Add GetInstanceNetworks() config method
This will be needed for Instance Queries. It walks through the
instance's NICs and returns a list network uuids that ...
Dimitris Aragiorgis
12:03 pm Revision 5a292b36: cmdlib changes to support nic.network as uuid
Refactor Instance related LUs to support nic.network as
a uuid. This removes all the unnecessary invocations to
Looku...
Dimitris Aragiorgis
12:02 pm Revision 9ccacbc8: Make network config methods take uuid as argument
This will be needed in the following patches where nic.network
will refer to network's uuid and not name.
Signed-off...
Dimitris Aragiorgis

02/15/2013

05:01 pm Revision 18c3417b: Document possible hypervisor bug in serial_console
This is described in Issue 83.
Update both the install guide and the gnt-instance manpage.
In the install guide move...
Guido Trotter
04:36 pm Revision e19f7095: Update man pages wrt ExtStorage
* ganeti-extstorage-interface: add examples
* gnt-instance: document the “ext” template
* remove a few double space...
Constantinos Venetsanopoulos
03:06 pm Revision ab8747b7: Design correct reporting of storage free space
This is a long standing bug in Ganeti. Add a small design on how we plan
to fix this for Ganeti 2.7.
Signed-off-by: ...
Guido Trotter
03:04 pm Revision fe502d25: Merge branch 'devel-2.7'
* devel-2.7:
Rename lib/objectutils to outils.py
Fix typo in gnt-group manpage
Fix wrong type in a docstring of...
Iustin Pop
12:23 pm Revision d9a22528: Revert "Disable live-RPC queries under split query"
This reverts commit fb251c2c4c582ec0d6c00a6f6c5e134ed5196e03. On the
master branch we want to continue to have them e...
Iustin Pop
12:14 pm Revision 473d87a3: Rename lib/objectutils to outils.py
Back when this was introduced, I mentioned that it breaks heavily tab
completion (ob<TAB> doesn't work anymore), but ...
Iustin Pop
12:12 pm Revision 4b11adcc: Add hroller design to Makefile and design-drafts
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Guido Trotter
11:29 am Revision 09208925: Hroller design doc
Hroller in 2.7 was implemented (as an experiment) but never explicitly
designed. This design mentions the current fun...
Guido Trotter

02/14/2013

12:00 pm Revision bfb1d750: Fix typo in gnt-group manpage
The --ipol-disk-templates parameter should actually be
--ipolicy-disk-templates.
Signed-off-by: Ben Lipton <ben.lipt...
Ben Lipton

02/13/2013

12:34 pm Revision 20ba96f5: Fix wrong type in a docstring of the RAPI subsystem
Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Michele Tartara

02/12/2013

04:36 pm Revision 68c8c3df: QA: Use constants for disk templates
Disk template names shouldn't be hardcoded.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Berna...
Michael Hanselmann
04:36 pm Revision 0afce24e: Remove qa_config.GetInstanceNicMac
Call the wrapped instance method directly.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Bernar...
Michael Hanselmann
04:36 pm Revision 02a5fe0e: QA: Set disk template directly via instance object
Use a method on the instance object instead of going through
“qa_config.GetInstanceTemplate”. This provides for bette...
Michael Hanselmann
04:00 pm Revision c6e300e6: Fix a merge issue in 3c296f56
Lines removed in devel-2.7 (250a9404) weren't removed in the merge with
master.
Signed-off-by: Bernardo Dal Seno <bd...
Bernardo Dal Seno
03:47 pm Revision 551b44e2: Add a function to change an OpCode's priority
This simply updates the metaopcode submit priority.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido...
Iustin Pop
03:47 pm Revision 37fe56e0: Add functions to parse CLI-level format of priorities
The current serialisation format for submit priorities is
integer-based, same as the opcode json serialisation. But f...
Iustin Pop
03:47 pm Revision e247747c: Add CLI-level option to override the priority
This just defined the new priority, with the same name as the Python one.
Signed-off-by: Iustin Pop <iustin@google.c...
Iustin Pop
03:47 pm Revision 45bc4635: Finish the remote→restricted commands rename
The documentation still points to /etc/ganeti/remote-commands,
although the code is already using restricted-command....
Iustin Pop
03:47 pm Revision a81ca843: Enable use of the priority option in hbal
This patch adds the option to hbal, and uses it to tweak the submitted
jobs. There are also two small shelltests for ...
Iustin Pop
03:47 pm Revision d41f6558: Make hbal opcode annotation more generic
Currently, hbal code always uses annotateOpCode function, which means
we would have to pass the options data to all f...
Iustin Pop
03:39 pm Revision bb63ccb0: Removes check for conflicts from NetworkDisconnect
This removes the check for conflicts from the Haskell
version of the OpCode NetworkDisconnect. This alignes
the Haske...
Helga Velroyen
03:39 pm Revision 1b68f268: If _UnlockedLookupNetwork() fails raise error
Make _UnlockedLookupNetwork() raise OpPrereqError (instead of returning
None) in case it does not find the requested ...
Helga Velroyen
03:39 pm Revision 2e076ede: Add unit tests for RADOSBLockDevice
Add unit tests for the RADOSBlockDevice JSON output parsing function,
and modify the unit tests for the plain output ...
Stratos Psomadakis
03:39 pm Revision ae8de7e3: Change default xen root path to /dev/xvda1
All recent-enough versions of linux see the xen paravirtual device as
/dev/xvd*.
This doesn't break old installation...
Guido Trotter
03:39 pm Revision bdecfea2: Fix rbd showmapped output parsing
'rbd showmapped' output formatting differs between older and newer versions of
the ceph tools. Try to use json output...
Stratos Psomadakis
03:39 pm Revision 37a978e7: Force conflicts check in LUNetworkDisconnect
Until now if one disconnects a network with --no-conflicts-check
and then remove it, there is a possibility to leave ...
Helga Velroyen
03:25 pm Revision 3c296f56: Merge branch 'devel-2.7'
* devel-2.7: (23 commits)
QA: Support additional arguments for initialization
qa_utils: Fix order of arguments pa...
Michael Hanselmann
02:05 pm Revision becf9d5c: QA: Support additional arguments for initialization
In some scenarios it can be useful to add more arguments to “gnt-cluster
init”, such as “--no-drbd-storage”, if DRBD ...
Michael Hanselmann
02:02 pm Revision 3b0db9e3: qa_utils: Fix order of arguments passed to _AssertRetCode
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Michael Hanselmann
01:30 pm Revision 74e642cd: Improve reporting on errors.AddressPoolError exceptions
This patch improves the error messages given when a
“errors.AddressPoolError” exception is caught. Includes some smal...
Michael Hanselmann
11:25 am Revision 2fc6329b: Add note about lv-tags rename
This is not included on the 2.6 branch, so update the NEWS for 2.7.0 beta1.
Signed-off-by: Iustin Pop <iustin@google...
Iustin Pop

02/11/2013

05:31 pm Revision 5cfa6c37: Remove network_type slot (Issue 363)
This slot was not used by Ganeti so the same info can be
provided via tags. In order not to break configuration data
...
Dimitris Aragiorgis
05:31 pm Revision 48616625: Remove family and size from network objects
This info is not used by Ganeti and therefore is removed.
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Revie...
Dimitris Aragiorgis
05:31 pm Revision 7e8f03e3: Make use of HooksDict() for networks
This can be used in hypervisor code as well. For consistency
export *NETWORK_NAME and not *NETWORK throughout the cod...
Dimitris Aragiorgis
04:58 pm Revision 99f5fa44: QA: Remove dictionary-like interface from config objects
These are no longer used.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Bernardo Dal Seno <bdal...
Michael Hanselmann
04:58 pm Revision 6998aefe: QA: Drop dictionary support from qa_utils._GetName
This is no longer needed now that instance/node objects in QA have
attributes. Use a helper function instead to retri...
Michael Hanselmann
04:58 pm Revision b5f33afa: QA: Convert instances from items to attributes
The new objects support attributes. Item access (like a dictionary) is
going away in a couple of patches.
Signed-off...
Michael Hanselmann
04:58 pm Revision aecba21e: QA: Convert nodes from items to attributes
The new objects support attributes, which are cleaner than
dictionary-style access. Item access (like a dictionary) i...
Michael Hanselmann
04:58 pm Revision 565cb4bf: QA: Release nodes through method
Instead of having a module-level function in “qa_config” to release a
node, a new method on node objects is used.
Si...
Michael Hanselmann
04:21 pm Revision 3697def0: Moved uniformity check for exclusive_storage flag
Cluster-verify used to check that the value of exclusive_storage is uniform
within node groups. Now, it's impossible ...
Bernardo Dal Seno
04:21 pm Revision 250a9404: "exclusive_storage" cannot be changed on single nodes
There's never been support for a configuration where nodes in the same node
group have different values of the exclus...
Bernardo Dal Seno
04:20 pm Revision 45f62156: Upgrades made on loading the configuration are always saved
Before, only some upgrades were written back to the configuration file. A
little refactoring of _UpgradeConfig() has ...
Bernardo Dal Seno
03:30 pm Revision dbdb0594: QA: Convert nodes to objects
Up until now nodes were stored as a dictionary. The keys were hardcoded
in a lot of places and entries modified direc...
Michael Hanselmann
12:28 pm Revision 7f5edc60: Show correct daemon name on Luxi connect errors
Since now confd also serves a Luxi endpoint, the current message in
cli.FormatError is misleading when actually faili...
Iustin Pop
12:28 pm Revision d70571bb: Update the security document for Ganeti 2.7
This should address 359, but I'm not sure if it covers all of 2.7…
Signed-off-by: Iustin Pop <iustin@google.com>
Rev...
Iustin Pop

02/08/2013

03:36 pm Revision 6f88e076: QA: Release instances through method
Instead of having a module-level function in “qa_config” to release an
instance, a new method on instance objects is ...
Michael Hanselmann
03:36 pm Revision 6a654276: QA: Convert instances to objects
Up until now instances were stored as a dictionary. The keys were
hardcoded in a lot of places and entries modified d...
Michael Hanselmann
03:35 pm Revision a77e3d33: QA: Release instance in ganeti-qa
Release instances directly from “ganeti-qa” instead of doing so in the
three tests removing instances. This is in lin...
Michael Hanselmann
03:35 pm Revision 0ae14edd: QA: Stop using "in" operator for node
The new configuration object for nodes will not support it anymore.
Signed-off-by: Michael Hanselmann <hansmi@google...
Michael Hanselmann
03:35 pm Revision 2029fe3f: QA: Support entity objects in qa_utils._GetName
This is a temporary solution until nodes and instances are converted to
objects with attributes.
Signed-off-by: Mich...
Michael Hanselmann
03:35 pm Revision cf62af3a: qa_config: Simplify IsTemplateSupported
The same code can be written in a single expression. The earlier patch
named “Refactor storage of runtime exclusive s...
Michael Hanselmann
03:35 pm Revision a08e181f: Refactor storage of runtime exclusive storage flag in QA
This is a follow-up for “qa_config: Remove exclusive storage flag from
config”. Instead of storing the flag in a modu...
Michael Hanselmann
03:35 pm Revision 8a96c5a6: Refactor QA configuration code
Ever since its introduction (sometime before commit cec9845 in September
2007), the QA configuration was stored in a ...
Michael Hanselmann
03:35 pm Revision f9329a6c: qa_config: Remove exclusive storage flag from config
Commit 6a0f22e added the ability to track the status of the cluster-wide
flag for exclusive storage. It did so in a w...
Michael Hanselmann
01:40 pm Revision 5ba35653: Make ParticalNic's network field of type String
This was applied to "master" along with extra changes affecting the
master branch only. Cherry-picking just the Objec...
Guido Trotter
01:40 pm Revision ee9516c8: ConfigData: run UpgradeConfig on network objects
Although this does nothing for now, running it is safe, and consistent
with how other objects behave.
Signed-off-by:...
Guido Trotter
01:40 pm Revision d89168ff: OS environment: add network information
1) Move the hooks environment dict generator inside the object. This
also adds missing values such as network family ...
Guido Trotter
12:04 pm Revision 58bc8fbc: Make gnt-os list work with no OSes
When absolutely no OSes are present on the cluster, the result of
OpOsDiagnose is an empty list. This is currently ha...
Iustin Pop
12:04 pm Revision 16a833d7: Fix OCF files installation in devel/upload
LIBDIR was not defined, so the files ended up directly under /, not
good. Now they're properly installed under /usr/l...
Iustin Pop
11:59 am Revision 11eb5cd0: baserlib: Fix two mistakes in docstring
The method names were wrong due to copy & paste.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: ...
Michael Hanselmann
11:48 am Revision 595149d5: vcluster: Make _MakeNodeRoot public
The QA code will also have to generate virtual paths and this function
comes in handy.
Signed-off-by: Michael Hansel...
Michael Hanselmann

02/07/2013

06:14 pm Revision 1cced301: Workaround hlint behaviour with no warnings/errors
When hlint sees a perfectly nice code tree, it will skip generating
the reports (both stdout and html). This means th...
Iustin Pop
06:14 pm Revision 72747d91: Remove use of 'head' and add hlint warning for it
Since 'head' is unsafe to use in most cases, this patch removes its
use from most of the code, adds a lint warning fo...
Iustin Pop
05:02 pm Revision 546a1dcf: Harep.hs: fix a couple typos in comments and docstrings
Signed-off-by: Dato Simó <dato@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Dato Simó
01:29 pm Revision afa9bb2e: hv_kvm: Error messages, punctuation, other style fixes
- Capitalize acronyms such as “QMP” or “SPICE”
- Remove punctuation from error messages
- Improve error reporting whe...
Michael Hanselmann
12:50 pm Revision eace6157: hv_kvm: Add TODO regarding monitor commands
Monitor calls should be replaced with QMP once KVM >= 0.14 is required.
Signed-off-by: Michael Hanselmann <hansmi@go...
Michael Hanselmann

02/06/2013

03:14 pm Revision b6ad806f: Add release date for 2.7.0 beta1
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
Guido Trotter
02:16 pm Revision 94042ae4: Fix improperly formatted docstring
Change the docstring of chompPrefix to prevent the error
"doc comment parse failed" that was raised by some version o...
Michele Tartara
12:44 pm Revision b830193c: Version bump for 2.7.0~beta1
Also update the documentation target versions and the cfgupgrade tool to
recognize 2.6 and upgrade to 2.7
Signed-off...
Guido Trotter
12:43 pm Revision 950e32ec: Update hooks.rst for Ganeti 2.7
- The migrate instance hook now also executes on the primary node in
the "pre" phase.
- Instance hooks now get full...
Guido Trotter

02/05/2013

06:55 pm Revision 83251115: Merge branch 'devel-2.7'
* devel-2.7:
Redirect output for gnt-* list/list-fields commands
Add function to execute QA commands with redirec...
Michael Hanselmann
06:15 pm Revision 93146c8c: Redirect output for gnt-* list/list-fields commands
This enabled the redirection; QA output after this patch should become
much much smaller (on a 'quick' QA, we are lef...
Iustin Pop
06:15 pm Revision afd5ca04: Add function to execute QA commands with redirected output
Some QA commands generate non-trivial output: for a full QA, the gnt-*
list commands generate more than 300MB of data...
Iustin Pop
06:15 pm Revision 56b9f2db: Implement option to skip logging of QA commands
This patch adds an optional kwarg that allows skipping the "Command:
…" line in QA output. This is helpful if we only...
Iustin Pop
03:37 pm Revision 0c6d6a52: Making ParticalNic's network field of type String
This is yet another fix for type confusion between python
and haskell. ;) The network field of PartialNic should be
a...
Helga Velroyen
03:14 pm Revision 6d3d13ab: Fix typo in a comment
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
Iustin Pop
10:36 am Revision ca7b4f48: Add some more Haskell/Python equivalence tests
This would have caught the log file problem fixed in the previous
patch (9411474b), for example. Also we test user/gr...
Iustin Pop
10:36 am Revision 9411474b: Fix Haskell log file naming after virtual cluster changes
Commit 3329f4de changed the Haskell log file from constants to
functions, but introduced a bug: it uses now the daemo...
Iustin Pop

02/04/2013

05:40 pm Revision f006f110: QA: Clean up after "instance-remove-drbd-offline" test
This test used to leave a node with orphan logical volumes and unused DRBD
minors. Now, the expected leftovers are cl...
Bernardo Dal Seno
05:34 pm Revision c5cd9637: qa_config: Remove useless "options" variable
It is only used in one place and not necessary.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: I...
Michael Hanselmann
04:52 pm Revision 473ab806: Extract container converters
“objects.ConfigObject” contains two useful functions for working with
containers of serialized objects, “_ContainerTo...
Michael Hanselmann
04:52 pm Revision 81124130: hv_xen: Fix epydoc error
“utils.RunCmd” is re-exported from “utils.process.RunCmd”. Epydoc
doesn't fully understand this, so we have to refer ...
Michael Hanselmann
04:22 pm Revision 4d36fbf4: objects: Improve handling of TCP/UDP port pool
- Handle de-serialization correctly when pool is not defined
- Serialize to empty list when the attribute is None (th...
Michael Hanselmann
03:06 pm Revision 1f4b9d39: Switch KVM to multi-error verify results
This uses the new _FormatVerifyResults helper function to return
multiple errors.
Signed-off-by: Iustin Pop <iustin@...
Iustin Pop
03:06 pm Revision 0628a50a: Make LXC fail verification if cgroup is not mounted
Since LXC now relies on cgroup memory limits to enforce memory, let's
make hypervisor verification (and thus cluster-...
Iustin Pop
03:06 pm Revision 53fde1ac: Add a helper function for hypervisor verification
This will allow easier multi-error results from hypervisors; right
now, we only report the first error, which is not ...
Iustin Pop
09:48 am Revision e4157912: hv_lxc: fix whitespace errors
The latest lxc patches included a few whitespace style errors, that make
lint fail. This patch fixes those.
Signed-o...
Guido Trotter
09:48 am Revision c8b96be4: s/nic/NIC/ in manpages
For consistency, let's make sure NICs are capitalized always in the same
way.
Signed-off-by: Guido Trotter <ultrotte...
Guido Trotter

02/02/2013

12:52 pm Revision f078c799: LXC: add support for the memory controller
Add support for the memory resource controller, useful to actually place
memory limits on instances.
Support is stil...
Faidon Liambotis

02/01/2013

06:21 pm Revision 35e18c38: Merge branch 'devel-2.7'
* devel-2.7: (24 commits)
Fix typo in ganeti-noded man page
QA: Run instance tests with different cluster configu...
Michael Hanselmann
05:53 pm Revision 2e5a6203: LXC: adapt hv for newer lxc userspace tools
Currently hv_lxc depends on the behavior and output of older LXC tools,
which have since changed, making it unable to...
Faidon Liambotis
03:50 pm Revision e500d25f: Fix typo in ganeti-noded man page
Add a missing "in".
Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Michael Hanselmann <hansmi@goo...
Michele Tartara
12:25 pm Revision deadfa13: QA: Run instance tests with different cluster configurations
Instance tests are run with or without the exclusive-storage flag set. More
configurations can be added easily.
Sign...
Bernardo Dal Seno
12:25 pm Revision 5de31440: QA: Instance tests check the configuration before running
Instance test functions check the current configuration, and they will run
the actual tests only if the configuration...
Bernardo Dal Seno
12:25 pm Revision c99200a3: QA: Use lists of nodes as argument to instance tests
Some instance test functions took two node arguments, some took one, and
some took two but the second argument could ...
Bernardo Dal Seno
12:25 pm Revision a36f690c: QA: Run cluster-verify after instance tests
We want to make sure that instance operations don't leave the cluster in a
bad state. The "instance-remove-drbd-offli...
Bernardo Dal Seno
12:25 pm Revision 27eba428: QA: Refactored launching of the various instance tests
The code launching instance tests for "plain" and "drbd" templates has been
unified. In this way it's easier to add m...
Bernardo Dal Seno
12:24 pm Revision 7d4f1b45: QA: Added functions to allocate/free N nodes at once
These make possible to simplify the logic of tests requiring more
nodes. Used in the following patches.
Signed-off-b...
Bernardo Dal Seno
12:23 pm Revision 6a0f22e1: QA: Added exclusive_storage to qa_config
QA configuration now tracks the state of the exclusive_storage flag at
cluster level. This will be used to selectivel...
Bernardo Dal Seno
12:20 pm Revision deaa347b: QA fix: TestInstanceExportWithRemove() updates configuration
When the instance is removed from the cluster by this test, it's also freed
in the QA configuration.
Signed-off-by: ...
Bernardo Dal Seno
12:20 pm Revision cf632f3e: QA: Better initialization of a global dictionary
The global 'cfg' variable is initialized to an empty dictionary, so there
is no more need to disable some pylint chec...
Bernardo Dal Seno
12:20 pm Revision 906a0346: QA: Added disk template to config
The disk templates used by the instances are tracked in the QA
configuration. This will be used to selectively enabl...
Bernardo Dal Seno
12:20 pm Revision e4c346a5: QA cleanup: Removed instance-disk-failure test
The test was broken, out of sync with the rest of the code, and prone to
crashes. Until someone does a better job, it...
Bernardo Dal Seno
12:19 pm Revision 21e2734f: QA: Cluster-verify reports shared PVs with exclusive storage
Exclusive storage forbids sharing PVs between unrelated LVs. This is a test
that cluster-verify correctly report such...
Bernardo Dal Seno
12:16 pm Revision 23610ff8: QA: Added constants for LVM volumes
The LVM volume group becomes a configurable parameter, and a prefix for
logical volume names used in tests is introdu...
Bernardo Dal Seno
12:01 pm Revision cfc24646: Fix logging arguments formatting
This fixes: “ganeti/hypervisor/hv_kvm.py:93: [W1201, _GetTunFeatures]
Specify string format arguments as logging func...
Iustin Pop
01:35 am Revision efd58d99: QA: Templates incompatible with exclusive storage reported
Cluster-verify should report instances whose disk template is not
compatible with the exlusive storage setting.
Sign...
Bernardo Dal Seno
01:35 am Revision e8b919a1: QA: Uniformity check for exclusive_storage in cluster-verify
Cluster-verify should report nodes in the same nodegroup with different
values of the exclusive_storage flag.
Signed...
Bernardo Dal Seno
01:34 am Revision 50ef6a41: QA: Test for basic features of exclusive storage
Check that creation of instances doesn't trigger any error.
Signed-off-by: Bernardo Dal Seno <bdalseno@google.com>
R...
Bernardo Dal Seno
01:34 am Revision 17cfeee9: QA: Added function to read cluster configuration fields
This function will be used in following patches.
Signed-off-by: Bernardo Dal Seno <bdalseno@google.com>
Reviewed-by:...
Bernardo Dal Seno
01:32 am Revision 587f8ff6: QA: Added function to check cluster-verify result
Now it's possible to check that cluster-verify reports all the expected
errors, instead of simply checking that it fa...
Bernardo Dal Seno

01/31/2013

04:53 pm Revision d9e2b496: Document better gnt-network
Specify clearly that the nic parameters depend on the
network-to-nodegroup connection.
Clarify in gnt-network how in...
Guido Trotter
04:53 pm Revision 8d090b90: Fix the gnt-instance section in the htools manpage
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
Guido Trotter
03:03 pm Revision 29887bde: update 2.7 NEWS file
Include a handful of important changes that weren't mentioned.
Signed-off-by: Guido Trotter <ultrotter@google.com>
R...
Guido Trotter
03:03 pm Revision 1304ab11: Update 2.7 design doc
Move two designs that have been implemented in 2.7 to design-2.7 and out
of drafts.
Other designs were partly implem...
Guido Trotter
01:10 pm Revision fb251c2c: Disable live-RPC queries under split query
Currently, the node listing RPC is very slow due to missing
parallelisation. For the 2.7 release, we reset these back...
Iustin Pop

01/30/2013

07:39 pm Revision 8072af6c: harep: create repair jobs
Implement 'doRepair' to create a repair job from a list of opcodes if
the instance's policy allows it (otherwise set ...
Dato Simó
07:39 pm Revision aeb6ba44: Document that OpTestDelay/TestDelay take duration in seconds
Also, fix @rtype and @return elements of utils.TestDelay(), which now
returns a tuple but this wasn't being indicated...
Dato Simó
07:39 pm Revision 8af72964: harep: do not wait for repair job completion to set tags
Because of instance locks, after submitting a repair job we weren't able to
set the "pending" tag until at least the ...
Dato Simó
07:39 pm Revision 41238d27: harep: finish execution with a summary of instance states
The harep tool prints messages for every action that it performs (or that
it doesn't perform). In case nothing is to ...
Dato Simó
07:39 pm Revision 3416e3e7: harep: initial parsing of tags
Parse auto-repair tags to set each instance in one of ArHealthy, ArFailed,
or ArPendingRepair. The implementation tri...
Dato Simó
07:39 pm Revision a5e58418: harep: check for completed jobs at the start of the program
As a first step before detecting any brokeness with instances, see if any
of our previous repairs have completed, and...
Dato Simó
07:39 pm Revision 4ba5f148: harep: pure function to detect brokeness with instances
Add a 'detectBroken' function that determines whether an instance is in an
unhealthy state, and what's needed to repa...
Dato Simó
07:38 pm Revision b6d9bec8: Program/Harep.hs: add skeleton for the new auto-repair tool
harep(1) detects certain kind of problems with instances and applies the
allowed set of solutions. See doc/design-aut...
Dato Simó
07:37 pm Revision de9d75c8: HTools/Types.hs: minor adjustments to auto-repair types
In particular:
- make ArHealthy take an optional AutoRepairData; this allows to
represent the situation where ...
Dato Simó
07:37 pm Revision f5606cda: Fix typo ("Abrreviation" -> "Abbreviation" in Common.hs)
Signed-off-by: Dato Simó <dato@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Dato Simó
07:37 pm Revision 7d8b651e: Jobs.hs: add an execJobsWaitOk function
This new 'execJobsWaitOk' returns "Bad" not only if an error occurs, but if
any of the submitted jobs doesn't succeed...
Dato Simó
07:37 pm Revision b8e76da8: Jobs.hs: start with a shorter delay in waitForJobs
Instead of waiting 15 seconds every iteration of the waiting loop, start
with 0.5 seconds and increment exponentially...
Dato Simó
07:37 pm Revision 3f68544e: Jobs.hs: add a submitJobs function
This new 'submitJobs' function doesn't wait for job completion, it just
returns the job IDs immediately.
Signed-off-...
Dato Simó
07:26 pm Revision 6bb939a2: Force conflicts check in LUNetworkDisconnect
Until now if one disconnects a network with --no-conflicts-check
and then remove it, there is a possibility to leave ...
Helga Velroyen
07:26 pm Revision 1cce2c47: If _UnlockedLookupNetwork() fails raise error
Make _UnlockedLookupNetwork() raise OpPrereqError (instead of returning
None) in case it does not find the requested ...
Helga Velroyen
07:26 pm Revision 0ae4b355: Removes check for conflicts from NetworkDisconnect
This removes the check for conflicts from the Haskell
version of the OpCode NetworkDisconnect. This alignes
the Haske...
Helga Velroyen
07:12 pm Revision ea2bcb82: hv_kvm: Refactor getting TAP features, add tests
Split retrieving supported features into a dedicated function which can
be mocked. Tests are added for both “_ProbeTa...
Michael Hanselmann
06:13 pm Revision b76d4aaf: Merge branch 'devel-2.7'
* devel-2.7:
hv_kvm: Original error message, keyword parameter
CLI.hs: fix double spaces in option help strings
...
Michael Hanselmann
06:05 pm Revision 6f1e1921: hv_kvm: Original error message, keyword parameter
- Include original error message when creating TAP interface failed
- Pass keyword parameter as such
Signed-off-by: ...
Michael Hanselmann

01/29/2013

06:23 pm Revision 5fee2c83: Checks for hypervisor constants
Add two tests for hypervisor constants.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Po...
Michael Hanselmann
05:08 pm Revision 516c52f2: CLI.hs: fix double spaces in option help strings
Some help strings with continuation backslashes ('\') were providing a
space both before and after the backslash, res...
Dato Simó
03:07 pm Revision 125df9a8: Add fields 'inst_cnt' and 'inst_list' to network queries
This adds the fields 'inst_cnt' and 'inst_list' to the
Haskell implementation of the network queries.
Signed-off-by:...
Helga Velroyen
03:06 pm Revision 2d3d843d: Moving network query helper functions to Network.hs
So far, a couple of helper function for the network
queries resided in Config.hs. I figured it makes more
sense to mo...
Helga Velroyen
01:51 pm Revision 176dfd54: Add new NIC parameter to man page of 'gnt-instance'
According to doc/design-network.rst, there is a new NIC
parameter 'network', which can be used to link an instance
to...
Helga Velroyen
« Previous
Next »
 

Also available in: Atom