From 9234c367f772482d31ba5bbd284e572b37d79ae7 Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Tue, 13 Nov 2012 17:41:01 +0000 Subject: [PATCH] Make the node hostnames use UUID only Fixes bug #1078367 Change-Id: I9b448d6bd34eae09a6d6c8027693d1c81c13501f --- libra/mgm/nova.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libra/mgm/nova.py b/libra/mgm/nova.py index 7323bb44..770e5c8c 100644 --- a/libra/mgm/nova.py +++ b/libra/mgm/nova.py @@ -18,8 +18,6 @@ import sys from novaclient import client -LIBRA_VERSION = 'v1' - class Node(object): def __init__(self, username, password, tenant, auth_url, region, keyname, @@ -86,7 +84,7 @@ class Node(object): """ create a nova node """ url = "/servers" body = {"server": { - "name": 'lbaas-{0}-{1}'.format(LIBRA_VERSION, node_id), + "name": '{0}'.format(node_id), "imageRef": self.image, "key_name": self.keyname, "flavorRef": self.node_type,