Get cinder-block-device role
Get cinder-block-device role into account for cinder volume related tests. Change-Id: I4b62703d55b12a3de264f69ff85d82d1fe1b0c63 Closes-Bug: #1545001
This commit is contained in:
parent
6e5c57ccb2
commit
24db798ca9
|
@ -677,8 +677,13 @@ class NailgunConfig(object):
|
|||
online_controllers = filter(
|
||||
lambda node: 'controller' in node['roles'] and
|
||||
node['online'] is True, data)
|
||||
cinder_nodes = filter(lambda node: 'cinder' in node['roles'],
|
||||
data)
|
||||
|
||||
cinder_nodes = []
|
||||
cinder_roles = ['cinder', 'cinder-block-device']
|
||||
for cinder_role in cinder_roles:
|
||||
cinder_nodes.extend(
|
||||
filter(lambda node: cinder_role in node['roles'], data))
|
||||
|
||||
cinder_vmware_nodes = filter(lambda node: 'cinder-vmware' in
|
||||
node['roles'], data)
|
||||
controller_ips = []
|
||||
|
|
Loading…
Reference in New Issue