Make the node hostnames use UUID only
Fixes bug #1078367 Change-Id: I9b448d6bd34eae09a6d6c8027693d1c81c13501f
This commit is contained in:
parent
16795aac6f
commit
9234c367f7
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user