Activity

From 09/24/2012 to 10/23/2012

10/23/2012

07:28 pm Revision 68e2ed87: Improve devel/upload command line handling
To people not used to it, it was completely non-obvious why
"./devel/upload" didn't do anything.
Signed-off-by: Iust...
Iustin Pop
07:09 pm Revision b183c4a8: Improve logging of AssertionErrors
Currently, when we have an assertion error raised from cmdlib, it looks like this:
[cluster] root@node4:~# gnt-ins...
Iustin Pop
07:08 pm Revision 1facaf11: tools.prepare_node_join: Fix pep8 errors
Pep8 didn't agree with the indentation.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Tro...
Michael Hanselmann
06:32 pm Revision d12b9f66: Add initial implementation of prepare-node-join
This is a new tool as per the design document “design-ssh-setup”. It
receives a JSON data structure on its standard i...
Michael Hanselmann
03:59 pm Revision 8a3c9e8a: ssh.GetUserFiles: RSA support, unit tests
This patch changes “ssh.GetUserFiles” to support two different kinds of
SSH keys, RSA and DSA. Before it would always...
Michael Hanselmann
11:32 am Revision 986efb78: Fix typo in walkthrough document
Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michele Tartara

10/22/2012

06:42 pm Revision 141c8421: Find coverage during configure, issue with Debian package
- Debian Squeeze and up have a package named “python-coverage”, but it
doesn't use the same binary name as upstream...
Michael Hanselmann
06:19 pm Revision 942a9a6a: Remove multiple uses of '.&&.' with conjoin
This is just a bit of cleanup. The (.&&.) operator is internally just:
a .&& b = conjoin [a, b]
so let's replace ...
Iustin Pop
06:19 pm Revision 41eb900e: Improve message for (==?) operator
After seeing how nice HUnit formats the error message on failed
'assertEqual', I think we can do better with ==?. Cur...
Iustin Pop
06:19 pm Revision 37519c09: Add a new 'really-all' make target
This is used when one wants to build all binaries, including those
that are used only for testing. A handy shortcut t...
Iustin Pop
06:04 pm Revision 559f9895: Use bitarray 0.8 interface
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
04:37 pm Revision 7cb4cb8a: Change version to 2.6.1+grnet1-1
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
03:18 pm Revision b3c70abf: Merge branch 'stable-2.6-grnet' into debian-2.6-grnet
Dimitris Aragiorgis
02:20 pm Revision dddb2bc9: Annotated inequality operator for unit test properties
This includes:
* The operator (/=?), which checks for inequality and prints
an error message if it encounters equ...
Helga Velroyen
12:31 pm Revision 77ffd663: Fix setting of 'failN1' flag for corner case
This patch includes:
* The 'failN1' flag is now only set if there is strictly less
memory available than required ...
Helga Velroyen
12:29 pm Revision dd77da99: A few unittests improvements
Small simplifications of other unit tests using the (==?)
operator when possible, and typo fixes.
Signed-off-by: Hel...
Helga Velroyen

10/19/2012

07:38 pm Revision b02330cb: Merge branch 'stable-2.6' into stable-grnet
Dimitris Aragiorgis
07:37 pm Revision c8a7c1e5: Merge branch 'stable-2.6-hotplug' into stable-grnet
Conflicts:
lib/cmdlib.py
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Dimitris Aragiorgis
07:27 pm Revision 24bdf090: Merge branch 'stable-2.6-ippool' into stable-grnet
Dimitris Aragiorgis
06:04 pm Revision 651c1c3e: Corrected some commandlines in walkthrough
Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Helga Velroyen
06:04 pm Revision 98508e7f: BasicTypes.hs: fix docstring for eitherToResult
eitherToResult now converts from `Either a b` to `GenericResult`, not
necessarily from `Either String` only. Also, fi...
Dato Simó
05:55 pm Revision b07afbb3: Add a small QA check in instance renames for tags update
We also need to change the signature for _GetInstanceInfo, since we
don't have access to the instance dictionary in t...
Iustin Pop
05:55 pm Revision 06c9a9d6: Add note about running individual test cases
This was asked a few times offline, so let's document it.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by:...
Iustin Pop
05:55 pm Revision 48e175a2: Update blockdev's "info" at instance rename
Currently, we set "info" metadata on block devices at device creation
time, but we never update it, leading to stale ...
Iustin Pop
05:55 pm Revision ded769c1: Add a small note about tab completion and generated files
This can indeed be annoying, so let's document it.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Adeoda...
Iustin Pop
05:55 pm Revision e398546b: Add a small bdev helper function
I wanted to write that snippet the third time, which is too much :)
Signed-off-by: Iustin Pop <iustin@google.com>
Re...
Iustin Pop
05:55 pm Revision a1556cfa: LVM: remove old tags when adding new ones
This patch adds a small helper function to clear an LV's tags, and
calls it at SetInfo time. We need this to be able ...
Iustin Pop
05:31 pm Revision f4afc16e: Update for SSH design: Cluster name, ignore node daemon
While writing the initial version of this design I misunderstood what
“setup-ssh” does. It doesn't actually start the...
Michael Hanselmann
04:57 pm Revision ba147ff8: Fix disk adoption interaction with ipolicy checks
In Ganeti 2.6, disk adoption is broken due to the ipolicy checks being
done before we read volume size from remote no...
Iustin Pop
03:38 pm Revision e6d2a198: Merge branch 'stable-2.6' into stable-2.6-ippool-hotplug-esi
Dimitris Aragiorgis
02:43 pm Revision 0232b768: Compare significant fields only for simple SSH keys
For simple SSH keys, that is those without options such as
“command="…"”, only the first two parts need to be compare...
Michael Hanselmann
10:02 am Revision 9805aa82: Add instance uptime to monitoring info
This can be used to detect a reboot between two checks.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed...
Guido Trotter

10/18/2012

07:58 pm Revision 2f96c43c: test/*.py: Replace '' with ""
There might be more, but at least replace all these low-hanging fruits.
Signed-off-by: Michael Hanselmann <hansmi@go...
Michael Hanselmann
02:38 pm Revision 109e07c2: Add cluster monitoring agent design document
This design addresses the lack of a uniform way to query ganeti nodes
for real time information that can be used by m...
Guido Trotter
01:55 pm Revision a8038349: Remove custom OpResult type/monad
Since we now have the GeneralResult as a multi-purpose monad, we can
remove the custom OpResult monad, and just use '...
Iustin Pop
01:52 pm Revision a4b247f0: Merge branch 'devel-2.6'
* devel-2.6:
ensure-dirs: Don't accept arguments
ensure-dirs: Fix program name on usage screen
cli: Fix small t...
Michael Hanselmann
01:43 pm Revision fca74633: ensure-dirs: Don't accept arguments
Before they would just be silently ignored.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iusti...
Michael Hanselmann
01:43 pm Revision 8d77ac10: ensure-dirs: Fix program name on usage screen
No string replacements are used, so doubling of the percent sign is not
necessary.
Before: Usage: %ensure-dirs [--fu...
Michael Hanselmann
12:14 pm Revision 29fbe62e: Convert man page highlighting to standard RST
Instead of using the sphinx-specific highlight extension, which is not
parsed by Pandoc, let's switch to the standard...
Iustin Pop
12:14 pm Revision e1ff0de1: Convert two more 'sh' highlight styles to 'shell-example'
This is straightforward; only one shell example remained, but as we
process the man pages via pandoc and not sphinx, ...
Iustin Pop
12:11 pm Revision 1bf1ce3f: Small improvements to the move-instance doc
While reading the docs, I saw that this is not converted to the shell
lexer, and that a few other small improvements ...
Iustin Pop
12:11 pm Revision 707cd3d7: Use exitErr instead of explicit error message and exitWith
Furthermore, a few messages have their capitalisation changed (fixed).
Signed-off-by: Helga Velroyen <helgav@google....
Helga Velroyen
11:04 am Revision f9a51a21: Fix running of Haskell tests
Commit 21a5e56c forgot to rename a variable used in a conditional (of
course shell didn't complain about unused vars)...
Iustin Pop

10/17/2012

07:53 pm Revision 93be1ced: Generalise the Result type
Currently, our error monad—Result—has a plain string error type. This
is not good, as we don't have structured errors...
Iustin Pop
07:45 pm Revision 659d769d: Merge branch 'devel-2.6' into master
* devel-2.6:
htools-excl.test: add test case for exclusion tags in hbal
Instance.hs: rename 'tags' to 'exclTags',...
Dato Simó
06:44 pm Revision 90efd920: cli: Fix small typo
s/it/if/
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Dato Simó <dato@google.com>
Reviewed-by:...
Michael Hanselmann
06:30 pm Revision b898de8f: Add hbal-excl-tags.data to Makefile.am, missed in 0397694
Signed-off-by: Dato Simó <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Dato Simó
05:51 pm Revision 312620ad: Better NEWS file for 2.6.1
Better formatting of text, past tense used when appropriate.
Signed-off-by: Bernardo Dal Seno <bdalseno@google.com>
...
Bernardo Dal Seno
04:13 pm Revision 6b6e335b: Group.hs: add 'allTags'; adjust loaders and test data for it
This commit adds a Group.allTags field to store the tags of node groups,
and teaches each loader backend in HTools to...
Dato Simó
04:13 pm Revision 2f907bad: Instance.hs: rename 'tags' to 'exclTags', provide 'allTags'
The mergeData function in Loader.hs included a step to filter an instance's
tags to include only the exclusion tags (...
Dato Simó
04:13 pm Revision 0397694e: htools-excl.test: add test case for exclusion tags in hbal
In preparation for future modifications in the exclusion tags field, add a
test that verifies that exclusion tags are...
Dato Simó
03:27 pm Revision 18ccdced: Fix small typo in NEWS file
Sorry, I didn't see this before pushing 5a7cb9d3…
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Adeodat...
Iustin Pop
02:56 pm Revision a7862455: Remove support for PUT in noded
This takes care of a FIXME; 2.6 already uses the new method, so we're
good during upgrades.
Signed-off-by: Iustin Po...
Iustin Pop
02:12 pm Revision 5a7cb9d3: Ignore empty/comment lines in OS variants file
Per a conversation on ganeti@googlegroups.com:
- gnt-os diagnose ; gnt-os list take in consideration blank lines i...
Iustin Pop
02:12 pm Revision e1c701e7: gnt-job cancel: Confirmation and selection of jobs
New parameters, “--pending”, “--queued” and “--waiting”, are added to
select all jobs in the respective state. If one...
Michael Hanselmann
01:12 pm Revision a57b2bb7: Update NEWS for file storage paths
Mention that the file is something new and should be written by
cfgupgrade.
Signed-off-by: Michael Hanselmann <hansm...
Michael Hanselmann

10/16/2012

06:13 pm Revision 7bb6e137: Replace custom algorithm in constants unittest
There is no need for the “_IsUniqueSequence” function anymore, it can
easily be replaced by utils.FindDuplicates. Als...
Michael Hanselmann
06:13 pm Revision 2ff01d78: Design for remote command execution via RPC
This is a first design for executing commands via RPC.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewe...
Michael Hanselmann
06:13 pm Revision 04c998a5: Makefile: Verify version of security.rst document
This document should be kept up-to-date.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin P...
Michael Hanselmann
06:05 pm Revision 1eaddbc6: Add new constant for pending job status
This constant contains the job status' “queued”, “waiting” and
“cancelled”.
Signed-off-by: Michael Hanselmann <hansm...
Michael Hanselmann
05:43 pm Revision 11f53fdb: Merge branch 'devel-2.6'
* devel-2.6:
ensure-dirs: Fix permissions on master socket
Update security document for version 2.6
Update NEWS...
Michael Hanselmann
05:38 pm Revision 48e3db76: ensure-dirs: Fix permissions on master socket
A socket shouldn't have its executable bit set.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: I...
Michael Hanselmann
05:38 pm Revision 3397d13e: Update security document for version 2.6
Quite some things were out of date. Some formatting was also updated.
Signed-off-by: Michael Hanselmann <hansmi@goog...
Michael Hanselmann
04:54 pm Revision 781d828b: Fix OP_RESULT for OP_NETWORK_QUERY
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
03:53 pm Revision d27606cd: Allow passing 'none' for network_type option
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
03:14 pm Revision 19e21a6c: Add a very simple test rpc program
This only supports test delay for now, is not built by default (only
on demand), and is also not installed anywhere.
...
Iustin Pop
03:14 pm Revision 4ab40ed5: Add htools program code to hlint call
Currently only the libraries are added, but not the actual main binary
(usually short) code.
Signed-off-by: Iustin P...
Iustin Pop
03:14 pm Revision de2a5704: confd: add the test_delay RPC call
Also add some more haddock structure to the module. The RPC call
itself is rather trivial.
Signed-off-by: Iustin Pop...
Iustin Pop
02:11 pm Revision f2ee5004: Merge branch 'stable-2.6-ippool' into stable-2.6-ippool-hotplug-esi
Dimitris Aragiorgis
02:01 pm Revision da1168c5: Fixes to pass unittests (make check)
Conflicts:
doc/rapi.rst
lib/ovf.py
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Dimitris Aragiorgis
01:06 pm Revision f98efa98: Add design for changing node SSH setup
The goal is to remove the dependency on Paramiko.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by:...
Michael Hanselmann
12:47 pm Revision ff8f0049: confd: fix RpcVersion call
By accident, we sent the node object as call data in this rpc call,
instead the version request (i.e. nothing). This ...
Iustin Pop
11:59 am Revision 162e70ed: Merge branch 'stable-2.6-hotplug' into stable-2.6-ippool-hotplug-esi
Conflicts:
lib/cmdlib.py
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Dimitris Aragiorgis
11:57 am Revision 664249e9: Merge branch 'stable-2.6-ippool' into stable-2.6-ippool-hotplug-esi
Dimitris Aragiorgis
09:04 am Revision 59a5de9e: Fixes to pass pylint (make lint)
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
09:00 am Revision 9650d658: Fix _GetPCIInfo() to pass unittests
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
08:56 am Revision 29cf7871: Add HOTPLUG_OPT in gnt-backup import client
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
08:51 am Revision 143214f6: Export nic.network during gnt-backup export
Modify FinalizeExport() in backend.py to export nic.network as well.
Signed-off-by: Dimitris Aragiorgis <dimara@grne...
Dimitris Aragiorgis
12:40 am Revision 0048236f: Fix CIDR opcode checks to accept 'none' value
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
12:28 am Revision 1111f3e3: Export serial_no of networks/instances in hooks
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
12:28 am Revision 8a50b7c1: Export serial_no and uuid in network queries
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
12:28 am Revision 870c9855: Fix locks in network LUs
Acquire corresponding instance locks if conflicts_check is True.
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Dimitris Aragiorgis

10/15/2012

07:56 pm Revision 01e52493: Cleanup HTools.Types/BasicTypes imports
Before we reorganised the source tree, the 'Result' type was exported
from HTools/Types.hs. This changed during the r...
Iustin Pop
05:50 pm Revision a251afa8: ExtStorage support in htools
Signed-off-by: Constantinos Venetsanopoulos <cven@grnet.gr> Constantinos Venetsanopoulos
05:50 pm Revision 26ede877: Add external storage interface related man pages
* ganeti-extstorage-interface man page
* gnt-storage man page
Signed-off-by: Constantinos Venetsanopoulos <cven@grn...
Constantinos Venetsanopoulos
05:50 pm Revision 19930d75: Add the gnt-storage client
Add a new client called 'gnt-storage'.
The client interacts with the ExtStorage interface, similarly to
the way gnt-o...
Constantinos Venetsanopoulos
05:50 pm Revision 3ff5bdfa: Add --allow-arbit-params to 'gnt-instance modify'
The option is added to allow us the passing of arbitrary ext-params
during disk addition (gnt-instance modify --disk ...
Constantinos Venetsanopoulos
05:50 pm Revision 1058522e: Multiple ExtStorage Providers and ext-params
Add support for passing parameters to the ext template (ext-params).
Take advantage of disk-params, that don't seem t...
Constantinos Venetsanopoulos
05:50 pm Revision 8237d5eb: Implement the SetInfo method for ExtStorage
Signed-off-by: Constantinos Venetsanopoulos <cven@grnet.gr> Constantinos Venetsanopoulos
05:16 pm Revision 0f247c10: Minor fixes for ExtStorage inside bdev.py
Signed-off-by: Constantinos Venetsanopoulos <cven@grnet.gr> Constantinos Venetsanopoulos
05:03 pm Revision 4b945e1e: Merge branch 'stable-2.6' into devel-2.6
* stable-2.6:
Update NEWS and bump version to 2.6.1
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed...
Michael Hanselmann

10/13/2012

06:15 pm Revision f1d0869b: Fixes to pass py-apidoc (make commit-check)
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis

10/12/2012

09:12 pm Revision bba43ba6: Fixes to pass pep8 (make lint)
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
09:12 pm Revision 23b0a9e0: Fixes to pass pylint (make lint)
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
09:12 pm Revision fdaacd25: Fixes to pass unittests (make check)
Signed-off-by: Iustin Pop <iustin@google.com> Iustin Pop
09:09 pm Revision 32279a07: Check for existing networks/groups in Network LUs
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
07:17 pm Revision 27e15be0: Update NEWS and bump version to 2.6.1
This is a small bug-fix only release.
Signed-off-by: Bernardo Dal Seno <bdalseno@google.com>
Reviewed-by: Guido Trot...
Bernardo Dal Seno
01:37 pm Revision 300e5450: errors: Document arguments to QueryFilterParseError
Also fix one small mistake in the docstring for QuitGanetiException.
Signed-off-by: Michael Hanselmann <hansmi@googl...
Michael Hanselmann
12:37 pm Revision fc07a14e: Fix distcheck after commit 7a962ec
I only ran “make check” and forgot about “distcheck”.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed...
Michael Hanselmann
11:37 am Revision 7a962ecc: Makefile/check-local: Ensure design document exists
This way a missing design document is detected.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: I...
Michael Hanselmann
11:37 am Revision 97aac894: Add design document for version 2.7
- Move design document for batch instance creation into it
- Sort list of hidden files in index.rst
Signed-off-by: M...
Michael Hanselmann

10/11/2012

04:49 pm Revision 479197d5: QA: TestAssignNodesIncludingSplit can be disabled
The test can now be enabled/disabled with the "group-rwops" flag.
Signed-off-by: Bernardo Dal Seno <bdalseno@google....
Bernardo Dal Seno
04:49 pm Revision 6f058bf2: QA: never put a master node offline
Before, it could happen that the master node was chosen to be set offline
in the "instance-remove-drbd-offline" test....
Bernardo Dal Seno
04:48 pm Revision e85be22a: Add option to disable iallocator use in QA
By default some QA tests use iallocators. It is now possible to disable
iallocators in QA, so that QA doesn't force h...
Bernardo Dal Seno
04:15 pm Revision 5b27366d: Use network's mac prefix
Modify existing GenerateMAC so that it takes network as an argument.
Substitute _GenerateOneMAC with a decorator _Ge...
Dimitris Aragiorgis
04:15 pm Revision 4ab97ef7: Include networks in Makefile and bash completion
Signed-off-by: Apollon Oikonomopoulos <apollon@noc.grnet.gr>
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Apollon Oikonomopoulos
04:15 pm Revision 5a52117f: cfgupgrade for networks
Add networks slot in config data.
Add networks slot in nodegroups.
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Dimitris Aragiorgis
04:15 pm Revision 269eb7eb: Add tags in network objects
Support:
- gnt-network add --tags.
- gnt-network list-tags/add-tags/remove-tags/.
- gnt-network list -o +tags
Sig...
Dimitris Aragiorgis
04:15 pm Revision fca7218a: Pass detailed network info in hooks
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
04:15 pm Revision f71d1807: Change default fields for network listing
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
04:15 pm Revision 0b95ab93: Pass netinfo in rpcs
If a nic has a network field then encapsulate a network object in
netinfo slot for every rpc. This is needed to pass ...
Dimitris Aragiorgis
04:00 pm Revision b95d2054: Introduce client support for networks
gnt-network is used to manipulate and handle networks that
currently provides the following operations:
* Add a new...
Dimitris Aragiorgis
04:00 pm Revision ebdc436b: Add gnt-network man page
Signed-off-by: Apollon Oikonomopoulos <apollon@noc.grnet.gr>
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Apollon Oikonomopoulos
04:00 pm Revision a7f860c1: Rapi support for networks
Support:
- GetNetwork(s)
- CreateNetwork
- ConnectNetwork
- DisconnectNetwork
- RemoveNetwork
Signed-off-by: Di...
Dimitris Aragiorgis
04:00 pm Revision 09b9a917: ss_conf support for networks
Signed-off-by: Apollon Oikonomopoulos <apollon@noc.grnet.gr>
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Apollon Oikonomopoulos
04:00 pm Revision b2bbccc6: Modify instance client to support networks
Add --no-conflicts-check option.
Modify instance query methods to return nic's network info.
Signed-off-by: Apollon ...
Apollon Oikonomopoulos
04:00 pm Revision e75d9a84: Implement LUNetworkQuery
Summarily list all existing networks
Supply detailed info for every existing network
- List used/free IPs
- List in...
Apollon Oikonomopoulos
04:00 pm Revision df968b4b: Implement LUNetworkSetParams
Support modifying all network parameters except for network (ip range)
Cannot modify gateway and reserved ips at the ...
Dimitris Aragiorgis
04:00 pm Revision b35374d3: Implement network/nodegroup mappings
LUNetworkConnect() connects a network to a nodegroup and defines
its netparams (mode and link). Specifically:
* Chec...
Dimitris Aragiorgis
04:00 pm Revision 6edb2627: Config methods for reserving/releasing IPs
Use TemporaryReservationManager for IP handling to ensure
config data consistency.
Implement:
- methods for reservi...
Dimitris Aragiorgis
04:00 pm Revision 7cd72916: Modify LUInstanceCreate to support networks
Implement backend support, to export the IP pool management
functionality to the clients. When the new NIC parameter ...
Dimitris Aragiorgis
04:00 pm Revision e01365a8: Modify RemoveInstance() to support networks
Release any IPs held the instance before actually removing.
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Dimitris Aragiorgis
04:00 pm Revision 4b8ec2a1: Modify LUInstanceSetParams() to support networks
Keep backwards compatibility just like LUInstanceCreate() and
support network parameter for NIC object.
Add ec_id ar...
Dimitris Aragiorgis
04:00 pm Revision 7e03a8cc: Peripheral changes for networks
Specifically:
* export a new environment variable for the gnt-os-interface
* export a new environment variable for ...
Apollon Oikonomopoulos
04:00 pm Revision b246cea8: Basic IP pool management logic
Implement LUs for corresponding opcodes:
* LUNetworkAdd:
- Check for IP validity
- Reserves all necessary IPs
...
Dimitris Aragiorgis
04:00 pm Revision aebdaa73: IP pool related objects, opcodes and constants
Config objects:
* Introduce L{Network} with
- IPv4 network field (mandatory)
- IPv4 gateway, IPv6 (network/gatew...
Dimitris Aragiorgis
04:00 pm Revision 488e1849: Introduce new module for IP pool management
Add new library module lib/network.py.
Introduce new class: AddressPool.
AddressPool implements all operations neede...
Apollon Oikonomopoulos
03:34 pm Revision 8bd977e9: Add support for cpu_cap and cpu_weight Xen params
This patch adds support for Xen's CPU scheduler 'cpu_cap' and
'cpu_weight' parameters.
Ganeti default values (cap: 0...
Sébastien Bocahu
03:21 pm Revision b0b8337a: Text.hs: update field lists in parseData comments
The comments in parseData had become out of date with the implementations
of load{Group,Node,Inst}. This commit updat...
Dato Simó
01:53 pm Revision d5cc16d7: Enable conversion of errors constants
These will be needed for the serialisation of errors.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Mic...
Iustin Pop
01:05 pm Revision 47130d50: LUClusterVerifyGroup: Localize virtual file paths
The check for file consistency didn't properly handle virtual paths
in case of a virtual cluster. This didn't cause a...
Michael Hanselmann
01:03 pm Revision a2ae14e9: Add a helper for query field checks
… and also use it to simplify 'needsLiveData'. Additionally, add an
explicit export list to Ganeti.Query.Types, since...
Iustin Pop
01:03 pm Revision 2d52359b: Cleanup/expand the filter/query tests
This patch cleans up duplicate code in Test.Ganeti.Query.Filter and
then adds a test for names consistency with Pytho...
Iustin Pop
01:03 pm Revision 4cd79ca8: Cleanup network timeouts and htools imports
This patch removes the last HTools module imports from non-htools code
(the HTools.Types module), but it requires an ...
Iustin Pop
01:03 pm Revision 18049dad: Cleanup haddock documentation a bit
While grepping for htools imports in the non-htools subdirectory, I
saw that our haddock prologue and title are very ...
Iustin Pop
01:03 pm Revision 1fc3812c: Switch ordering of names on query to niceSort
This makes the "all" names queries consistent with the Python
results. The change requires updating the unittests, at...
Iustin Pop
01:03 pm Revision a41c337e: Use the new name filtering behaviour in query
We do this not quite generically, which means we have to add
another layer in the call chain, and rename the current ...
Iustin Pop
01:03 pm Revision bc4cdeef: Add functionality for checking validity of names
This replicates in the Haskell Query2 implementation the behaviour of
the Python code: if a "simple" filter is passed...
Iustin Pop
01:03 pm Revision 9fbf0098: Enable query socket usage in gnt-node/gnt-group
This switches gnt-node/gnt-group (and their equivalent RAPI resources)
to go over the query socket.
Signed-off-by: I...
Iustin Pop
01:03 pm Revision b04dc242: Simplify a bit queryFields
We don't add a type class for fully-generic handling, but we do
abstract the duplicate part.
Signed-off-by: Iustin P...
Iustin Pop
01:03 pm Revision 5227de56: Fix the node powered field
When initially implementing the node query, I thought the 'powered'
field is a representation of the run-time powered...
Iustin Pop
01:03 pm Revision b3d17f52: Add a makeSimpleFilter function
And associated unittests. This will be needed for classic-style
queries.
Signed-off-by: Iustin Pop <iustin@google.co...
Iustin Pop
01:03 pm Revision cd67e337: Add support for classic queries
This patch adds support for classic-style queries (before query2) to
the query socket server. The patch is rather tri...
Iustin Pop
01:03 pm Revision 90d033ef: Add function for getting a group's merged disk params
… and use it in the Query implementation, removing the last
non-correct query field for Groups.
Signed-off-by: Iusti...
Iustin Pop
12:56 pm Revision fe4f6dca: vcluster: Don't virtualize /etc/hosts path
/etc/hosts is a bit special as it's a system-wide file and the virtual
cluster/node root doesn't apply. The modificat...
Michael Hanselmann
12:56 pm Revision 36683bad: vcluster-setup: Stop hardcoding /etc/hosts
… use a constant instead.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@goog...
Michael Hanselmann
12:56 pm Revision 48967eb0: qa_utils: Stop hardcoding path to /etc/hosts
- Simplified shell command for adding hosts, too
- The exception handling is also improved by re-raising any exceptio...
Michael Hanselmann
12:56 pm Revision 72043dac: cli: Stop hardcoding /etc/hosts path
There is a constant for this purpose.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop ...
Michael Hanselmann
12:56 pm Revision ee045466: Move constant for /etc/hosts to pathutils
Needed for coming patches.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@goo...
Michael Hanselmann
12:55 pm Revision 7ca67731: bash_completion: Fix mistake introduced in merge 6a74f58
This part of the code was duplicated by accident.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by:...
Michael Hanselmann
12:38 pm Revision 6a74f584: Merge branch 'devel-2.6'
* devel-2.6:
verify-disks: Explicitely state nothing has to be done
Add list of design documents implemented in v...
Michael Hanselmann
12:24 pm Revision c44356fd: Merge branch 'stable-2.6' into devel-2.6
* stable-2.6:
verify-disks: Explicitely state nothing has to be done
Add list of design documents implemented in ...
Michael Hanselmann
12:23 pm Revision 0422250e: gnt-job: List archived jobs if requested
If requested via a filter or by including the “archived” output,
archived jobs will be loaded and shown. This is sign...
Michael Hanselmann
12:23 pm Revision 43d51ef2: gnt-job list: Add option to include archived jobs
This provides a convenience option to include archived jobs in the
output list. It's equivalent to using “-o +archive...
Michael Hanselmann
12:23 pm Revision 4c27b231: jqueue: Correct docstring
The description was not accurate.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <ius...
Michael Hanselmann
12:23 pm Revision 8a3cd185: jqueue: Add new in-memory attribute for archived jobs
This attribute is set to True for jobs which were restored from an
archived file. A new filter will act on this field...
Michael Hanselmann
12:23 pm Revision 52aa1efa: query: Report data type for unary operators
All data kinds (used to restrict the data collected) referenced in a
filter can be requested once it's been “compiled...
Michael Hanselmann
12:19 pm Revision 9c5b9957: Add htools/ganeti-confd to .gitignore
Sorry, this should have went in b0dcdc10, but I forgot it.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by...
Iustin Pop
12:15 pm Revision 9b99be28: verify-disks: Explicitely state nothing has to be done
Example output:
$ gnt-cluster verify-disks
Submitted jobs 4327
Waiting for job 4327 ...
No disks need to be activated...
Michael Hanselmann
12:11 pm Revision 1ca7b773: Add basic unit tests for "gnt-cluster epo"
This patch adds some unit tests for “gnt-cluster epo”. Not everything is
covered, but at least the bug fixed in the p...
Michael Hanselmann

10/10/2012

07:12 pm Revision 318853ab: Fixup node disk free/total queries
The disk free/total values are optional ones, wrapped in a Maybe, so
we shouldn't directly serialise them. In order t...
Iustin Pop
06:28 pm Revision 235a0fa5: (htest) Text.hs: fix typo in comment
Signed-off-by: Dato Simó <dato@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Dato Simó
03:37 pm Revision 3008f56c: Fix pylint breakage due to unused var in gnt_cluster
The usage of that variable was removed in 45a36f36, but accidentally
the enumerate() was left in.
Signed-off-by: Ius...
Iustin Pop
03:03 pm Revision 0ec87781: Fixup hypervisor queries in node query
We need to only query the default (first enabled) hypervisor, not all
hypervisors. For this, we need to add a manual ...
Iustin Pop
02:43 pm Revision edb3f937: Fixup node live field names
The String parameter to 'nodeLiveFieldExtract' is the query2 field
name, not the RPC-layer field name. Grrr for not h...
Iustin Pop
02:43 pm Revision 21a5e56c: Improve Haskell configure options and detection
This patch cleans up the Haskell library detection and defaults.
First, it makes the base compiler/libraries requir...
Iustin Pop
02:43 pm Revision 7ae97c33: Make regex-pcre an optional dependency
This patch makes regex-pcre optional, allowing its disable via a
preprocessor define NO_REGEX_PCRE. This define will ...
Iustin Pop
02:27 pm Revision 45a36f36: cluster epo: Fix bug where IndexError is raised
Updating the “node_query_list” variable would fail if no arguments were
passed and the “--all” option wasn't specifie...
Michael Hanselmann
02:22 pm Revision 40309ed7: Add list of design documents implemented in version 2.6
Each version should have its dedicated list.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iust...
Michael Hanselmann

10/09/2012

04:58 pm Revision 55837756: Try to auto-enable htools-rapi and split query
We try to automatically enable the htools-rapi and split query (if
confd and htools-rapi are enabled) options. This i...
Iustin Pop
01:46 pm Revision 39d1744a: Fix usage of errors.ResolverError
This exception is documented to have three arguments, but in one case
we raise it with a simple string argument. Let'...
Iustin Pop
11:16 am Revision 012f9bc3: Remove unused/deprecated error classes
It seems a few of the error classes are no longer used:
- LVMError, deprecated in 8c5533a5 (before ganeti 1.2.2!)
- ...
Iustin Pop

10/08/2012

06:50 pm Revision 7e2f08ba: Typos and grammar fixes
Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Helga Velroyen
04:36 pm Revision 04edfc99: Add an Utils.NiceSort() equivalent
This patch adds a NiceSort equivalent and the corresponding unittest
(partially copied from Python unittest). The dif...
Iustin Pop
02:39 pm Revision b3589802: backend: Use utils.IsBelowDir instead of local code
utils.IsBelowDir is actually tested and doesn't allow writes to
“…/queue*”, like the old code here did.
Signed-off-b...
Michael Hanselmann
02:39 pm Revision 4fdedd09: jstore: Nicer error message on non-numeric file content
An error like “invalid literal for int() with base 10” can be quite
confusing.
Signed-off-by: Michael Hanselmann <ha...
Michael Hanselmann
02:20 pm Revision 946e553b: Fixed QA for replace-disks
Bug introduced in commit cc4b14f07: Part of a statement was missing. This
makes pylint-qa fail.
Signed-off-by: Berna...
Bernardo Dal Seno
02:09 pm Revision 46118ed2: Merge ganeti-master-cleaner back into ganeti-cleaner
As I wrote during/after the review on commit 2958c56, “ganeti-cleaner:
Separate queue cleaning code”, while I appreci...
Iustin Pop
02:07 pm Revision 416eba57: Improve the confd man page
This was a very very thin man page; this patch expands it a bit, but
it could use more help still.
Signed-off-by: Iu...
Iustin Pop
02:07 pm Revision ecebe9f6: Split the OptComplNumeric into integer/float ones
This allows the command completion to treat them as separate option
types; this is not useful in build-bash-completio...
Iustin Pop
02:06 pm Revision f8d01158: Enable bash completion for Haskell daemons too
This requires a few tiny changes to build-bash-completion and to
Makefile rules, but is straightforward.
Signed-off-...
Iustin Pop
02:06 pm Revision 22278fa7: Define the actual arguments that are supported by programs
This defines the arguments supported and then modifies the
--help-completion output to include them too.
Signed-off-...
Iustin Pop
02:01 pm Revision fad06963: Support the new option types in build-bash-completion
Beside parsing the arguments as well, we also change the serialisation
format for choices/suggests, to make the Pytho...
Iustin Pop
02:01 pm Revision a6cdfdcc: Add support for arguments in --help-completion
This extends the current option-only support with support for
arguments too. They are serialised without a without th...
Iustin Pop
12:52 pm Revision dad26941: A few cleanups in Makefile.am
A lot of the lists in Makefile.am were not sorted properly (or at
all); let's sort them for more sanity.
Additionall...
Iustin Pop
12:41 pm Revision db154319: Add missing ipolicy field
This was missing so far…
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@googl...
Iustin Pop
12:39 pm Revision 6b84f036: Fixup TAGS generation with newer GHC
Newer GHC refuses to allow "-O" with interactive mode, so let's filter
that out. Furthermore, sometimes you don't hav...
Iustin Pop
12:38 pm Revision a5b270c5: Remove qualified import of Utils.hs into its test module
This is a leftover from the times when we had a single, huge test
module; nowadays it's only an annoyance.
Signed-of...
Iustin Pop
12:35 pm Revision 26d62e4c: Rename Ganeti/HTools/Utils.hs to Ganeti/Utils.hs
This is, I believe, the last non-htools specific file that still lived
in the htools directory; it's already widely u...
Iustin Pop

10/05/2012

11:34 pm Revision 8a6dbce8: bdev: Remove unnecessary empty line
My local pylint didn't complain.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Bernardo Dal Sen...
Michael Hanselmann
07:32 pm Revision 50c1e351: Better list of replace-disks arguments + typos fixed
The man page and the bultin-in help for gnt-instance replace-disks were
inconsistent. Also fixed some typos in man pa...
Bernardo Dal Seno
07:27 pm Revision 3439fd6b: Check fingerprint of file with allowed file storage paths
This makes differences show up in “gnt-cluster verify”.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Review...
Michael Hanselmann
07:23 pm Revision 43a8f36a: Explicitly ask for the default iallocator in commands
Now "gnt-instance recreate-disks" uses the default iallocator when "." is
specified as the iallocator. For uniformity...
Bernardo Dal Seno
07:23 pm Revision 1a770ce5: Document the support for default iallocator
Updated the man pages for the commands that accept an iallocator: "." means
the default iallocator.
Signed-off-by: B...
Bernardo Dal Seno
07:23 pm Revision cc4b14f0: Instance QA uses default iallocator
QA for recreate-disk and replace-disks now run also with the default
iallocator.
Signed-off-by: Bernardo Dal Seno <b...
Bernardo Dal Seno
07:23 pm Revision 52ecc063: Support for the default iallocator in replace-disks
"gnt-instance replace-disks" now behaves like the other commands, and uses
the default iallocator when "." is passed ...
Bernardo Dal Seno
07:22 pm Revision fbdac0d9: bdev: Add functions to verify file storage paths
- LoadAllowedFileStoragePaths: Loads a list of allowed file storage
paths from a file
- CheckFileStoragePath: Check...
Michael Hanselmann
07:14 pm Revision e4cf42d4: jqueue: Look at archived jobs when watching
First: This enables the use of “gnt-job watch $id” for archived jobs.
Now, the reason for actually making this work ...
Michael Hanselmann
06:46 pm Revision 04569469: jqueue: Look at archived jobs when watching
First: This enables the use of “gnt-job watch $id” for archived jobs.
Now, the reason for actually making this work ...
Michael Hanselmann
03:16 pm Revision 4ff32a35: Design doc for partitioned Ganeti
Partitioned Ganeti allows to assign node resources in an exclusive manner,
in order to limit interference between ins...
Bernardo Dal Seno
05:17 am Revision 63a3d8f7: backend: Check for shared storage also
If normal file storage was disabled but shared storage enabled,
“_TransformFileStorageDir” would still throw an excep...
Michael Hanselmann
04:52 am Revision 6a9b9778: utils.FilterEmptyLinesAndComments: Return list
We don't use generators often and lists are easier to re-use.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
...
Michael Hanselmann
04:50 am Revision 555b6cb1: Improve disk wipe unit test
- Don't hardcode node name in some places
- Don't define functions inside functions
- Simplify code for testing with ...
Michael Hanselmann
04:50 am Revision fa8ef9d6: Wipe added space when growing disks
This patch adds code to wipe newly added disk space when growing disks
using “gnt-instance grow-disk”. “New disk spac...
Michael Hanselmann
04:50 am Revision 129cce69: Add unit tests for cmdlib._WipeDisks
This is in preparation for adding disk wipe on growing disks.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
...
Michael Hanselmann

10/04/2012

06:00 pm Revision 1be3e86c: Add unit test for FilterEmptyLinesAndComments
I somehow forgot this in the previous patch.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Bern...
Michael Hanselmann
05:58 pm Revision 461eb201: cmdlib._WipeDisks: Code formatting
- LogInfo takes *args, no need to replace values right away
- Don't overwrite wipe_chunk_size right after it's been s...
Michael Hanselmann
04:42 pm Revision 2cbe9af3: Factorize removing comments and empty lines from string
This will also be used for verifying the file storage directory.
Signed-off-by: Michael Hanselmann <hansmi@google.co...
Michael Hanselmann
04:58 am Revision 5506d7a9: ssconf: Fix mistake made in commit ee501db
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
04:38 am Revision ee501db1: Move a function from backend to ssconf
The “WriteSsconfFiles” function is used to write ssconf files. By moving
it we can avoid importing backend into boots...
Michael Hanselmann
02:58 am Revision f0f8d060: Show old primary/secondary node on disk replacement
People unfamiliar with Ganeti's internals might be confused with the
different hostnames showing up later in the proc...
Michael Hanselmann

10/03/2012

08:00 pm Revision 33e26038: cmdlib: Change wording of messages during disk wipe
Error messages don't need to say “please” and it's already obvious some
investigation is needed. LogWarning already l...
Michael Hanselmann
06:35 pm Revision c31b2676: Check for existing networks/groups in Network LUs
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
06:03 pm Revision 0188611b: Remove constant for disk wipe block size
It is dangerous to have this block size as a global constant as that
could give the impression of it being easily cha...
Michael Hanselmann
06:00 pm Revision 64be07b1: gnt-instance reinstall: Don't always exit with success
If one or more jobs failed the exit status should be set accordingly.
Signed-off-by: Michael Hanselmann <hansmi@goog...
Michael Hanselmann
05:58 pm Revision 2ef3383e: LUClusterVerify: Ignore /proc/drbd if DRBD is disabled
This fixes issue 190. The problem was that the check for DRBD was
enabled if LVM storage is used and didn't depend at...
Michael Hanselmann
03:06 am Revision 3d8ae327: LUClusterVerify: Ignore /proc/drbd if DRBD is disabled
This fixes issue 190. The problem was that the check for DRBD was
enabled if LVM storage is used and didn't depend at...
Michael Hanselmann

10/02/2012

10:35 pm Revision d971402f: cli: Exit with status 0 for --help
This patch is somewhat longer than was anticipated. Before, commands like
“gnt-instance --help” would exit with the s...
Michael Hanselmann
08:44 pm Revision 04520998: Remove option to select the Python version of confd
This will need some more configure.ac checks for required libraries,
which will come later with the Haskell dependenc...
Iustin Pop
08:44 pm Revision b0dcdc10: Remove the python confd server side code
In 2.7 we will only support the Haskell version, if enabled.
Since the original hconfd enabling was a bit hack-ish (...
Iustin Pop
08:41 pm Revision ab171697: Add first version of virtual cluster documentation
- Add document describing virtual clusters
- Non-root clusters are not yet described, will be done in another
p...
Michael Hanselmann
07:18 pm Revision d04d998b: INSTALL: Typo, missing dependency
libghc-utf8-string-dev was missing.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Bernardo Dal ...
Michael Hanselmann
01:34 pm Revision 7ebadeb3: Always distribute ganeti.utils.io_unittest-runasroot.py
Tests that depend on fakeroot were not distributed in the tarball created
by "make dist" when fakeroot was missing. N...
Bernardo Dal Seno
06:12 am Revision a6d3644b: vcluster-setup: Watcher, init script
- Generate a wrapper script for ganeti-watcher
- Provide command line option to specify init script
Signed-off-by: M...
Michael Hanselmann

10/01/2012

09:23 am Revision 77865fb4: Fixed typos in devnotes.rst
Signed-off-by: Gintautas Miliauskas <gintas@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Gintautas Miliauskas

09/28/2012

06:29 pm Revision 1266a29b: vcluster-setup: Add more parameters to "gnt-cluster init"
This patch also adds two new parameters to the vcluster-setup script to
not configure /etc/hosts and networking. Buil...
Michael Hanselmann
06:11 pm Revision 3779121c: Pylint cleanup
The previous commits introduced some pylint errors.
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iust...
René Nussbaumer
04:30 pm Revision 2f441f72: Add support for GANETI_ROOTDIR in Haskell code
unsafePerformIO is required to go from the IO monad to pure code.
Signed-off-by: Michael Hanselmann <hansmi@google.c...
Michael Hanselmann
04:05 pm Revision b0a8e8c2: Modify batch-create to use MultiAlloc
This is the CLI part of the OpInstanceMultiAlloc change. There is some
room for improvement especially with user hand...
René Nussbaumer
04:05 pm Revision 68b2e985: Make validation error message more useful
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer
04:05 pm Revision 9bc5ac44: Provide a custom Validate for OpInstanceMultiAlloc
This is needed, as we're not strictly separating validation from
populating the defaults. We do this all in one funct...
René Nussbaumer
03:16 pm Revision 2958c56e: ganeti-cleaner: Separate queue cleaning code
This code does not need to run as root, therefore it's better to split
it out. It is now run with the same permission...
Michael Hanselmann
03:14 pm Revision 052783ff: Stop hardcoding root user
Some parts of the code still use a hardcoded user name: root. This patch
replaces all with a constant specified at bu...
Michael Hanselmann
12:27 pm Revision 3d3f562b: Remove explicit recursion from sanitizeDictResults
Since ERpcError is still not a monad, a simple foldr will have to
do for now.
Signed-off-by: Agata Murawska <agatamu...
Agata Murawska
12:27 pm Revision 70c2362e: Pretty printing JSValue
Signed-off-by: Agata Murawska <agatamurawska@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Agata Murawska
12:27 pm Revision 0ae9ddc4: Merge parseHttpResponse with rpcResultParse
parseHttpResponse is such a simple function that we can actually
do the entire unpacking in rpcResultParse.
Signed-o...
Agata Murawska
12:27 pm Revision 7328a28c: Simplify and generalize rpcResultFill
For now ERpcError is still not a monad, but we can still simplify
rpcResultFill implementation for different calls si...
Agata Murawska
12:27 pm Revision a93b711b: Remove monadic results wherever possible
There is no need (at least right now) for some of the resulting
types to be in additional monad, so let us just have ...
Agata Murawska
12:27 pm Revision 274366e5: Realign instances of typeclasses
As per Iustin's suggestion, this patch aligns parts of typeclass
instance on "=".
Signed-off-by: Agata Murawska <aga...
Agata Murawska
12:27 pm Revision 60443f61: Rename RpcError -> String function
As per Iustin's suggestion, show is not a good solution - so instead
the name is now explainRpcError.
Signed-off-by:...
Agata Murawska

09/27/2012

07:10 pm Revision 6e3bf290: Cleanup of build-time shell variable replacements
Instead of having a different set in (almost) every shell script, this
inserts the most commonly used variables at bu...
Michael Hanselmann
07:10 pm Revision 6a5e841d: ensure-dirs: Don't hardcode ssconf file group
Otherwise chown(2) will fail when noded doesn't run as root.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
R...
Michael Hanselmann
07:09 pm Revision e5afb848: Fix distcheck after commit 29386d3ee
Missing backslash.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
06:36 pm Revision ec944cc0: InstanceRecreateDisks: new assertion for node locks
Make sure that all the nodes where a disk operation is peformed are locked.
Signed-off-by: Bernardo Dal Seno <bdalse...
Bernardo Dal Seno
06:36 pm Revision cf8adf26: Fix missing locks in InstanceRecreateDisks
In case of in-place recreate-disks operation, all node locks were released
before starting the actual execution.
Sig...
Bernardo Dal Seno
06:26 pm Revision 29386d3e: Add vcluster-setup utility
This utility can be used to configure an environment for a virtual
cluster. It sets up entries in /etc/hosts, creates...
Michael Hanselmann
05:46 pm Revision 39b8cd94: ensure-dirs: Don't convert list to tuple
Tuples are data structures, not containers.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: René ...
Michael Hanselmann
05:43 pm Revision bb514a22: daemon-util: Use function to determine if confd is enabled
… instead of comparing with two different values in two placse.
Signed-off-by: Michael Hanselmann <hansmi@google.com...
Michael Hanselmann
05:41 pm Revision 320a5dae: Always_failover doesn't require --allow-failover anymore
If an administrator sets always_failover, it means that there is no need
for another explicit approval to failover in...
Bernardo Dal Seno
04:02 pm Revision 370f2768: cfgshell: Remove pylint disable line
Commit 326830963 removed the use of a private member function. Also
replace '' with "" in one place.
Signed-off-by: ...
Michael Hanselmann
02:42 pm Revision e5ff1a47: Populate the instance dict with opcode infos
This is needed so we can load it as an opcode. However, this information
should not be available on the client, so we...
René Nussbaumer
02:42 pm Revision 915faf72: Adding RAPI client for instance multi allocation
It was very easy to refactor CreateInstance to repurpose some part of it
for the instance multi allocation request. S...
René Nussbaumer
01:52 pm Revision d163abf9: bash_completion: Enable extglob while parsing file
In older versions of GNU Bash extended patterns, such as “@(…)”, are only
available with the “extglob” shell option. ...
Michael Hanselmann
01:46 pm Revision 3a6a89d7: Revert unintentional change of daemon log file names
Commit 3329f4dea6 unintentionally changed the filenames of all daemon
log files. This patch reverts part of those cha...
Michael Hanselmann
01:06 pm Revision e8ae48e2: Fix bad wording in 2.3 design document
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann

09/26/2012

07:35 pm Revision 5188fdb7: InstanceInfo RPC call
This patch implements single instance info call - somewhat similar to
all_instances_info, except we give a specific i...
Agata Murawska
07:35 pm Revision 1cb97324: instance_info now returns vcpus
instance_info and all_instances_info calls had different per-instance
return types, this commit fixes the mismatch.
...
Agata Murawska
07:35 pm Revision 47163f0f: Change RpcResult typeclass
For storage_list call, the result type depends on the call parameters.
Therefore, we have to add call as an argument ...
Agata Murawska
07:35 pm Revision 8779d21a: Version RPC call
Implementation of node version query.
Signed-off-by: Agata Murawska <agatamurawska@google.com>
Reviewed-by: Iustin P...
Agata Murawska
07:35 pm Revision cca4e6fe: Node query now uses live data
Added support for NodeInfo RPC call as source of data for node query.
Signed-off-by: Agata Murawska <agatamurawska@g...
Agata Murawska
07:35 pm Revision 7f0fd838: Node query now collects live fields
We make use of the parameter added in the previous patch and add
option to add live parameters to the query.
Signed-...
Agata Murawska
07:35 pm Revision fa2c927c: Add live parameter to query
The tests we currently have assume, that all the data required for
running the query is available - once we add live ...
Agata Murawska
07:35 pm Revision 4393e075: Conversion from RPC error to query status
Simple conversion for queries that use live fields gathered from
RPC calls.
Signed-off-by: Agata Murawska <agatamura...
Agata Murawska
07:34 pm Revision 77cab679: Json helper for node query
This is a helper function that gets the JSON encoding of the first
element of the list (if possible).
Signed-off-by:...
Agata Murawska
07:34 pm Revision d71fbcc5: Create ResulT for monad transformations
This patch creates ResultT, a monad transformation used later in
RPC <-> query integration.
Signed-off-by: Agata Mur...
Agata Murawska
07:34 pm Revision a9d6f4e0: Tests for NodeGroup query
This adds tests similar to those used for node query. For now the
prop_queryGroup_noUnknown is disabled and commented...
Agata Murawska
07:34 pm Revision 40246fa0: NodeGroup query in Haskell
Implementation of nodegroup queries in Haskell. This is not yet
complete as we are missing merged disk parameters and...
Agata Murawska
07:34 pm Revision e5cb098c: Config support for NodeGroup query
For some results in nodegroup queries we need agregation similar to
one that is done for nodes.
Signed-off-by: Agata...
Agata Murawska
07:34 pm Revision 9b09c0be: Fix RPC call and result (de)serialization
Previous version of RPC calls implementation in Haskell did not take
into account that the actual result type for que...
Agata Murawska
07:34 pm Revision 599239ad: Add alias for Either RpcError a
This was repeated a lot, so we should abstract this into a type.
Signed-off-by: Agata Murawska <agatamurawska@google...
Agata Murawska
07:34 pm Revision 6fddde87: Cleanup for RPC errors
Curl error messages are self contained and don't need "error" prefix;
added RpcResult Error which will be used once p...
Agata Murawska
07:34 pm Revision f9b0084a: Change cluster's hypervisors type
We now have Hypervisor type in Objects, might just as well use it.
Signed-off-by: Agata Murawska <agatamurawska@goog...
Agata Murawska
07:34 pm Revision d120506c: Correct top comment in Query/Server
I assumed this was a copy-paste+forgetting to change the header comment.
Signed-off-by: Agata Murawska <agatamurawsk...
Agata Murawska
07:34 pm Revision 7766de33: Add nodedCertFile to Path
This patch adds missing Path entry and uses it in Rpc. It was not in
place before due to different build settings - i...
Agata Murawska
03:57 pm Revision 579f4ee5: Verify the node count just if the allocation was successful
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
02:19 pm Revision ada0e680: Enable bash completion for htools scripts
This patch ties together the previous commits, by extending
build-bash-completion to call all htools scripts and get ...
Iustin Pop
02:18 pm Revision 42834645: Remove generic options from individual programs
Currently, we test and require that each individual program (hbal,
etc.) defines/supports the generic options (curren...
Iustin Pop
02:18 pm Revision f5af3409: Add a data type for completion information
This can be used for either option or argument completion (although
OptComplNone doesn't make sense for an argument :...
Iustin Pop
02:18 pm Revision ce207617: Annotate options with completion information
This is a quite boring patch, just adding annotation information to
all existing options. Some of the annotations are...
Iustin Pop
02:18 pm Revision 097ad7ee: Add option for displaying completion information
This patch adds support for a --help-completion option, which will
display the defined options and their completion i...
Iustin Pop
12:46 pm Revision d1da5a45: Add printing of group score in hinfo
The global cluster score is less interesting than individual group
scores, for multi-group allocation purposes.
Sign...
Iustin Pop
12:46 pm Revision da28218d: Replace a big tuple with a custom data type
This will make it easier to add new parameters.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Agata Mur...
Iustin Pop

09/25/2012

05:28 pm Revision cffbbae7: Implement virtual cluster support in Python code
- pathutils: Prepend node-specific prefix path
- RPC: Use virtual paths (see vcluster.py)
- SSH: Pass environment var...
Michael Hanselmann
05:20 pm Revision 9340cc2b: vcluster: Add more details to docstrings
As requested by René Nussbaumer. Hopefully things are more clear now.
Signed-off-by: Michael Hanselmann <hansmi@goog...
Michael Hanselmann
03:19 pm Revision 92886204: Add tests for bash completion
Given the number of settings that need to be controlled a plain bash
script was a better choice over shelltestrunner....
Michael Hanselmann
02:14 pm Revision fe19a355: Fix shelltests for ganeti-*
They were never run.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
02:14 pm Revision 893ad76d: bash_completion: Enable extglob while parsing file
In older versions of GNU Bash extended patterns, such as “@(…)”, are only
available with the “extglob” shell option. ...
Michael Hanselmann
02:14 pm Revision 34dfced1: Revert "bash_completion: Always enable extglob"
This reverts commit 94014b6328f813b674a1126ffd221705d7e315b3. Turns out
I misunderstood the “extglob” shell option.
...
Michael Hanselmann

09/24/2012

02:49 pm Revision 4ee72287: Adding RAPI resource for multi-allocation
This is straightforward.
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@goog...
René Nussbaumer
02:49 pm Revision d4752785: Adding multi-allocation logic
This patch adds the Logical Unit for the instance multi allocation
opcode.
Signed-off-by: René Nussbaumer <rn@google...
René Nussbaumer
02:48 pm Revision 12e62af5: Adding the new opcode for multi-allocation
Skeleton for the multi-allocation opcode
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselm...
René Nussbaumer
02:48 pm Revision d353ec8f: Refactor shared code
We've some work which we need to do for the multi allocation request as
well, so lets refactor it to separate functio...
René Nussbaumer
02:48 pm Revision 33b4fa9f: Adding some fundamental unittests for iallocator
This test covers the bug fixes found in the previous two patches
Signed-off-by: René Nussbaumer <rn@google.com>
Revi...
René Nussbaumer
02:48 pm Revision 32eae1ec: Fix REQ_RESULT for MultiInstanceAllocRequest
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
02:47 pm Revision 69b0d82a: Fix a validation issue
We want to validate the result only if the iallocation run was a
success.
Signed-off-by: René Nussbaumer <rn@google....
René Nussbaumer
« Previous
Next »
 

Also available in: Atom