Activity

From 08/23/2012 to 09/21/2012

09/21/2012

03:57 pm Revision f6c03932: 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
03:57 pm Revision 93c8a7b3: ExtStorage support in htools
Signed-off-by: Constantinos Venetsanopoulos <cven@grnet.gr> Constantinos Venetsanopoulos
03:57 pm Revision 7fb186d9: 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
03:57 pm Revision 8a4368b7: 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
03:57 pm Revision 09ec4848: 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
03:57 pm Revision 4a5cd37f: Implement the External Storage Interface
With this commit we introduce the External Storage Interface
to Ganeti, abbreviated: ExtStorage Interface.
The ExtSt...
Constantinos Venetsanopoulos
03:44 pm Revision e91b297c: netutils: Use virtual hostname if set
This enables the hostname seen by other code through Hostname.GetFqdn to
be changed through the environment variable ...
Michael Hanselmann
03:44 pm Revision 8c37d618: daemon-util: Support virtual clusters
GANETI_ROOTDIR contains the root directory for the current “virtual node”.
Signed-off-by: Michael Hanselmann <hansmi...
Michael Hanselmann
03:44 pm Revision 05e733b4: Add new module for virtual clusters
This module will take care of managing paths for virtual clusters.
Unittests are included (100% coverage).
Signed-of...
Michael Hanselmann
03:44 pm Revision 93b19295: bootstrap.SetupNodeDaemon: Stop hardcoding bind address
Commit b43dcc5a11 added support for IPv6. To have the node daemon bind
to an IPv6 address on startup it changed the c...
Michael Hanselmann
03:14 pm Revision 162b1f39: Update the shared storage design document
Update the shared storage design document to reflect the current
changes, after the implementation of the ExtStorage ...
Constantinos Venetsanopoulos
12:32 pm Revision fd5b9642: Merge branch 'stable-2.6-esi' into stable-2.6-ippool-hotplug-esi
Constantinos Venetsanopoulos
12:28 pm Revision 47342ca6: Check if extstorage's log dir exists
Check if extstorage's log dir exists on the host machine, before
providing a logfile name. We need to be sure the dir...
Constantinos Venetsanopoulos
12:28 pm Revision 29e43e45: Do not show logfile on ExtStorage's attach error
During attach the logfile is `None'. If the attach script
fails and we try to Tailfile() its logfile, TailFile
breaks...
Constantinos Venetsanopoulos
07:07 am Revision 0e1e0b6a: hv_kvm: Use pu.CONF_DIR variable
… instead of using SYSCONFDIR directly.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Bernardo ...
Michael Hanselmann
07:07 am Revision 2b3b41df: utils.filelock: Remove executable bit from lock files
There's no need for lock files to be executable.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: ...
Michael Hanselmann
07:07 am Revision df28c49b: LUInstanceCreate: Include group name in error message
“pnode.group” contains the UUID, which isn't very user-friendly.
Signed-off-by: Michael Hanselmann <hansmi@google.co...
Michael Hanselmann

09/19/2012

06:12 pm Revision e80aeb89: bash_completion: Generate more compact version
First the numbers:
$ stat --format '%s %n' doc/examples/bash_completion*
77847 doc/examples/bash_completion
86492 doc...
Michael Hanselmann
04:54 pm Revision 4af458e3: ShellWriter: Add parameter to disable indentation
This will be used to write a more compact bash completion script.
Signed-off-by: Michael Hanselmann <hansmi@google.c...
Michael Hanselmann
04:54 pm Revision 94014b63: bash_completion: Always enable extglob
In older versions of GNU Bash extended patterns, such as “@(…)” are only
available with the “extglob” shell option. T...
Michael Hanselmann

09/18/2012

06:11 pm Revision 9eeb0aa5: Use autoconf-based paths from Haskell instead of constants
Future changes will change Path.hs to use an environment variable.
Signed-off-by: Michael Hanselmann <hansmi@google....
Michael Hanselmann
06:11 pm Revision 9f2265bc: constants: Stop using wildcard import for pathutils
It still needs to be imported for hypervisor parameter defaults, but
after this change paths are no longer exported f...
Michael Hanselmann
06:11 pm Revision 111a7d04: Migrate lib/utils/*.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:11 pm Revision 3e8dcc8a: Migrate lib/uidpool.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:11 pm Revision 09bf5d24: Migrate tools/* from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:11 pm Revision a56625a2: Migrate test/ganeti.*.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:11 pm Revision 57fe4a5b: Migrate lib/watcher/__init__.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:11 pm Revision 7e97aca4: Migrate lib/tools/ensure_dirs.py to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision f45c5c09: Migrate lib/ssconf.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision 8fd1bfa9: Migrate lib/ssh.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision b3a6f851: Migrate lib/mcpu.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision fe496b25: Migrate lib/ovf.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision 4e55af74: Migrate lib/rapi/baserlib.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision 80ec9f96: Migrate lib/rpc.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision a5ce2ea2: Migrate lib/server/*.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision 9c492c2d: Migrate lib/masterd/instance.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision e2b4a7ba: Migrate lib/{jqueue,jstore}.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision b87ee98f: Migrate lib/luxi.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision 9d9bded1: Migrate lib/hypervisor/*.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision 78e706bb: Migrate lib/client/*.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision 8580cdaf: Migrate lib/cmdlib.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision 5a76d5f6: Migrate lib/confd/*.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision 57407093: Migrate lib/config.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision 710f30ec: Migrate lib/backend.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision ee4a14c0: Migrate lib/cli.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision 7ede9c6a: Migrate lib/bootstrap.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
06:09 pm Revision 13718ded: Migrate build-bash-completion from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
05:58 pm Revision 304d9f02: Migrate qa/*.py from constants to pathutils
File system paths moved from constants to pathutils.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-...
Michael Hanselmann
05:58 pm Revision 3329f4de: constants: Move most paths to separate module
This is inpreparation for the implementation of virtual clusters. Many
paths will change based on an environment vari...
Michael Hanselmann
05:58 pm Revision a6798ce1: configure: Provide options to change default user/group
This is needed for virtual clusters where a non-root user is used to run
the daemons.
Signed-off-by: Michael Hanselm...
Michael Hanselmann

09/17/2012

06:51 pm Revision f0a26429: constants: Add missing word in comment
It was missing in commit 243cdbcc on May 7, 2008.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by:...
Michael Hanselmann

09/14/2012

05:30 pm Revision d55408b0: QA for instance migration made more compact
Also, the value of always_failover is not hard-coded any more, and it's
possible to disable changing the always_failo...
Bernardo Dal Seno
05:30 pm Revision b5f0b5cc: 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
12:22 am Revision cb83e4db: Remove useless lock in recreate-disks
The old primary node was being locked to do RPC, but we don't lock nodes
for RPC anymore, so the lock is useless.
Si...
Bernardo Dal Seno

09/12/2012

05:56 pm Revision 99721eb4: Update design for virtual clusters
The biggest change is going from a command line parameter for specifying
a daemon's directory to using an environment...
Michael Hanselmann
04:21 pm Revision e43e78df: Merge remote branch 'google/stable-2.6' into stable-2.6-ippool-hotplug-esi
Conflicts:
lib/rpc.py
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Dimitris Aragiorgis
04:15 pm Revision 0e2b7c58: rpc: Remove duplicated logic, fix unittests
Commit 5fce6a89 changed RpcRunner._InstDict to add the disk parameters
on all encoded instances. It didn't remove a s...
Michael Hanselmann
04:14 pm Revision 6953756f: Small style adjustment
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
04:14 pm Revision 3d7d3a12: Make iallocator request types more strict
This adapts the type of some request input fields to more stricter ones.
Signed-off-by: René Nussbaumer <rn@google.c...
René Nussbaumer
04:14 pm Revision 776b6291: Rework the required_nodes field
This was used to verify the result of instance allocation. However, this
is not logic which belongs to the cmdlib rat...
René Nussbaumer
03:48 pm Revision 52f93ffd: objects, rpc: Code cleanup
objects.Disk.ComputeLDParams: Simplify structure, don't use and
overwrite local variables.
rpc.AnnotateDiskParams: R...
Michael Hanselmann
02:39 pm Revision 5fce6a89: Annotate disk params on instance_start
We call _GatherAndLinkBlockDevs during the process, which in turn
calls _RecursiveFindBD. This needs disk parameters ...
Constantinos Venetsanopoulos
01:48 pm Revision ef86bf28: cmdlib: Handle locking.ALL_SET correctly when copying locks
When locks are copied “locking.ALL_SET” must be handled separately
(ALL_SET has the value None). Reported by Constant...
Michael Hanselmann
01:47 pm Revision 6ce90543: RAPI client: Fix typo in docstring
Also update the copyright header.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <...
Michael Hanselmann
01:33 pm Revision 7d3d24f6: Use bitarray 0.8 interface
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
12:27 pm Revision c269efc3: Disable pylint warnings for unknown members
For some reason pylint can't determine, that the members are calculated
upon runtime and complains. This is weird as ...
René Nussbaumer
12:27 pm Revision 3c049cd3: Adapt gnt-debug iallocator
Add the new multi-alloc request to the test allocation framework. For
now we just create --count identical instances....
René Nussbaumer
12:27 pm Revision b1e47e2d: Adding new multi-allocation request
Now that we've the refactoring done, we can easily add the new mode and
everything works.
Signed-off-by: René Nussba...
René Nussbaumer
12:27 pm Revision 2bbf280e: Switch all iallocator calls to the new one
After the refactor, the old calls are not working anymore, so we switch
to the new ones.
Signed-off-by: René Nussbau...
René Nussbaumer
12:27 pm Revision 0fcd0cad: Refactor IAllocator code
The IAllocator class was handling all the requests on its own, passing
in parameters on top level which works, but is...
René Nussbaumer
12:27 pm Revision 32683096: Make the __slots__ functionality more modular
As we will introduce another set of containers using the __slots__ trick
we abstract away as much as possible to sepa...
René Nussbaumer
12:27 pm Revision b112bfc4: Move _MakeLegacyNodeInfo to rpc
This function will also be needed for the iallocator refactor. Also this
function does not belong to cmdlib but rathe...
René Nussbaumer
12:27 pm Revision 0c77c331: Move _CalculateGroupIPolicy and _ComputeDiskSize
This makes it possible to better untangle the IAllocator code, which
would otherwise lead to a recursive import struc...
René Nussbaumer

09/11/2012

05:18 pm Revision 72ef8df8: Update documentation for "gnt-job list"
Commit f037e9d7 added command line flags to filter jobs, but the
documentation was not updated. Also mention the abil...
Michael Hanselmann

09/08/2012

12:20 am Revision 650e5aa4: Improve the prop_Alloc_sane test to detect mis-allocations
Currently, this just checks that a cluster cannot be rebalanced after
a single instance allocation. However, we can a...
Iustin Pop
12:20 am Revision d83903ee: Add new test for checking multi-allocations
This test expands the "single-alloc-no-rebalance" by allocating a few
instances on a small cluster, and ensuring that...
Iustin Pop
12:20 am Revision fb243105: Improve the `CanTieredAlloc' test
Currently, this test is very slow. Upon investigation, this is due to
how `tieredAlloc' works:
- tries to allocate o...
Iustin Pop
12:20 am Revision 9e679143: Improve the `AllocPolicy' test
This test has a few deficiencies, which this patch addresses:
- using arbitrary 1 or 2 node count for allocation is ...
Iustin Pop
12:20 am Revision c3a8e06d: Fix arbitrary ConfigData object generation
The Cluster object, as it is defined right now, has many '[String]'
members, which means that in a standard arbitrary...
Iustin Pop
12:20 am Revision f842aecd: Simplify a bit more the test harness
We can build the test groups directly in the `testSuite' helper,
instead of doing it (much later) in the test harness...
Iustin Pop
12:20 am Revision 44be51aa: Remove the slow/fast tests functionality
Since the recent commits improved the speed of the two "slow" test
groups to regular test speed, we can remove this k...
Iustin Pop
12:19 am Revision 107102af: Merge branch 'devel-2.6' into submit
* devel-2.6:
Fix bug in non-mirrored instance allocation
Fix gnt-debug iallocator
Signed-off-by: Iustin Pop <ius...
Iustin Pop
12:13 am Revision 99c7795a: Merge branch 'stable-2.6' into devel-2.6
* stable-2.6:
Fix bug in non-mirrored instance allocation
Fix gnt-debug iallocator
Signed-off-by: Iustin Pop <iu...
Iustin Pop
12:00 am Revision 14b5d45f: Fix bug in non-mirrored instance allocation
The function `allocateOnSingle' has a bug in the calculation of the
cluster score used for deciding which of the many...
Iustin Pop

09/05/2012

08:18 pm Revision fe48d53c: Do not allow networks with less than 8 hosts
This is only needed in case base64 and bitarray.tostring() is used for
saving reservations. If bitarray.to01() was us...
Dimitris Aragriorgs
05:31 pm Revision 51000365: Rework CLI modules and tests
While investigating how we could test the Daemon.hs module, I realised
that we have a very, erm, sub-optimal situatio...
Iustin Pop
05:31 pm Revision 3ce788db: Fix deserialisation bug in ResultEntry
Found via the newly added unit-tests, which test most of the
serialisation code in Query/Language (except for QueryRe...
Iustin Pop
05:31 pm Revision 5b11f8db: Further hlint fixes
Commit 2cdaf22, “Re-enable standard hlint warnings”, got it almost
right. The only problem is that (confusingly) the ...
Iustin Pop
05:31 pm Revision 90171729: Add query filter tests
These tests are node specific only because we don't have other query
types implemented yet, but what they actually te...
Iustin Pop
05:18 pm Revision 7022db83: Replace manual arbitrary instances with genArbitrary
There are a few more that could be replaces, once we start using
appropriate (new)types.
Signed-off-by: Iustin Pop <...
Iustin Pop
05:18 pm Revision 9924d61e: Add entire ConfigData serialisation tests
Using the recently-added genArbitrary, we can now implement Arbitrary
instances for even "huge" objects like Cluster,...
Iustin Pop
05:18 pm Revision 2e0bb81d: Add a small 'passTest' helper
This is symmetric to failTest, and allows us to use it in cases where
we need to return a property.
While replacing ...
Iustin Pop
05:18 pm Revision b9bdc10e: Add some unittests for node queries
These new tests check that:
- no known fields return unknown
- any unknown field returns unknown
- the type of the f...
Iustin Pop
05:18 pm Revision 8492daa3: Introduce a helper for simple Arbitrary instances
After getting really annoyed at yet another "<*> arbitrary", I thought
that we should be able to automate this, at le...
Iustin Pop
04:58 pm Revision 8d2b6a12: Add unit test for serialisation of DiskLogicalId and Nodes
Since the DiskLogicalId type is manually serialised/deserialised (see
Objects.hs, `encodeDLid' and `decodeDLId'), let...
Iustin Pop
04:58 pm Revision 63b068c1: Add a test helper for simple JSON serialisation testing
While adding yet another JSON serialisation test, I realised that this
can be trivially abstracted; hence this patch,...
Iustin Pop
04:58 pm Revision ce93b4a0: Add Instance serialisations tests
This is not perfect, as for many of the parameters we don't have good
Arbitrary instances, but is better than nothing...
Iustin Pop
04:58 pm Revision 1493a93b: Add unittests for the BasicTypes module
This adds test properties for the various laws that the instances of
Result should follow; I could not find (offline)...
Iustin Pop
03:34 pm Revision e09c1fa0: Fixup test suite names
The names were not in a proper hierarchy, leading to inconsistencies
about what they were actually tested.
We change...
Iustin Pop
03:34 pm Revision 20bc5360: Simplify property and test case names
Since we now have separate namespaces due to the multi-file split, we
don't need to keep the name of the module in th...
Iustin Pop
03:33 pm Revision 2997cb0a: Move Version.hs up from under HTools/
This is another module that is generic, and not htools-specific.
Signed-off-by: Iustin Pop <iustin@google.com>
Revie...
Iustin Pop
01:49 pm Revision 662de722: Two tiny makefile fixes
During the recent moves and renames, two things have slipped through,
since I didn't run make check-local…
Signed-of...
Iustin Pop

09/04/2012

05:30 pm Revision 73b9e026: 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
05:30 pm Revision 736f9e15: Change default fields for network listing
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
05:30 pm Revision 415fc598: Pass detailed network info in hooks
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Dimitris Aragiorgis
05:29 pm Revision 57de4cfa: 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
05:29 pm Revision 155c28c0: cfgupgrade for networks
Add networks slot in config data.
Add networks slot in nodegroups.
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Dimitris Aragiorgis
05:29 pm Revision da5888fe: Use network's mac prefix
Modify existing GenerateMAC so that it takes network as an argument.
Substitute _GenerateOneMAC with a decorator _Ge...
Dimitris Aragiorgis
05:29 pm Revision 22ac925c: 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
05:29 pm Revision c0288228: Add gnt-network man page
Signed-off-by: Apollon Oikonomopoulos <apollon@noc.grnet.gr>
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Apollon Oikonomopoulos
05:28 pm Revision 43a642d0: Rapi support for networks
Support:
- GetNetwork(s)
- CreateNetwork
- ConnectNetwork
- DisconnectNetwork
- RemoveNetwork
Signed-off-by: Di...
Dimitris Aragiorgis
05:28 pm Revision 60dbaa9b: ss_conf support for networks
Signed-off-by: Apollon Oikonomopoulos <apollon@noc.grnet.gr>
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Apollon Oikonomopoulos
05:27 pm Revision abce4362: 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
05:26 pm Revision b8c4273d: 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
05:26 pm Revision 1ff7bbd9: Peripheral changes for networks
Specifically:
* export a new environment variable for the gnt-os-interface
* export a new environment variable for ...
Apollon Oikonomopoulos
05:25 pm Revision b88fcdd0: Remove QC.hs and replace it with an auto-generated file
In order to have correct code coverage results, we must somehow import
all production modules into the test runner. U...
Iustin Pop
05:25 pm Revision 51309138: Split the Makefile variable HS_LIB_SRCS
This currently holds both production files and test files; since we
want to treat these separately, let's split the v...
Iustin Pop
05:25 pm Revision 497b264b: Modify LUInstanceSetParams() to support networks
Keep backwards compatibility just like LUInstanceCreate() and
support network parameter for NIC object.
Add ec_id ar...
Dimitris Aragiorgis
05:24 pm Revision 961fa6f1: Modify RemoveInstance() to support networks
Release any IPs held the instance before actually removing.
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Dimitris Aragiorgis
05:24 pm Revision 4d26e4e4: 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
05:23 pm Revision fe4d3d25: Config methods for reserving/releasing IPs
Use TemporaryReservationManager for IP handling to ensure
config data consistency.
Implement:
- methods for reservi...
Dimitris Aragiorgis
05:23 pm Revision 134cd9e8: Implement network/nodegroup mappings
LUNetworkConnect() connects a network to a nodegroup and defines
its netparams (mode and link). Specifically:
* Chec...
Dimitris Aragiorgis
05:22 pm Revision 8d653c98: Implement LUNetworkSetParams
Support modifying all network parameters except for network (ip range)
Cannot modify gateway and reserved ips at the ...
Dimitris Aragiorgis
05:22 pm Revision 0263c60d: Implement LUNetworkQuery
Summarily list all existing networks
Supply detailed info for every existing network
- List used/free IPs
- List in...
Apollon Oikonomopoulos
05:21 pm Revision f13d8519: Basic IP pool management logic
Implement LUs for corresponding opcodes:
* LUNetworkAdd:
- Check for IP validity
- Reserves all necessary IPs
...
Dimitris Aragiorgis
05:16 pm Revision 73a93f41: 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
04:58 pm Revision 176b0ee2: 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:51 pm Revision 2d87bd0a: Split last two remaining tests from QC.hs
This makes QC.hs obsolete, but we will remove it in a later patch,
once we automatically build a file with all the im...
Iustin Pop
04:51 pm Revision f3baf5ef: Move JSON.hs and Compat.hs out from under HTools/
These two files are not htools-specific, so let's move them out of the
HTools subdirectory/module hierarchy and direc...
Iustin Pop
04:51 pm Revision e1ee7d5a: Split most HTools test code into separate files
Except for Ganeti.HTools.JSON, which needs rename, we split all the
other test suites into separate files.
We have t...
Iustin Pop
04:50 pm Revision aed2325f: Split Luxi, Qlang, Ssconf and OpCodes tests
… from QC.hs into their own files, again mirroring the production code
source tree.
Signed-off-by: Iustin Pop <iusti...
Iustin Pop
04:50 pm Revision 305e174c: Split Rpc tests from QC
This required lots of other code moves, so I created it as a
standalone patch.
Signed-off-by: Iustin Pop <iustin@goo...
Iustin Pop
04:50 pm Revision 2733df51: Split one more module out of QC and add test helpers
This splits the confd/utils tests, and adds the TestCommon module for
shared test code.
Signed-off-by: Iustin Pop <i...
Iustin Pop
04:50 pm Revision e5a29b6c: Split out Objects.hs from QC.hs
This is the first file split out from QC.hs - an easy one, since it
has just one test.
The patch changes the way we ...
Iustin Pop
04:50 pm Revision e4cc4c11: Move the unittest helper to a new Test/Ganeti dir
This patch starts the move of the test haskell code from
`htools/Ganeti/HTools/' to its more proper place of
`htest/T...
Iustin Pop
04:50 pm Revision 189b51fa: Move generated htools test stubs to htest/
This moves the last (I think) htools-related bits out of test/ under
htest/.
Signed-off-by: Iustin Pop <iustin@googl...
Iustin Pop
04:50 pm Revision b8a9c7f2: Move shelltests from test/ to htest/shelltests/
This is another rather trivial patch, moving all the (htools)
shelltests to their own directory.
Signed-off-by: Iust...
Iustin Pop
04:49 pm Revision 8feabc89: Move htools test files from test/data/htools to htest/data
Following up on the program moves, we now move the test data files.
Signed-off-by: Iustin Pop <iustin@google.com>
Re...
Iustin Pop
04:49 pm Revision f0f3a6df: Move haskell test code to htest/
This is the first commit of a series that will attempt to cleanup the
test code organisation, which evolved somewhat ...
Iustin Pop
02:22 pm Revision 09123222: Fix gnt-debug iallocator
There was an issue with the recent ipolicy introduction which lead to a
bug in gnt-debug iallocator. It was not provi...
René Nussbaumer
02:00 pm Revision 01606931: Implement compilation of regexes at creation time
This means that the verification of the correctness of the regex is
done once, at the deserialisation/creation time, ...
Iustin Pop
02:00 pm Revision 4cab6703: Rename the Qlang and Queryd modules
Per the new query module hierarchy, rename Qlang to Query/Language and
Queryd to Query/Server. This way, all query-re...
Iustin Pop
02:00 pm Revision 8a65c02b: Add filtering support in Query
This adds basic infrastructure for filtering (fully functional except,
as usual, for runtime data), and then uses it ...
Iustin Pop
01:59 pm Revision 25779212: Add an Applicative instance for our Result type
This will allow us to run generic computations in an Applicative
context, if a monadic one is not needed (or not appl...
Iustin Pop
01:59 pm Revision 05ac718f: Parameterize the Filter type
In preparation for introducing filtering functionality, we convert the
'Filter' type from a '*' kind to a '* -> *' ki...
Iustin Pop
01:59 pm Revision 518023a9: Implement QueryFields for Nodes
Since we have all the definitions already, we can easily enable
this. Manual testing shows no difference between the ...
Iustin Pop
01:56 pm Revision 6f1da8b3: Merge branch 'devel-2.6'
* devel-2.6:
Fix warnings/errors with newer pylint
Fix decorator uses which crash newer pylint
Signed-off-by: Iu...
Iustin Pop
01:56 pm Revision fa0003dc: Merge branch 'stable-2.6' into devel-2.6
* stable-2.6:
Fix warnings/errors with newer pylint
Fix decorator uses which crash newer pylint
Signed-off-by: I...
Iustin Pop
12:44 pm Revision 2a9aff11: Putting the multiallocate pieces together
This is the final part:
* Parsing the new request type
* Feed it to allocList
* Format the result
Signed-off-by: Re...
René Nussbaumer
12:44 pm Revision c85abf30: Adding allocList function
This function iterates over the tryMGAlloc function, updates the node
list and instance list, and refeeds it recursiv...
René Nussbaumer
12:44 pm Revision 85d96a3c: Adding new IAllocator mode to constants
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer

09/03/2012

07:09 pm Revision 8ad0da1e: Fix warnings/errors with newer pylint
To help developing Ganeti on newer distributions, let's try to fix
pylint warnings/errors. I'm using pylint from curr...
Iustin Pop
06:32 pm Revision e53decc1: Merge branch 'devel-2.6'
* devel-2.6:
Instance autorepair design
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Po...
Guido Trotter
06:18 pm Revision fc3f75dd: Fix decorator uses which crash newer pylint
Pylint version:
pylint 0.25.1,
astng 0.23.1, common 0.58.0
crashes when passing the fully-qualified decorator n...
Iustin Pop
06:08 pm Revision 68640987: Instance autorepair design
This design describes a tool that will perform automatic repairs on
instances when they are detected to be unhealthy ...
Guido Trotter
04:52 pm Revision 72295708: Add missing luxi query 'QueryFields'
This was missed; we add the definition and the de-serialisation
support.
Signed-off-by: Iustin Pop <iustin@google.co...
Iustin Pop
04:52 pm Revision 046fe3f5: Add Query support for Nodes (no filtering, no RPC)
This is the initial support for Query2: basic infrastructure (except
filtering) and node query support (without RPC)....
Iustin Pop
04:45 pm Revision a6c7e2a2: Move parameter title definitions to constants
This fixes an old TODO for moving these; now they can be reused in the
Haskell Query2 implementation.
Signed-off-by:...
Iustin Pop
04:45 pm Revision 9d4cc8ed: One more SADT type - VType
This adds the VTYPE_* conversion to VType, used for QFT equivalence
later.
Signed-off-by: Iustin Pop <iustin@google....
Iustin Pop
04:45 pm Revision 8c957eb3: Extend convert-constants support for dicts
This enhances convert-constants to not flatten dicts completely, but
also generate a so-called association list for t...
Iustin Pop
04:45 pm Revision 2af78b97: Expand THH with more functionality for parameters
This adds two related improvements to THH:
- for parameters, we declare a list with all their fields, so that
Quer...
Iustin Pop
04:45 pm Revision da45c352: Add more node-related data types and functions
This is a simple type declaration for NodeRole, a NdParamObject type
class, and a few related helper functions for no...
Iustin Pop
04:45 pm Revision 9abbb084: Fix error reporting for bad Luxi arguments in QueryD
Currently, the query daemon would simply close the connection to the
client without issuing a response, if parsing th...
Iustin Pop
04:45 pm Revision 04dd53a3: Add type classes for common objects
These mirror the TaggableObject in Python, in the sense that we will
be able to define generic functions for querying...
Iustin Pop
04:45 pm Revision 4cbe9bda: Stub query2 call integration into QueryD
This patch corrects the definitions in Qlang.hs to match what Python
expects on the wire; this means replacing some m...
Iustin Pop
04:45 pm Revision a9310b2f: Fix typo in node role description
I'd rather not introduce this typo in the Haskell code too, and also
not having them identical is not good.
Signed-o...
Iustin Pop
04:44 pm Revision c12a68e2: Improve error reporting in our JSON conversions
Reporting things such as the following in our error messages
(indentation added by me, not originally present, so it'...
Iustin Pop
03:13 pm Revision 0d0ac025: Cleanup query socket before attempting to bind
This patch adds a simple function to ensure a socket doesn't exist
before binding to it. Additionally, we cleanup the...
Iustin Pop
03:13 pm Revision a2160e57: Complete and enable the haskell QueryClusterInfo call
Since we have now access to all cluster parameters, we can "fill" the
parameters, and can finally enable it in CLI/RA...
Iustin Pop
03:13 pm Revision b09cce64: Expand Objects.hs definitions
This patch adds the missing parameters in the cluster/group objects,
for now as simple maps (dictionaries), without t...
Iustin Pop
03:13 pm Revision adb77e3a: Add a fillDict function
This is similar to the Python version, objects.py:FillDict.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-b...
Iustin Pop
03:13 pm Revision 14fec9a8: Fix qualified import of Data.Map in QC.hs
As opposed to all other places in the code, we imported this as
Data.Map, leaving to longer names. Let's make it simi...
Iustin Pop
03:13 pm Revision 806aa124: Enhance convert-constants list generation
While looking at the hypervisor types in Constants.hs, I saw that the
'hyperTypes' list is using strings instead of n...
Iustin Pop

08/31/2012

01:39 pm Revision 2f9e86d5: Refactor _GetPCIInfo() in cmdlib
Signed-off-by: Dimitris Aragriorgs <dimara@grnet.gr> Dimitris Aragriorgs
01:39 pm Revision c29bbb41: Add logging in case of hotplug
Signed-off-by: Dimitris Aragriorgs <dimara@grnet.gr> Dimitris Aragriorgs
01:39 pm Revision 0bb9ca43: Maintain backwards compatibility in kvm runtime
Introduce _GenerateKVMBlockDevicesOptions()
In case hotplug is enabled per instance then the runtime file
contains o...
Dimitris Aragriorgs
03:29 am Revision d177a22a: Refactor _GetPCIInfo() in cmdlib
Signed-off-by: Dimitris Aragriorgs <dimara@grnet.gr> Dimitris Aragriorgs

08/30/2012

10:31 pm Revision 03f2593b: Refactor _GetPCIInfo() in cmdlib
Signed-off-by: Dimitris Aragriorgs <dimara@grnet.gr> Dimitris Aragriorgs
10:11 pm Revision 34754279: Add logging in case of hotplug
Signed-off-by: Dimitris Aragriorgs <dimara@grnet.gr> Dimitris Aragriorgs
10:04 pm Revision 67ae51ed: Add logging in case of hotplug
Signed-off-by: Dimitris Aragriorgs <dimara@grnet.gr> Dimitris Aragriorgs
09:15 pm Revision 61f46231: Maintain backwards compatibility in kvm runtime
Introduce _GenerateKVMBlockDevicesOptions()
In case hotplug is enabled per instance then the runtime file
contains o...
Dimitris Aragriorgs
09:15 pm Revision 644e5023: Maintain backwards compatibility in kvm runtime
Introduce _GenerateKVMBlockDevicesOptions()
In case hotplug is enabled per instance then the runtime file
contains o...
Dimitris Aragriorgs

08/28/2012

06:32 pm Revision 998b6f8b: Add two confd library tests
These test that we encode requests correctly and decode good messages,
that a message with a too old/new timestamp is...
Iustin Pop
06:16 pm Revision 62377cf5: Reduce some more code duplication and split code
The Qlang module defines ResultStatus, but it was already defined in
Ganeti/Luxi.hs; let's remove the duplicate defin...
Iustin Pop
06:04 pm Revision 0384c457: Add test for checking Haskell/Python opcode equivalence
This is a very big hack for testing the equivalence of Python and
Haskell opcode definitions. See the docstring for d...
Iustin Pop
06:04 pm Revision 4a1dc2bf: Create a custom type for disk indices
While (again) trying to test Python/Haskell encoding interoperability,
I found another bug: the disk index is declare...
Iustin Pop
06:04 pm Revision f2f06e2e: Handle better 'null' values in optional fields
While testing Haskell⇔Python interoperability for opcode
serialisation, I found this bug: the Haskell code doesn't tr...
Iustin Pop
06:04 pm Revision 9990c068: Add test case for OpCode list equivalence
For now, we only test that we don't define extra opcodes in the
Haskell code; once we have parity, we can enable the ...
Iustin Pop
06:04 pm Revision 60f7f6a4: Add infrastructure for reading Python command output
This will be used in the future to make tests/assertions for
Python/Haskell codebase equivalence (e.g. checking that ...
Iustin Pop
06:04 pm Revision 6dd92942: QCHelper: add support for defining HUnit test cases
This will allow us to use exactly the same method as for defining and
using QuickCheck properties. The differentiatio...
Iustin Pop
06:04 pm Revision 2c4eb054: Rename tests for nicer names in test output
With the change to test-framework, where individual tests are listed,
QCHelper tries to remove a "prop_$group_" prefi...
Iustin Pop
06:03 pm Revision 95f6c931: Switch Haskell test harness to test-framework
This patch replaces our home-grown, and quite limited, test runner
infrastructure with test-framework
(http://batters...
Iustin Pop
06:03 pm Revision a03b2e1c: Simplify the Luxi client-server test
Since now we have the recvMsgExt, we can remove the handleEOF
function.
Signed-off-by: Iustin Pop <iustin@google.com...
Iustin Pop
06:03 pm Revision a23643ee: Fix bug in the Luxi client-server test
We didn't close the server correctly, so for test sizes bigger than
the max-open-files ulimit, the tests were failing...
Iustin Pop
06:03 pm Revision 12e8358c: TH: one style fix and more docstrings
We were missing many docstrings in THH.hs, so let's add at least some
of them, and fix some unquoted '/'. Additionall...
Iustin Pop
06:03 pm Revision a583ec5d: OpCodes: build and export a list of all opcodes
This can be used for cross-checking with the Python code for
consistency on defined opcodes.
Signed-off-by: Iustin P...
Iustin Pop
06:03 pm Revision 94518cdb: TH: Abstract function for computing constructor names
We'll need this in another place shortly, so let's abstract it and add
proper verification of whether we were passed ...
Iustin Pop
06:02 pm Revision f2374060: Enable tags query over the query socket
This patch adds the tags field to the objects which were missing it
(all except Cluster), implements handling the Lux...
Iustin Pop
06:02 pm Revision cebd85d8: Switch RAPI to use same tags listing as CLI
Currently, RAPI uses queries (as in QueryNode with field tags) for
getting the tags, whereas the CLI uses the QueryTa...
Iustin Pop
06:01 pm Revision 4cd428db: Config.hs: Add a function to lookup group
Like in the python code, this is a bit more complex since groups are
indexed by UUID, so we must fallback to lookup v...
Iustin Pop
06:01 pm Revision a9ccc950: Add a Functor instance for our Result type
This will allow us to use the simpler applicative form (<$>, <*>)
instead of monadic liftM, liftM2, etc.
Signed-off-...
Iustin Pop
06:01 pm Revision be747966: Change the Luxi tags kind from String to a custom type
This will allow safer code when we implement the tags query.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-...
Iustin Pop
06:00 pm Revision 8a9ee1e9: Remove obsolete QrViaLuxi type
The actual query definitions are now in Qlang.hs, so let's use the
ItemType from there instead of luxi-defined type (...
Iustin Pop
06:00 pm Revision 303bc802: Implement support for query only clients in Rapi
This implements the same query=True|False functionality as in
GetClient for cli.py, however since the RAPI code is mu...
Iustin Pop
06:00 pm Revision 42ab9ac4: Add configure-time switch for split queries
And expand cli.GetClient() to allow opening the query socket, instead
of the main master socket.
Finally, enable the...
Iustin Pop
06:00 pm Revision 4b71f30c: Remove obsolete conversion function for Luxi TH
Due to the (now removed) custom filter field, we needed a conversion
function. Since now that field is gone, we can m...
Iustin Pop
06:00 pm Revision dc6a0f82: Rename Query2.hs to Qlang.hs
While starting to use the new filter types, I realised that what is
currently implemented is the equivalent of `lib/q...
Iustin Pop
06:00 pm Revision 9a94c848: Switch Luxi Query operation to use a proper filter
Until now, since we didn't have a proper type for the encoded query
filters, we were ignoring the filters and handled...
Iustin Pop
06:00 pm Revision e8a25d62: Implement Query2 filter JSON (de)serialisation
This adds support for encoding/decoding Query2 filters to/from JSON,
in (hopefully) the same format as the Python cod...
Iustin Pop
06:00 pm Revision 31d1d442: convert-constants: also export qlang.py constants
Since these will be needed for Haskell's implementation of query2.
Signed-off-by: Iustin Pop <iustin@google.com>
Rev...
Iustin Pop
05:59 pm Revision 2cdaf225: Re-enable standard hlint warnings
Commit 5a1e31b4 (Add infrastructure for, and two extra hlint rules)
was intended to add two *extra* hlint rules, but ...
Iustin Pop
05:59 pm Revision 1bf11fff: Run the query thread from confd
This enables the query functionality in confd.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Agata Mura...
Iustin Pop
05:59 pm Revision 25b54de0: Initial query daemon implementation
This is just a new module that exports a runQueryD function, that can
be imported to run a separate thread handling t...
Iustin Pop
05:59 pm Revision 0aff2293: Enhance the Luxi interface implementation
This makes the implementation a bit nicer for both for server and
client side: we add a wrapper function with a bette...
Iustin Pop
05:59 pm Revision 7514fe92: Add Objects definitions for the ispec/ipolicy types
Note that since we don't have yet a way to nicely handle two-level
optional parameters, the Filled/Partial types and ...
Iustin Pop
05:59 pm Revision a957e150: Improve Objects.hs definitions
This adds a few missing/incomplete definitions. We're still missing
the special parameters (disk params, hvparams, os...
Iustin Pop
05:59 pm Revision d5a93a80: Remove container field special cases
Since we now handle Containers uniformly, we can remove all traces of
the special handling for this field type.
Sign...
Iustin Pop
05:59 pm Revision 84835174: Improve the TH 'Container' type
This is the first part of the changes related to the 'Container' type.
We currently handle this type as follows: it'...
Iustin Pop
05:59 pm Revision d8cb8e13: Improve TH local variables naming
This patch addresses two issues with our TH code:
- using non-unique names (e.g. "std" for a local name, instead of
...
Iustin Pop
05:58 pm Revision 02cccecd: Expand TH with tags field
Also add this new field and the other generic fields to the cluster
object.
Signed-off-by: Iustin Pop <iustin@google...
Iustin Pop
05:58 pm Revision 988da36e: Add new definition for query socket
This is not used yet, but is helpful when developing the Luxi endpoint
for hconfd.
Signed-off-by: Iustin Pop <iustin...
Iustin Pop
12:56 pm Revision 66f74cae: Simple QC tests for RPC calls
Right now we're only able to test if when a node is offline, the call
fails with an appropriate errror.
Signed-off-b...
Agata Murawska
12:56 pm Revision dc623a95: Implementation of NodeInfo call and result
node_info call takes hypervisors and vgs to ask for information about
node and returns bootid and results from hyperv...
Agata Murawska
12:56 pm Revision d4709cce: Datatypes for haskell RPC calls
We introduce typeclasses for RPC call and result and create a typeclass
that binds the two together. For that we need...
Agata Murawska
12:56 pm Revision 96dad12d: Implementation of AllInstancesInfo call and result
all_instances_info call takes a list of hypervisors and returns a list
of (name, memory, state, vcpus, time) - one el...
Agata Murawska
12:56 pm Revision eaed5f19: Infrastructure to execute RPC calls
Prepare and execute RPC call, prepare result for the call. These
procedures are generic in the sense that they only r...
Agata Murawska
12:56 pm Revision c1c5aab1: Implementation of InstanceList call and result
instance_list call takes a list of hypervisors and returns a list
of running instances.
Signed-off-by: Agata Murawsk...
Agata Murawska
12:56 pm Revision c4f65a0e: Add Hypervisor and start exporting AdminState
Very simple Hypervisor object, that we want to pass in some of RPC
calls is added. We also export AdminState data typ...
Agata Murawska
12:56 pm Revision 2ff587d4: Move necessary constants from rpc & rpc_defs to constants
As timeout constants will now be used also on Haskell side, they have
been moved from rpc_defs and rpc to constants. ...
Agata Murawska

08/27/2012

05:18 pm Revision 951accad: Merge branch 'devel-2.6'
* devel-2.6:
Make stable-2.6 compatible with newer pep8
Fix computation of disk sizes in _ComputeDiskSize
Add v...
Iustin Pop
05:15 pm Revision b5df6331: Merge branch 'stable-2.6' into devel-2.6
* stable-2.6:
Make stable-2.6 compatible with newer pep8
Fix computation of disk sizes in _ComputeDiskSize
Add ...
Iustin Pop
05:05 pm Revision 2fefc557: Make stable-2.6 compatible with newer pep8
This is done so that all current branches can run with newer pep8;
note that instead of fixing the problems (like I d...
Iustin Pop

08/24/2012

05:55 pm Revision 5d0389dd: More descriptive Constants.hs header
Signed-off-by: Agata Murawska <agatamurawska@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Agata Murawska

08/23/2012

02:41 pm Revision 5ae4945a: Bump pep8 version to 1.2
Debian Wheezy will ship with this version, and it has many improved checks compared to 0.6, so let's:
- bump version...
Iustin Pop
11:44 am Revision 1df4d430: Change node parameter oob_program to VTYPE_STRING
Since this is an inheritable parameter, having it as a MABYE_STRING
creates only problems (per our derivation rules)....
Iustin Pop
« Previous
Next »
 

Also available in: Atom