Hold node resource locks while setting instance parameters
authorMichael Hanselmann <hansmi@google.com>
Thu, 3 Nov 2011 16:19:30 +0000 (17:19 +0100)
committerMichael Hanselmann <hansmi@google.com>
Tue, 15 Nov 2011 09:52:02 +0000 (10:52 +0100)
commit63742d78eef77ef6363e391144fdfa430c459a4c
treeb47043b9906def044bec99599ba14009cc5ea1fb
parentc57add7e6fb973525928b868f157ab6b68399639
Hold node resource locks while setting instance parameters

Important for when disks are converted. Release locks once they're not
needed anymore. Make liberal use of assertions.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/cmdlib.py