Do not request NFVi metrics from empty nodes 73/59673/1
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Wed, 11 Jul 2018 11:39:51 +0000 (12:39 +0100)
committerRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Wed, 11 Jul 2018 11:42:26 +0000 (12:42 +0100)
commit1a34e5d4ae77f064c598fe84b4c5c1237b1d763d
treeaac2c28271067ecaf7d839669a206a488793da00
parent438f7b5100e05ed668a0ea90674008a391eb5784
Do not request NFVi metrics from empty nodes

In Collector class [1], the information from the nodes is retrieved to
create a ResourceProfile object per node. If the node information is
empty, Collector should skip this node.

[1] https://github.com/opnfv/yardstick/blob/master/yardstick/network_services/collector/subscriber.py#L34

JIRA: YARDSTICK-1302

Change-Id: I84dff3e20881352263736b682a60a4f382960153
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
yardstick/network_services/collector/subscriber.py
yardstick/tests/unit/network_services/collector/test_subscriber.py