- Aug 19, 2010
-
-
Iustin Pop authored
Based on manual inspection (that the command only does a submit of some jobs/opcodes), we re-add the dry-run option on a subset of the existing commands. A few more commands could use dry-run, but the code doesn't deal nicely with no results, so fixing those is left for later patches. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Currently cli.py unconditionally adds the dry-run option. This patch disables this, and exports dry-run as a normal option. The other alternative I tried to implement (adding a new fake option for disabling the auto-add per individual command) would require changes in more places, as the list of options is no longer a homogeneous list. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
These commands use or display the result from the LU, so in case of dry-run, they will crash or display just 'None'. At least checking that the result is 'true' (in the boolean sense) will make them work better. As for gnt-os modify, it didn't pass the 'opts' parameter properly to SubmitOpCode, so the dry-run option was silently ignored. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
With the job queue changes for Ganeti 2.2, watched and queried jobs are loaded directly from disk, rendering the in-memory “lock_status” field useless. Writing it to disk would be possible, but has a huge cost at runtime (when tested, processing 1'000 opcodes involved 4'000 additional writes to job files, even with replication turned off). Using an additional in-memory dictionary to just manage this field turned out to be a complicated task due to the necessary locking. The plan is to introduce a more generic lock debugging mechanism in the near future. Hence the decision is to remove this field now instead of spending a lot of time to make it working again. 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>
-
Guido Trotter authored
* devel-2.1: Don't ignore secondary node silently Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
Currently on non-mirrored disk templates the secondary node is ignored silently. This patch adds a check for this case, and warns the user should this be happening. This solves issue 113. The patch also moves a prereq check to an argument check. This is ok because the iallocator framework already checks it has a secondary node, when it needs one. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
etags has cannot properly identify the scripts/gnt-* files as Python, so we statically force the language to Python. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Aug 18, 2010
-
-
Guido Trotter authored
* devel-2.1: Fix --master-netdev arg name in gnt-cluster(8) Restore 'tablet mouse on vnc' behavior Document the usb_mouse hv parameter Revert "Add -usbdevice tablet to KVM when using vnc" Conflicts: man/gnt-instance.sgml - merge Signed-off-by:
Guido Trotter <ultrotter@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
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
- Inconsistencies - Missing types Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Test multiple opcodes, also with failure. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
When an opcode fails, the job queue would leave following opcodes as “queued”, which can be quite confusing. With this patch, they're all marked as failed and assertions are added to check this. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This is a simplified version of a patch I sent earlier to make sure the job file is only written once with a finalized status. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Aug 17, 2010
-
-
Michael Hanselmann authored
We can also check when the lock status is updated. This will improve job cancelling. 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
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>
-
Iustin Pop authored
* devel-2.1: Fix path in ganeti-rapi man page Adjust message in case ~/.ssh is no directory Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This patch reintroduces the live parameter, for backwards compatibility at the Luxi level. This way, clients can work transparently with both 2.1 and 2.2, even though sub-optimally. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
This fixes Issue 114. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
We needed to revert commit 5b062a58 because it was in conflict with the usb_mouse hv parameter. Here we reintroduce its functionality only when usb_mouse is not specified. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
This reverts commit 5b062a58. This fixes issue 109. The mouse type can be set with the usb_mouse hv parameter. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Aug 16, 2010
-
-
Michael Hanselmann authored
This takes care of issue 116. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Aug 13, 2010
-
-
Michael Hanselmann authored
The workerpool should not keep any reference to task arguments after they were processed by RunTask. Doing so led to jobs being cached by the job queue's WeakValueDictionary for longer than they should've been. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Manuel Franceschini <livewire@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Manuel Franceschini <livewire@google.com>
-
- Aug 10, 2010
-
-
Michael Hanselmann authored
“gnt-backup export” requires the target node. Until now, the master daemon would complain that the “parameter 'OP_BACKUP_EXPORT.target_node' fails validation”. With this patch, an additional check is done in the client program. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Manuel Franceschini <livewire@google.com>
-
Michael Hanselmann authored
_DiskTransferPrivate takes three parameters, not two. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Manuel Franceschini <livewire@google.com>
-
Michael Hanselmann authored
Use actual path, not something hardcoded. 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>
-
Michael Hanselmann authored
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
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
With this patch, a new PycURL object will be created for each request. This should make the RAPI client safe for simultaneous calls from multiple threads. Unittests are adjusted accordingly. An unnecessary variable assignment is also removed from the unittest script. This patch survived a small QA and unittests. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Aug 09, 2010
-
-
Manuel Franceschini authored
Signed-off-by:
Manuel Franceschini <livewire@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Aug 05, 2010
-
-
Manuel Franceschini authored
This patch fixes a bug reported in [0]. Newer drbd versions can have another digit beyond the regular major, minor and point release digits. We modify the regex used to match that with an optional parts which is not saved. Furthermore it adds unittests that test for these different cases. Now the data read from /proc is passed into the _GetVersion method, which makes testing easier. [0] http://code.google.com/p/ganeti/issues/detail?id=110 Signed-off-by:
Manuel Franceschini <livewire@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jul 30, 2010
-
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-