Make subnodes easily identifiable 16/416/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Thu, 25 Feb 2016 16:47:51 +0000 (08:47 -0800)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Thu, 25 Feb 2016 16:47:51 +0000 (08:47 -0800)
When nodepool brings online a node and subnodes they are presently all
named the same way. This makes it difficult to pinpoint the leader node
of a set if we need to do any work directly against OpenStack. This
change will cause sub-nodes to have the prefix of np-sub- and the rest
of the name from the leader node making it clear.

Change-Id: I536b2e4437a93f118436e8eeb6869a2f691be0f6
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
nodepool/nodepool.yaml

index b603928..70863a8 100644 (file)
@@ -71,4 +71,4 @@ targets:
     #hostname: 'np-{label.name}-{provider.name}-{node_id}'
     #subnode-hostname: 'np-{label.name}-{provider.name}-{node_id}'
     hostname: 'np-{label.name}-{node_id}'
-    subnode-hostname: 'np-{label.name}-{node_id}'
+    subnode-hostname: 'np-sub-{label.name}-{node_id}'