cmdlib: Add utility for instance data import/export
authorMichael Hanselmann <hansmi@google.com>
Wed, 21 Apr 2010 17:41:35 +0000 (19:41 +0200)
committerMichael Hanselmann <hansmi@google.com>
Fri, 23 Apr 2010 14:50:15 +0000 (16:50 +0200)
commit033a1d00ff5644b1d0af27c5e399394d9aad4bb8
tree31aaddd81ce810d8bb68f9b129d89187e308833c
parent6b92f2af1c25ec394f98a7ce96aeb6e73ee13b51
cmdlib: Add utility for instance data import/export

Interpreting the backend's import/export daemon status is a bit tricky.
This utility code keeps track of multiple transfers at the same time.
Users can supply callback functions to react to events.

Timeouts are currently hardcoded. Intra-cluster instance moves will likely
require other timeouts.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
Makefile.am
lib/constants.py
lib/masterd/instance.py [new file with mode: 0644]
test/ganeti.masterd.instance_unittest.py [new file with mode: 0755]