Activity

From 11/20/2010 to 12/19/2010

12/17/2010

06:51 pm Revision abb24834: Adapt QA for change in behaviour
As we can't test this on master anymore (if we flag the node offline we
would change master role on master) we use th...
René Nussbaumer
06:51 pm Revision dd94e9f6: gnt-node modify: Adding --node-powered=yes|no
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
06:50 pm Revision 0ecef64c: LUSetNodeParams: Add support for powered state
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
06:50 pm Revision 78758f1e: LUSetNodeParams/LUOobCommand respect offline/powered
This patch makes sure we cross verify the state the node is
in with our view:
power off -> Node has to be set offlin...
René Nussbaumer
06:50 pm Revision d363797e: gnt-node power: Mark also offline when powering off
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael...
René Nussbaumer
06:42 pm Revision 1ef6e776: Merge branch 'devel-2.3'
* devel-2.3:
QA: Run cluster-verify as part of all instance tests
QA: Fix typo and add “not”
ensure-dirs: Speed...
Michael Hanselmann
05:51 pm Revision 153533f3: utils.NiceSort: Use sorted(), add keyfunc, unittests
This patch changes utils.NiceSort to use the built-in “sorted()” and
gets rid of the intermediate list. Instead of wr...
Michael Hanselmann
05:47 pm Revision d27150a9: QA: Run cluster-verify as part of all instance tests
“gnt-cluster verify” looks at some per-instance information as well, so
it should be run for each instance type QA te...
Michael Hanselmann
05:45 pm Revision 65924a12: QA: Fix typo and add “not”
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:36 pm Revision 7c2e922e: ShutdownInstanceDisks: accept offline secondaries
For secondary node that is offline, we should not consider that the
disk shutdown has failed, as it can never succeed...
Iustin Pop
03:00 pm Revision 2c0f74f2: RpcResult: simplify some asserts
data ≫ code, eom.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Iustin Pop

12/16/2010

04:20 pm Revision 196d70fa: ensure-dirs: Speed up when using big queues
The “ensure-dirs” script as included in Ganeti 2.3 is very slow when
working with big queues requiring a change of pe...
Michael Hanselmann
03:59 pm Revision 4c3ac53a: LUAddNode: default ndparams to empty dict when not provided
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
09:57 am Revision a1de4b18: QA: Add some basic OOB tests
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
09:57 am Revision b9955569: QA: Allow upload of string data
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer

12/15/2010

08:18 pm Revision 4f5c2533: Fix gnt-cluster verify with diskless instances
`gnt-cluster verify` was failing with KeyError if there was any
diskless instance in the cluster. This was because _C...
Adeodato Simo
06:50 pm Revision 861a296e: Fix N+1 error message
The error contained a typo and is slightly cumbersome. It changes from:
- ERROR: node a: not enough memory on to acc...
Miguel Di Ciurcio Filho
05:35 pm Revision 792af3ad: Rename (Op|LU)OutOfBand to (Op|LU)OobCommand
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer
05:30 pm Revision 50d54091: Merge branch 'devel-2.3'
* devel-2.3:
jqueue: Keep jobs in “waitlock” while returning to queue
Improve jqueue unittests
Update manpages ...
Michael Hanselmann
03:42 pm Revision 5fd6b694: jqueue: Keep jobs in “waitlock” while returning to queue
Iustin Pop reported that a job's file is updated many times while it
waits for locks held by other thread(s). After a...
Michael Hanselmann
03:42 pm Revision ebb2a2a3: Improve jqueue unittests
- Verify job file updates
- Ensure queue lock is released while executing opcode
Signed-off-by: Michael Hanselmann <...
Michael Hanselmann
12:54 pm Revision 133f1791: Update hscolour usage
This patch fixes two issues related to coloured sources generation.
First, recent hscolour has changed the css file (...
Iustin Pop
12:47 pm Revision abefdcff: Adding gnt-node power * commands
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer
12:47 pm Revision 1b386c69: Do the expanding of the node name in ExpandNames
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer

12/14/2010

05:21 pm Revision a36f605d: client.gnt_node: Remove unnecessary lambda
Pylint complained that the “lambda may not be necessary”. Turns out it
was right.
Signed-off-by: Michael Hanselmann ...
Michael Hanselmann
03:23 pm Revision 2214cf14: QA: Extend unittests for query operations, add tests for list-fields
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
Michael Hanselmann
03:23 pm Revision d7a08491: Update NEWS for new query infrastructure
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
Michael Hanselmann
03:23 pm Revision b82c5ff5: Convert “gnt-instance list” to query2
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
Michael Hanselmann
03:23 pm Revision 7f5443a0: Convert “gnt-node list” to query2
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
Michael Hanselmann
03:23 pm Revision ee3aedff: cli: Add infrastructure for query2
A new function for formatting the query results is added,
``FormatTable``. This was determined to be easier and safer...
Michael Hanselmann
01:54 pm Revision e7441f80: Update manpages to display version 2.3
Signed-off-by: Miguel Di Ciurcio Filho <miguel.filho@gmail.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Miguel Di Ciurcio Filho
01:51 pm Revision e61ae2cc: iallocator: Export node group allocation policy
Signed-off-by: Balazs Lecz <leczb@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Balazs Lecz
12:32 pm Revision d2881c71: Adding --node-powered command line flag
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
12:32 pm Revision 4a19bdc0: Set powered to True for added nodes
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
12:32 pm Revision b528a12d: Set recorded powered state for OOB calls
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
12:32 pm Revision 25124d4a: Add new Node attribute powered
This is just a state of record field and does not necessary
reflect the reality.
Signed-off-by: René Nussbaumer <rn@...
René Nussbaumer

12/13/2010

09:27 pm Revision ccc6345b: Add ganeti-kvm-poweroff.initd to .gitignore
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
06:33 pm Revision 4b10fb65: More QA tests for group operations
This adds QA tests for the SetGroupParams operation, both for CLI and
RAPI. Additionally, it adds tests for add/renam...
Adeodato Simo
06:33 pm Revision 2bac48c4: Add some unit tests for ConfigWriter.AddNodeGroup()
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
06:33 pm Revision f18fab7d: Expose OpSetGroupParams in RAPI and RAPI client
This creates the /2/groups/<name>/modify resource; at the moment, only the
"alloc_policy" attribute can be modified.
...
Adeodato Simo
06:33 pm Revision 90e99856: Add the "alloc_policy" attribute to node groups
This can be set at group creation time and via OpSetGroupParams. The default
is "preferred", and existing node groups...
Adeodato Simo
06:33 pm Revision 4da7909a: Add modification of node groups (OpCode/LU/CLI)
With this commit, only modification of the "ndparams" attribute is
supported.
Signed-off-by: Adeodato Simo <dato@goo...
Adeodato Simo
06:32 pm Revision 483be60d: Introduce OpAddGroup.ndparams and expose in CLI
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Adeodato Simo
06:32 pm Revision 907af698: Fix sorting bug in LUQueryGroups
In LUQueryGroups.Exec(), NiceSort was being applied to group UUIDs, and
not to group names. We use a temporary name t...
Adeodato Simo
05:21 pm Revision bd92fca1: cmdlib: Sort list of fields for QueryFields
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
Michael Hanselmann
05:21 pm Revision 0538c375: objects: Add custom de-/serializing code for query responses
… and use them in cmdlib.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: René Nussbaumer <rn@goo...
Michael Hanselmann
05:19 pm Revision 28b71a76: LUXI: Add Query and QueryFields functions
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
Michael Hanselmann
05:15 pm Revision 24d6d3e2: objects: Add definitions for query requests and responses
Also update description of QueryFieldDefinition.name.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed...
Michael Hanselmann
05:15 pm Revision 60cba7f8: qlang: Add function to build simple filter
This will be used in clients to build the filters for query2.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
...
Michael Hanselmann
05:15 pm Revision 145bea54: query: Handle items missing timestamps
In upgraded configurations, some items might miss the “ctime” and/or
“mtime” values and need to be handled specially....
Michael Hanselmann
04:00 pm Revision 38f9d2cf: Add gnt-cluster modify --master-netdev
Although this might be a dangerous operation, it's still better to allow
it rather than requiring a hand-edit of the ...
Guido Trotter

12/10/2010

07:28 pm Revision 46aae796: Rename “kind” to “what” for calls in query2 design
“kind” is already used in the field definition. “what” seems to
be a better fit for the calls (“what should be querie...
Michael Hanselmann
06:26 pm Revision 288d6440: QA: Improve tests for instance/node list
- Query all known fields
- Random combinations (using a PRNG with a fixed seed) of fields
- Order of result names
Si...
Michael Hanselmann
05:48 pm Revision fcdf575b: cmdlib: Convert instance query to new infrastructure
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:48 pm Revision 1c8addc6: query: Add definition for instance queries
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:13 pm Revision 5d9e167a: Script to gracefully power off KVM instances
When a node is running KVM instances and that node is rebooted or
shutdown, the gnt-noded daemon is finished and leav...
Miguel Di Ciurcio Filho

12/09/2010

05:36 pm Revision d41d07d4: Fix disk status verification in LUClusterVerify
Commit b8d26c6 added disk status verification, but it has two
(different) bugs for not healthy nodes.
For offline no...
Iustin Pop
05:14 pm Revision 31ed0b58: Merge branch 'devel-2.3'
* devel-2.3:
Fix rename for file-backed instances
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by:...
Guido Trotter
05:13 pm Revision d1a0ab50: Merge branch 'devel-2.2' into devel-2.3
* devel-2.2:
Fix rename for file-backed instances
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by:...
Guido Trotter
05:12 pm Revision be9f4904: Merge branch 'stable-2.2' into devel-2.2
* stable-2.2:
Fix rename for file-backed instances
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by...
Guido Trotter
05:11 pm Revision 5500ca1f: Merge branch 'stable-2.2' into stable-2.3
* stable-2.2:
Fix rename for file-backed instances
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by...
Guido Trotter
05:09 pm Revision 3721d2fe: Fix rename for file-backed instances
Currently the code wrongly changes the disk logical/physical id
component representing the path from "$storage_dir/$i...
Guido Trotter
05:03 pm Revision d0b98288: Check payload of OOB execution
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer
05:03 pm Revision 9d5198ad: Replace GetOobProgram by GetNdParams
This was due to a older review which used GetOobProgram but then
changed to GetNdParams. Forgot to adjust this in the...
René Nussbaumer
05:03 pm Revision 1aa88d95: Ensure we just serialize JSON if there is data
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer
05:03 pm Revision 0092d621: Adding missing timeout parameter to rpc interface
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer
04:08 pm Revision dec88196: Improve error reporting for small clusters
When doing a two-node allocation on a cluster/group in which only one
node is online, or a one-node allocation withou...
Iustin Pop
04:08 pm Revision 9b1584fc: hail/allocate: implement multi-group support
This is a bit hackish. We add a new function that takes the input data,
splits it into groups, runs the original tryA...
Iustin Pop
04:08 pm Revision db4d9a9b: hail: remove the custom info message generation
Since the solutions are "self-annotated", we can remove the custom code
from hail, and just keep a very small process...
Iustin Pop
04:08 pm Revision 859fc11d: Add a 'log' attribute to allocation solutions
And also a couple of functions for describing a given solution; these
will be used in the future instead of the ones ...
Iustin Pop
04:08 pm Revision 85d0ddc3: Change AllocSolution from tuple to its own type
Tuples are good for two, three, at most four elements. Beyond that, the
continuous pattern matching and construction/...
Iustin Pop
02:38 pm Revision 46747143: qa: test same-name instance rename
Use the simplified command and rapi version to perform an instance
rename to the same name. This is performed anytime...
Guido Trotter
02:37 pm Revision e5c2accd: Simplify instance rename qa test
The current instance rename qa testing function can only perform
back-and-forth renames, both for command line and ra...
Guido Trotter
12:29 pm Revision 2db12a5a: Allow rename of instance to same name
This basically is a no-op in ganeti, but forces the execution of the
os-specific rename scripts.
Signed-off-by: Guid...
Guido Trotter

12/08/2010

09:45 pm Revision 75cf411a: Introduce constant for the name of the initial node group
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
09:45 pm Revision 7407c2d5: constants.py: fix tiny grammar issue in comment
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
09:45 pm Revision e6e88de6: objects.py: fix minor error in NodeGroup.SimpleFillND docstring
The defaults are filled in from the node group defaults, not cluster
defaults (presumably copy & paste error).
Signe...
Adeodato Simo
09:45 pm Revision 5c64fbc2: design-2.3.rst: fix whitespace
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
08:22 pm Revision 85661274: Node query: maintain order as requested
If the client requests certain names, their order should be maintained.
This is already done for instance queries. Mo...
Michael Hanselmann
08:00 pm Revision 89ce4acc: query: Improve error checking
- Show only field definition, not callback when a result row is
inconsistent
- Show list of duplicate titles if the...
Michael Hanselmann
08:00 pm Revision 70d8ccaf: constants: Clarify comment for QRFS_NODATA
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Adeodato Simo <dato@google.com>
Michael Hanselmann
08:00 pm Revision 949f5e86: cmdlib: Fix prototype for _QueryBase.DeclareLocks
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Adeodato Simo <dato@google.com>
Michael Hanselmann
04:59 pm Revision 66787da5: Group operations: add QA tests for add/remove/rename
This is a single function that tests all of of the following:
- creating groups
- creating groups that exist fai...
Adeodato Simo
02:27 pm Revision a268af8d: Group operations: update ganeti.rapi.client with all node group operations
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
02:27 pm Revision 0dbaa9ca: Group operations: expose add/remove/rename in RAPI
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
02:27 pm Revision 66e884e1: Group operations: CLI code for add/remove/rename a group
Also, minor update to the 2.3 design doc, which was indicating the remove
operation would be `gnt-group del` and not ...
Adeodato Simo
02:27 pm Revision 4fe5cf90: Group operations: OpCode and LU for renaming a group
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
02:27 pm Revision 94bd652a: Group operations: OpCode and LU for removing a group
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
02:27 pm Revision b1ee5610: Group operations: OpCode and LU for adding a group
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
02:27 pm Revision 4edc512c: Expose new node group attributes in CLI and RAPI
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
02:27 pm Revision e11a1b77: config.py, objects.py: more node group support
In particular:
- add AddNodeGroup and RemoveNodeGroup in config.py
- refactor _UpgradeConfig to make use of _Un...
Adeodato Simo

12/07/2010

04:51 pm Revision eb64da59: Adding new OpCode for OOB
Register OpCode and Logical Unit in mcpu.py
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hans...
René Nussbaumer
04:51 pm Revision 445f735d: Adding new Logical Unit for OOB
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer

12/06/2010

11:22 pm Revision 1698503a: cmdlib: Don't sort list of nodes if names are given
This makes _GetWantedNodes consistent wit _GetWantedInstances.
Signed-off-by: Michael Hanselmann <hansmi@google.com>...
Michael Hanselmann
11:22 pm Revision 9f5a3645: utils: Add function to find duplicates in sequence
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Adeodato Simo <dato@google.com>
Michael Hanselmann
08:48 pm Revision 049383d9: hv_kvm.py: fix some lint issues introduced in 4b784cf
In particular:
- break as couple lines that were longer than 80 characters
- fix a couple "comma not followed by...
Adeodato Simo
02:59 pm Revision 819ca990: locking: add nodegroup lock level
This also changes masterd to initialize the ganeti's manager with the
current list of nodegroup uuids, and updates un...
Guido Trotter
02:59 pm Revision 1177d70e: Remove bridge NIC slot
This has been deprecated and unused since 2.1.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Mich...
Guido Trotter

12/03/2010

05:48 pm Revision 3f2eba25: kvm: Make _GetKVMVersion() return integers
The current code returns the major, minor and rev portions of the version of
KVM as strings. Returning them as intege...
Miguel Di Ciurcio Filho
05:48 pm Revision 4b784cf8: kvm: Improve network syntax and tests
The current syntax when defining a NIC uses a pair of arguments, like this:
-net tap,vlan=0 -net nic,vlan=0,model=vi...
Miguel Di Ciurcio Filho

12/02/2010

05:58 pm Revision 3c8a73a4: Merge branch 'devel-2.3'
* devel-2.3:
locking: Clarify message for removed locks
Bump version for 2.3.1~rc1 release
impexpd: Disable Ope...
Michael Hanselmann
05:51 pm Revision 9a91d357: Merge branch 'stable-2.3' into devel-2.3
* stable-2.3:
Bump version for 2.3.1~rc1 release
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by...
Michael Hanselmann
05:44 pm Revision 800ac399: Make snapshots multi-vg aware
Currently, the Snapshot() function of LogicalVolume returns only the
logical volume path, with the assumption that we...
Iustin Pop
05:21 pm Revision e0f9ed64: config.py: add error code to OpPrereqError
This adds a errors.ECODE_NOENT for OpPrereqError in LookupNodeGroup.
Signed-off-by: Adeodato Simo <dato@google.com>
...
Adeodato Simo
05:20 pm Revision 913cc25e: config.py: replace "node group" with "nodegroup"
Though code uses "nodegroup" as data member name, strings that will be
read by the user should use "node group" (with...
Adeodato Simo
03:46 pm Revision 84d7e26b: Make rpc.call_lv_list() VG-aware
Changes to backend.GetVolumeList():
- now accepts a list of VGs instead of one VG
- returns LV names in the form "vg_...
Dmitry Chernyak
03:32 pm Revision d1b6262e: cmdlib: fix typos in the docstring for LogicalUnit
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
03:30 pm Revision bde8f481: opcodes: document OP_DSC_FIELD in OpCode and OpCode.Summary()
Signed-off-by: Adeodato Simo <dato@google.com>
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Mic...
Adeodato Simo

12/01/2010

09:45 pm Revision e1137eb6: locking: Clarify message for removed locks
Just being told that a lock doesn't exist can be confusing. One case
were this happens is when a job (e.g. instance m...
Michael Hanselmann
09:45 pm Revision 563d5e72: Bump version for 2.3.1~rc1 release
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
09:40 pm Revision 30131294: Querying node groups: add QA tests
This adds QA tests for both CLI and RAPI.
Signed-off-by: Adeodato Simo <dato@google.com>
Signed-off-by: Iustin Pop <...
Adeodato Simo
09:31 pm Revision 0897dc97: Querying node groups: RAPI support
This implements /groups and /groups/%s RAPI end points.
Signed-off-by: Adeodato Simo <dato@google.com>
Signed-off-by...
Adeodato Simo
09:31 pm Revision 667dbd6b: Querying node groups: add client/gnt_group.py
This implements `gnt-group list`.
Signed-off-by: Adeodato Simo <dato@google.com>
Signed-off-by: Iustin Pop <iustin@g...
Adeodato Simo
09:31 pm Revision a79ef2a5: Querying node groups: add luxi.REQ_QUERY_GROUPS
This also updates masterd.py.
Signed-off-by: Adeodato Simo <dato@google.com>
Signed-off-by: Iustin Pop <iustin@googl...
Adeodato Simo
09:31 pm Revision 70a6a926: Querying node groups: LU/Opcode
This adds opcodes.OpQueryGroups and cmdlib.LUQueryGroups.
Signed-off-by: Adeodato Simo <dato@google.com>
Signed-off-...
Adeodato Simo
07:08 pm Revision a334d536: Cleanup AllocSolution after AllocElement changes
Since we added the score to AllocElement, we don't need to wrap
AllocElement in yet another tuple, just to attach the...
Iustin Pop
07:08 pm Revision 7d3f4253: AllocElement: extend with the cluster score
AllocElement, a type used as a result of allocations, holds the status
of the nodes after the allocation. In most cas...
Iustin Pop
07:08 pm Revision 06fb841e: Add two utility functions for the Result type
Actually, this just moves the functions from the QC module to Types, and
removes a duplicate entry from Cluster.
Sig...
Iustin Pop
07:08 pm Revision 99b63608: Rework the types used during data loading
This improves on the previous change. Currently, the node and instance
lists shipped around during data loading are (...
Iustin Pop
07:08 pm Revision 2d0ca2c5: Loader functions: move from assoc lists to maps
When loading big clusters, the association lists become a bit slow, so
we'll replace this with a simple Map String In...
Iustin Pop
07:08 pm Revision 6ff78049: Convert some leftovers to NameAssoc
The type alias NameAssoc has been introduced a long time ago, but there
are some few not-yet-converted cases. In prep...
Iustin Pop
06:50 pm Revision 29e8788e: impexpd: Disable OpenSSL compression in socat if possible
This uses an option only available in patched socat versions. More
information is available from the INSTALL update i...
Michael Hanselmann
05:58 pm Revision cd22574b: Merge branch 'stable-2.3' into devel-2.3
* stable-2.3:
Bump version for 2.3.0
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop...
Michael Hanselmann
05:07 pm Revision 7c324b88: Bump version for 2.3.0
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
03:36 pm Revision 4f6014d4: Adding RPC infrastructure to call oob
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer
03:36 pm Revision b2f29800: Adding backend functionality to call oob helper
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer
03:36 pm Revision 6204ee71: Adding ndparams to gnt-cluster init|modify and man page
This is reverting the revert and adaption to fix the issue which caused
the revert
Signed-off-by: René Nussbaumer <r...
René Nussbaumer
03:14 pm Revision c033f259: Merge branch 'devel-2.3'
* devel-2.3:
Correct version check for release candidates
config.py: need explicit %-formatting in errors.OpPrere...
Michael Hanselmann
03:00 pm Revision 646aa028: hbal: implement handling of multi-group clusters
On a single-group cluster, we proceed as before. On multi-group
clusters, we require selection of the desired group (...
Iustin Pop
03:00 pm Revision f4161783: Add Cluster.splitCluster for node groups
This splits a top-level cluster information into the component node
groups. Instance go to the group of their primary...
Iustin Pop
03:00 pm Revision ae16cf83: Add the man html files to gitignore
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Iustin Pop
03:00 pm Revision 5ef78537: Rework Container.hs and improve test coverage
Since some of the functions we export from Container.hs are 1:1
identical to IntMap, we can just export the originals...
Iustin Pop
03:00 pm Revision a423b510: Add new command-line option for group selection
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Iustin Pop
03:00 pm Revision 32b8d9c0: Add two functions for checking cluster consistency
For now, we don't support instances allocated across two groups, and we
will reject such clusters. The isClusterConsi...
Iustin Pop
03:00 pm Revision d8bcd0a8: Add function for nodes to (nodgroup, nodes) split
Unittests included. The function will be needed for consistency checks
in the algorithms.
Signed-off-by: Iustin Pop ...
Iustin Pop
03:00 pm Revision c4d98278: Add a type alias for UUIDs
This is to pottentially allow easier changes later.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balaz...
Iustin Pop

11/30/2010

08:55 pm Revision 5d9f9cba: Merge branch 'devel-2.2' into devel-2.3
* devel-2.2:
Correct version check for release candidates
Fix version check
Add script to check version format
...
Michael Hanselmann
08:25 pm Revision cdb303ab: Correct version check for release candidates
The tilde needs to be escaped and I forgot the space which should be
used instead.
Signed-off-by: Michael Hanselmann...
Michael Hanselmann
06:15 pm Revision c49b0092: config.py: need explicit %-formatting in errors.OpPrereqError.
Signed-off-by: Adeodato Simo <dato@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Adeodato Simo
05:04 pm Revision 982ed68e: Trivial style fixes
Add missing closing brackets and fix a typo.
Signed-off-by: Adeodato Simo <dato@google.com>
Signed-off-by: Iustin Po...
Adeodato Simo
05:03 pm Revision 7d88f255: Further cleanups on QA
This is more of an RFC. The patch attempts to address two issues:
- running conditional tests is ugly right now
- we...
Iustin Pop
03:57 pm Revision 42f539ee: Check for editor-specific settings at build time
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
03:57 pm Revision 88b02ee9: Remove editor-specific settings from cfgupgrade*
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann

11/29/2010

10:00 pm Revision aba8e78d: cmdlib: Add base for query classes
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
10:00 pm Revision 72a84c96: LUQueryNodes: Convert to new query model
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
10:00 pm Revision 83f72637: Add OpQuery opcode
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
10:00 pm Revision 8235fe04: Add node query definition
This includes a bunch of helper functions which can be helpful for other
queries, too. Unittests are included.
Signe...
Michael Hanselmann
10:00 pm Revision 4a917de6: Add query constants
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
10:00 pm Revision a123dc19: Add simple query filter parser
This parser reads only the format described by the query2
design document: either an empty filter or an OR operator
w...
Michael Hanselmann
10:00 pm Revision 4ca96421: Add utility class for definition-based data queries
While not immediately visible, using definition-based queries will allow
for a number of optimizations and simplifica...
Michael Hanselmann
10:00 pm Revision 435e4bd6: bootstrap: Set master node's {c,m}time on cluster init
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
08:26 pm Revision 49ceab21: QA: Fix upload of RAPI users file
After moving the users file to a directory, we must ensure the
directory exists.
Signed-off-by: Michael Hanselmann <...
Michael Hanselmann
07:52 pm Revision c744425f: RAPI: Implement OS parameters for instance reinstallation
Dictionaries are hard to encode into query strings, therefore the
“/2/instances/[instance_name]/reinstall” resource i...
Michael Hanselmann
07:44 pm Revision 4f358f28: Revert "InitCluster support for ndparams"
This reverts commit fd7f5b411ca61be2e4eff638773ba6c0fac7eb32.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
...
Michael Hanselmann
07:44 pm Revision 2b4701f4: Revert "Adding ndparams to gnt-cluster init|modify and man page"
This reverts commit cb1ef9736dec68d6786359bc7d019f0bbee48c61. QA was
broken by this commit.
Signed-off-by: Michael H...
Michael Hanselmann
05:14 pm Revision fdd9ac5b: Move “rapi_users” file into separate directory
This reduces the number of notifications in “ganeti-rapi”. Until now it
was notified for every change in …/lib/ganeti...
Michael Hanselmann
05:06 pm Revision 707f23b5: objects: Add QueryFieldDefinition
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:05 pm Revision dae91d02: Increase timeout for connection on remote import
The source cluster has to shut down an instance before it can be
exported. Doing so can take a while, but the default...
Michael Hanselmann
05:05 pm Revision ba5619c2: Use IPv6 for import/export
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:05 pm Revision 855d2fc7: backend: Add support for IPv6 in import/export
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:05 pm Revision 58bb385c: impexpd: Implement support for IPv6
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
04:02 pm Revision cb1ef973: Adding ndparams to gnt-cluster init|modify and man page
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
04:02 pm Revision 4e37f591: Adding ndparams to gnt-node add|modify and man page
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
04:01 pm Revision b74bf80c: Add node parameters to ganeti(7)
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
04:01 pm Revision fd7f5b41: InitCluster support for ndparams
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
03:37 pm Revision 2f4b4f78: Simplify QA commands
Currently, 95% of the QA commands are executed in the same way: on the
master, based on a command list and with expec...
Iustin Pop

11/28/2010

07:02 pm Revision e474b5b5: Also build HTML versions of man pages
Iustin Pop
05:37 pm Revision f394c0de: Fix typo in _ANS1_TIME_REGEX
Thanks Balasz!
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Iustin Pop
04:04 pm Revision f40ae421: Improve unittests for the utils module
This just a random collection of unittest improvements. Coverage
increases from 73% to 76%.
Signed-off-by: Iustin Po...
Iustin Pop
03:57 pm Revision 0b5303da: Move compilation of some regexes to init time
I have found a few regexes which are static and thus can be moved to
load time, rather than run time, creation.
Sign...
Iustin Pop

11/27/2010

07:51 pm Revision b7d82e40: Fix breakage from previous commit e695efb
Wrong file name in Makefile.am and wrong naming (.unittest vs
_unittest).
Signed-off-by: Iustin Pop <iustin@google.c...
Iustin Pop
07:29 pm Revision e695efbf: Add missing paramter and unittests for this case
While git-am'ing the blockdev_prefix patch, I modified the hv_xen.py
file but forgot to amend the patch :(, so here i...
Iustin Pop
06:11 pm Revision 525011bc: Adding blockdev_prefix to hypervisor options
Allows to install Red Hat based systems, for example Oracle Linux.
Tested with OEL.
The hypervisor by default offers...
Maciej Bliziński

11/26/2010

09:39 pm Revision cb6a0296: RPC call_node_info: change protocol
Currently, the call_node_info RPC does always check both the VG free
space and the hypervisor information. However, i...
Iustin Pop
06:36 pm Revision 84ce674e: asyncnotifier tests: simplify the setup code
First change is to replace "range(len(self.NOTIFIERS)))" with
self.NOTIFIERS, as range(len(range(N))) ≡ range(N).
Se...
Iustin Pop
06:36 pm Revision 88a32957: Cluster rename: skip offline nodes
This only tries to upload the ssh_known_hosts_file to the online nodes,
eliminating a timeout and warning for offline...
Iustin Pop
11:05 am Revision 3c2b6a98: The default value for ndparams should be None not {}
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer
11:05 am Revision f6ffab5a: Fix missed CheckArguments on ndparams for SetNodeParams
In the previous patch where I modified LUSetNodeParams to take ndparams
into account I missed this additional check o...
René Nussbaumer

11/25/2010

06:00 pm Revision 38156f68: Fix per-vg checks in instance disk conversion
Since we now have just two possibilities (plaint to drbd or drbd to
plain), we can assume (+an assert) that we come f...
Iustin Pop
02:16 pm Revision 35576615: Fix version check
Don't ask … all I say is distcheck.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <i...
Michael Hanselmann
01:45 pm Revision 6180d6bb: Removed _CheckNodesFreeDisk function
Was substituted by _CheckNodesFreeDiskPerVG.
Signed-off-by: Dmitry Chernyak <dmi.chernyak@gmail.com>
Signed-off-by: ...
Dmitry Chernyak
01:41 pm Revision 03941a26: Make instance creation VG-aware
Also should work disk growing, instance moving and prerequisite checks.
Signed-off-by: Dmitry Chernyak <dmi.chernyak...
Dmitry Chernyak
01:28 pm Revision 10e2de91: Introduced VG-aware disk space checks
Implemented _CheckNodesFreeDiskPerVG and _ComputeDiskSizePerVG functions
for VG-aware iterations.
Signed-off-by: Dmi...
Dmitry Chernyak
01:21 pm Revision 7af3534e: Added "vg" argument to the --disk syntax
Added "vg" argument to the "gnt-instance ... --disk" syntax specification.
Now is ok to write:
gnt-instance add ... ...
Dmitry Chernyak

11/24/2010

09:29 pm Revision 96602be4: Add script to check version format
Only versions of the format “x.y.z” and “x.y.z~(rc|beta)N” (for N>0) are
allowed.
Signed-off-by: Michael Hanselmann ...
Michael Hanselmann
07:12 pm Revision 0ae7d413: Merge branch 'devel-2.3'
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Iustin Pop
07:02 pm Revision b6ac86e0: Merge branch 'devel-2.2' into devel-2.3
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Iustin Pop
06:52 pm Revision 577b170b: Fix coverage reports
Currently, the coverage reports include the unittests themselves, and
this skewes unfairly the reports, as the covera...
Iustin Pop
05:18 pm Revision a535cef7: Adding --node-parameters command line flag
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
05:18 pm Revision 08a61d91: Adding ndparams to their OpCodes and LU calls
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
03:55 pm Revision b7b29191: RAPI: read the group UUID from the server
This depends on future support from Ganeti (2.4+).
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs...
Iustin Pop
03:55 pm Revision 31463db5: IAlloc: read group uuid from the input message
This makes the code incompatible with JSON files from Ganeti pre-2.4.
Signed-off-by: Iustin Pop <iustin@google.com>
...
Iustin Pop
03:55 pm Revision b3707354: Text: read/save the node group UUID
Compatibility with old text files is kept by using the default UUID if
the file (or even some records) don't have a U...
Iustin Pop
03:55 pm Revision f5ed8632: Luxi: read the node uuid from the cluster
This makes the code incompatible with Ganeti pre-2.4.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Bal...
Iustin Pop
03:55 pm Revision a68004b7: Node: add the node group's UUID
This is not used anywhere yet, and the backend are all just adding the
default UUID, not the real one.
The patch als...
Iustin Pop
03:54 pm Revision 9b9da389: Utils: add a default UUID
This will be used as a placeholder for the cases when we need a UUID
(any UUID), but we don't have one handy.
Signed...
Iustin Pop

11/23/2010

11:04 pm Revision 0a31dda0: Add consistency test for mcpu dispatch table
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
11:04 pm Revision 18e63b75: cmdlib: Use _POutputFields where possible
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
11:03 pm Revision 9189c902: Update query2 design document
While starting to implement this, I found a number of deficiencies:
- Drop regular expressions. As it turned out, on...
Michael Hanselmann
04:46 pm Revision a3e8da03: Merge branch 'devel-0.2' into master
Iustin Pop
02:33 pm Revision c300f9c9: Basic stuff to allocate disks on different VGs
Extend allocation functions to be aware of different vg names. Suppose,
vg_name is helded in disk.physical_id[0] (al...
Dmitry Chernyak
01:57 pm Revision 5768e6a6: Adding convenience getter for ndparams
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
René Nussbaumer
01:01 pm Revision 04a8865b: RAPI: implement no_install during instance creation
Signed-off-by: Lance Albertson <ramereth@gmail.com>
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Iustin...
Lance Albertson
12:58 pm Revision 7570569e: Improve the standard deviation computation
This does just two passes, instead of three, over the list. This reduces
the overall runtime well enough (~25%) in so...
Iustin Pop
12:58 pm Revision 543e859d: hbal: change handling of signal
Currently, hbal does a one-two signal handling, where the first signal
causes graceful termination, and the second on...
Iustin Pop
12:01 pm Revision d05cf6fa: utils._RunCmdPipe: simplify the timeout logic
There are two issues: first, it's simpler to assign directly to pt
instead of via another local variable. Second, thi...
Iustin Pop
12:01 pm Revision a298fd5a: utils._RunCmdPipe: fix poller timeout usage
This patch makes a simple timeout test (e.g. testTimeoutKill) go from
13K poll syscalls to just 6. The code didn't ta...
Iustin Pop
12:01 pm Revision 815bf6d5: Fix utils unittest TestRunCmd.testTimeoutKill
Currently the test executes "/bin/sh -c 'trap "" TERM …" via the shell,
which means we have two shells involved (the ...
Iustin Pop

11/22/2010

09:11 pm Revision fd254195: RAPI: export the node group UUID in the node query
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Iustin Pop
05:18 pm Revision 095e71aa: Adding oob_program in the same style as beparams
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
René Nussbaumer
« Previous
Next »
 

Also available in: Atom