Send all node information to executor
We were missing some info such as private_ipv4; just send the entire zookeeper dict structure to the executor which will then filter as appropriate. Change-Id: Iad29ec91cb0c144c3a4668f0504e571238b6ab41
This commit is contained in:
parent
22dd6506f4
commit
1ae9fb313a
|
@ -221,16 +221,9 @@ class ExecutorClient(object):
|
|||
nodeset = item.current_build_set.getJobNodeSet(job.name)
|
||||
nodes = []
|
||||
for node in nodeset.getNodes():
|
||||
nodes.append(dict(name=node.name, label=node.label,
|
||||
az=node.az,
|
||||
cloud=node.cloud,
|
||||
host_keys=node.host_keys,
|
||||
provider=node.provider,
|
||||
region=node.region,
|
||||
ssh_port=node.ssh_port,
|
||||
interface_ip=node.interface_ip,
|
||||
public_ipv6=node.public_ipv6,
|
||||
public_ipv4=node.public_ipv4))
|
||||
n = node.toDict()
|
||||
n.update(dict(name=node.name, label=node.label))
|
||||
nodes.append(n)
|
||||
params['nodes'] = nodes
|
||||
params['groups'] = [group.toDict() for group in nodeset.getGroups()]
|
||||
params['vars'] = copy.deepcopy(job.variables)
|
||||
|
|
Loading…
Reference in New Issue