Include user/driver data in node detail list
This lets operators see the user_data and driver_data in the node list when passing --detail. That can be useful for identifying issues with the metastatic driver, or any other debugging which would benefit from seeing that data. Change-Id: I2f36ce98a183b7a8e289376f2228b6370900a057
This commit is contained in:
parent
025318b825
commit
eb9121a733
@ -200,7 +200,7 @@ class NodePoolCmd(NodepoolApp):
|
||||
fields.extend(['pool', 'hostname', 'private_ipv4', 'AZ',
|
||||
'connection_port', 'launcher',
|
||||
'allocated_to', 'hold_job',
|
||||
'comment'])
|
||||
'comment', 'user_data', 'driver_data'])
|
||||
results = status.node_list(self.zk, node_id)
|
||||
print(status.output(results, 'pretty', fields))
|
||||
|
||||
|
@ -127,7 +127,9 @@ def node_list(zk, node_id=None):
|
||||
("launcher", "Launcher"),
|
||||
("allocated_to", "Allocated To"),
|
||||
("hold_job", "Hold Job"),
|
||||
("comment", "Comment")
|
||||
("comment", "Comment"),
|
||||
("user_data", "User Data"),
|
||||
("driver_data", "Driver Data"),
|
||||
]
|
||||
headers_table = OrderedDict(headers_table)
|
||||
|
||||
@ -158,7 +160,9 @@ def node_list(zk, node_id=None):
|
||||
node.launcher,
|
||||
node.allocated_to,
|
||||
node.hold_job,
|
||||
node.comment
|
||||
node.comment,
|
||||
node.user_data,
|
||||
node.driver_data,
|
||||
]
|
||||
return values
|
||||
|
||||
|
@ -76,7 +76,7 @@ class TestNodepoolCMD(tests.DBTestCase):
|
||||
col_count = 9
|
||||
if detail:
|
||||
cmd += ['--detail']
|
||||
col_count = 18
|
||||
col_count = 20
|
||||
if not validate_col_count:
|
||||
col_count = 0
|
||||
self.assert_listed(configfile, cmd, 6, status, node_cnt, col_count)
|
||||
|
Loading…
x
Reference in New Issue
Block a user