- 27 Mar, 2014 30 commits
-
-
Petr Pudlak authored
Re-read the instance in-memory objects from WConfd after calls that change its state. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
Re-read the instance in-memory objects from WConfd after calls that change its state. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
Re-read the instance in-memory objects from WConfd after calls that change its state. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
Re-read the instance in-memory objects from WConfd after calls that change its state. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
Re-read the instance in-memory objects from WConfd after calls that change its state. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
.. in the configuration with comments. Also re-read an instance object where needed. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
This simplifies code that works with instance objects and needs to have their fresh values after performing such an operation. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
Instead of modifying the primary node on an object and calling 'Update', a new method was added to ConfigWriter. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
.. to work with the updated version. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
This test relies on bringing a configuration into an inconsistent state, and doesn't work with WConfd any more. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
Add calls to Update after modifying the node's configuration and move some of the modifications so that they don't conflict with other calls to ConfigWriter. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
In particular, move the call to Update so that it doesn't conflict with calls to ConfigWriter methods that change the configuration state. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
Since this LU intersperses calls ConfigWriter methods with modifying objects directly, it's necessary to call 'Update' and/or re-read them at appropriate places. Also a new ConfigWriter method is created for modifying the instance communication network. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
.. so that it's in the scope of a running WConfd daemon. This is now required as read-only calls invoke WConfd as well. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
This involves: - Updating how a mocked configuration object is set up. - Adding calls to refresh in-memory objects from the configuration (because they're not shared any more). - Adding calls to Update to save modified in-memory objects so that the changes are visible by other code. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
Previously there was one shared configuration object for all jobs, threads and other tasks. This patch creates separate ConfigWrite instances for distinct jobs/threads. All exported methods of ConfigWriter are now wrapped in calls that obtain the ConfigLock from WConfD, read the current configuration, and optionally write it back to WConfD. _OpenConfig is now called at each such request (instead of just once at the creation time of ConfigWriter). A new method _CloseConfig is added that performs the necessary cleanup (saving the configuration, releasing the lock). _UpgradeConfig needs to be called every time a configuration is received from WConfd, to fix parts that aren't persisted by the Python code. This requires that it doesn't use any methods that acquire locks, and it must not save the configuration at the end (unless it's called just after creating a ConfigWriter instance in "offline" mode). The semantics of Update changes slightly. Before it just checked its argument existed in the configuration. Now it also checks that the its serial number is the same as in the master configuration state, to avoid overwriting changes in other threads. This will require fixing all calls to Update, in particular to avoid interspersing calls to Update and other ConfigWriter methods. In the future, we should aim to eliminate Update completely. All LUs now carry their own instance of ConfigWriter, with their corresponding job ID. Other cide that uses ConfigWriter identifies with job ID 'None' and thread ID. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
Allow reading the configuration only if the client has acquired ConfigLock in shared or exclusive mode, and allow writing it only if the client has acquired ConfigLock in exclusive mode. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
This allows the clients to protect configuration operations, as required by the current implementation of Python 'ConfigWriter'. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
This convenience function examines 'listLocks' for a particular owner and checks, if it holds a given lock at a given ownership level (or higher). Therefore checking for a shared locks returns 'True' if the owner holds a shared or exclusive lock. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
.. using the DEBUG channel. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
This way, each call to AddNode or RemoveNode uses a passed configuration object that belongs to the appropriate job. This is required to subsequently get rid of the single shared ConfigWriter object. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
It was only required for RPC calls, which are now handled by WConfD. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
There was just a locking version, and to keep things consistent in _OpenConfig, we need also a non-locking one. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
In most cases, this is what has been already implemented manually. In some cases, the configuration write is issued even if the configuration hasn't been modified, but since WConfd checks for such cases, neither file write nor distribution to nodes is performed. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
.. so that it can be enhanced later. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
The lock is used for protecting concurrent operations on the configuration on the Python side. The lock must be last wrt to the lock ordering so that it can be always obtained regardless of other locks held by a client. During operations that hold this lock, no other locks are ever acquired. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
This will be needed later to add WConfd locking for the synchronization. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
This is a prerequisite for having thread-local configuration states. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
This was an unnoticed regression when SSConf has been refactored into WConfd. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Petr Pudlak authored
The original 'getMasterCandidates' returns only the true candidates, without the master itself. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 26 Mar, 2014 6 commits
-
-
Petr Pudlak authored
Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Apollon Oikonomopoulos authored
This patch adds a design document describing the necessary changes to provide native systemd support by shipping the relevant unit files and changing Ganeti to use systemd for process control if applicable. Also, the possibility of adding socket activation support to various daemons is briefly discussed. Signed-off-by:
Apollon Oikonomopoulos <apoikos@gmail.com> Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Dimitris Aragiorgis authored
Make setup_ovs() function in net-common library to use exported VLAN variable. Use it to set port's tag and trunks. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Dimitris Aragiorgis authored
The vlan nicparam is used in openvswitch mode. This patch exports it as VLAN environment variable so that NIC configuration scripts can later use it. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Petr Pudlak authored
This will allow easier modification of the structure of a client identity later. Also add a helper method for creating a WConfd context from a context. Signed-off-by:
Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 24 Mar, 2014 4 commits
-
-
Klaus Aehlig authored
* stable-2.11 Rearranging entries in NEWS file Prepare NEWS file for 2.11.0 rc1 Bump version to 2.11~rc1 in configure.ac * stable-2.10 Bump version to 2.10.2 Prepare NEWS file for 2.10.2 Allow releases scheduled 5 days in advance * stable-2.9 Make watcher submit queries low priority * stable-2.8 Include qa/patch in Makefile Handle empty patches better Move message formatting functions to separate file Add optional ordering of QA patch files Allow multiple QA patches Refactor current patching code Conflicts: NEWS: take all additions configure.ac: ignore revision/suffix bump qa/qa_rapi.py: trivial qa/qa_utils.py: trivial Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Klaus Aehlig authored
* stable-2.10 Bump version to 2.10.2 Prepare NEWS file for 2.10.2 Allow releases scheduled 5 days in advance Fix conflict between virtio + spice or soundhw Fix bitarray ops wrt PCI slots * stable-2.9 Make watcher submit queries low priority * stable-2.8 Include qa/patch in Makefile Handle empty patches better Move message formatting functions to separate file Add optional ordering of QA patch files Allow multiple QA patches Refactor current patching code Conflicts: NEWS: take all additions configure.ac: ignore revision bump on 2.10 lib/watcher/__init__.py: ignore priority for query requests qa/qa_utils.py: trivial Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
* stable-2.9 Make watcher submit queries low priority Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Dimitris Aragiorgis authored
Latest QEMU versions support various migration capabilities. Each can be enabled/disabled with 'migrate_set_capability' monitor command. Version 1.7.0 defines x-rdma-pin-all, auto-converge, zero-blocks, and xbzrle migration capabilities. Since migration capabilities are more than one, and because hvparams accept only strings/integers and not dicts we decide to provide the capabilities that should be on via a ":" separated string. In other words one can use the following to enable xbzrle and auto-converge: -H kvm:migration_caps=xbzrle:auto-converge IMPORTANT: xbzrle may result to BSOD for instances running Windows 2008r8 on drbd. Update man page of gnt-instance to include the new hvparam. Signed-off-by:
Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-