Show nodelist in NodesTab of a cluster failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
senlin-dashboard |
Fix Released
|
Undecided
|
lidong |
Bug Description
Reproduce:
1. Cluster/Clusters page
2. Click Tab Nodes of one cluster selected
3. The nodelist of the cluster didn't appear all the time
-------
The log of horizon belowed:
[Wed Nov 22 08:04:42.390644 2017] [:error] [pid 19] Error while rendering table rows.
[Wed Nov 22 08:04:42.390720 2017] [:error] [pid 19] Traceback (most recent call last):
[Wed Nov 22 08:04:42.390726 2017] [:error] [pid 19] File "/var/lib/
[Wed Nov 22 08:04:42.390731 2017] [:error] [pid 19] row = self._meta.
[Wed Nov 22 08:04:42.390734 2017] [:error] [pid 19] File "/var/lib/
[Wed Nov 22 08:04:42.390738 2017] [:error] [pid 19] self.load_cells()
[Wed Nov 22 08:04:42.390741 2017] [:error] [pid 19] File "/var/lib/
[Wed Nov 22 08:04:42.390745 2017] [:error] [pid 19] cell = table._
[Wed Nov 22 08:04:42.390748 2017] [:error] [pid 19] File "/var/lib/
[Wed Nov 22 08:04:42.390751 2017] [:error] [pid 19] self.data = self.get_
[Wed Nov 22 08:04:42.390754 2017] [:error] [pid 19] File "/var/lib/
[Wed Nov 22 08:04:42.390765 2017] [:error] [pid 19] six.text_
[Wed Nov 22 08:04:42.390768 2017] [:error] [pid 19] File "/var/lib/
[Wed Nov 22 08:04:42.390771 2017] [:error] [pid 19] return datum.id
[Wed Nov 22 08:04:42.390774 2017] [:error] [pid 19] AttributeError: 'list' object has no attribute 'id'
[Wed Nov 22 08:04:42.393261 2017] [:error] [pid 19] Internal Server Error: /cluster/
Then i read the code of senlin-dashboard, i found that belowed :
In this file : https:/
line 362: return [Node(n) for n in nodes], has_more_data, has_prev_data in fun node_list
and in this file : https:/
line 74: cluster_nodes = senlin.
cluster_
And i change it(line 74) to cluster_nodes, self._more, self._prev = senlin.
Finally, thie nodelist of the cluster appeared soon
Changed in senlin-dashboard: | |
status: | New → Confirmed |
assignee: | nobody → lidong (lidong007) |
status: | Confirmed → New |
description: | updated |
Fix proposed to branch: master /review. openstack. org/522463
Review: https:/