- Dec 16, 2009
-
-
Iustin Pop authored
-
Iustin Pop authored
* stable-2.0: Update NEWS file and release Ganeti 2.0.5 Security issue: add validation of script names Move the hooks file mask into constants.py Improve LUQueryNodes for lockless case Ship rapi.rst/rapi.html in the dist archive Conflicts: Makefile.am (reverted, not needed) NEWS (simple fix for RST-ification) configure.ac (reverted, not needed) lib/backend.py (adapted to new RPC result style) Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Dec 14, 2009
-
-
Iustin Pop authored
This patch unifies the search for external script to always go through utils.FindFile and implements in that function a restriction on valid chars in file names and (additionally) that the passed name is the basename of the final (absolute) name. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This will allow reuse of the same mask for multiple validations. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
In most uses of LUQueryNodes, we don't take a lock. This means that the instance data is not protected across GetInstanceList and GetInstanceInfo, and this can lead to instances not existing anymore. Switching to GetAllInstanceInfo means that we get a single, semi-consistent snapshot (since instances can still be modified, but it's much better). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Dec 05, 2009
-
-
Iustin Pop authored
Patch 4352bf6d changed RAPI docs to RST from the previous SGML format (the last file to be converted to RST). However, it didn't add rapi.rst to the docrst Makefile variable, and as such rapi.html was neither build nor shipped in the archive. We fix this and we also distribute doc/rapi-resources.gen since otherwise “make distcheck” has issues (since this file is built and thus lives in _built whereas rapi.rst is shipped and lives in topsrcdir). Note: yes, this means that no 2.0 release until now had a rapi.html file (in the .tar.gz archive). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Nov 26, 2009
-
-
Michael Hanselmann authored
DRBD goes into sync mode for a short amount of time after executing the "resize" command. DRBD 8.x below version 8.0.13 contains a bug whereby calling "resize" in sync mode fails. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 25, 2009
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
It can't work on older distributions where simplejson doesn't have indentation support. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
When not initialising the cluster, consider all nodes are added, so that multi-node tests (e.g. export, replace) work correctly (if there are nodes, of course). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This patch removes the quotes from CommaJoin and converts most of the callers (that I could find) to it. Since CommaJoin does str(i) for i in param, we can remove these, thus simplifying slightly a few calls. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Commit 495cfdf0 removed “nic.bridges” from the default list for bulk instance list RAPI requests. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Comparing a number with None is not a good idea: >>> (0 < None, 0 > None) (False, True) This patch also adds build-bash-completion to the list of checked Python scripts and wraps one line of more than 80 characters. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
This reverts commit 6915bc28 based on thread on ganeti-devel. Conflicts: lib/cmdlib.py (due to the error code classification, trivial) Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
By checking for this explicitly, the errors (SSLEAY_RAND_BYTES, “PRNG not seeded”) will happen in the start-up phase of the daemon and not only when executing remote procedure calls. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
Clarify the fact that temporary HV/BE params in instance start override and do not extend the configured parameters; and change the instance list headers from HVM_* to * since many of the parameters apply to KVM too. Also fix a typo in the rapi documention for '/2/nodes'. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Nov 20, 2009
-
-
Michael Hanselmann authored
This should fix an issue I've seen exactly once during testing. It might have been caused by parallel RPC calls to archive jobs. […] ganeti-noded:112 ERROR Error in RPC call […] File "/usr/lib/python2.4/site-packages/ganeti/backend.py", line 2365, in JobQueueRename utils.RenameFile(old, new, mkdir=True) File "/usr/lib/python2.4/site-packages/ganeti/utils.py", line 322, in RenameFile os.makedirs(os.path.dirname(new), mkdir_mode) File "/usr/lib/python2.4/os.py", line 159, in makedirs mkdir(name, mode) OSError: [Errno 17] File exists: '/var/lib/ganeti/queue/archive/0' Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Nov 16, 2009
-
-
Michael Hanselmann authored
For an instance with exactly one NIC: $ gnt-instance modify --net 1:ip=1.2.3.4 inst1 Failure: prerequisites not met for this operation: error type: wrong_input, error details: Invalid NIC index 1, valid values are 0 to 1 For an instance with no NIC at all, it fails with “Invalid NIC index 0, valid values are 0 to 0”. This is fixed by this patch. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
This was originally implemented in 0ce8f948 and partially rolled back in 9b65e0d4. Apart from re-adding the check, this patch does some housekeeping by renaming the “_helper” function to “_AddIpAddress”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Guido Trotter authored
(1) Both the man page and the online help report the link and mode fields, which are in the code called nic_link and nic_mode. (2) Add missing fields to the online help. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Nov 13, 2009
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
This includes a few paragraphs about daemon-util. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
This makes it easier to catch warnings. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
This is in preparation to including it into the large documentation. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Guido Trotter authored
To stay on the safe side, we check for errors in all instances, and refuse to act, reporting on the errors we found, if there are any problems. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Nov 12, 2009
-
-
Guido Trotter authored
We should match for the strings to be the same "==" not to point to the same memory location with is, or we skip the actual check. Signed-off-by:
Guido Trotter <ultrotter@google.com>
-
Guido Trotter authored
There's a bug in Ganeti 2.1 rc0 that makes nic parameters be populated from the "filled in" dict, even if we're not changing any values in them. This patch fixes the problem, by populating them from the correct (unfilled) dict. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Nov 11, 2009
-
-
Michael Hanselmann authored
Also add one item to NEWS. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This documents the new error classifier added for OpPrereqError. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
This reverts commit 52b699ec. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
- Program paths should not be --with-… options (see Autoconf docs) - Simplify checks for escape functionality - Make SOCAT_USE_ESCAPE variable a bool Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 10, 2009
-
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 06, 2009
-
-
Guido Trotter authored
We can do this by adding a new TemporaryReservationManager Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
This solves the race conditions in mac reservation, as macs are actually reserved, under the current ec id. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
In order to do this we need to pass a job id when reserving a resource. We have one during _EnsureUUIDs because we passed it in from AddNode and AddInstance. During config upgrade we use a fake job ID which we then cleanup. We can delete the _CleanupTemporaryIDs code, since the cleanup is going to be done at job finish time by mcpu. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-