- Jan 06, 2012
-
-
Michael Hanselmann authored
Commit 601dfcbb made some changes to the default encoders. This made “ConfigRunner.call_upload_file” fail due to a missing encoder. This patch applies the necessary changes to ConfigRunner and updates the unittest for “call_upload_file”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Guido Trotter authored
It forgot about one argument. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
* devel-2.5: KVM: support version reported by 1.0 doc/admin: Clarify archived jobs Conflicts: NEWS: trivial Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Use fstat(2) on the file handle instead of doing a separate stat(2). Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
“FileStatHelper” can be used together with “ReadFile” to a file's status while it's opened. This avoids certain race conditions. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
After some preparing patches this unittest can finally be added. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Instead of receiving the whole masterd context, it only gets the configuration and the lock monitor callback. This simplifies unittesting. Additionaly, two new arguments for testing are added. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This patch adds a number of unittests for the RPC client base class. Some small changes were necessary in “rpc.py” to allow for better testing. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Just an additional check, useful in unittests. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
“assert” is a statement, not a function. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
* stable-2.5: KVM: support version reported by 1.0 Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Andrea Spadaccini <spadaccio@google.com>
-
Guido Trotter authored
- Always two empty lines before a version. - Standardize how version names should be called. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
This of course was working for all the rcs, but broke with 1.0 itself. In addition: - split between running kvm --version and parsing its output - unittest parsing for various known --help outputs - updated NEWS file - happy 2012 wishes - the hope to finish this patch before it's time to say happy easter :) Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jan 05, 2012
-
-
Andrea Spadaccini authored
Fix an error in the disk parameters tests (the arguments to gnt-cluster were not passed correctly) and move them to separate functions. Signed-off-by:
Andrea Spadaccini <spadaccio@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Reword a bit, capitalize “SSH”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
With this change it's possible to powercycle nodes marked as offline. Of course the node might not be running the node daemon anymore. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
This is needed to powercycle a node marked offline. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This adds support for a callback returning name resolver options. This is required for powercycling offline nodes. While it would be possible to implement this using a separate RPC client class, doing so would require some code duplication with the standard “RpcRunner” class. The callback can generate the options based on the call arguments. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
It is always used and can be set to “None” if intended. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jan 04, 2012
-
-
René Nussbaumer authored
On my work for instance policies we decided not to overload --force more, instead we go with a new flag --ignore-ipolicy. This is just a small patch to reflect this decision. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Dec 22, 2011
-
-
Bernardo Dal Seno authored
autotools/testrunner was missing in distcheck. Now some changes from 70041061 have been reverted, and testrunner is not built anymore. coverage now uses fakeroot when needed. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Running “make -jN distcheck” for any N > 1 would reliably break when building the RPC client wrappers. This was due to wrong dependencies in Makefile.am, fixed by this patch. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com> Signed-off-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Also mention that archived jobs can be viewed using “gnt-job info”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
* devel-2.5: jqueue: Factorize checking job processor's result jqueue unittest: Rename simple fake-job class jqueue: Fix epylint errors introduced in 37d76f1e jqueue: Fix deadlock between job queue and dependency manager locking: Add “__repr__” to SharedLock and PipeCondition daemon.GenericMain: Don't generate backtrace on conflicting daemons utils.io.WritePidFile: Improve error reporting utils.ListVisibleFiles: Hide “lost+found” directories Fix race condition in test for *FileID functions Conflicts: lib/utils/io.py: Trivial Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
* stable-2.5: jqueue: Fix epylint errors introduced in 37d76f1e jqueue: Fix deadlock between job queue and dependency manager Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
I had an idea for improving locking performance. To see if it worked I wrote this tool. Unfortunately the idea didn't quite work (broke unittests left and right), but the tool is still handy for evaluating future changes to the “SharedLock” class. It is not installed or run at build/test time. In its current form it is intended for manual use. Example output: --- Total number of acquisitions: 32642 Per-thread acquisitions: Thread 0: 6536 (20.0%) Thread 1: 6488 (19.9%) Thread 2: 6536 (20.0%) Thread 3: 6529 (20.0%) Thread 4: 6553 (20.1%) Benchmark CPU time: 5.010s Average time per lock acquisition: 0.15348ms Process: User time: 4.160s System time: 1.030s Total time: 5.190s --- Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This allows for more unittesting. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Also add a parameter for priority, to be used in an upcoming patch. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Bernardo Dal Seno authored
When Ganeti was compiled with the option of running as a different user/group, the group ownership of /etc/hosts was set to gnt-daemons. Now permissions for /etc/hosts are preserved (or set correctly). Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Bernardo Dal Seno authored
These tests need fakeroot. If it's not present, they are not run (they don't fail). Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Bernardo Dal Seno authored
Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Bernardo Dal Seno authored
Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Bernardo Dal Seno authored
Tests ending in "-runasroot" or "-runasroot.py" are run through fakeroot, so activity that needs root privileges can be tested. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Dec 21, 2011
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
Even for a small 4-node node-group, this reduces the payload of this RPC call by half for each node; for a big node group, previous testing (using a different patch) showed a general reduction in traffic over the entire cluster verify from 9MB to ~2MB. We only need to change the RPC call, not its return value, since that was already in an "optimised" form. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-