Separate OpNodeEvacuate.mode from iallocator
Until now the iallocator constants for node evacuation (IALLOCATOR_NEVAC_*) were also used for the opcode. However, it turned out this was due to a misunderstanding and is incorrect. This patch adds new constants (with the same values) and changes the affected places. Fortunately the RAPI client already used good names, so no changes are necessary. Signed-off-by:Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> Signed-off-by:
Michael Hanselmann <hansmi@google.com>
Showing
- lib/client/gnt_node.py 3 additions, 3 deletionslib/client/gnt_node.py
- lib/cmdlib.py 16 additions, 7 deletionslib/cmdlib.py
- lib/constants.py 10 additions, 0 deletionslib/constants.py
- lib/opcodes.py 1 addition, 1 deletionlib/opcodes.py
- test/ganeti.rapi.client_unittest.py 4 additions, 4 deletionstest/ganeti.rapi.client_unittest.py
Loading
Please register or sign in to comment