This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Ganeti core".
The branch, master has been updated
via e05e576dd0984998f0a67e9a6c92d49973649255 (commit)
via af39e38a2df49bc2bc6554d21b84d65e51f2ee7e (commit)
via 133701b0e2c27e167ee99075afbfb690b92d37d4 (commit)
via 86e6ff1cd408a0cb67163bf7a91eccb69354055e (commit)
via 2dc9c1533fa19047b36d9f803ab7966d55e87708 (commit)
via 247ade73673781bc2176faddad5967d91fea1b8e (commit)
via 8abb17aebda367a901cbc9cbb42a448d1e97a4c1 (commit)
via 388a5a448d3ff26317e76ff906510f97190bfab5 (commit)
via 7731134b4ada3fbdede663aadd7949f419a35c7e (commit)
via 36a157f040bb94a05e6a40026dba2cb6c94350a3 (commit)
via 50bc794388671ad223a5ab872d5e50a17680ada0 (commit)
via a6cd1140b8adec34c39f0d34fd8452224cbe1378 (commit)
via 116d1a636d0c12c1de69b57197ebca85d29e7295 (commit)
via 4d369fd134284ebf1505025a5602f06a06515685 (commit)
via cec7d104df3b021c3d4905379cffc89afcee02ed (commit)
via 116b16d91ccf090f76d208765a761d464150ec3c (commit)
via 1fc42f83109fecf6054ea91b1ad8ce685b05f932 (commit)
via 16550e247cc3917065a9bf289265258b1ca5b7e3 (commit)
from 9c5c52bbf5f3cc5f6b9292ded725c7b4b570774a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e05e576dd0984998f0a67e9a6c92d49973649255
Author: Klaus Aehlig <[email protected]>
Date: Mon Oct 27 11:35:46 2014 +0100
Support forthcoming instances
Change the type of instance objects to be the sum of real and
forthcoming instances. Note that the wire representation is
backwards compatible, so we can keep the change local to the
Haskell code base.
Also, for the time being, the monitoring daemon will collect
data only for real instances.
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
commit af39e38a2df49bc2bc6554d21b84d65e51f2ee7e
Author: Klaus Aehlig <[email protected]>
Date: Tue Oct 28 12:54:46 2014 +0100
Build lens for shared fields
If some fields have the same optionality type
in real and forthcoming object, build a Simple Lens
as well.
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
commit 133701b0e2c27e167ee99075afbfb690b92d37d4
Author: Klaus Aehlig <[email protected]>
Date: Tue Oct 28 09:50:10 2014 +0100
Add defaults for disks and nics
...which is not having any of them.
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
commit 86e6ff1cd408a0cb67163bf7a91eccb69354055e
Author: Klaus Aehlig <[email protected]>
Date: Tue Oct 28 09:41:59 2014 +0100
Have default values for OS params
...as they are collections anyway.
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
commit 2dc9c1533fa19047b36d9f803ab7966d55e87708
Author: Klaus Aehlig <[email protected]>
Date: Tue Oct 28 09:32:11 2014 +0100
Add a default for beparams
...which is the emptyPartialBeParams.
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
commit 247ade73673781bc2176faddad5967d91fea1b8e
Author: Klaus Aehlig <[email protected]>
Date: Tue Oct 28 09:10:41 2014 +0100
Also generate empty partial params
...so that they can be used as default values.
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
commit 8abb17aebda367a901cbc9cbb42a448d1e97a4c1
Author: Klaus Aehlig <[email protected]>
Date: Mon Oct 27 14:18:24 2014 +0100
For hvparams add a default
...which is the empty container.
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
commit 388a5a448d3ff26317e76ff906510f97190bfab5
Author: Klaus Aehlig <[email protected]>
Date: Mon Oct 27 14:14:16 2014 +0100
Add a value for the empty Container
...so that we can use it as a default for Container
parameters.
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
commit 7731134b4ada3fbdede663aadd7949f419a35c7e
Author: Klaus Aehlig <[email protected]>
Date: Mon Oct 27 10:52:49 2014 +0100
Move Instance definition to a separate module
Move the definition of Instances from Ganeti.Objects to
a separate module. This allows convenient exportation of
all generated acessor functions, when we start supporting
forthcoming instances. This module gets reexported from
Ganeti.Objects, so that other modules are not affected.
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
commit 36a157f040bb94a05e6a40026dba2cb6c94350a3
Author: Klaus Aehlig <[email protected]>
Date: Mon Oct 27 11:05:06 2014 +0100
Remove obsolete comment
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
commit 50bc794388671ad223a5ab872d5e50a17680ada0
Author: Klaus Aehlig <[email protected]>
Date: Wed Oct 22 14:30:39 2014 +0200
Also generate accessor functions
As objects that can be forthcoming are sum types, we
need to define additional functions that access the fields,
dispatching on whether the object is real or forthcoming.
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
commit a6cd1140b8adec34c39f0d34fd8452224cbe1378
Author: Klaus Aehlig <[email protected]>
Date: Mon Oct 20 17:44:11 2014 +0200
Generate object plus forthcoming variant in THH
From the data defining an object (which, in particular, includes
the list of fields), generate
- a real variant of the object,
- a forthcoming variant of the object,
- and the type itself, having two constructors, one taking a real
object as argument and one taking a forthcoming object as argument.
Also generate JSON instances. For the sum type, the JSON representation
is a JSON object dispatching on the "forthcoming" entry.
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
commit 116d1a636d0c12c1de69b57197ebca85d29e7295
Author: Klaus Aehlig <[email protected]>
Date: Thu Oct 16 14:30:18 2014 +0200
Add function to obtain "forthcoming" field version
This function renders fields into their "forthcoming" version.
Usually, this just means making the field optional.
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
commit 4d369fd134284ebf1505025a5602f06a06515685
Author: Klaus Aehlig <[email protected]>
Date: Wed Oct 22 16:17:09 2014 +0200
Serial fields are present in forthcoming objects
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
commit cec7d104df3b021c3d4905379cffc89afcee02ed
Author: Klaus Aehlig <[email protected]>
Date: Wed Oct 22 13:33:07 2014 +0200
UUID is present, also in forthcoming objects
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
commit 116b16d91ccf090f76d208765a761d464150ec3c
Author: Klaus Aehlig <[email protected]>
Date: Wed Oct 22 13:22:42 2014 +0200
Allow fields to be marked as present in forthcoming variant
While in the forthcoming variant of an object usually fields
are optional, some fields still are always present, e.g.,
the UUID. Add a flag to fields to marks those.
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
commit 1fc42f83109fecf6054ea91b1ad8ce685b05f932
Author: Klaus Aehlig <[email protected]>
Date: Tue Oct 21 15:59:33 2014 +0200
Add a function to add a field to a JSON object
This is a convenience wrapper over Text.JSON.set_field,
that is defined on all JSValues (and does nothing if the
argument is not an object). Also, the order of arguments
is so that partial application becomes easy.
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
commit 16550e247cc3917065a9bf289265258b1ca5b7e3
Author: Klaus Aehlig <[email protected]>
Date: Tue Oct 21 15:45:10 2014 +0200
Add JSON a decoding function branching on a field
Add a function that allows to branch on a field in a JSObject.
Such a function can be used to decode from JSON objects that
have two variants, e.g., instances and forthcoming instances.
Signed-off-by: Klaus Aehlig <[email protected]>
Reviewed-by: Petr Pudlak <[email protected]>
-----------------------------------------------------------------------
Summary of changes:
Makefile.am | 2 +
src/Ganeti/Config.hs | 58 +++++++---
src/Ganeti/DataCollectors/InstStatus.hs | 17 ++-
src/Ganeti/DataCollectors/Lv.hs | 25 +++--
src/Ganeti/JSON.hs | 30 +++++
src/Ganeti/Objects.hs | 115 ++-----------------
src/Ganeti/Objects/Instance.hs | 96 ++++++++++++++++
src/Ganeti/{JQueue/Lens.hs => Objects/Nic.hs} | 33 +++---
src/Ganeti/Query/Group.hs | 4 +-
src/Ganeti/Query/Instance.hs | 109 ++++++++++-------
src/Ganeti/Query/Network.hs | 2 +-
src/Ganeti/Query/Node.hs | 4 +-
src/Ganeti/Query/Query.hs | 3 +-
src/Ganeti/THH.hs | 153 ++++++++++++++++++++++++-
src/Ganeti/THH/Field.hs | 5 +-
src/Ganeti/Types.hs | 39 +++++++
src/Ganeti/WConfd/ConfigVerify.hs | 2 +-
src/Ganeti/WConfd/Ssconf.hs | 3 +-
test/hs/Test/Ganeti/Objects.hs | 59 +++++++++-
test/hs/Test/Ganeti/Query/Instance.hs | 2 +-
20 files changed, 548 insertions(+), 213 deletions(-)
create mode 100644 src/Ganeti/Objects/Instance.hs
copy src/Ganeti/{JQueue/Lens.hs => Objects/Nic.hs} (67%)
hooks/post-receive
--
Ganeti core
--
---
You received this message because you are subscribed to the Google Groups
"ganeti-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.