Skip to content
Snippets Groups Projects
Commit b59092f7 authored by Iustin Pop's avatar Iustin Pop
Browse files

Improve error message for auto-promote/node modify


This has been reported internally 3-4 times already, and the current
version (from 8b437a6e) is still not good enough, it seems.

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 1c573fb4
No related branches found
No related tags found
No related merge requests found
......@@ -5925,7 +5925,8 @@ class LUNodeSetParams(LogicalUnit):
if mc_remaining < mc_should:
raise errors.OpPrereqError("Not enough master candidates, please"
" pass auto promote option to allow"
" promotion", errors.ECODE_STATE)
" promotion (--auto-promote or RAPI"
" auto_promote=True)", errors.ECODE_STATE)
 
self.old_flags = old_flags = (node.master_candidate,
node.drained, node.offline)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment