fuelclient 'fuel node' makes extra calls when filtering nodes by env
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
Medium
|
Roman Prykhodchenko |
Bug Description
When using 'fuel --debug' I found that 'fuel node' calls that are filtered with '--env' actually makes multiple calls to get each nodes data but (/api/nodes/<node id>) but all of the data rendered is available in /api/nodes output.
[root@nailgun ~]# fuel node --debug
GET http://
id | status | name | cluster | ip | mac | roles | pending_roles | online | group_id
---|---
14 | discover | Untitled (9e:71) | None | 10.108.52.230 | 64:af:25:a1:9e:71 | | | True | None
15 | discover | Untitled (82:5c) | None | 10.108.52.238 | 64:fd:39:f9:82:5c | | | True | None
7 | discover | Untitled (32:7b) | 2 | 10.108.52.169 | 64:03:fa:1f:32:7b | | controller | True | 2
6 | discover | Untitled (61:94) | 2 | 10.108.47.165 | 64:74:27:5f:61:94 | | compute | True | 3
5 | discover | Untitled (80:bb) | 2 | 10.108.47.197 | 64:fb:0f:3f:80:bb | | compute | True | 3
12 | discover | Untitled (14:30) | None | 10.108.52.151 | 64:50:cd:f8:14:30 | | | True | None
3 | discover | Untitled (2e:a3) | 2 | 10.108.52.177 | 64:c9:00:54:2e:a3 | | controller | True | 2
4 | discover | Untitled (ba:52) | 2 | 10.108.52.206 | 64:c3:ce:aa:ba:52 | | controller | True | 2
13 | discover | Untitled (f3:76) | None | 10.108.52.140 | 64:3a:10:13:f3:76 | | | True | None
[root@nailgun ~]# fuel node --debug --env 2
GET http://
GET http://
GET http://
GET http://
GET http://
GET http://
GET http://
GET http://
GET http://
GET http://
id | status | name | cluster | ip | mac | roles | pending_roles | online | group_id
---|---
7 | discover | Untitled (32:7b) | 2 | 10.108.52.169 | 64:03:fa:1f:32:7b | | controller | True | 2
6 | discover | Untitled (61:94) | 2 | 10.108.47.165 | 64:74:27:5f:61:94 | | compute | True | 3
5 | discover | Untitled (80:bb) | 2 | 10.108.47.197 | 64:fb:0f:3f:80:bb | | compute | True | 3
3 | discover | Untitled (2e:a3) | 2 | 10.108.52.177 | 64:c9:00:54:2e:a3 | | controller | True | 2
4 | discover | Untitled (ba:52) | 2 | 10.108.52.206 | 64:c3:ce:aa:ba:52 | | controller | True | 2
expected result is that output from /api/nodes is filtered by the client so extra calls to API are not needed
Changed in fuel: | |
milestone: | none → 6.0 |
importance: | Undecided → Medium |
tags: | added: scale |
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Tomasz 'Zen' Napierala (tzn) |
Changed in fuel: | |
assignee: | Tomasz 'Zen' Napierala (tzn) → Roman Prykhodchenko (romcheg) |
Fix proposed to branch: master /review. openstack. org/134498
Review: https:/