Activity

From 04/24/2010 to 05/23/2010

05/22/2010

09:58 am Revision f59dce3e: Mainloop: handle SIGINT as well (and terminate)
This is needed if daemons are in the foreground, and get ctrl+c-ed by
the user. Also add unittests to make sure the c...
Guido Trotter
09:58 am Revision d021e478: SingleFileEventHandler: update comments
The comments in the SingleFileEventHandler are still confd-specific.
Update them to make them generic for any single-...
Guido Trotter

05/21/2010

06:18 pm Revision a5310c2a: Allow control of import/export compression method
For exports to/imports from the same machine, compression will
not be used anymore.
Signed-off-by: Michael Hanselman...
Michael Hanselmann
06:17 pm Revision eb630f50: Put common import/export daemon options into object
The X509 key name and CA are passed from cmdlib all the way to
the backend import/export daemon. With the addition of...
Michael Hanselmann
06:16 pm Revision 7e3c1da6: import-export daemon: Allow changing compression method
For example, exports on the same node shouldn't be compressed.
Signed-off-by: Michael Hanselmann <hansmi@google.com>...
Michael Hanselmann
02:24 pm Revision 39019f91: Merge branch 'devel-2.1'
* devel-2.1:
Add asyncnotifier unittests
Make ConfdInotifyEventHandler a library function
Comment on AsyncNotif...
Guido Trotter
01:45 pm Revision 17496050: Add asyncnotifier unittests
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Guido Trotter
01:45 pm Revision c666f1f4: Make ConfdInotifyEventHandler a library function
Cut&Paste, plus the following changes:
- The class is renamed to SingleFileEventHandler
- The monitored filename ...
Guido Trotter
01:45 pm Revision a2c965ea: Comment on AsyncNotifier upstream's availability
Since we contributed AsyncNotifier back to the upstream pyinotify
project, we'll be able, one day, to remove the gane...
Guido Trotter
01:45 pm Revision e22af31d: Remove errors.ConfdFatalError
This exception is caught, but never thrown. It became useless when we
moved confd from on/off to enabled/disabled, bu...
Guido Trotter

05/20/2010

07:45 pm Revision 3fea6959: Add more unit tests for allocation/balance
The patch adds some simple unit-tests for both the allocation function
(we can allocate small instances on an empty c...
Iustin Pop
05:53 pm Revision 85dbfd78: TestMainloop: test scheduler priorities as well
By using enterabs we can schedule events at the same time, which will
then be sorted by priority.
Signed-off-by: Gui...
Guido Trotter
05:52 pm Revision 19ad29d2: Fix race condition in mainloop unittest
Currently, in testDeferredCancel if the self._CancelEvent are entered
more than 0.3 seconds after the _SendSig have b...
Guido Trotter
05:52 pm Revision c6987b16: TestMainloop.testReRun
Currently we never do that, but it's nice to know we can restart the
mainloop, after termination.
Signed-off-by: Gui...
Guido Trotter
05:52 pm Revision 4db33137: Add AsyncUDPSocket tests
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Guido Trotter
05:52 pm Revision 1118ec44: Add initial mainloop unittests
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Guido Trotter
05:50 pm Revision 53726a00: devel/review: make the range argument optional
Rather than calling devel/review with from..to target we can just use
target, and assume target..HEAD as the range. T...
Guido Trotter
01:31 pm Revision 3ce8009a: Move two functions from hspace to Cluster.hs
This is done so we can test a longer pipeline. Iustin Pop
01:31 pm Revision 8423f76b: Make CStats instance of show
This helps debugging via ghci. Iustin Pop
12:19 pm Revision ada2fc6d: Clarify options related to name passing
After the name patches, we can pass in either the short or the full
name, so update the hbal man page accordingly.
Iustin Pop
12:19 pm Revision 381be58a: Another haddoc fix…
Iustin Pop
12:07 pm Revision 49f9627a: Change some test constants
First, we reduce the max size of the disks, since Int on 32bits will
overflow for big simulated clusters. This is a r...
Iustin Pop
12:07 pm Revision 8bcdde0c: Add a new node/instance field
This new field ('alias') will hold the shortened/beautified display
name. When resetting the name, the alias is reset...
Iustin Pop
12:07 pm Revision 3e4480e0: Stop modifying names for internal computations
Currently the name used internally is modified and holds the shortened
name of the nodes/instances. This has caused i...
Iustin Pop
12:07 pm Revision c854092b: Accept both full and short names in CLI
This patch introduces some new functionality in the base Element type
and in Container which supports searching for a...
Iustin Pop

05/19/2010

04:28 pm Revision 3ed46bb7: Fix some haddock comments
Iustin Pop
04:09 pm Revision 8fcf251f: Add more unit tests
This increases the overall coverage by 5%-10% (depending on coverage
type). Some modules are still not unittested at ...
Iustin Pop
04:08 pm Revision 1e3dccc8: Shuffle some constants around
… and export more functions. This will help with unit testing. Iustin Pop

05/18/2010

07:31 pm Revision f4c0b8c5: Remove the noLimit values and always use limits
This patch moves from allowing no-limits for disk/cpu ratios, and always
use a real limit. For disk, it's simple sinc...
Iustin Pop
06:53 pm Revision 6bf273d5: Add tool to move instances between clusters
This is a first version of the instance move tool and it supports moving
1..N instances from one cluster to another. ...
Michael Hanselmann
06:53 pm Revision ebeb600f: RAPI changes for instance moves
Two new resources are added:
- /2/instances/$name/prepare-export
- /2/instances/$name/export
The documentation for t...
Michael Hanselmann
06:53 pm Revision 9bf56d77: Implement opcode changes for remote-import
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
06:53 pm Revision 4a96f1d1: Implement opcode changes for remote-export
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
06:53 pm Revision 1410fa8d: Add opcode to prepare export
To prepare a remote export, the X509 key and certificate need to be generated.
A handshake value is also returned for...
Michael Hanselmann
05:14 pm Revision b38599d8: Merge branch 'devel-2.1'
* devel-2.1:
Abstract the LUXI eom into a constant
KVM: vhost net acceleration support
Conflicts:
lib/luxi.py
...
Guido Trotter
04:36 pm Revision d88eba85: Fix distcheck broken by check-cert-expired unittest
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
03:40 pm Revision c6ccba7e: ganeti-cleaner: Remove expired X509 certs
Importing/exporting an instance to a remote machine creates X509
certificates which expire after some time. They need...
Michael Hanselmann
02:08 pm Revision 25942a6c: Abstract the LUXI eom into a constant
Currently the EOM terminator is hardcoded on the server side, and is
customizable in the Transport object (with the d...
Guido Trotter
02:08 pm Revision fbe27e2b: KVM: vhost net acceleration support
This will only work on patched or newer (>= 2.6.34) kernels and with a
patched version of qemu-kvm.
Signed-off-by: G...
Guido Trotter
02:06 pm Revision e9f637cb: Merge branch 'devel-2.1'
* devel-2.1:
ganeti-cleaner: Write log file with removed files
RAPI client: Handle urllib2.HTTPError and raise Ga...
Michael Hanselmann
01:55 pm Revision f6781abf: ganeti-cleaner: Write log file with removed files
Logfiles can be useful for debugging.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop ...
Michael Hanselmann
01:30 pm Revision dfb34028: Add function to read cluster domain secret
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: ...
Michael Hanselmann
01:11 pm Revision 895eb320: LUExportInstance: Remove instance only if export was successful
Until now, the instance was always removed (if asked for by the
user). In case of export errors however, it shouldn't...
Michael Hanselmann
01:10 pm Revision 5ed59e1e: RAPI client: Handle urllib2.HTTPError and raise GanetiApiError
This allows users of the RAPI client to catch GanetiApiError for all HTTP
errors.
Signed-off-by: Michael Hanselmann ...
Michael Hanselmann

05/17/2010

05:40 pm Revision 317b1040: hspace: change handling of N+1 bad clusters
Currently we just print a fake result and exit early. This is bad, since
it doesn't use the same codepaths for all th...
Iustin Pop
02:17 pm Revision 31ff0247: Merge branch 'devel-2.1'
* devel-2.1:
RAPI: /2/{nodes,instances}/$name should return 404 for unknown items
ganeti-masterd: Improve error l...
Michael Hanselmann
01:52 pm Revision e8ebbd2b: RAPI: /2/{nodes,instances}/$name should return 404 for unknown items
Currently they return a 500 Server Error, not really useful
for detecting nonexistent items.
Signed-off-by: Michael ...
Michael Hanselmann
01:52 pm Revision d2fc26dd: ganeti-masterd: Improve error logging for client requests
Ganeti errors should also be logged with a backtrace.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed...
Michael Hanselmann
01:52 pm Revision f02fbd30: Return disk_template from LUQueryInstanceData
Inter-cluster instance moves need the disk template. As they run
LUQueryInstanceData to get an instance's details, th...
Michael Hanselmann
01:52 pm Revision 591e5103: RAPI client: Rename Get{Node,Instance}Info, add new GetInstanceInfo
GetInstanceInfo should return the resource /2/instances/$name/info,
but so far it returns /2/instances/$name. The sam...
Michael Hanselmann
01:52 pm Revision f961e2ba: RAPI client: Log request to be made
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
01:52 pm Revision d32f3b81: Add missing documentation for RAPI instance creation mode
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
01:33 pm Revision a3a5f850: Add checks for master IP in cluster verify
This also updates a comment in the unittest for utils.py. We unittest
the new function for two things: correct report...
Iustin Pop

05/14/2010

07:07 pm Revision c7406bbe: RetryOnSignal: handle socket error as well
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Guido Trotter
07:03 pm Revision b2efcd70: Remove unused import from daemon.py
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Luca Bigliardi <shammash@google.com>
Guido Trotter
06:46 pm Revision 48bf6352: Add a forgotten comment about overriding a method
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Guido Trotter
06:46 pm Revision 232144d0: utils.IgnoreSignals
Remove duplicate code between a couple of asyncore related function by
having a function in charge of handling EINTR ...
Guido Trotter
06:46 pm Revision 3660fcf5: AsyncUDPSocket.handle_error
By overriding the default asyncore handle_error (which closes the
socket) with our own version, which logs what happe...
Guido Trotter
12:09 pm Revision bebf68d3: ganeti-noded: add the --no-mlock option
While mlock on noded is definitely good in most situations, there are
some - namely my laptop - where it has no benef...
Guido Trotter
12:08 pm Revision 2e98275a: Describe more ganeti-noded options in the manpage
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Luca Bigliardi <shammash@google.com>
Guido Trotter

05/13/2010

07:40 pm Revision 1c54156d: Merge branch 'devel-2.1'
Conflicts:
daemons/ganeti-noded
lib/daemon.py
lib/rapi/baserlib.py
lib/rapi/rlib2.py
lib/utils.py
Signed-off-by...
Luca Bigliardi
07:11 pm Revision 20601361: Fix some pylint warnings
Disable warnings for:
- except Exception,
- use of __errno_location,
- redeclaration of handleError()
Signed-off-by:...
Luca Bigliardi
06:48 pm Revision 6ed0bbce: Fix logging string format
Fix this pylint warning:
[W6501, Mlockall] Specify string format arguments as logging function parameters
Signed-off...
Luca Bigliardi
06:25 pm Revision 05b35f15: Fix Filehandler / FileHandler typo
Fix typo spotted by pylint:
E1101:2095:LogFileHandler.handleError: Module 'logging' has no 'Filehandler' member
Sign...
Luca Bigliardi
04:58 pm Revision 924e95f9: QA: Test instance creation/deletion via RAPI client
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Michael Hanselmann
04:58 pm Revision 8a47b447: RAPI client: Implement instance creation
Currently this only supports the new instance creation request data
format version 1, but support for the old version...
Michael Hanselmann
04:58 pm Revision 6395cebb: RAPI: Add new request data format for instance creation
As mentioned in commit d975f482d, the current way of creating an
instance via RAPI is not very flexible. With this pa...
Michael Hanselmann
04:58 pm Revision 5ef5cfea: Mention RAPI client in documentation
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Michael Hanselmann
04:58 pm Revision af6433c6: rapi.baserlib: Add function to check variable type
Also add a separate function to retrieve body parameters. Having
it separate (independent of a class instance) will m...
Michael Hanselmann
04:57 pm Revision 7eac4a4d: Add new /2/features RAPI resource
The /2/features RAPI resource can be used to detect optional
features implemented by the RAPI server. This will be us...
Michael Hanselmann
04:32 pm Revision 565083ef: Use console_logging in node daemon
Node daemon logs will be printed on system console if writing on the log file
fails.
Signed-off-by: Luca Bigliardi <...
Luca Bigliardi
04:32 pm Revision ff917534: Daemons conditionally setup console logging
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Luca Bigliardi
04:32 pm Revision 49e60a28: Use LogFileHandler conditionally in SetupLogging
Add a parameter to SetupLogging to use LogFileHandler (default is off)
Signed-off-by: Luca Bigliardi <shammash@googl...
Luca Bigliardi
04:32 pm Revision de3b8e39: Introduce LogFileHandler class
Add a log handler class which logs to /dev/console in case of logging errors.
Signed-off-by: Luca Bigliardi <shammas...
Luca Bigliardi
04:32 pm Revision 481d47e8: Add /dev/console constant
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Luca Bigliardi
04:32 pm Revision 1af6ac0f: Lock PowercycleNode child in memory
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Luca Bigliardi
04:31 pm Revision 38b77287: Lock node daemon children in memory
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Luca Bigliardi
04:31 pm Revision 02bea2fc: Lock node daemon in memory
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Luca Bigliardi
04:31 pm Revision 4b6fa0bf: Introduce Mlockall()
Add Mlockall() utility to lock current process' virtual adress space into RAM.
Signed-off-by: Luca Bigliardi <shamma...
Luca Bigliardi

05/12/2010

06:22 pm Revision aa355c79: Node daemon availability improvements proposal
Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Luca Bigliardi
05:30 pm Revision 12eff9b9: Fix wrong variable name in commit d975f482
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
02:54 pm Revision d975f482: RAPI: Add initial support for instance creation request version
The way the resource /2/instances expects its request data (e.g.
instance name, disks, NICs) to be formatted in a dic...
Michael Hanselmann
02:40 pm Revision 40523663: Merge branch 'devel-2.1'
* devel-2.1:
Convert some ReadFile calls to ReadOneLineFile
utils.ReadOneLineFile()
Remove oneline= parameter f...
Guido Trotter
02:10 pm Revision 682f7601: Convert some ReadFile calls to ReadOneLineFile
For passwords we require strict oneliners, we're a bit more lax with pid
and uid files.
Signed-off-by: Guido Trotter...
Guido Trotter
02:10 pm Revision e587b46a: utils.ReadOneLineFile()
Read the first non-empty file line. When strict is set, abort if more
than one line is non-empty. Some unittests insp...
Guido Trotter
02:01 pm Revision 582ed043: Remove oneline= parameter from utils.ReadFile
This partially reverts commit b774bb106cc28d008e790ad2666eb64c76866fa0.
Unittests unrelated to that particular functi...
Guido Trotter
01:48 pm Revision c4b2b2e2: INSTALL: update hypervisor requirements
Xen: Just specify 3.0 or above as a requirement, as versions above 3.1
have been tested and work fine with Ganeti. Al...
Guido Trotter
01:48 pm Revision a425810f: install.rst: update os version and add KVM notes
The 0.7 version was just an example, but since we're on 0.9 now,
updating the number cannot be wrong. The new admonit...
Guido Trotter
01:41 pm Revision 0d9bc5d2: RAPI client: Fix SSL error reporting for real
My previous patch, commit 857705e8, helped in one particular
situation where the exception didn't contain any argumen...
Michael Hanselmann

05/11/2010

09:25 pm Revision 5e26633b: Merge branch 'devel-2.1'
* devel-2.1: (29 commits)
RAPI client: Improve SSL error reporting
RAPI client: Don't check node role in client
...
Michael Hanselmann
08:28 pm Revision 857705e8: RAPI client: Improve SSL error reporting
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Michael Hanselmann
08:27 pm Revision 1068639f: RAPI client: Don't check node role in client
Only the server knows which node roles can be set via RAPI.
Constants are provided for convenience.
Signed-off-by: M...
Michael Hanselmann
08:27 pm Revision bfc2002f: RAPI client: Update ReplaceInstanceDisks
- The RAPI client shouldn't check the replacement mode as only
the server knows which ones are valid (constants are...
Michael Hanselmann
08:27 pm Revision fde28316: RAPI client: Fix behaviour of “allocatable” storage flag
When modifying a storage unit, the “allocatable” flag should default
to “no modification”. This replicates the behavi...
Michael Hanselmann
08:27 pm Revision 10f5ab6c: RAPI client: Encode boolean and None query values
Boolean values must be passed as 0 or 1. None should be an empty
value ("").
Signed-off-by: Michael Hanselmann <hans...
Michael Hanselmann
08:27 pm Revision 75f53ffe: RAPI client: No longer check storage type locally
Only the RAPI server (actually masterd) knows which storage types
are valid. The exception can no longer be raised as...
Michael Hanselmann
08:27 pm Revision a198b2d9: RAPI client: Add constant for RAPI version
This reverts a60e3cb0a partially by moving the RAPI version into a constant.
Signed-off-by: Michael Hanselmann <hans...
Michael Hanselmann
06:04 pm Revision 2771835c: RAPI QA: Use RAPI client
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
06:04 pm Revision 20b509de: Add RAPI client utility module with RAPI PollJob function
The RAPI client module shouldn't depend on any Ganeti module, yet it's
useful to have some Ganeti-specific code, like...
Michael Hanselmann
06:04 pm Revision dfc8ad25: RAPI client: Don't assume job IDs to be numeric
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: David Knowles <dknowles@google.com>
Michael Hanselmann
06:04 pm Revision 502f5236: QA: Restore RAPI cert after “gnt-cluster renew-crypto”
The RAPI tests will depend on the certificate.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iu...
Michael Hanselmann
06:04 pm Revision 49d50e52: QA: Add function create temporary backup file
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:59 pm Revision 8a019a03: RAPI client: Include HTTP error code in GanetiApiError exception
Having the HTTP error code allows users of the class to act differently based
on the error code.
Signed-off-by: Mich...
Michael Hanselmann
05:58 pm Revision de4f53e6: Support different HTTP error codes in RAPI client unittest mock
This allows testing error conditions (e.g. if a job wasn't found).
Signed-off-by: Michael Hanselmann <hansmi@google....
Michael Hanselmann
05:56 pm Revision 09127904: RAPI client: Fix error message for unsupported methods in unittest
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: David Knowles <dknowles@google.com>
Michael Hanselmann
05:31 pm Revision d9b67f70: RAPI client: Allow waiting for job changes
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:31 pm Revision 793a8f7c: RAPI: Allow waiting for job changes
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
05:31 pm Revision cf9ada49: RAPI client: Rename “DeleteJob” to “CancelJob”
Jobs can't be deleted, but cancelled (even though the HTTP method
“DELETE” is used).
Signed-off-by: Michael Hanselma...
Michael Hanselmann
05:31 pm Revision cfc03c54: RAPI client: Various code style changes
- Replace hardcoded values with constants
- Code formatting
- Exception messages without periods and fixed string for...
Michael Hanselmann
05:31 pm Revision 752df8bb: RAPI client: Add missing unittest for RepairNodeStorageUnits
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: David Knowles <dknowles@google.com>
Michael Hanselmann
05:30 pm Revision 768747ed: RAPI client: Always pass _SendRequest args as positional
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: David Knowles <dknowles@google.com>
Michael Hanselmann
05:29 pm Revision ccd6b542: RAPI client: Simplify URL construction
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: David Knowles <dknowles@google.com>
Michael Hanselmann
05:29 pm Revision d3844674: RAPI client: Instantiate JSON encoder only once
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: David Knowles <dknowles@google.com>
Michael Hanselmann
05:29 pm Revision cd577680: RAPI client: Always return job ID
Even removing tags returns a job ID.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: David Knowle...
Michael Hanselmann
05:27 pm Revision a60e3cb0: RAPI client: Hardcode version in URLs
If the version changes, the API is likely to change as well. Not
having to ask for the version first makes the code s...
Michael Hanselmann
05:27 pm Revision 9279e986: Remove httplib2 dependency from ganeti.rapi.client
- It's possible to implement all functionality in ganeti.rapi.client
using Python's standard modules httplib and ur...
Michael Hanselmann
02:01 pm Revision b774bb10: utils.ReadFile: Add parameter to read only one line
Reading only one line is useful for reading passwords from files. This
also adds unittests for utils.ReadFile.
Signe...
Michael Hanselmann
11:48 am Revision 95f84636: Fix tiny typo in cluster verify
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Iustin Pop

05/10/2010

07:21 pm Revision dcaabc4f: Fix import/export
63bcea2a5 added file checks for import/export, but unfortunately they
were broken.
Signed-off-by: Michael Hanselmann...
Michael Hanselmann
05:17 pm Revision 4e338533: cli: Make PollJob generic to support other protocols
By separating the LUXI-specific code and stdio-related code
into separate classes, we can make cli.PollJob protocol-
...
Michael Hanselmann
12:44 pm Revision 01144827: Merge branch 'devel-2.1'
* devel-2.1: (22 commits)
NEWS: fix empty lines
Fix a unittest name and docstring
Force ssh to allocate a tty
...
Guido Trotter
12:23 pm Revision 05489142: Fix a unittest name and docstring
The docstring has been copied by the name, but the name reports a
misspell of the function it is actually testing.
S...
Guido Trotter
12:23 pm Revision 507fd05a: NEWS: fix empty lines
Make sure there are exactly two empty lines between different versions
(rather than 1 or 3).
Signed-off-by: Guido Tr...
Guido Trotter
12:15 pm Revision f724a702: Force ssh to allocate a tty
This is required to avoid the
"Pseudo-terminal will not be allocated because stdin is not a terminal."
ssh error mess...
Balazs Lecz
12:05 pm Revision 99729b66: Fix a unittest docstring
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Guido Trotter
11:56 am Revision 40bc67e1: Retry{Again,Timeout}: explain reraising
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Guido Trotter
11:56 am Revision 5ef5ea45: IsProcessAlive: retry stat() a few times
On multiprocessor dom0 stat() on /proc can sometimes return EINVAL.
Before giving up, we try a few times to get a con...
Guido Trotter
11:56 am Revision 506be7c5: utils.Retry: pass up timeout arguments
If Retry has to fail with RetryTimeout, it might be useful to pass the
Retry argument to RetryTimeout, to help debugg...
Guido Trotter
11:56 am Revision 45cc4913: Add a few Retry unittests
Check that Retry actually times out, and actually retries.
Signed-off-by: Guido Trotter <ultrotter@google.com>
Revie...
Guido Trotter

05/07/2010

05:25 pm Revision 036c7f68: Merge branch 'stable-2.1' into devel-2.1
* stable-2.1:
Bump version for 2.1.2.1 release
Update NEWS for Ganeti 2.1.2.1
KVM: only export instance tags if...
Guido Trotter
05:05 pm Revision 462c9bcf: Bump version for 2.1.2.1 release
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Guido Trotter
05:05 pm Revision 23f983f4: Update NEWS for Ganeti 2.1.2.1
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Guido Trotter
04:14 pm Revision 1cc831ea: KVM: only export instance tags if present
Currently non-tagged instances fail starting with a TypeError.
Signed-off-by: Guido Trotter <ultrotter@google.com>
R...
Guido Trotter
02:34 pm Revision 5bae14d9: ssh.GetUserFiles: move to EnsureDirs
We also create a generic SECURE_DIR_MODE constant, rather than
hardcoding 0700 in the code.
Signed-off-by: Guido Tro...
Guido Trotter
02:34 pm Revision 98c98ab9: Hypervisors: use utils.EnsureDirs
Swap a few os.mkdir calls with utils.EnsureDirs
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Bal...
Guido Trotter
02:34 pm Revision 0a865080: backend: remove a couple of useless mkdir calls
Those directories must exist for the node daemon to run (it's in the
node daemon's list of ensured directories) and t...
Guido Trotter
02:34 pm Revision 5a062513: daemon.GenericMain: fix docstring
The docstring reports a wrong type for the "dirs" argument. Fixing.
Signed-off-by: Guido Trotter <ultrotter@google.c...
Guido Trotter
02:34 pm Revision c33549ef: jstore: use EnsureDirs, and add more constants
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Balazs Lecz <leczb@google.com>
Guido Trotter
11:35 am Revision ace6cbe8: Bump version for 2.1.2 release
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Iustin Pop

05/06/2010

12:57 pm Revision ba538816: Update NEWS file for 2.1.2
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido ...
Iustin Pop

05/05/2010

03:31 pm Revision bdc93557: Add dates to the NEWS file
Just for easier history digging…
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter...
Iustin Pop
01:20 pm Revision 8cb70e56: RAPI QA: Test instance creation/removal via RAPI
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Michael Hanselmann
01:20 pm Revision 94e63ca1: RAPI QA: Support for request body
- Add support for sending JSON-encoded body to RAPI daemon
(required to test more complex resources)
- Expand names...
Michael Hanselmann

05/04/2010

08:13 pm Revision f2f88abf: Small fixes for RAPI client
- Always check SSL certificate for validity
- Actually JSON-encode HTTP content
Signed-off-by: David Knowles <dknowl...
David Knowles
03:39 pm Revision 63bcea2a: backend: Check paths and always write CA file for import/export daemon
Once the import/export daemon uses separate users, the node daemon file (which
is used for intra-cluster transfers) m...
Michael Hanselmann
03:38 pm Revision 3718bf6d: Add optional “salt” argument to utils.{,Verify}Sha1Hmac
We're using salted hashes all over the place.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Gui...
Michael Hanselmann
03:38 pm Revision 615aaaba: Use utility functions for HMAC
HMAC will be used in more places. Centralizing some parts can't hurt.
Signed-off-by: Michael Hanselmann <hansmi@goog...
Michael Hanselmann
03:38 pm Revision 387794f8: LUExportInstance: Move exporting code to helper class
This will simplify the implementation of intra-cluster instance
exports and reduces the number of local variables in
...
Michael Hanselmann
03:37 pm Revision c1e7897d: Merge branch 'devel-2.1'
* devel-2.1:
cfgupgrade: allow working with relative paths
Cleanup /etc/hosts during node removal
verify cluste...
Michael Hanselmann
02:42 pm Revision e2436511: Fix hspace's KM metrics
We returned the KM_POOL_* metrics as the final state, not as the delta
between the final and the initial state.
Iustin Pop

05/03/2010

06:27 pm Revision 0cddd44d: cfgupgrade: allow working with relative paths
Since utils.WriteFile requires an absolute path, cfgupgrade needs to
normalize the directory it is given.
Signed-off...
Iustin Pop
06:27 pm Revision 745c878a: qa: enable early release during parallel burnin
With this, the burnin sequence on big clusters should be (much?) faster.
The patch also fixes the parallel setting (b...
Iustin Pop
06:27 pm Revision cf29cfb6: Change the migration message
Let's remove the experimental message (the Ganeti side is stable
nowadays) and replace it with a warning about possib...
Iustin Pop
06:27 pm Revision 7672a621: Cleanup /etc/hosts during node removal
It seems that commit d8470559 dropped the cleanup of /etc/hosts when a
node is removed from the cluster. I don't know...
Iustin Pop
06:27 pm Revision 58385fad: verify cluster: check /etc/hosts consistency
If we are told to modify /etc/hosts, then verify its consistency during
cluster verify.
Signed-off-by: Iustin Pop <i...
Iustin Pop
06:14 pm Revision 71d23b33: Fix pylint 0.20.0 warnings
These seem to be wrong, possibly a regression in pylint.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: ...
Iustin Pop

04/29/2010

04:30 pm Revision 24d70417: Move cmdlib._VerifyCertificate to utils
This function will also be useful for inter-cluster instance
moves for verifying certificates.
Signed-off-by: Michae...
Michael Hanselmann

04/28/2010

02:57 pm Revision 87e510fd: KVM: make tags available in KVM_NET_SCRIPT
Make instance tags available as a space-separated list during the execution of
the network setup script. This allows ...
Apollon Oikonomopoulos
02:57 pm Revision 1c69ad80: Remove "ssconf.CheckMasterCandidate"
This function is not used anymore, so there's no point in keeping it
around.
This reverts commit 3f71b464ad5cdd1f1b5...
Guido Trotter

04/27/2010

05:22 pm Revision 9d198e6f: Improve import/export daemon tests
- Progress messages
- Log output on errors
- Listen timeout tests
Signed-off-by: Michael Hanselmann <hansmi@google.c...
Michael Hanselmann
05:22 pm Revision 043f2292: Retry connection in import-export daemon
Until now, exactly one attempt was made to establish a connection.
If it failed, the whole import/export for the disk...
Michael Hanselmann
05:22 pm Revision 29da446a: Use new class for wakeup file descriptor in import/export daemon
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
Michael Hanselmann
05:22 pm Revision b9768937: Add wrapper class for signal.set_wrapper_fd
Managing file descriptors is always a bit tricky. Having this in a separate
class is better.
Signed-off-by: Michael ...
Michael Hanselmann
05:22 pm Revision 4ca693ca: Move some code into separate class in import/export daemon
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
Michael Hanselmann

04/26/2010

06:02 pm Revision b1ddaad9: Update NEWS file for the 0.2.5 release
Iustin Pop
02:30 pm Revision 1077f25c: Merge branch 'devel-2.1'
* devel-2.1:
masterd: Log PID, UID and GID of connected client
qa: Use qa_utils.UploadFile to upload rapi_users f...
Michael Hanselmann
« Previous
Next »
 

Also available in: Atom