Activity
From 01/13/2013 to 02/11/2013
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
... - 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... - 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... - 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... - 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... - 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... - 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... - 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... - 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 ... - 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... - 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 ... - 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... - 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... - 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...
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 ... - 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... - 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... - 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... - 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... - 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... - 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... - 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 ... - 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... - 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... - 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:... - 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 ... - 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... - 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... - 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: ... - 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...
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... - 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... - 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> - 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... - 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...
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> - 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... - 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... - 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...
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... - 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... - 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... - 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... - 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... - 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> - 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... - 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...
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... - 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... - 04:52 pm Revision 473ab806: Extract container converters
- “objects.ConfigObject” contains two useful functions for working with
containers of serialized objects, “_ContainerTo... - 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 ... - 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... - 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@... - 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-... - 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 ... - 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... - 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...
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...
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... - 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... - 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... - 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... - 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... - 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 ... - 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... - 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... - 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... - 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... - 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: ... - 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... - 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... - 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... - 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... - 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... - 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... - 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... - 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... - 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... - 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:... - 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...
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... - 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> - 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... - 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... - 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...
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 ... - 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... - 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 ... - 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 ... - 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... - 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... - 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... - 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... - 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 ... - 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> - 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... - 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... - 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-... - 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 ... - 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 ... - 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... - 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... - 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
... - 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: ...
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... - 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... - 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:... - 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... - 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...
01/25/2013
- 06:12 pm Revision ae960018: More fields for network queries
- This adds more fields to the network queries:
- group_cnt, free_count, reserved_count, and map
Signed-off-by: Helga ... - 06:00 pm Revision ba258c08: Fix spelling issue in hroller.rst
- 'explicitly' was spelled the wrong way
Signed-off-by: Benjamin Kerensa <bkerensa@ubuntu.com>
Signed-off-by: Guido Tr... - 04:28 pm Revision f601723c: Merge branch 'devel-2.7'
- * devel-2.7:
kvm: fix bug while fetching -device list
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Review... - 04:07 pm Revision d8784f7d: hv_xen: Fix issues with migration, add tests
- Commit 3d942d8 broke instance migration (“self._cmd” was set to None).
This patch fixes that issue, refactors “Migrat... - 03:25 pm Revision bc0fed4b: kvm: fix bug while fetching -device list
- _GetKVMOutput expects the command to succeed, but unfortunately on some
versions of kvm "-device ?" will output a cor... - 12:58 pm Revision 2edc1c79: hv_xen: Test various forms of getting instance/node info
- Test functions for retrieving instance and node information.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
R... - 12:58 pm Revision 664b392d: hv_xen: Test stopping an instance
- Test stopping an instance, and ensure the configuration file still
exists after an instance couldn't be stopped.
Sig... - 12:58 pm Revision 396672cd: hv_xen: Test starting an instance
- Test starting an instance in normal mode, in paused mode, and in case of
failure.
Signed-off-by: Michael Hanselmann ... - 12:58 pm Revision 57270b2d: hv_xen: Test reading non-existent config file
- Check whether doing so raises an exception.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Helga... - 12:58 pm Revision b666f213: hv_xen: Test verifying hypervisor
- Test success and failure.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Helga Velroyen <helgav@... - 12:58 pm Revision 7610d884: hv_xen: Test removing config from "auto" directory
- Test whether any existing configuration file named after the instance is
removed from Xen's “auto” directory.
Signed... - 12:58 pm Revision 74a50c46: Establish base for testing Xen hypervisor abstraction
- There are two separate Xen hypervisors (HVM and PVM), as well as two
different Xen commands (xl and xm). This already... - 12:58 pm Revision 64a66bd2: hv_xen: Test errors while writing config file
- Test error handling while writing Xen configuration files.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Rev... - 12:58 pm Revision 1dee2041: hv_xen: Test using unknown Xen command
- This tests “unknown” values of “constants.XEN_CMD”.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-b... - 12:58 pm Revision 31da5ab5: hv_xen: Split StopInstance
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com> - 12:58 pm Revision 3d942d8b: hv_xen: Abstract running Xen commands
- Instead of using the “XEN_CMD” constant in multiple places, that is now
all in a single place and can easily be chang... - 12:57 pm Revision 89c4e365: Merge branch 'devel-2.7'
- * devel-2.7:
hv_xen: Remove config after shutdown was successful
Signed-off-by: Michael Hanselmann <hansmi@google....
01/24/2013
- 08:30 pm Revision effc9cad: List networks: call client explicitely
- This way, it is easier to make it call the haskell
implementation of the network queries.
Signed-off-by: Helga Velro... - 08:30 pm Revision 05092772: First part of Network Queries in Haskell
- This is the beginning of the implementation of network
queries. This includes establishing all infrastructure
to run ... - 08:30 pm Revision a64cc96b: Convert Maybe results to RSUnavail
- When displaying query results of type Maybe, one could use the
function rsMaybe. Unfortunately, this function maps 'N... - 08:30 pm Revision b43064d0: Extend config by networks and networks by UUIDs
- For network queries to work, we need to extend the general
config type to include all available networks. Additionall... - 06:00 pm Revision 3673a326: Typo in comment of network type
- Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 03:35 pm Revision 4b8b172d: hv_xen: Remove config after shutdown was successful
- If stopping an instance failed, the configuration would already be gone
and other operations depending on it (e.g. mi... - 02:29 pm Revision c3d839f5: hv_xen: Simplify writing configuration
- Instead of calling _WriteConfigFileStatic from both derived classes,
those now only return the content (minus the “do... - 02:29 pm Revision 0a903309: hv_xen: Prepare for unit tests, remove {static,class}method
- Unit tests will have to specify a custom Xen configuration directory (a
temporary directory). To this end “hv_xen.Xen... - 02:27 pm Revision d0bb3f24: hv_xen: Factorize and test disk configuration
- The “_GetConfigFileDiskData” function is moved to module level and
cleaned up (module-level constants for letters and... - 01:58 pm Revision 06c9a520: hv_xen: Refactor getting node information, add tests
- Refactor and add tests for getting node (Domain-0) information.
Signed-off-by: Michael Hanselmann <hansmi@google.com... - 01:57 pm Revision b255379d: hv_xen: Refactor running & parsing "xm list", add tests
- This patch refactors “_RunXmList” and adds some tests.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewe... - 01:46 pm Revision d82dec68: Merge branch 'devel-2.7'
- * devel-2.7:
hv_*: Always return from Verify, style fixes
_VerifyErrors()._Error() and _ErrorIf() are now consist... - 12:46 pm Revision cd04dfd2: hv_*: Always return from Verify, style fixes
- Change all “Verify” methods in hypervisor abstractions to explicitely
return None if no problem was detected. Remove ... - 10:50 am Revision 9842f020: Check minimum size of networks on creation
- When creating a network, so far no size constraints were checked.
We now limit the size of a network to a /30 or bigg... - 10:46 am Revision 9928c63e: Fix syntax error in QA's sample config
- The additional comma makes this file invalid JSON.
Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Mi... - 10:46 am Revision ea7693c1: Network QA
- This adds a script for the QA of 'gnt-network'. So far it
covers adding/removing and connecting/disconnecting network...
01/23/2013
- 07:49 pm Revision 0c348b86: constants: Add list of known Xen commands
- These will be used in unittests.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iust... - 06:34 pm Revision 8bb2df7d: _VerifyErrors()._Error() and _ErrorIf() are now consistent
- _Error() didn't contain the logic for demoting errors to warnings and for
marking an operation as failed. Now _ErrorI... - 03:45 pm Revision 31b8f1e6: Merge branch 'master' into devel-2.7
- * master:
Handle the result of QueryGroups() correctly
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Revie... - 03:25 pm Revision 286d0218: Handle the result of QueryGroups() correctly
- If no group is given for the “gnt-network connect“/“… disconnect”
commands, the client uses the result of “QueryGroup... - 03:24 pm Revision af3aea48: Handle the result of QueryGroups() correctly
- If no group is given for the “gnt-network connect“/“… disconnect”
commands, the client uses the result of “QueryGroup... - 01:41 pm Revision 76c364d9: hv_xen: Compose file name outside error handling
- In _ReadConfigFile, the filename should be prepared outside the
try/except block. Fixes bad code formatting, too.
Si...
01/22/2013
- 06:27 pm Revision 00ef625c: testutils: Module-level method for reading test data
- This patch moves the functions “_ReadTestData” and “_TestDataFilename”
to module level. They do not depend on a class... - 04:05 pm Revision 0d07a850: hv_base: Remove empty constructor
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Bernardo Dal Seno <bdalseno@google.com> - 04:05 pm Revision 3b721842: Add test for backend._GetBlockDevSymlinkPath
- Add a unit test for the trivial “_GetBlockDevSymlinkPath” function in
backend (small changes in the function were req...
01/21/2013
- 05:31 pm Revision af89fa76: Fix format string of KVM output
- This fixes a missing 's' in the format string and
the wrong quotes. Those bugs were introduced in
commit 6e043e60.
S... - 01:58 pm Revision d316b880: Renames and cleanup of variable names in confd
- The current names are quite confusing; this patch cleans up the
confusion by making sure we use different terms for t... - 01:57 pm Revision a6e054a8: Add a function to get the current time in microseconds
- In some cases we need higher resolution that seconds; I've settled on
microseconds as that is what 'threadDelay' want... - 01:57 pm Revision ce817701: Increase Haskell log file resolution
- Currently the Haskell logging goes with the default time formatting,
which lacks sub-second resolution. This is not g... - 01:57 pm Revision 01eea342: Change the polling thread sleep behaviour
- Currently, the polling thread sleeps at the end of its body; the
original reason was that when the thread initially s... - 01:57 pm Revision 7e7fa841: First part of confd timer changes
- This patch changes the resolution of the timers: the watcher timer
goes from 60s to 17s, and the polling-mode timer g... - 01:57 pm Revision c62df702: Start confd in notify mode if we can
- This patch changes the default model—where confd is always started in
polling mode—to a model where if possible we en... - 01:24 pm Revision 3190ad64: Explicitly load the config at confd startup
- Currently, confd main function doesn't load the config, but simply
forks the individual timer threads, which will—as ...
01/18/2013
- 05:12 pm Revision 525f0f98: Fix type of 'node_whitelist' request parameter
- If opportunistic_locking is used, then 'node_whitelist' parameter passed
to the allocator is set to the LU's owned no... - 05:12 pm Revision 347fa0f1: hv_xen: Add test for CPU pinning configuration
- Add a unittest for a function formatting CPU pinning information for
Xen's configuration.
Signed-off-by: Michael Han... - 05:12 pm Revision 6e043e60: kvm: deduplicate 'get output' code
- We had the same code twice, and were about to add a third time. Better
to collapse it into just one function.
Signed... - 05:12 pm Revision 6f4070cd: kvm: extract a regexp matching out of a for loop
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 05:12 pm Revision f0db563d: kvm: remove last version-based feature detection
- This was left behind because it required a different kvm invocation.
Now that we can add new ones cheaply (two consta... - 04:30 pm Revision a8e8c0c6: Make Xen config path a build-time option
- Stop hardcoding the path in “hv_xen.py”.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Tr... - 03:40 pm Revision df1d5c8f: Makefile.am: Protect placeholders for sed
- If the placeholder has exactly the same name as the variable used in
autoconf it would be replaced as well. In the ca... - 03:39 pm Revision 94d5cee9: burnin: Don't keep hypervisor class around
- Just determine whether it can migrate and keep that value instead of the
full hypervisor class.
Signed-off-by: Micha... - 12:41 pm Revision 9fb621af: Text wrap in Haskell code
- This adds two functions in Utils.hs: 'wrap' and 'trim' along with some
simple tests. 'wrap' is used in Common.hs for ... - 12:13 pm Revision d38bef8e: Run pre-migrate hooks on primary node too
- Signed-off-by: Constantinos Venetsanopoulos <cven@grnet.gr>
Reviewed-by: Guido Trotter <ultrotter@google.com>
01/17/2013
- 05:54 pm Revision 9d02edc6: Makefile: Allow tarball creation when man-in-doc is active
- Documentation with included man pages should not be distributed as it
contains fixed paths. Since the documentation w...
01/16/2013
- 08:57 pm Revision 82e3bf85: Check if KVM machine version is supported
- If machine version is passed as an hv param, a check is made
in target node whether this version is included in the s... - 07:43 pm Revision 11cf71c4: Revert "run-in-tempdir: Improve speed"
- This reverts commit dd60179dfd8 as it broke coverage for Python.
Signed-off-by: Michael Hanselmann <hansmi@google.co... - 07:09 pm Revision e32e1fb9: Verify that templates are compatible with exclusive storage
- cluster-verify reports instances with disk templates not compatible with
exclusive storage but that are running on no... - 07:09 pm Revision 14fe92c7: New RPC call for node verify in dns-only RPC client
- This will be used in node-add.
Signed-off-by: Bernardo Dal Seno <bdalseno@google.com>
Reviewed-by: Michael Hanselman... - 07:09 pm Revision 525939d9: cluster-verify checks uniformity of PV sizes
- When exclusive_storage is set, cluster-verify complains if the size of PVs
is not uniform across a node group.
Signe... - 07:09 pm Revision d5a690cb: cluster-verify checks that PVs are not shared
- When exclusive_storage is set, cluster-verify complains if PVs are shared
among unrelated LVs.
Signed-off-by: Bernar... - 07:09 pm Revision 39eb39dc: Moved checks within LUClusterVerifyGroup
- Almost all instance-specific checks have been moved from the Exec method to
the _VerifyInstance method. This cleans u... - 07:09 pm Revision b496abdb: bdev.GetPVInfo() returns list of LVs
- This will be used for checks related to exclusive storage.
Signed-off-by: Bernardo Dal Seno <bdalseno@google.com>
Re... - 07:09 pm Revision 58bc6241: add-node checks PVs
- add-node now performs a few checks on LVM before adding a node to the
cluster.
Signed-off-by: Bernardo Dal Seno <bda... - 07:09 pm Revision 8c3d6797: Small cleanup in constants.py
- - compat.UniqueFrozenset used in one more place, for consistency.
- The order of NV_XXX constants is fixed so that al... - 07:09 pm Revision 22d9752a: cluster-verify checks uniformity of exclusive_storage flag
- The value of the flag should be the same for nodes within the same group.
Signed-off-by: Bernardo Dal Seno <bdalseno... - 07:09 pm Revision 11064155: utils.LvmExclusiveCheckNodePvs() returns more info
- utils.LvmExclusiveCheckNodePvs() now returns the size of the smallest and
biggest PVs of a node. They will be used fo... - 07:01 pm Revision dd60179d: run-in-tempdir: Improve speed
- By creating symlinks instead of actually creating files we still get the
benefits of using a temporary directory, but... - 06:07 pm Revision 06a6f2cc: run-in-tempdir: Copy doc/* only if needed
- To preserve disk space on copying all files to a temporary directory,
the “doc” directory is only copied when buildin... - 03:56 pm Revision e71c47d3: Integrate DRBD with the report generation infrastructure
- With this commit, the DRBD data collector does not only print the data
it extracts, but includes them in the proper J... - 03:56 pm Revision 13d3acab: Add reporting infrastructure for data collectors
- This commit adds the part of the JSON report generation code that will be
common to all the data collectors, accordin... - 03:56 pm Revision ace37e24: Move getCurrentTime from Confd.Utils to Utils
- The getCurrentTime function is of wide interest, so its moved to a more
appropriate position.
Signed-off-by: Michele... - 01:11 pm Revision 43a840a3: burnin: Add unittest for supported disk templates
- When new a new disk template is added, burnin should be updated.
Signed-off-by: Michael Hanselmann <hansmi@google.co... - 01:10 pm Revision 4b9638dc: kvm: make kvm path configurable as an hv parameter
- This fixes Issue 225.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@go... - 01:07 pm Revision b73f1c59: make _{Generate,Execute}KVMRuntime accept kvm help
- Currently kvm --help is called twice at instance startup, this makes
sure it's called only once.
Signed-off-by: Guid... - 01:07 pm Revision 3b59ec02: kvm: make auxiliary functions accept a kvm path
- This will be used to be able to customize the path in an hv parameter.
Also fix two comments that still mentioned ve... - 01:06 pm Revision 4ab75599: Add KVM machine version as hv param
- This is needed in case an instance must be booted with an exact type of
machine version (due to e.g. outdated drivers... - 12:19 pm Revision 8e55e20f: Move burnin to ganeti.tools.burnin
- Similar to other scripts, “tools/burnin” just becomes a wrapper script.
Signed-off-by: Michael Hanselmann <hansmi@go...
01/15/2013
- 07:31 pm Revision 45566243: Remove special-case of "0" in niceSort
- Since now niceSort is more consistently behaved, we don't have the
special casing. This should have been removed in c... - 06:18 pm Revision 85a895be: burnin: Enable DT_EXT/DT_RBD for single node clusters
- As reported by Constantinos Venetsanopoulos, DT_RBD and DT_EXT work on
single node clusters.
Signed-off-by: Michael ... - 05:17 pm Revision d46c9fd6: test/Types.hs: add an HLint ANN for ignoring camelCase
- Signed-off-by: Dato Simó <dato@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 04:43 pm Revision 5ce58234: Link man pages in documentation
- This patch depends on “Option to include man pages in documentation”. In
the documentation build including man pages,... - 04:27 pm Revision a7f0953a: Make niceSort a wrapper over niceSortKey id
- Currently, niceSort behaves differently than niceSortKey in cases
where the parsed groups are equal but the original ... - 04:26 pm Revision 96b28307: Add version check for Sphinx
- Sphinx 1.0 and above can check version by setting “needs_sphinx” in the
configuration.
Signed-off-by: Michael Hansel... - 04:24 pm Revision 41806ef4: Option to include man pages in documentation
- Before this patch, HTML versions of man pages (man/*.rst) were already
built. However, since they are separate from t... - 03:16 pm Revision 6d675203: design-autorepair.rst: separate list of jobs with plus sign
- Commas are not valid characters in tags, hence they can't be use to
separate the different job IDs; plus signs (+) ar... - 01:18 pm Revision 42959a7f: burnin: Disk template option cleanup
- Burnin doesn't support all disk templates (specifically it doesn't
support “blockdev”). The code, however, used manua... - 01:18 pm Revision d8378091: burnin: Factorize disk template lists
- Keep the lists at the top instead of having them embedded in the code.
Use frozenset, too.
Signed-off-by: Michael Ha... - 11:42 am Revision 2f3a3365: Replace nodegroups' PartialNic by PartialNicParams
- This fixes a bug that corrups the config when one adds a
network to a node group. I wil soon extend QA by some comman...
01/14/2013
- 05:54 pm Revision ef947a42: Loader.hs: ignore expired ArSuspended policies
- At the moment, because 'mergeData' is pure, it may set instance auto-repair
policies that are of the form `ArSuspende... - 05:54 pm Revision e79f576c: Loader.hs: rewrite extractExTags to use chompPrefix
- Signed-off-by: Dato Simó <dato@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 05:54 pm Revision b1eb71c7: design-autorepair.rst: clarify tag precedence and conflict
- This commit clarifies one particular point of the auto-repair workflow:
what to do when multiple, conflicting adminis... - 05:54 pm Revision 55416810: Loader.hs: set instance auto-repair policy in mergeData
- 'getArPolicy' and 'setArPolicy' follow the precedence rules introduced in
b1eb71c: within an object, the most restric... - 05:54 pm Revision 23594127: Instance.hs: add an 'arPolicy' field for auto-repair policy
- Signed-off-by: Dato Simó <dato@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 05:54 pm Revision b6aeda4a: Utils.hs: add a clockTimeToString function
- This function allows to easily convert a ClockTime object to a string
representation of its timestamp (seconds-only).... - 05:54 pm Revision b009f682: Utils.hs: function to chomp prefix + separator from a string
- Some auto-repair tags are composed of a prefix and then an optional
argument; the new "chompPrefix" function in Utils... - 05:54 pm Revision 819358e1: design-autorepair.rst: add a graph with state transitions
- The graph added here follows the data types introduced in 7ec2f76, by which
"Suspended" is not a state, but a possibl... - 05:52 pm Revision 3e77a36c: Add initial constants and Haskell ADTs for auto repair
- In this commit, the AutoRepairType and AutoRepairResult types are defined,
with the possible values specified in doc/... - 05:52 pm Revision 7ec2f76b: HTools/Types.hs: more auto-repair types
- AutoRepairPolicy, AutoRepairStatus, and other auxiliary types are added.
These are used only internally by the auto-r... - 05:52 pm Revision e47e51a8: design-autorepair.rst: use the same prefix everywhere
- This commit changes the "ganeti:watcher:repair:pending" and
"ganeti:watcher:repair:result" tag prefixes to use
"ganet... - 05:31 pm Revision b3a6a525: NEWS: Fix referenced man page's section number
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 05:27 pm Revision eb7a6965: kvm: add two help dump files
- One is the --help output for kvm 1.1.2 and the second one is the same as
0.9.1 but with a fake option added between -... - 05:19 pm Revision 909948f1: Update copyright in documentation
- Use range() instead of building the list manually. Keeps the code
shorter starting next year.
Signed-off-by: Michael... - 04:36 pm Revision 7f83345f: kvm: simplify _GetMachineVersion
- Use a multiline regexp rather than a single line one, and then split
lines in the code.
Signed-off-by: Guido Trotter... - 04:36 pm Revision 2fddb144: Allow -soundhw option to kvm
- For all of us that love to listen to music on our kvm virtual machines,
the -soundhw option is paramount.
Signed-off... - 04:36 pm Revision 156681c1: kvm: support usb devices
- All in one go, comma separated usb devices of all types.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewe... - 04:36 pm Revision e6f24d89: kvm: Add kvm_extra parameter
- As requested in Issue 261 and many other times.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Mic... - 04:36 pm Revision 7589346f: kvm: Add -vga option
- As requested in Issue 69.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansm... - 04:23 pm Revision 0ad7f5d8: kvm: use help based feature detection
- As discussed on the list some people backport features to different kvm
versions, making the version based detection ... - 04:03 pm Revision e3b89628: kvm: abstract getting --help output
- This will be used later, for now nothing changes.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: M... - 04:03 pm Revision a900a30c: kvm: always pass -usb
- This will be the default anyway and it was a mistake to pass it only if
the mouse was specified.
Signed-off-by: Guid... - 04:03 pm Revision 2c368f28: Add a non negative int hypervisor parameter check
- ...and use it for a few parameters for which it makes sense.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Rev... - 04:03 pm Revision 4888a609: kvm: allow setting smp cores, threads, sockets
- This was requested in Issue 322.
Note that maxcpus is not implemented yet, as it should be considered in
a cpu-hotplu... - 12:54 pm Revision 14fd6c81: kvm: add serial console speed
- The serial port speed changed between versions of qemu (what didn't?), so
the old hardcoded default doesn't do anymor... - 11:35 am Revision 83951b04: Merge branch 'devel-2.6'
- * devel-2.6:
QA: Use instance name for rename test
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-... - 10:26 am Revision 223b7cf4: Merge branch 'stable-2.6' into devel-2.6
- * stable-2.6:
QA: Use instance name for rename test
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed...
Also available in: Atom