Change config upgrade to be explicit
authorIustin Pop <iustin@google.com>
Tue, 22 Sep 2009 13:54:20 +0000 (15:54 +0200)
committerIustin Pop <iustin@google.com>
Fri, 25 Sep 2009 13:01:04 +0000 (15:01 +0200)
commit2d90608c0ebe560641be246ea266803d0a8e3ad8
tree88ff476da577bde1929623b0aa0144a8719f405c
parent59b766369e71b1ec59adf5e8eec7e35a9b81e8de
Change config upgrade to be explicit

Currently the config upgrade is done at each object instantiation, that
means that ganeti-noded will run UpgradeConfig on all objects received
remotely (instances, disks, nics). This is not so good, so this patch
changes it so that only the ConfigWriter runs this method at
configuration load time.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
(cherry picked from commit 90d726a80ce40a4990a26566211514e863985efc)
lib/config.py
lib/objects.py