yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #66690
[Bug 1710984] [NEW] Wrong nova.server_list handling for several tabs
Public bug reported:
Tabs /projects/volumes, /project/floating_ips/ and some other have wrong handling for api.nova.server_list, e.g.
/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/volumes/tabs.py: instances, has_more = api.nova.server_list(self.request,search_opts=search_opts,detailed=False)
meanwhile it returns 3 values:
ValueError: 'too many values to unpack'
(Pdb) api.nova.server_list(self.request,search_opts=search_opts,detailed=False)
([<Server: {'id': u'26c2173c-322d-4944-a286-5cb7078cd411', 'links': [{u'href': u'http://10.101.0.46:8774/v2.1/09ded4150fb84f96a44cbf91e203d4e1/servers/26c2173c-322d-4944-a286-5cb7078cd411', u'rel': u'self'}, {u'href': u'http://10.101.0.46:8774/09ded4150fb84f96a44cbf91e203d4e1/servers/26c2173c-322d-4944-a286-5cb7078cd411', u'rel': u'bookmark'}], 'name': u'test2'}>, <Server: {'id': u'99d5e094-e1a8-4657-9c63-b689347b7366', 'links': [{u'href': u'http://10.101.0.46:8774/v2.1/09ded4150fb84f96a44cbf91e203d4e1/servers/99d5e094-e1a8-4657-9c63-b689347b7366', u'rel': u'self'}, {u'href': u'http://10.101.0.46:8774/09ded4150fb84f96a44cbf91e203d4e1/servers/99d5e094-e1a8-4657-9c63-b689347b7366', u'rel': u'bookmark'}], 'name': u'test'}>], False, False)
Error in horizon for /projects/volumes doesn't give any idea about the
problem ("Error: Unable to retrieve volume/instance attachment
information").
Please note, that other tabs has correct handling:
/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/network_topology/views.py: servers, more, __ = api.nova.server_list(request)
** Affects: horizon
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1710984
Title:
Wrong nova.server_list handling for several tabs
Status in OpenStack Dashboard (Horizon):
New
Bug description:
Tabs /projects/volumes, /project/floating_ips/ and some other have wrong handling for api.nova.server_list, e.g.
/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/volumes/tabs.py: instances, has_more = api.nova.server_list(self.request,search_opts=search_opts,detailed=False)
meanwhile it returns 3 values:
ValueError: 'too many values to unpack'
(Pdb) api.nova.server_list(self.request,search_opts=search_opts,detailed=False)
([<Server: {'id': u'26c2173c-322d-4944-a286-5cb7078cd411', 'links': [{u'href': u'http://10.101.0.46:8774/v2.1/09ded4150fb84f96a44cbf91e203d4e1/servers/26c2173c-322d-4944-a286-5cb7078cd411', u'rel': u'self'}, {u'href': u'http://10.101.0.46:8774/09ded4150fb84f96a44cbf91e203d4e1/servers/26c2173c-322d-4944-a286-5cb7078cd411', u'rel': u'bookmark'}], 'name': u'test2'}>, <Server: {'id': u'99d5e094-e1a8-4657-9c63-b689347b7366', 'links': [{u'href': u'http://10.101.0.46:8774/v2.1/09ded4150fb84f96a44cbf91e203d4e1/servers/99d5e094-e1a8-4657-9c63-b689347b7366', u'rel': u'self'}, {u'href': u'http://10.101.0.46:8774/09ded4150fb84f96a44cbf91e203d4e1/servers/99d5e094-e1a8-4657-9c63-b689347b7366', u'rel': u'bookmark'}], 'name': u'test'}>], False, False)
Error in horizon for /projects/volumes doesn't give any idea about the
problem ("Error: Unable to retrieve volume/instance attachment
information").
Please note, that other tabs has correct handling:
/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/network_topology/views.py: servers, more, __ = api.nova.server_list(request)
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1710984/+subscriptions
Follow ups