Add error code for temporary lack of resources
authorMichael Hanselmann <hansmi@google.com>
Tue, 4 Dec 2012 15:17:05 +0000 (16:17 +0100)
committerMichael Hanselmann <hansmi@google.com>
Fri, 7 Dec 2012 12:47:08 +0000 (13:47 +0100)
commit518a45e5d8f8c85d7cd9fd782058f3f6a5b0fba6
tree5d66b6374f1e5db3421c87a2405db43506a122a6
parent78bfb5606104a123715ba56854058ce4617eaa86
Add error code for temporary lack of resources

When an instance creation uses opportunistic locks, the iallocator might
not be able to find an allocation solution if not enough node locks (or
a suboptimal subset thereof) were acquired. As per the design document
<doc/design-opportunistic-locking.rst> a new error code denoting
temporary failures is added.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/cmdlib.py
lib/errors.py