608ceab04b
Currently some tests wrongfully call list_openstack_nodes(group='controller') in order to run tests on the whole control plane. That assumption does not hold true in case of composable HA where the control plane consists of 3 controller nodes (w/ haproxy+vip), 3 database nodes and 3 messaging nodes. In such cases we'd have to filter three times for the group of the node (aka resource class). Let's allow list_openstack_nodes to have a list of group, so all its users are allowed to pass a list of groups instead. Instead of overloading the get_group() function directly, we add a simple get_groups() function and use that inside list_openstack_nodes() when group is a list. Tested this on a composable HA and we correctly get all the nodes when calling the following: groups = ['controller', 'messaging', 'database'] nodes = topology.list_openstack_nodes(group=groups) Co-Authored-By: Luca Miccini <lmiccini@redhat.com> Change-Id: I6995a73c482ba7b654d089316f47668d86c495e1 |
||
---|---|---|
.. | ||
glance | ||
heat | ||
keystone | ||
neutron | ||
nova | ||
octavia | ||
stacks | ||
topology | ||
__init__.py | ||
_client.py |