- Aug 14, 2009
-
-
Iustin Pop authored
This patch replaces hardcoded boolean-type args with bool(_checkIntVariable). There should be no other cases of this left, I think. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
There was a check already in the LU for the master node, however is wasn't correct. This patch disallows any role changes on the master node via LUSetNodeParms (and as this LU can't change anything else, it practically prevents it from touching the master node). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Aug 13, 2009
-
-
Iustin Pop authored
Currently, the supplised script has two issues: - it doesn't use start-stop-daemon --start correctly, leading to messages like "ganeti.errors.GenericError: /var/run/ganeti/ganeti-rapi.pid contains a live process" in the logs - it doesn't allow start/stop/restart of a single daemon, which leads to manual launch, which is bad because we don't reuse the settings from the defaults file For the first one, we change from ‘--exec …’ to ‘--startas …’, which is the actual option used for start, whereas exec is a test (that also supplies the default to startas). We also add ‘--oknodo’ as per recent Debian policy changes. For the second, we do a bigger change; we basically remove the full-path and pid variables, and construct these two from the daemon name. We then check if we are given a daemon name (in which case we only do that) otherwise we do the requested action on all daemons. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
(import of a Debian patch) This patch removes xend from the list of dependencies. Ganeti doesn't need xend running to startup, it will only need it later (and only if xen is used as virtualisation technology). It also removes 'Xen' from the description in the init script. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> (cherry picked from commit 022c3a0b)
-
- Aug 12, 2009
-
-
Iustin Pop authored
Since drained nodes could be (partially or fully) broken in iallocator, we ignore results from these nodes when building the cluster map in preparation for sending it to the script. This is a cheap change for the stable branch; ideally we should not query them at all. The patch also fixes a typo in iallocator.rst. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Aug 11, 2009
-
-
Guido Trotter authored
doc/examples/hooks/ethers has been added without being shipped in the released tarball. Putting a stop to this. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Aug 10, 2009
-
-
Luca Bigliardi authored
Remove "-l" option since some ancient systems ship a version of lockfile-progs not supporting it. Signed-off-by:
Luca Bigliardi <shammash@google.com>
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This moves yet another hardcoded value to a hypervisor parameter. I removed the 64/32 difference as it doesn't seem valid to me - it's more of a local site config rather than arch config. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com> (cherry picked from commit 09ea8710)
-
Iustin Pop authored
For the xen-hvm hypervisor, the KERNEL_PATH parameter is needed but today is hardcoded to a constants in the xen hypervisor library (argh!). This patch moves this to a hypervisor constant with the default value being the current hardcoded path. This will allow cluster/instance customisation based on the installed xen version. This should fix Debian bug #528618. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com> (cherry picked from commit e2ee1cea)
-
Guido Trotter authored
From time to time we're adding new be or hv parameters. With this patch missing parameters get set to the default value when loading the cluster object. This patch version also considers the case when hv/be params don't exist at all, and fixes a broken unit test triggered in that case. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> (cherry picked from commit c1b42c18)
-
Guido Trotter authored
If --no-etc-hosts is passed in at cluster init time we set a new parameter in the cluster's object to false, and avoid adding nodes to the hosts file. The UpgradeConfig function is used to set the value to True, when upgrading from an old configuration version. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> (cherry picked from commit b86a6bcd)
-
Guido Trotter authored
Add a very basic configuration update mechanism to objects. An object can define the UpgradeConfig method, which will be called at init time, and use it to fill in missing defaults in the configuration. In the future we may want to make it more complex, for example adding the config version, but for now a basic solution will do. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> (cherry picked from commit 560428be)
-
- Aug 07, 2009
-
-
Guido Trotter authored
* master: Update NEWS and version for 2.0.3 release devel/upload: revert rsync -p export: add meaningful exit code Fix detecting of errors in export Implement gnt-cluster check-disk-sizes rpc: add rpc call for getting disk size bdev: Add function for reading actual disk size Implement --ignore-size in activate-disks Add ignore size support in _AssembleInstanceDisks Add a objects.Disk.UnsetSize() method bdev: allow ignoring of size in Assemble() Fix instance import net option Simplify the devel/upload script Add a Copy method to object.ConfigObject Extend call_node_start_master rpc with no_voting Conflicts: daemons/ganeti-masterd s/SimpleConfigReader/SimpleStore/ VS start-master no-voting (kept both) Signed-off-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Aug 06, 2009
-
-
Guido Trotter authored
Rather than writing our own locking routing, use the one implemented by the lockfile-create program. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Aug 05, 2009
-
-
Luca Bigliardi authored
Overwrite debugging 'echo's Signed-off-by:
Luca Bigliardi <shammash@google.com> Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Luca Bigliardi authored
The hook was exiting immediately if lock was not acquired, entering a timed loop to have more chances when acquiring the lock. Signed-off-by:
Luca Bigliardi <shammash@google.com> Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
The permissions replications also will change the permissions on the / and /usr directories, which is bad. This reverts it to the original behaviour. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Currently ‘gnt-backup export’ always returns exit code zero, even in the face of complete failure during backup (only failure to stop/start the instance will cause job failure and thus non-zero exit code). This is bad, since one cannot script the backup. This patch adds some simple results from the LU so that the command line script can return good exit code. It will: - return zero for full success (snapshot removal errors are ignored though) - return one for full failure (finalize export failure or all disks failure) - return two for partial failure (some disks backed up, some not) Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This should fix issue 61, by explicitely calling bash (which is is now a non-explicit dependency) and setting the pipefail command. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Aug 04, 2009
-
-
Iustin Pop authored
This patch adds a new opcode and lu for checking disk sizes. Currently it does only top-level disk verification, and also doesn't check primary/secondary node size mismatches (these two are added as TODOs in the Exec() function of the LU). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Note that this exports the disk size as bdev returns it, in bytes. The value will be converted to MiB in cmdlib. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This patch adds a GetActualSize for block devices that returns the actual disk size. It is done using blockdev (and stat for file storage). While this could be done via reading /sys/block/N/size, that is not as simple as running blockdev, as the correspondence between an LV and its sys entry is not straightforward. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This patch modified OpActivateDisks, LUActivateDisks and gnt-instance activate-disks to support and pass this option to _AssembleInstanceDisks. The patch is quite trivial I think; there should be no issues from it except if used when not needed. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This patch adds an optional parameter to _AssembleInstanceDisks that allows ignoring of size information by making a copy of the disk structure and setting the size to zero. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This method recursively resets the size of the disk and its children to zero. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This patch changes the DRBD8 class (the only one to use the size in Assemble) to ignore the size in Assemble when a zero size is passed. This will allow activation of disks even when the size recorded in the configuration is wrong. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This is identical to dc30b0e4 but applied to gnt-backup. Thanks to user ocaner for catching it. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Instead of multiple uploads to each node, this script copies everything as needed to the temporary directory, exactly as to be installed in the destination machine, then runs only one rsync per host. This is more dangerous (we can break /etc now), but for development machines is fine. The patch then also uploads the bash completions and the current name for the cron job (I think that ganeti-master-cron is a deprecated name, not that someone actually intends to upload a file named like that). A flag --no-cron is added to skip uploading the cron file if desired. The patch also changes rsync to propagate the file permissions. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Aug 03, 2009
-
-
Iustin Pop authored
This small patch adds a simple Copy method that is can be used for 'throw-away' copies of objects. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
This command can be used to follow the output of a job. It's useful together with the --submit parameter for other commands. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
When JobQueue.WaitForJobChange gets an invalid or no longer existing job ID it tries to return job_info and log_entries, both of which aren't defined yet. 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>
-
- Jul 29, 2009
-
-
Guido Trotter authored
When the parameter is set to True and start_daemons is also True, ganeti-masterd will be started with the new --no-voting --yes-do-it options. This new option is set to True only on masterfailover, when no_voting is used. This changed the behavior from 2.0, where we didn't start the master daemon at all, when this option was used. The manpage is also updated to remove the 2.0 only change. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jul 24, 2009
-
-
Stephen Shirley authored
This way the produced table is formatted nicely. Signed-off-by:
Stephen Shirley <diamond@google.com> Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
This constant is unused, except in qa. Removing it since it's always True. This patch also removes the unused qa_rapi.PrintRemoteAPIWarning function, and removes a comment about temporary constants "until we have cluster parameters". Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jul 23, 2009
-
-
Guido Trotter authored
Various modules set it to True when called in debugging mode, but the utils module supports no such global. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Guido Trotter authored
substitute exit(1) with exit(constants.EXIT_FAILURE). Also fix a wrongly indented line. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-