- 19 Mar, 2014 1 commit
-
-
Hrvoje Ribicic authored
* Refactors the current patch code to allow for multiple patches that can be applied, yet leaves only one for now. * Rewords the message shown to the user in case the modules needed for patching are missing. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 07 Mar, 2014 6 commits
-
-
Michele Tartara authored
If the watcher is not allowed to access RAPI, it doesn't mean that it is dead and needs to be restarted. Fixes Issue 752. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Petr Pudlak authored
In order to work, it is necessary: * Write a JSON Patch to file "qa/qa-patch.json" in a source repository. (And be careful not to commit it!) The file must conform to RFC6902 and describes what changes should be done to the QA JSON configuration. This is simple as [ { "op": "add", "path": "default", "value": false }, { "op": "add", "path": "/tests/instance-add-file", "value": true } ] * Install "jsonpatch" and "jsonpointer" modules on the machines QA is running on. Either using "easy_install" or as Debian packages using "pypi-install". QA only loads the modules if the patch file is present and non-empty. Therefore no changes to buildbots are needed, if the feature is not used. It's advisable to add a git pre-commit hook for the main repository to prevent changes to "qa/patch.json", keeping it to "[]". Suggestion for such a hook: # Exit code 1 if the patch file isn't just "[]": python -c 'import json, sys; \ exit(0 if json.load(open("qa/qa-patch.json", "r")) == [] else 1)' Locally it's possible to tell git not to track changes to the file at all (see https://help.github.com/articles/ignoring-files): git update-index --assume-unchanged qa/qa-patch.json Cherry-pick of e5398c3a from stable-2.11. Signed-off-by:
Petr Pudlak <pudlak@google.com> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Michele Tartara authored
Add the timeout parameter to the StopInstance function of the hypervisor base class and to all its implementations. Also, change the tests as required by this change. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
Modify the function that sends commands to the KVM monitor so that it is possible to specify an optional timeout after which the command is killed. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
Modify the function that runs Xen commands so that it is possible to specify an optional timeout after which the command is killed. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
Fields must be the final elements in an epytext string. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 24 Feb, 2014 1 commit
-
-
Klaus Aehlig authored
The NIC's network and vlan are also newly added, hence need to be considered optional to remain backwards compatible. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 20 Feb, 2014 4 commits
-
-
Hrvoje Ribicic authored
In the sliver of time between choosing a waiting job to be executed and trying to acquire locks for its execution, the status of the job can be changed to canceling. An assert checking the job status neglected to take this into account, and raised an error that managed to perpetually lock the job in the canceling state. This patch resolves the issue by making the assert accept the canceling state as well, and exiting if the job was cancelled. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Dimitris Aragiorgis authored
Name of Disk/NIC were not exported during backup until now. Use the exported info during gnt-backup import. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Dimitris Aragiorgis authored
Network UUID is written in .ini file during backup export but is not used by _ReadExportParams(). This patch fixes it. Please note that in case a network is given, link and mode should not be included in NIC options. This fixes issue 716. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Dimitris Aragiorgis authored
During backup import/export SafeConfigParser() is used to save/restore instance's configuration. There is a possibility if an export is done with a different Ganeti version, a specific value not to be saved during export (e.g. the NIC/Disk name) but still requested during import. With this patch we override the get() method of SafeConfigParser() and catch NoOptionError if raised and return None. Additionally we translate "None" values read from .ini file into None. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 13 Feb, 2014 2 commits
-
-
Michele Tartara authored
waitForJobs in src/Ganeti/Jobs.hs has an integer overflow that (at least on amd64) causes it to break after waiting for ~10 minutes. This results in hbal sleeping forever (when compiled with squeeze's ghc 6.12.1) or crashing (when compiled with precise's ghc 7.4.1) whenever it has to wait ~10 minutes for a jobset to complete. Thanks to gjo@google.com for finding the bug and suggesting the fix. Fixes Issue 717. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
Also, refactor the line to keep it under 80 chars. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 05 Feb, 2014 1 commit
-
-
Michele Tartara authored
The Node deamon was executed with the wrong gid (gnt-daemons) instead of the one assigned to it by configure.ac. Fixes Issue 707. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 23 Jan, 2014 1 commit
-
-
Michele Tartara authored
Update the version number to 2.8.4 and insert the final details for this release in the NEWS file, including the release date. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 21 Jan, 2014 3 commits
-
-
Hrvoje Ribicic authored
Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Hrvoje Ribicic authored
The newly added job QA has some flakiness with respect to its use of gnt-job watch. Fix this by waiting until the canceling status is replaced with the canceled status, or a timeout is reached. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Hrvoje Ribicic authored
Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 20 Jan, 2014 6 commits
-
-
Hrvoje Ribicic authored
The gnt-instance manual was lacking an entry for the vnc-password-file hypervisor parameter. This patch adds one, and also some information on the default value of the parameter. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Hrvoje Ribicic authored
This patch introduces a QA test in which a job is cancelled while waiting. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Hrvoje Ribicic authored
The gnt-debug delay command required locks for all nodes except the master - this patch fixes the issue by adding master to the locks whenever needed. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Hrvoje Ribicic authored
While the changes introduced in previous patches should stop any job id parameters reaching the queue as strings, add an assertion here to catch any strings making it through. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Hrvoje Ribicic authored
This patch adds checks to the Luxi client, making sure that job ids are converted from strings to ints before being passed on, or that an error is reported. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
In 'daemons/daemon-util.in', 'start-master' and 'stop-master' always fail if confd is disabled. Fixes issue 685. Signed-off-by:
Jose A. Lopes <jabolopes@gmail.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 09 Jan, 2014 1 commit
-
-
Michele Tartara authored
Commit e6e4ff4c fixed Issue 649 by switching the separator for usb_devices from comma to space. That solved the problem with the command line, but RAPI was able to work with commas too, so, for backwards compatibility we need to keep supporting that as well. Also, in order to avoid changing the format of the config file, the default internal representation is brought back to being comma-based, and it is changed at the interface level (CLI or RAPI) before being passed on. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 07 Jan, 2014 2 commits
-
-
Michele Tartara authored
Some fixes where pushed to the stable-2.8 branch without a corresponding NEWS entry. This patch adds them. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
The usb_devices parameter was using comma as a list separator, but this cannot work because comma is already used as the hypervisor parameter separator. Change it to use whitespace as a separator, in accordance to what already done for the extra parameters. The NEWS file is updated accordingly. Fixes Issue 649. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 16 Dec, 2013 6 commits
-
-
Michele Tartara authored
Newer Xen versions use blktap2 instead of blktap. This patch adds support for it in Ganeti. Fixes Issue 638. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
This patch adds the network tags to the list of all other tag types that can be tried in QuickCheck tests. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Hrvoje Ribicic authored
This patch adds the network tags to the tags searched by gnt-cluster search-tags, and in the process cleans up the code slightly. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Hrvoje Ribicic authored
The QA did not have a test for network tags until now, and this patch remedies the situation. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Hrvoje Ribicic authored
The network tags were absent from an if check used to actually list tags. The patch fixes the oversight, and adds a proper error message in case the issue occurs again for a new tag type. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Dimitris Aragiorgis authored
Define network tags in haskell part. This fixes issue 641. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
- 11 Dec, 2013 5 commits
-
-
Michele Tartara authored
Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michele Tartara authored
List all the changes that happened between 2.8.2 and 2.8.3. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Dimitris Aragiorgis authored
If param=default and the param already exists then we remove it from params dict. This is stolen by GetUpdatedParams() which is used for hvparams modification/inheritance. This means that 'default' value is not accepted for an arbitrary param of an ext disk. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Dimitris Aragiorgis authored
Disks of ext template are allowed to have arbitrary parameters stored in the Disk object's params slot. Those parameters can be passed during creation of a new disk, either in LUInstanceCreate() or in LUInsanceSetParams(). Still those parameters can not be changed afterwards. With this patch we override this limitation. Currently, for the other disk templates we allow modifying only 'name' and 'mode'. Therefore, we introduce new constants MODIFIABLE_IDISK_PARAM* to include those params. If any other parameter is passed, _VerifyDiskModification() will raise an exception. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Dimitris Aragiorgis authored
Commits 5dbee5ea and cce46164 fix disk upgrades concerning params slot. Since 2.7 params slot should be empty and gets filled any time needed. Still ext template allows passing arbitrary params per disk. These params should be saved in config file for future use. For instance if we have the shared-filer provider and we specify shared_dir param during instance create, this param is needed when we want to attach the disk e.g., during retrieving instance info. If it gets overridden during a daemon restart or a config reload we fail to get the instance's info. To avoid such a failure, we set params slot to an empty dict only if params not found in the first place. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 09 Dec, 2013 1 commit
-
-
Dimitris Aragiorgis authored
SetDiskID() fills physical_id slot of a Disk object. LUInstanceSetParams() does not invoke SetDiskID() upon creation of a new disk. As a result the physical_id slot of the Disk object in config data is missing. In case of ext disk template, in AcceptInstance() we invoke _GatherAndLinkBlockDevices(). This takes `instance` as an argument which includes current disks info. So, after adding a disk, migration of ext instances will fail because FindDevice() expects the physical_id slot. With this patch we invoke SetDiskID() for every disk of the instance before accept_instance() RPC. Fixes Issue 633. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-