- 20 Jan, 2014 3 commits
-
-
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 2 commits
-
-
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>
-
Petr Pudlak authored
This is required to prevent race conditions such as removing a network from a group and adding an instance at the same time. (See issue 621#2.) Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 05 Dec, 2013 4 commits
-
-
Hrvoje Ribicic authored
According to commit 599ee321 , any job-related error messages should be encoded within a Ganeti-specific error and not passed on as a string, to allow for easier parsing. For jobs suffering from an undesirable status after an unclean master daemon shutdown, the message was not encoded, as reported in issue 618. This patch fixes the problem. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
If the file driver of an instance with file based storage is not specified, the default one is automatically added by the UpgradeConfig function. Fixes Issue 571. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Jose A. Lopes authored
Update hypervisor unit tests. Partial cherry-pick from d2e4e099 Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Jose A. Lopes authored
Update Xen backend to properly recognize when a domain has been shutdown by the user and to properly cleanup a shutdown domain when Ganeti requests Xen to stop this domain. Partial cherry-pick from 9d22cc90 Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 04 Dec, 2013 2 commits
-
-
Jose A. Lopes authored
* fix node daemon not to skip data, such as, memory and disk size, when building the node list to send to HBal, given that these data are important for HBal to determine whether an evacuation is possible * fix iallocator to properly load drained nodes from the list passed by the node daemon, instead of zeroing all the data, such as, the memory and disk size * this fixes issue 615 Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Bernardo Dal Seno authored
This simplifies different handling of individual items. Cherry-picked from 8c72f711 . Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
- 03 Dec, 2013 1 commit
-
-
Petr Pudlak authored
In the case of network problems, one ping packet can possibly get lost. Sending multiple packets is safer. The interval between packets is set to 200ms so that the check finishes faster. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 02 Dec, 2013 2 commits
-
-
Petr Pudlak authored
This fixes issue #630. Apparently there is a bug in fping 3.5 where it loops forever without "-c" given an unreachable host, even though "-c 1" should be the default according to the man page. The "-c" flag works on Squeeze. Checking the man pages on the Internet, fping supported "-c" at least since 2007. So there should be no backward compatibility problems. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Dimitris Aragiorgis authored
In case no name is passed in disk modifications we should keep the old one. If name=none then set disk name to None. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
- 28 Nov, 2013 1 commit
-
-
Petr Pudlak authored
The newest version does not build on Debian squeeze, so avoid it being pulled in as a dependency. This is the same issue that has been fixed in [1e078ef3 ] on master. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 27 Nov, 2013 4 commits
-
-
Jose A. Lopes authored
Fixes issue 616. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Thomas Thrainer authored
Each host using IPv6 always has a link local address in fe80::/10. It is common to use fe80::1 as default gateway to ease client configuration. Ganeti prevented this usage, because it made sure that the IPv6 gateway is in the IPv6 network the instance is connected to. This patch also allows to specify a IPv6 gateway in the link local network in addition to the network the instance is connected to. This fixes issue 624. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Thomas Thrainer authored
Both NODE and NODE_RES locks were acquired opportunistically if so requested by the user. LUInstanceCreate requires, however, that the actually locked elements on NODE and NODE_RES level are the same. This patch changes the locking of NODE_RES such that those locks are not acquired opportunistically any more. Instead, the mandatory locks are set to the acquired NODE locks once they are actually granted. This fixes issue 622. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
Klaus Aehlig authored
This is not only better style, but also fixes a lint error. Also use the infix form of `elem` to increase readability. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 26 Nov, 2013 1 commit
-
-
Guido Trotter authored
We detect an IPv6 vs V4 address based on columns, rather than passing the family from the cluster object to be more future proof (in case we'll ever support mixed clusters). Unfortunately quite a bit more code is required to test this: we need an arbitrary node that does the right thing w.r.t. ip addresses and also test-only exports. As such we'll do this out of the stable branch. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 18 Nov, 2013 2 commits
-
-
Hrvoje Ribicic authored
The NEWS file now contains a 2.8.3 entry, describing the fix of the previous patch. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Hrvoje Ribicic authored
When using gnt-cluster master-failover, on the soon-to-be-master the luxi daemon is started by the node daemon. This makes the luxi daemon inherit the node daemon's umask 077, making the communication socket unreadable to group members. When using Ganeti with non-root users, this causes problems, as reported in issue 477. To fix this, the socket permissions are set explicitly. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 06 Nov, 2013 3 commits
-
-
Michele Tartara authored
Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Michele Tartara authored
Add a section in the file for the new upcoming release. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Apollon Oikonomopoulos authored
DrbdAttachNet supports both, normal primary/secondary node operation, and (during live migration) dual-primary operation. When resources are newly attached, we poll until we find all of them in connected or syncing operation. Although aggressive, this is enough for primary/secondary operation, because the primary/secondary role is not changed from within DrbdAttachNet. However, in the dual-primary ("multimaster") case, both peers are subsequently upgraded to the primary role. If - for unspecified reasons - both disks are not UpToDate, then a resync may be triggered after both peers have switched to primary, causing the resource to disconnect: kernel: [1465514.164009] block drbd2: I shall become SyncTarget, but I am primary! kernel: [1465514.171562] block drbd2: ASSERT( os.conn == C_WF_REPORT_PARAMS ) in /build/linux-rrsxby/linux-3.2.51/drivers/block/drbd/drbd_receiver.c:3245 This seems to be extremely racey and is possibly triggered by some underlying network issues (e.g. high latency), but it has been observed in the wild. By logging the DRBD resource state in the old secondary, we managed to see a resource getting promoted to primary while it was: WFSyncUUID Secondary/Primary Outdated/UpToDate We fix this by explicitly waiting for "Connected" cstate and "UpToDate/UpToDate" disks, as advised in [1]: "For this purpose and scenario, you only want to promote once you are Connected UpToDate/UpToDate." [1] http://lists.linbit.com/pipermail/drbd-user/2013-July/020173.html Signed-off-by:
Apollon Oikonomopoulos <apoikos@gmail.com> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 04 Nov, 2013 1 commit
-
-
Michele Tartara authored
In some conditions, replace-disks will fail if the disks are not properly activated. Improve the error message suggesting to run activate-disks before executing replace-disks. Fixes Issue 606. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-