Commit 485ba212 authored by Guido Trotter's avatar Guido Trotter
Browse files

Avoid nodegroup name/uuid conflicts

Forbid nodegroups to be called with a name that matches the UUID regular
expression. Uppercase versions are forbidden as well.
Signed-off-by: default avatarGuido Trotter <>
Reviewed-by: default avatarIustin Pop <>
parent 05636402
......@@ -468,6 +468,9 @@ class ConfigWriter:
if nodegroup.uuid != nodegroup_uuid:
result.append("nodegroup '%s' (uuid: '%s') indexed by wrong uuid '%s'"
% (, nodegroup.uuid, nodegroup_uuid))
if utils.UUID_RE.match(
result.append("nodegroup '%s' (uuid: '%s') has uuid-like name" %
(, nodegroup.uuid))
if in nodegroups_names:
result.append("duplicate nodegroup name '%s'" %
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment