Statistics
| Branch: | Tag: | Revision:

root @ 3f3b6e7d

Name Size
  autotools
  daemons
  devel
  doc
  lib
  man
  qa
  src
  test
  tools
.ghci 21 Bytes
.gitignore 2.6 kB
COPYING 17.6 kB
INSTALL 10.4 kB
Makefile.am 75.9 kB
NEWS 132.4 kB
README 191 Bytes
UPGRADE 12.4 kB
autogen.sh 283 Bytes
configure.ac 25 kB
epydoc.conf.in 444 Bytes
pylintrc 2.9 kB
pylintrc-test 2.9 kB

Latest revisions

# Date Author Comment
3f3b6e7d 03/27/2014 04:39 pm Petr Pudlak

Fix calls to Update in LUNodeSetParams

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 <>
Reviewed-by: Klaus Aehlig <>

66223061 03/27/2014 04:39 pm Petr Pudlak

Fix calls to Update in LUInstanceSetParams

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 <>
Reviewed-by: Klaus Aehlig <>

4c04ae43 03/27/2014 04:39 pm Petr Pudlak

Fix calls to Update in LUClusterSetParams

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...

ee115038 03/27/2014 04:39 pm Petr Pudlak

Move master failover code that uses ConfigWriter

.. 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 <>
Reviewed-by: Klaus Aehlig <>

5dc66e15 03/27/2014 04:39 pm Petr Pudlak

Update ConfigWriter unit tests

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...

f47b32a8 03/27/2014 04:39 pm Petr Pudlak

Make configuration per job/thread

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...

028f2db5 03/27/2014 04:39 pm Petr Pudlak

Add lock checks to readConfig and writeConfig in WConfd

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 <>...

61660332 03/27/2014 04:39 pm Petr Pudlak

Add RPC calls to WConfd to lock/unlock ConfigLock

This allows the clients to protect configuration operations, as required
by the current implementation of Python 'ConfigWriter'.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

f066e7fb 03/27/2014 04:39 pm Petr Pudlak

Add a function for determining if a client holds a lock

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...

952cf6e2 03/27/2014 04:39 pm Petr Pudlak

After each lock operation, log the current lock status

.. using the DEBUG channel.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

View all revisions | View revisions

Also available in: Atom