Activity
From 05/31/2010 to 06/29/2010
06/29/2010
- 07:53 pm Revision 71cba20b: Update NEWS for the 2.1.5 release
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 07:53 pm Revision 1ee8e01a: Pass force variant option at instance creation
- This was supposed to be done in
"06073e857e3b518c7195d57306ae01793240c0c2" but by mistake the field was
added to batc... - 06:20 pm Revision 7e5a6e86: masterd: use AsyncTerminatedMessageStream for luxi
- Each luxi connection now creates an asyncore MasterClientHandler (which
is an AsyncTerminatedMessageStream subclass, ... - 05:30 pm Revision 23e0ef8c: Fix a few uncommon pylint errors in compat.py
- - It's ok if the optional modules functools, roman and hashlib are not there.
- It's ok to reference any and all befo... - 04:15 pm Revision de372295: BatchCreate: get force_variant from specs not opts
- There is no such option on the command line, and for batch creation it's
better to get the option from the json file ... - 02:30 pm Revision 1e063ccd: AsyncTerminatedMessageStream: send_message
- This function adds the ability for a AsyncTerminatedMessageStream to
have a thread-safe message delivery function.
S... - 02:30 pm Revision 37e62cb9: AsyncTerminatedMessageStream: limit message count
- Currently the message stream can process any number of messages in
parallel (if they get dispatched to different thre... - 01:47 pm Revision aefbe369: Add test script for cfgupgrade
- This should catch cases where we update the configuration version, but
forget to adjust cfgupgrade accordingly.
Sign... - 01:47 pm Revision 02e1292d: cfgupgrade: Add option to override config verification
- This is needed in a new test script for cfgupgrade where it's better
to only use the minimum parts necessary for test... - 01:47 pm Revision 30acff6c: cfgupgrade: Fix bug when checking configuration directory
- In the condition for checking the configuration directory, one “or” should have
been an “and”. This bug was in cfgupg... - 01:47 pm Revision a9221f09: cfgupgrade: Add support for Ganeti 2.2
- Since configuration changes are now usually done in the configuration
writer class, cfgupgrade's only task is to chan... - 01:45 pm Revision 5d25b928: Remove dead code from cfgupgrade
- Three constants were no longer user after commit 11c31f5cb5, which
removed support for upgrading from Ganeti 1.2.
Si... - 01:12 pm Revision 27ba7eab: BatchCreate: set a default for force_variant
- Currently if the json file doesn't contain a "force_variant" parameter
BatchCreate stracktraces. We add a default so ...
06/28/2010
- 06:46 pm Revision 90d118fd: Better specify old object slots removal policy
- The comments seem to imply we can remove deprecated slots after 2.1 is
released. This is not quite true, if we still ... - 04:25 pm Revision d12f5c66: Fix a type declaration error in LUTestAllocator
- Also, improve logging of type errors, to ease debugging.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: ... - 04:16 pm Revision 111c4e2f: Fix _UpgradeConfig docstring
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 02:04 pm Revision ebb80afa: jqueue: remove the _big_jqueue_lock module global
- By using ssynchronized in the new way, we can remove the module-global
_big_jqueue_lock and revert back to an interna... - 02:04 pm Revision dbb11e8b: ssynchronized: act on a class member
- The ssynchronized decorator takes the lock to act on in input.
With this change we allow a string to be passed, and i... - 02:04 pm Revision 3c0d60d0: Share the jqueue lock on job-local changes
- We can share the jqueue lock when we do per-job updates. These only
conflict with updates/checks on the same job from... - 02:04 pm Revision 9bf5e01f: _OpExecCallbacks abstract _AppendFeedback
- Move some code to a decorated function rather than explicitely
acquiring/releasing the lock in AppendFeedback.
Signe... - 02:04 pm Revision 41a26b68: Remove utils.LockedMethod
- All users of this function were converted to another method, hence we
can remove it.
Signed-off-by: Guido Trotter <u... - 02:04 pm Revision 99bd4f0a: jqueue: convert to a SharedLock()
- Remove the jqueue _lock member and convert to a _big_jqueue_lock
sharedlock. This allows smooth transition from the o... - 02:04 pm Revision 39ed3a98: MarkUnfinishedOps: update job file on disk
- Every time we call MarkUnfinishedOps we do it in a try/finally block
that updates the job file. With this patch we mo... - 02:04 pm Revision a1bfdeb1: Remove spurious empty line
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 02:04 pm Revision 403f5172: Remove pred from compat.any/all
- This makes it compatible with the python builtin, and we can even use
the builtin when running under the right versio... - 01:46 pm Revision 72db3fd7: Two more fixes for OS params and opcode defaults
- If the OS is not using API v20, the parameter verification should be
entirely skipped.
The second change is a simple...
06/25/2010
- 06:36 pm Revision 40684c3a: Fix breakage due to OS parameters
- I was using wrong python installation path (thanks Guido!), so I was not
actually testing the new backend.py module. ...
06/24/2010
- 01:56 pm Revision 3b08cd1c: Introduce constants.DTS_MAY_ADOPT
- DTS_MAY_ADOPT include disk templates that may use disk adoption and will be
used in all respective checks.
Signed-of... - 01:46 pm Revision f8f590c8: Convert TestDelay repeat to the type system
- Turns out with the current implementation of the type system a variable
can both be required and not required. Intere...
06/23/2010
- 07:24 pm Revision 85edf27e: Fix burnin's export test
- Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 07:24 pm Revision adb6d685: Rename some constants and relax pylint rules
- For the type system, we want a slightly relaxed rule for constant
naming, so we update the pylint rule. But the old _... - 07:24 pm Revision 3636400f: Introduce a micro type system for opcodes
- Currently, we have one structual validation for opcode attributes: the
_OP_REQP, which checks that a given attribute ... - 07:24 pm Revision 3e512563: LU.CheckPrereq: do not require implementation
- Currently, the base class LogicalUnit's CheckPrereq will raise
NotImplementedError, which means that the child LUs ha... - 07:24 pm Revision 3494b9f6: Some more CheckPrereq/CheckArguments cleanup
- For a few LUs, a few tests in, or even the whole CheckPrereq, can be
moved to CheckArguments, as they don't touch sta... - 07:23 pm Revision b0d85178: Add OS verification support to cluster verify
- For this, we needed to extend the NodeImage class with a few extra
variables, and we do a trick in the node verificat... - 07:23 pm Revision a8c931c0: Move opcode attribute defaults to data structures
- LUExportInstance had two opcode fields set to default via both
_CheckBooleanOpField and getattr(…, False).
Signed-of... - 07:23 pm Revision 9ade2eda: Cleanup LU.ExpandNames versus CheckArguments
- When LogicalUnit.CheckArguments was introduced, not all code dealing
with static argument checking was moved to it; m... - 07:23 pm Revision 989ba0c4: Abstract export mode validity check
- The export mode is checked in two places with the exact same code…
Signed-off-by: Iustin Pop <iustin@google.com>
Rev... - 07:23 pm Revision 941b9309: RAPI: switch evacuate node to the new model
- This patch removes the last use of the old-style OpEvacuateNode. It also
fixes the dry-run mode for this RAPI resourc... - 07:23 pm Revision 8de1f1ee: Remove the obsolete EvacuateNode OpCode/LU
- All code has been switched to the new-style LU… time for cleanup.
Signed-off-by: Iustin Pop <iustin@google.com>
Revi... - 07:23 pm Revision 1bdcbbab: Add OS parameters to cluster and instance objects
- The patch also modifies the instance RPC calls to fill the osparameters
correctly with the cluster defaults, and expo... - 07:23 pm Revision dbb24ec7: Show OS parameters in cluster/instance info
- Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 07:23 pm Revision 062a7100: Add support for OS parameters during instance add
- This is not yet complete, as it lacks proper support for instance
import.
Signed-off-by: Iustin Pop <iustin@google.c... - 07:23 pm Revision 21d7df5f: _GetUpdatedParams: enhance value removal options
- This patch adds controls for whether we recognize
constants.VALUE_DEFAULT or not as a default value, and also adds
da... - 07:23 pm Revision 625ac113: Add support for modifying cluster OS parameters
- We use _GetUpdatedParams in order to support removal too, and then
validate the OS parameters if the OS exists.
Sign... - 07:23 pm Revision ccadf1ff: Simplify gnt-os diagnose output
- Currently, we always list the api/variants, even if these are empty.
This patch changes so that we make clear distict... - 07:23 pm Revision 535b49cb: Add support for OS parameters during import/export
- Nothing special here, just copy/adjust the beparams code.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by:... - 07:23 pm Revision bad78e66: LUDiagnoseOS: add more fields, cleanup
- This patch exports all the way from backend a new field ‘api_version’
which holds the list of support API versions, a... - 07:23 pm Revision ae5b1530: Add a new gnt-os info command
- This can be used to show the actual OS parameters and supported
variants, in a global manner (rather than per-node as... - 07:23 pm Revision 1052d622: Add support for modifying instance OS parameters
- We move the instance OS rename checks earlier, as we need to run the
validation against the new OS, if it has changed... - 07:23 pm Revision 545d1f1a: Update the 2.2 design doc with OS parameters
- Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 07:23 pm Revision 4463ae96: Silence a pylint warning
- The OS parameters code will bump the number of lines over 10K, and thus
we need to silence this (no, we don't want an... - 07:23 pm Revision b41b3516: Add os api v20 and related fields to the OS object
- Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 07:23 pm Revision acd9ff9e: Introduce an RPC call for OS parameters validation
- While we only support the 'parameters' check today, the RPC call is
generic enough that will be able to support other... - 07:23 pm Revision c7d04a6b: Add reading of OS parameters from disk
- The patch also modifies the internal methods in LUDiagnoseOS and gnt-os
to deal with the format change of call_os_dia... - 01:32 pm Revision 41593f6b: Remove job object condition
- We don't need it anymore, since nobody waits on it.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by:... - 01:32 pm Revision 6c2549d6: Parallelize WaitForJobChanges
- As for QueryJobs we rely on file updates rather than condition
notification to acquire job changes. In order to do th... - 01:32 pm Revision b3855790: Update the job file on feedback
- This is needed to convert waitforjobchanges to use inotify and the
on-disk version and decouple it from the job queue... - 01:32 pm Revision 9f7b4967: Don't lock on QueryJobs, by using the disk version
- We move from querying the in-memory version to loading all jobs from the
disk. Since the jobs are written/deleted on ... - 01:32 pm Revision 0f9c08dc: Add JobQueue.SafeLoadJobFromDisk
- This will be used to read a job file without having to deal with
exceptions from _LoadJobFromDisk.
Signed-off-by: Gu... - 01:32 pm Revision 3d6c5566: jqueue._LoadJobFromDisk: remove safety archival
- Currently _LoadJobFromDisk archives job files it finds corrupted. Since
we want to use it to load files without holdi... - 12:38 pm Revision 85a87e21: Add repetition count to the TestDelay opcode
- If the repetition count is not passed or is passed as 0 we sleep exactly
one time, otherwise we sleep "repeat" times ...
06/22/2010
- 04:26 pm Revision 706c353c: Merge branch 'devel-2.1'
- * devel-2.1:
Add "adopt" to the allowed disk parameters
Improve pylintrc for pylint 0.21+
Fix warnings with Pyt... - 02:25 pm Revision 1afea34a: Add "adopt" to the allowed disk parameters
- "adopt" was missing from bd061c3, thus breaking disk adoption.
Signed-off-by: Apollon Oikonomopoulos <apollon@noc.gr... - 02:17 pm Revision 37adad2b: Improve pylintrc for pylint 0.21+
- While we'll need to update the source files too, at least this change
makes pylint 0.21 not fail on the current sourc... - 02:17 pm Revision c04bc777: Fix warnings with Python 2.6
- 'format' is a new built-in function, and 'bytes' is a new builtin type.
We rename this to make pylint happy (and remo... - 12:25 pm Revision 035f40fc: Fix a small bug introduced in cf26a87a
- Commit cf26a87a added a tiny typo, which would break non-FQDN arguments
to modify node storage.
Signed-off-by: Iusti... - 12:23 pm Revision e88fc57d: Fix the type of 'valid' attribute in LUDiagnoseOS
- The update of the valid status in LUDiagnoseOS says:
valid = valid and osl and osl[0][1]
However, in Python, “Tru...
06/21/2010
- 04:10 pm Revision 8494604f: Add "adopt" to the allowed disk parameters
- "adopt" was missing from bd061c3, thus breaking disk adoption.
Signed-off-by: Apollon Oikonomopoulos <apollon@noc.gr... - 12:12 pm Revision 95446d7a: Fix another haddock special-char issue
- 05:59 am Revision db079755: Remove JOB_STATUS_GONE and add unittests
- … for the serialization/deserialization of the job and opcode status.
Job status 'gone' was not actually used. It ca... - 05:46 am Revision 41065165: Add opcode status constants/type
- This mirrors, again, the Ganeti constats, and are added for future use.
- 05:46 am Revision 7e98f782: Rename the job status constants
- The rename is done such that we match Ganeti's own constants.
06/18/2010
- 02:23 pm Revision 626f4e45: Merge branch 'stable-2.1'
- * stable-2.1:
Bump up version for the 2.1.4 release
Update NEWS about the latest 2.1 change
Fix handling of err... - 12:30 pm Revision baa17cda: Bump up version for the 2.1.4 release
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 12:29 pm Revision 3ef56ab6: Update NEWS about the latest 2.1 change
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 12:28 pm Revision 98fa19b0: Fix handling of errors from socket.gethostbyname
- Socket functions can raise more than just gaierror. Most of the times,
socket.gethostbyname_ex will return gaierror, ... - 12:28 pm Revision e167599b: Update a comment in qa-sample.json
- Fix the sentence to say what it means.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hans...
06/17/2010
- 08:37 pm Revision 85b243e8: gnt-debug: remove @todo from GenericOpCodes
- - the function is not broken, and we're using in nowadays
- we have example json files and all, which show its usage
... - 08:25 pm Revision 25e557a5: Workerpool.AddManyTasks: check tasks type
- Each task has to be a sequence, or the RunTask call will fail.
Signed-off-by: Guido Trotter <ultrotter@google.com>
R... - 08:25 pm Revision 7ed3248b: count the number of tasks done in the wp unittest
- Currently there's no way to know if something actually gets done.
After this check we actually test that the threads ... - 08:25 pm Revision 7beb1e53: jqueue.AddManyJobs: use AddManyTasks
- Rather than adding the jobs to the worker pool one at a time, we add
them all together, which is slightly faster, and... - 06:07 pm Revision 809bc174: RAPI client: Add support for Python 2.6
- The httplib module used by urllib2 requires its sockets to have a
makefile() method to provide a file-like interface ... - 05:48 pm Revision beba56ae: RAPI client: Add support for Python 2.6
- The httplib module used by urllib2 requires its sockets to have a
makefile() method to provide a file-like interface ... - 04:54 pm Revision 70c81511: Bump RPC protocol version to 40
- Many RPC calls have changed in Ganeti 2.2, hence bumping the RPC protocol
version.
Signed-off-by: Michael Hanselmann... - 04:54 pm Revision 2e37243f: Change ganeti-cleaner unittest to not use random values
- Using random values in unittests isn't good. This one broke exactly
when building the 2.2.0~beta0 release. I suspect ... - 03:12 pm Revision c1a25b88: Update NEWS for Ganeti 2.1.4
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 01:31 pm Revision a0a470fa: Bump version to 2.2.0~beta0
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 01:31 pm Revision 06596a60: Fix parameter names in SimpleFillBE/NIC docstrings
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 01:00 pm Revision c2a8e8ba: WorkerPool.AddManyTasks
- Useful if we want to add many tasks at once, without contention with the
previous one we added starting.
Signed-off-... - 01:00 pm Revision b628191f: AsyncAwaker: use shutdown on the socketpair
- This makes sure the out_socket can only be used for writing, and the
in_socket for reading.
Signed-off-by: Guido Tro... - 01:00 pm Revision 4c36bdf5: jqueue: make replication on job update optional
- Sometimes it's useful to write to the local filesystem, but immediate
replication to all master candidates is not nee... - 12:53 pm Revision 6a290889: s/queue._GetJobInfoUnlocked/job.GetInfo/
- The job queue currently has a static _GetJobInfoUnlocked method.
Changing it to be a normal method of _QueuedJob, whi... - 12:53 pm Revision 162c8636: Abstract loading job file from disk
- Move the work from _LoadJobUnlocked to _LoadJobFileFromDisk, which can
then be used in other contexts as well. Also, ... - 12:41 pm Revision 3baa809c: Makefile: Add support for local Makefile additions
- With the recent addition of a check for directories listed in Makefile
local custom directories are always reported a...
06/15/2010
- 12:49 pm Revision d8e0dc17: jqueue: simplify removal from _nodes
- Somewhere we do try/del/except and somewhere just pop. Using pop
everywhere saves lines of code.
Signed-off-by: Guid... - 12:49 pm Revision b5b8309d: ListVisibleFiles: do not sort output
- Among all users, turns out just one *may* need the output to be sorted.
All the others can cope without.
Signed-off-...
06/14/2010
- 10:47 pm Revision 60bb8b5d: Improve gnt-debug man page
- Signed-off-by: Manuel Franceschini <livewire@google.com>
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: I... - 09:37 pm Revision 592e04bd: Remove a TODO
- Since OS objects are not stored in the configuration, we cannot put
os_hvp there, therefore the TODO is obsolete…
Si... - 09:37 pm Revision 422d4619: Rework LUSetInstanceParams._GetUpdatedParams
- Currently, this function does three things:
- special handling of constants.VALUE_DEFAULT
- type enforcing of the res... - 09:35 pm Revision efaa9b06: Split the core-OS and instance-specific env
- Since we'll need to be able to generate the OS-specific environment
separately from the instance one, we move it to a... - 09:35 pm Revision 73e0328b: Add cluster.SimpleFill*() functions
- Currently, the existing cluster.Fill* functions take as argument an
instance. This means that in any case where we do... - 09:33 pm Revision 31ca841c: Merge branch 'devel-2.1' into master
- Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com> - 08:47 pm Revision c47478f9: Fix a bug in instance startup with custom hvparams
- Since the introduction of OS-specific hvparams, we shouldn't ever use
objects.FillDict directly for instances, but in... - 08:46 pm Revision 845da3e8: Fix unsafe variant initializer in _TryOSFromDisk
- In case an OS has inconsistent declarations, we might get into a case
where one node reports a valid variants list (w... - 08:24 pm Revision 6b997854: Makefile: Add check for DIRS consistency
- It's easy to forget to add a new directory to DIRS. This check should
report such inconsistencies.
Signed-off-by: Mi... - 07:58 pm Revision 971bbd84: Disallow DES for SSL connections
- Older OpenSSL versions include DES-CBC3-* ciphers when specifying the
HIGH group of ciphers. Removing potentially wea... - 07:58 pm Revision 7f7b730a: Start instance after creating snapshots for export
- This restores functionality lost in commit 387794f8. Found during
tests using QA scripts. An instance should be start... - 07:58 pm Revision d51ae04c: Use import/export magic for backup/import and inter-cluster moves
- This should prevent bugs in our code from accidentally overwriting
disks.
Signed-off-by: Michael Hanselmann <hansmi@... - 07:57 pm Revision 5bb95572: Disable compression for all intra-cluster imports/exports
- Tests have shown that usually we're CPU-bound for intra-cluster
imports/exports. Disabling compression will help with... - 07:57 pm Revision 5d831182: qa_rapi: Test inter-cluster instance move script
- This test moves an instance on the same cluster and, if successful,
moves it back. While not testing a real move betw... - 07:57 pm Revision af1d39b1: backend: Add support for import/export magic
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 07:57 pm Revision 1d3dfa29: import/export daemon: Add support for a magic prefix
- This “magic” value will be used to ensure that we don't accidentially
connect to the wrong daemon (e.g. due to a bug)... - 07:56 pm Revision fbb6b864: import/export daemon: Simplify command building
- Instead of appending strings, stage parts in a list. Building the "dd"
command is moved to a separate function.
Sign... - 07:56 pm Revision 0559f745: import/export: Limit max length of socat options
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 07:56 pm Revision acd65a16: import/export: Validate remote host/port
- The hostname and port received from the remote cluster should
be validated, just in case.
Signed-off-by: Michael Han... - 07:56 pm Revision 28f34048: utils: Add function to validate service name
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 07:55 pm Revision 560cbec1: Handle ESRCH when sending signals
- Upon sending signals, ESRCH can be reported when the target no
longer exists.
Signed-off-by: Michael Hanselmann <han... - 07:53 pm Revision c51580b3: Add missing directory from Makefile.am
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 07:41 pm Revision 89c04c2d: Add example gnt-debug submit-job json files
- These files are being used to test the job queue performance with
various changes and conditions. Adding them here fo... - 12:17 am Revision 27137e55: Fix RpcResult.Raise error code
- A typo in the Raise() method of rpc.RpcResult means that any remote
errors will lack an appropriate error code; this ...
06/11/2010
- 07:06 pm Revision 20571a26: Cache a few bits of status in jqueue
- Currently each time we submit a job we check the job queue size, and the
drained file. With this change we keep these... - 05:06 pm Revision 69b03fd7: Remove unused parameter from function
- This also removes the relevant pylint disable.
No point in keeping unused parameters around: if/when we need them it'... - 05:06 pm Revision c910bccb: Fix a TODO in _QueuedJob
- Rather than raising Exception use GenericError and explain a bit better
what happened.
Signed-off-by: Guido Trotter ... - 05:06 pm Revision 57d56130: ListVisibleFiles: do optional sorting
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 05:06 pm Revision 85a1c57d: Optimize _GetJobIDsUnlocked
- Currently we sort the list of job queue files twice (once in
utils.ListVisibleFiles with sort and then later with Nic... - 05:06 pm Revision a71f9c7d: jqueue: Rename _queue_lock to _queue_filelock
- The name clarifies the difference between this and the internal lock.
Also explain a bit better what it is.
Signed-o... - 05:06 pm Revision 6358dbc2: jstore._ReadNumericFile: use utils.ReadFile
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 01:08 pm Revision ca9ec5aa: Improve import-export unittest a bit
- - Increase timeouts from 10 to 30 seconds (this still breaks when the
machine is busy, e.g. using bonnie++)
- Depen... - 01:08 pm Revision 4dd97aa1: Test client timeout for import-export daemon
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 01:08 pm Revision d6547a1c: Generate import-export unittest certs in parallel
- Generating certificates can be slow.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <... - 12:50 pm Revision bd061c35: Enforce consistency in disks and nics input dicts
- With this change unknown disk and nic parameters will be refused, rather
than silently ignored, so that one can't pas... - 12:24 pm Revision 1b67be9b: TLMigrateInstance: pass lu to _Check*
- The various _Check* helper functions expect an lu to be passed in, but
the TL is passed instead. This works... someti... - 12:23 pm Revision cdf158a8: Remove locking._CountingCondition
- This class is unused and untested. We must have forgot it around.
Signed-off-by: Guido Trotter <ultrotter@google.com... - 12:23 pm Revision 6abf7f2c: Remove the job queue drain rpc call
- This call was introduced but never used. In two years.
Since it's just creating/removing a file it can also be in sim...
06/10/2010
- 10:57 pm Revision 6df291d4: Move fake hypervisor run dir under ganeti
- This makes it uniform with the other hypervisors.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs ... - 05:45 pm Revision 7f890059: _BaseCondition: allow saving/restoring state
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 05:45 pm Revision 1a4e32d0: SharedLock _acquire_restore and _release_save
- If a shared lock is used inside a condition, we need to make sure that
it's reacquired in the same way as it was orig... - 12:55 pm Revision 66ecc479: Submit[*each*]Pending job
- This is useful so we can test both SubmitJob and SubmitManyJobs.
Signed-off-by: Guido Trotter <ultrotter@google.com>... - 12:17 pm Revision 7172f605: Add unittest for ganeti-cleaner
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
06/09/2010
- 12:40 pm Revision fc0726b9: cfgupgrade: Local variable for cluster-domain-secret filename
- This is necessary to allow cfgupgrade to work on a non-standard directory.
Signed-off-by: Michael Hanselmann <hansmi... - 12:40 pm Revision e0897adf: Start to prepare documentation for 2.2 release
- - Update NEWS file
- Remove dependency on OpenSSL (pyOpenSSL remains)
- Update manpages, fix typos and other things
...
06/08/2010
- 10:35 pm Revision 94182b63: gnt-job auto-completion: suggest "all" too
- Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 04:12 pm Revision f9323011: import/export: Allow script to predict size
- Once we have a size for an export (in the context of the
import/export daemon), we can provide the user with a
percen... - 04:12 pm Revision e6b8d02d: Show formatted ETA for disk sync and import/export
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 04:12 pm Revision 2ad5550d: backend: Enable export size prediction
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 04:12 pm Revision 1a2e7fe9: import/export: Show progress updates to user
- With this patch, we show progress updates approx. once per minute.
Signed-off-by: Michael Hanselmann <hansmi@google.... - 04:12 pm Revision c08d76f5: import/export daemon: Record amount of data transferred
- This reports the amount of data transferred and the throughput (averaged
over 60 seconds) to the master daemon. While... - 03:48 am Revision 95f490de: Optimise the Luxi.recvMsg function
- Since the current buffer cannot contain (during network reads) an EOM,
we should look for the EOM only in the newly-r... - 01:09 am Revision 04282772: Complete the client Luxi implementation
- All current Luxi calls are supported after this patch. A bug in
ArchiveJob is also fixed (Ganeti's job IDs are strings). - 12:35 am Revision 9622919d: Add support for more LUXI calls
- While not are directly useful, having them will open some possibilities
(e.g. polling for job changes in hbal's -X mo...
06/04/2010
- 08:05 pm Revision 158377f3: ensure-dirs: don't fail if no rapi log is present
- Sometimes a node has never been a master. Or ran rapi. In that case we
need to create the file (because if later rapi... - 06:05 pm Revision 92fd2250: Introduce harcdoded timeouts for each RPC call
- This patch adds a table with per-opcode timeouts. They were chosen in an
empiric, rather than scientific, way - see t... - 05:26 pm Revision e0036155: http client: support per-request read timeout
- Currently, the read timeout is hardcoded in the
HttpClientRequestExecutor class. The patch changes the timeout so tha... - 05:23 pm Revision 46a8da3b: Let daemon-utils fix the owners for ganeti-rapi
- This is a workaround until we fully switched to user separation and fixes the
owners of directories/log files so gane... - 05:23 pm Revision bbfd0568: Modify ganeti-masterd to set permission and owner of masterd-socket
- Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 05:22 pm Revision 8b72b05c: Let ganeti-rapi run under a different user/group
- Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 05:22 pm Revision 743b53d4: Make it possible to call utils.Daemonize with uid and gid to run as
- Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 05:22 pm Revision 0d150c50: Adding customized user/group as configure flags
- Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 05:17 pm Revision 664ab866: Merge branch 'devel-2.1'
- * devel-2.1:
_ExecuteKVMRuntime: fix hv parameter fun
Update FinalizeMigration docstring
LUGrowDisk: fix operat... - 04:22 pm Revision 297e6e53: _ExecuteKVMRuntime: fix hv parameter fun
- When executing the kvm runtime we were currently accessing a mix of the
parameters as configured currently on the ins... - 04:22 pm Revision fea922fa: Update FinalizeMigration docstring
- This is used not only for aborted migrations, so the docstring should
reflect that.
Signed-off-by: Guido Trotter <ul... - 04:22 pm Revision 41bbdb52: LUGrowDisk: fix operation on down instances
- Currently it's impossible to grow a disk if an instance is shutdown,
because the disk could not be assembled. Now we ... - 04:22 pm Revision ef628379: Allow disk operation to act on a subset of disks
- If the disks= parameter is passed, we can assemble/wait for
sync/shutdown only some disks belonging to an instance, r... - 04:22 pm Revision 7cf722ea: NEWS: add release date for 2.1.3
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 12:44 pm Revision f8ea4ada: utils: Add function to format seconds
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
06/03/2010
- 03:55 pm Revision 722702e3: Bump up version for the 2.1.3 release
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 03:43 pm Revision 0fb44e89: Merge branch 'devel-2.1'
- * devel-2.1:
TestAsyncUDPSocket: remove dead code and add test
TestAsyncUDPSocket: test for oversized sends
Doc... - 01:56 pm Revision 53dbf14c: import/export unittest: Improve logging and fix one race condition
- Apart from improved logging, one race condition is fixed. If
the destination's status file became available, the port... - 01:56 pm Revision 41a2e7d7: import/export unittest: Test large(r) transfer
- Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com> - 01:48 pm Revision cdd7f900: Convert ganeti-masterd's main thread to mainloop
- Not much changes with this patch. The main loop for the IOServer is
repaced by mainloop.Run() and the main thread now... - 01:48 pm Revision 495ba852: daemon.AsyncAwaker
- This new asyncore dispatcher can be used to force a thread running the
asyncore loop to awake from the select, by sig... - 01:48 pm Revision a4b605ae: daemon.AsyncStreamServer
- This is a new asyncore server which handles listening stream sockets by
calling a non-implemented function for each c... - 01:48 pm Revision b66ab629: daemon.AsyncTerminatedMessageStream
- This is the counterpart of the AsyncStreamServer can be used to handle
connected sockets returned from connected clie... - 01:48 pm Revision 18215385: Test the new streaming daemon classes
- Unittests cover AsyncStreamServer and AsyncTerminatedMessageStream with
both tcp and unix sockets.
Signed-off-by: Gu... - 12:39 pm Revision db147305: ganeti-watcher should attempt to fix ganeti-rapi
- Update ganeti-watcher so that it tests the master's RAPI port with a
simple test (in this case GetVersion). If it fai... - 12:08 am Revision 4a007641: Fix some lint errors in the unit tests
06/02/2010
- 11:55 pm Revision 683b1ca7: Change the Luxi operations structure
- Currently, we define the LuxiOp type as a simple enumeration, and leave
the arguments structure to the users of the G... - 08:55 pm Revision 95ab227e: TestAsyncUDPSocket: remove dead code and add test
- - _ThreadedClient was added on the idea of making this unittest
concurrent, which was actually never done (we could... - 08:54 pm Revision e9de7da4: TestAsyncUDPSocket: test for oversized sends
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Luca Bigliardi <shammash@google.com> - 08:39 pm Revision 1de45c78: Document the check-man change
- Since this affects developers' systems, document it in NEWS and
devnotes.rst
Signed-off-by: Guido Trotter <ultrotter... - 08:39 pm Revision 14d91053: Update NEWS for Ganeti 2.1.3
- Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com> - 06:09 pm Revision 546d7c4f: Second attempt at fixing check-man
- I was wrong, actually LANG-vs-LC_ALL only fixed one case, by mistake. To
get proper UTF-8 encoding, we need to enforc... - 05:14 pm Revision e68cb187: Fix check-man for newer man-db
- Again, check-man :)
Commit 5fa1642226 removed LC_ALL=C, since that breaks the check.
However, with no LANG/LC_* vari...
06/01/2010
- 11:51 pm Revision 9c0a748f: Fix a warning in Loader tests
- Incomplete pattern match…
- 08:54 pm Revision c088674b: Add a few Loader tests
- These are not comprehensive, but at least we have a start.
- 08:47 pm Revision 1948e5fe: Add RemoveDir utility function
- Backported from master, 72087dcd5b06c0127e2ec3bf8c80f7f54da3fb01
Signed-off-by: Balazs Lecz <leczb@google.com>
Revie... - 08:31 pm Revision ff18f526: Merge remote branch 'origin/devel-2.1'
- * origin/devel-2.1:
Explicitely return None from IgnoreSignals
AsyncUDPSocket: fix IgnoreSignals usage and test
... - 08:22 pm Revision 6e7e58b4: AsyncUDPSocket: fix IgnoreSignals usage and test
- This bug was found in the asyncore master patch series, but actually
applies to 2.1 for AsyncUDPSocket as well.
Sign... - 08:22 pm Revision 2fd7f564: Explicitely return None from IgnoreSignals
- Same result, but what happens is clearer.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael H... - 08:18 pm Revision 547a63b7: Add KVM chroot feature
- This patch adds a new boolean hypervisor parameter to the KVM hypervisor,
named 'use_chroot'.
If it's turned on for a... - 07:40 pm Revision a01b500b: utils: Add function to check whether process handles a signal
- This will be used to avoid a race condition between starting a program (dd
for import/export) and sending signals to ... - 07:40 pm Revision 855bffd2: Fix and Improve TryToRoman unittest
- 1) Don't break when the roman module is not found
2) Test that not finding the roman module doesn't make TryToRoman f... - 07:39 pm Revision 424f51ec: move-instance: Use error message instead of multiple state variables
- Until now, move-instance used different status variables: “success”,
“abort” and “error_message”. With this patch, ev... - 07:39 pm Revision ff89a747: Distribute cluster domain secret
- The cluster domain secret file was not distributed to other nodes.
Signed-off-by: Michael Hanselmann <hansmi@google.... - 01:37 pm Revision d4d1e3dd: Merge branch 'devel-2.1'
- * devel-2.1:
Convert gnt-instance list and info to use roman
gnt-cluster info --roman
FormatUidPool: provide op... - 01:25 pm Revision e2736e40: Convert gnt-instance list and info to use roman
- Finally gnt-instance has roman support as well.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Ius... - 01:25 pm Revision d729e03a: gnt-cluster info --roman
- Convert to roman (if so the user wishes) the following:
- cluster candidate size
- uid pool
- any integer be or... - 01:24 pm Revision 196ec587: FormatUidPool: provide optional roman conversion
- The convert= option of compat.tryToRoman is used to do optional
conversion without duplicating formatting code.
Sign... - 01:23 pm Revision cc5b94db: gnt-node: remove latinfriendlyfields
- Rather than relying on a static list of fields, we opportunistically
convert all integers.
Signed-off-by: Guido Trot... - 01:22 pm Revision 6396164f: Move roman conversion to compat
- The new TryToRoman function provides optional easy to use roman
conversion. Nunc cum demonstrationi unitati.
Signed-... - 12:08 pm Revision 999847c8: ssconf: error out when writing oversized files
- Since we impose a maximum limit when reading ssconf files, let's error
out when trying to write them too big, so we d... - 11:47 am Revision b9b5abcb: Add a new opcode timestamp field
- Since the current start_timestamp opcode attribute refers to the inital
start time, before locks are acquired, it's n... - 11:39 am Revision 14aeab22: Fix IgnoreSignals on socket.error
- Some confusion arose handling EINTR on this function: in python 2.6
socket.error is an IOError, and thus:
- It's an... - 11:34 am Revision c3c5dc77: Master core scalability design doc
- This initial design still lacks information about the job queue lock
contention decrease.
Signed-off-by: Guido Trott... - 11:34 am Revision 37e1e262: design-2.2: job queue lock analysis/remediation
- This builds up on the "Master core scalability design doc" detailing the
critical situations in the job queue and pro... - 11:34 am Revision e3cc4c69: reraise exceptions in async tests' error handlers
- This makes sure that any unforeseen error raises an exception rather
then just increasing a counter. It makes unittes... - 11:34 am Revision 716a32cb: Move hash functions to the compat module
- Since the hash functions' changed their module name between python 2.4
and 2.6, and we have to do an try/import/excep... - 11:34 am Revision 965d0e5b: Fix {Ignore, RetryOn}Signals on socket.error
- Some confusion arose handling EINTR on those functions: in python 2.6
socket.error is an IOError, and thus:
- It's ...
05/31/2010
- 08:17 pm Revision 2652b363: RAPI client should convert urllib2.URLError to GanetiApiError
- Signed-off-by: Tom Limoncelli <tlim@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com> - 03:16 pm Revision e43d4f9f: KVM: Migration bandwidth and downtime control
- Introduce 2 new hypervisor options, migration_bandwidth and migration_downtime
and implement KVM migration bandwidth ... - 01:02 pm Revision b73360e3: Make utils.EnsureDirs() ignore umask
- EnsureDirs() should create directories with the exact mode requested
in the arguments, but it currently applies the u...
Also available in: Atom