- May 10, 2011
-
-
Michael Hanselmann authored
With this patch, the worker thread name is updated to include a short summary of the opcode (basically its OP_ID). The base name of job queue threads is shortened from “JobQueue” to “Jq”. Logs and the lock monitor will show a job verifying the cluster as e.g. “Jq2/Job1742/C_VERIFY”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
This will hopefully detect potential LVM (or any other storage, when they implement it) issues before committing changes just on some nodes. Unfortunately due to the dry_run opcode handling, we can't integrate this into the usual handling (as we need to activate the disks before doing any tests, which belongs in Exec not in CheckPrereq). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This is always called with False from backend for now. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
Also reorder the methods to match all other LUs. 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
Also change the way “share_locks” is filled. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
When removing “acquired_locks” in commit 0d5a0b96, I didn't remember that it does not contain the Big Ganeti Lock. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Apollon Oikonomopoulos authored
Commit 52f33103 introduced lock release factorization, replacing manual lock release using utility functions. However, it broke TLMigrateInstance due to a typo (passing the Tasklet to ReleaseLocks instead of the parent LU). We fix this by passing the LU to ReleaseLocks. Thanks to Dan Eriksson for reporting this. Signed-off-by:
Apollon Oikonomopoulos <apollon@noc.grnet.gr> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
No idea where those four spaces came from, but they must've been there for a while. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
The “acquired_locks” attribute in LUs is used to keep a list of acquired locks at each lock level. This information is already known in the lock manager, which also happens to be the authoritative source. Removing the attribute and directly talking to the lock manager saves us from having to maintain the duplicate information when releasing locks. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Saves some typing and we'll use it more often in the future. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- May 09, 2011
-
-
Michael Hanselmann authored
Depending on the opcode and its parameters, the existing “Summary” function can give a rater long summary. For displaying the summary in logs and in the lock monitor, it should be shorter. Hence this new function is added to just use the opcode ID with common prefixes replaced (e.g. “INSTANCE_” becomes “I_”). Opcode values are not used. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
When all locks contained in a set are acquired, the lockset's internal lock is acquired with the same mode. With this patch the internal lock will show up on the lock monitor, named e.g. “instances/[lockset]”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
It is always used in the locking code. Unittests are updated. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michael Hanselmann authored
In some rare cases new shared acquires could sneak in through the condition cached in “__pending_shared” while the code was still notifying acquires. This was only working because such a condition would be on top of the queue. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- May 06, 2011
-
-
Iustin Pop authored
Commit 1c6e5787 removed the iallocator and target_node keyword parameters from TLMigrateInstance, but I didn't update their use in LUInstanceFailover and (not fully) in LUInstanceMigrate. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- May 05, 2011
-
-
Apollon Oikonomopoulos authored
Commit faaabe3c fixed failover behaviour for DTS_INT_MIRROR instances, however it broke migration for DTS_EXT_MIRROR instances, by moving iallocator and node checks from LUInstanceMigrate to TLMigrateInstance. This has the side-effect that the LU called the TL with None for both, node and iallocator when the default iallocator was being used. This patch maintains the iallocator checks in TLMigrateInstance and fixes the LU-TL integration. Signed-off-by:
Iustin Pop <iustin@google.com> [iustin@google.com: rebased patch on current HEAD] Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This is one of the first opcodes to make use of node group locking. To get an instance's node groups, the instance's nodes need to be looked at. Due to a previous design decision nodes are locked after the group, hence there's no clean locking order. This patch works around that by first getting the instance's groups without locks, and then verifying them after actually getting all locks. Rough overview: - Lock instance - Get groups of instance's nodes - Lock groups - Lock all nodes in groups - Verify node groups - Run iallocator - Release group and unused nodes - Replace disks, etc. There are probably too many assertions in the code, but it's locking and we've been bitten in the past. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This will be used for locking only the necessary node group(s) for per-instance operations. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Apollon Oikonomopoulos authored
Commit 77fcff4a unintentionally incorporated code from TLMigrateInstance.CheckPrereq into TLMigrateInstance._RunAllocator, presumably during a rebase from earlier versions of the patch to the 2.5 codebase. As a result all migrations running without an iallocator were performed non-live :-( This patch moves the affected code back to CheckPrereq. Signed-off-by:
Apollon Oikonomopoulos <apollon@noc.grnet.gr> Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- May 04, 2011
-
-
Michael Hanselmann authored
- Clarify some error messages - Remove unnecessary punctuation - Merge two if conditions in one place Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- May 02, 2011
-
-
Marco Casavecchia authored
Hi all, this patch will add 3 new KVM parameters and a new option. New Parameters: - floppy_image_path = "" -> Specify the floppy image to load as floppy disk. - cdrom2_image_path = "" -> Specify a second cdrom image to load on the system (note: this in not intended to be used as a boot device. To boot the system from cdrom you must use the "cdrom_image_path" parameter as always). - cdrom_disk_type = "" -> it can be one of the kvm supported types as "ide,scsi,paravirtual,ecc". I introduced this optional parameter to make possible to specify a different virtual device for cdroms. It is useful if you want to install a windows system New option for "boot_device" parameter: - "floppy": with this value you should be able to boot a KVM instance from floppy image. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Apr 29, 2011
-
-
Michael Hanselmann authored
There will be more lock releasing with upcoming changes, so this will centralize the logic behind it (what locks to keep, which variables to update, etc.). Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
* devel-2.4: TLReplaceDisks: Use implicit loop for dictionary Release unneeded locks while replacing disks locking: Export “list_owned” from lock manager gnt-instance: Fix typo in error message 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
If an iallocator is used, “gnt-instance replace-disks” would acquire the locks of all nodes (only the allocator will decide which node to use). Unfortunately the unneeded locks were not released during the operation, causing unnecessary delays for other jobs. This patch changes the LU to release unneeded locks and adds assertions. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This is analog to “is_owned” and will be used for assertions. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
The iallocator parameter is “-I”, not “-i”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
* devel-2.4: (24 commits) mlock: fail gracefully if libc.so.6 cannot be loaded Allow creating the DRBD metadev in a different VG Make _GenerateDRBD8Branch accept different VG names Fix WriteFile with unicode data Replace disks: keep the meta device in the same VG Fix for multiple VGs - PlainToDrbd and replace-disks Fix potential data-loss in utils.WriteFile Improve error messages in cluster verify/OS Prevent readding of the master node Fix punctuation in an error message cli: Fix wrong argument kind for groups Quote filename in gnt-instance.8 Fix typo in LUGroupAssignNodes gnt-instance info: automatically request locking Document the dependency on OOB for gnt-node power Fix master IP activation in failover with no-voting disk wiping: fix bug in chunk size computation Fix bug in watcher Release locks before wiping disks during instance creation utils.WriteFile: Close file before renaming ... Conflicts: lib/cmdlib.py: Disk parameter constants man/gnt-instance.rst: Trivial man/gnt-node.rst: Trivial Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
This allows noded to continue instead of blowing up if the libc major number changes. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
It is no longer used. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Apr 28, 2011
-
-
Adeodato Simo authored
Signed-off-by:
Adeodato Simo <dato@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Commit d5cafd31 changed this error message, swapping the text parts in the process. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Also add an assertion. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Quoting from iallocator.rst: “[…] ``relocate`` request is used when an existing instance needs to be moved within its node group […]”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
Sorry! Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Currently RemoveEtcHostsEntry keeps the ordering, but SetEtcHostsEntry not, as it will always write the new entry at the end of file. I personally dislike this as it "uglifies" my custom host files, so this patch makes it update the record instead in-place so to say instead of moving it. The patch also simplifies the construction of the new line (we were doing duplicate work for no gain). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
It makes no sense to iteratively write the new etc/hosts file, as we can pre-compute the desired contents (neither the old nor the new versions are safe against concurrent changes anyway). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This is a simple change to allow specifying a different VG for the meta device during the creation of instances and addition of disks via gnt-instance modify. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-