27
26
print("\texclude : {}".format(exclude))
28
27
print("\treserved : {}".format(reserved))
32
neadmCmd = [Settings.NEDEPLOY_CMD, 'deploy', 'solo',
33
node_private_ip, 'nexenta:nexenta', '-i',
36
if node_type == 'mgmt':
38
elif node_type == 'gateway':
39
# ADD GATEWAY parameter to deploy solo cmd
40
print("Gateway type selected!! ")
44
if profile.lower() == 'balanced':
45
neadmCmd.append('balanced')
46
elif profile.lower() == 'performance':
47
neadmCmd.append('performance')
49
neadmCmd.append('capacity')
52
neadmCmd.append('--nodocker')
56
neadmCmd.append(exclude)
60
neadmCmd.append(reserved)
62
print("NEDEPLOY cmd is: {0}".format(' '.join(neadmCmd)))
63
subprocess.check_output(neadmCmd)
65
except Exception as ex:
66
raise Exception('in {0}\nMessage:{1}\nTrace: {2}'.format(
67
self.__class__.__name__, ex.message, traceback.format_exc()))
29
neadmCmd = [Settings.NEDEPLOY_CMD, 'deploy', 'solo',
30
node_private_ip, 'nexenta:nexenta', '-i',
33
if node_type == 'mgmt':
35
elif node_type == 'gateway':
36
# ADD GATEWAY parameter to deploy solo cmd
37
print("Gateway type selected!! ")
41
if profile.lower() == 'balanced':
42
neadmCmd.append('balanced')
43
elif profile.lower() == 'performance':
44
neadmCmd.append('performance')
46
neadmCmd.append('capacity')
49
neadmCmd.append('--nodocker')
53
neadmCmd.append(exclude)
57
neadmCmd.append(reserved)
59
print("NEDEPLOY cmd is: {0}".format(' '.join(neadmCmd)))
60
subprocess.check_output(neadmCmd,
61
stderr=subprocess.STDOUT,
62
universal_newlines=True)