Activity log for bug #1622623

Date Who What changed Old value New value Message
2016-09-12 14:07:57 Dmitriy Kruglov bug added bug
2016-09-12 14:19:21 Dmitriy Kruglov description Detailed bug description: Cudet tool fails to filter nodes by the given role when applying custom filter (via custom configuration file). Steps to reproduce: 1 Deploy a 9.1 cluste, e.g. 1 controller + 1 compute + 1 cinder nodes 2 Install Cudet yum install -y python-cudet 3 CD to /usr/share/cudet/ 4 Update cudet-config.yaml Cudet config file - set a role to filter by in [filters][roles] list type parameter 5 Run the tool specifying config file to use cudet -c ./cudet-config.yaml Expected result: the tool is executed according to filter parameters specified in the config file. Actual result: command execution returns 'No valid nodes were found which could fit filter parameters.' message. Description of the environment: MOS 9.1, snapshot #251. Detailed bug description: Cudet tool fails to filter nodes by the given role when applying custom filter (via custom configuration file). Steps to reproduce: 1 Deploy a 9.1 cluste, e.g. 1 controller + 1 compute + 1 cinder nodes 2 Install Cudet   yum install -y python-cudet 3 CD to /usr/share/cudet/ 4 Update cudet-config.yaml Cudet config file - set a role to filter by in [filters][roles] list type parameter 5 Run the tool specifying config file to use   cudet -c ./cudet-config.yaml Expected result: the tool is executed according to filter parameters specified in the config file. Actual result: command execution returns 'No valid nodes were found which could fit filter parameters.' message. It looks like the problem is in this method (cudet/nodes.py module): def _do_filter(self, nodes_info, attr): return [node for node in nodes_info if node.get(attr) in self.filters[attr]] In case of filtering by role the node.get(attr) expression returns a list, e.g. ['cinder'], and filter values are also provided in lists. So in case of filtering by role there is "['cinder'] in ['cinder']" check for the mentioned case. Description of the environment: MOS 9.1, snapshot #251.
2016-09-13 10:14:43 Nastya Urlapova fuel: importance Low High
2016-09-13 10:14:56 Nastya Urlapova fuel: assignee Fuel Sustaining (fuel-sustaining-team)
2016-09-13 10:39:38 Dmitry Klenov tags area-python
2016-09-13 10:39:42 Dmitry Klenov fuel: status New Confirmed
2016-09-13 10:57:10 Denis Meltsaykin fuel: milestone 9.1 9.2
2016-09-13 10:57:12 Denis Meltsaykin fuel: importance High Medium
2016-09-13 10:57:18 Denis Meltsaykin fuel: assignee Fuel Sustaining (fuel-sustaining-team) Denis Meltsaykin (dmeltsaykin)
2016-10-20 09:45:21 Tatsuro Makita bug added subscriber Tatsuro Makita
2017-02-03 11:07:27 Roman Vyalov fuel/mitaka: importance Undecided Medium
2017-02-03 11:07:27 Roman Vyalov fuel/mitaka: status New Confirmed
2017-02-03 11:07:27 Roman Vyalov fuel/mitaka: milestone 9.x-updates
2017-02-03 11:07:27 Roman Vyalov fuel/mitaka: assignee Denis Meltsaykin (dmeltsaykin)
2017-02-03 11:07:29 Roman Vyalov fuel: status Confirmed Won't Fix