[Bug 1833814] Re: heat_dashboard: Cannot get openstack resources & Error: Unable to retrieve stack list.

Corey Bryant corey.bryant at canonical.com
Wed Jul 3 21:54:30 UTC 2019


successfully list resources

** Attachment added: "resources-screenshot.png"
   https://bugs.launchpad.net/cloud-archive/+bug/1833814/+attachment/5274958/+files/resources-screenshot.png

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1833814

Title:
  heat_dashboard: Cannot get openstack resources & Error: Unable to
  retrieve stack list.

Status in Ubuntu Cloud Archive:
  Incomplete
Status in heat-dashboard package in Ubuntu:
  Incomplete

Bug description:
  On "Stacks" tab access:

  ==> /var/log/apache2/error.log <==
  [Sat Jun 22 13:47:19.508215 2019] [wsgi:error] [pid 429649:tid 140430026204928] [remote 10.232.46.207:53860] Recoverable error: ERROR: Internal Error

  ==> /var/log/apache2/ssl_access.log <==
  10.232.46.207 - - [22/Jun/2019:13:47:19 +0000] "GET /project/stacks/ HTTP/1.1" 200 6511 "https://dashboard.maas/project/stacks/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0"
  10.232.46.207 - - [22/Jun/2019:13:47:20 +0000] "GET /i18n/js/horizon+openstack_dashboard+neutron_lbaas_dashboard+heat_dashboard+designatedashboard+neutron_fwaas_dashboard/ HTTP/1.1" 200 3590 "https://dashboard.maas/project/stacks/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0"
  10.232.46.207 - - [22/Jun/2019:13:47:20 +0000] "GET /header/ HTTP/1.1" 200 566 "https://dashboard.maas/project/stacks/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0"

  
  On "Template Generator" tab access:

  ==> /var/log/apache2/error.log <==
  [Sat Jun 22 13:44:17.925194 2019] [wsgi:error] [pid 429650:tid 140429602666240] InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warningsInsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warningsUnhashableKeyWarning: The key of openstack_dashboard.api.nova novaclient is not hashable and cannot be memoized: ((('intranet\\\\Administrator', 'gAAAAABdDilRM6ZM9B0K6SyYyUurvtTrU6JwYvg_R6GmcHJwzsASuvBMvi8LvLEwq0hOwhUfy3KsSRHlMTgU_rtuBU8U_XAS3rvxSzqmDe8QpuSl3jVf-gEajENTOaBTabRqPKxnbTKJo6Z801VsJNv78qiw2J_agCqHJFrJFX3ru4fDzg6DLqYZY5MGTxDY2yutLAiiU0b1V8taNatP18DZz2WNReraHQ', '7de76f768cb84149b8b2d693d1d21f45', 'e834e57943714e058c203d4f544ea946', 'https://nova.maas:8774/v2.1', 'https://keystone.maas:5000/v3'),), (('version', <weakref at 0x7fb849d13368; to 'APIVersion' at 0x7fb849d11390>),))
  [Sat Jun 22 13:44:18.994626 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050] Internal Server Error: /project/template_generator/get_resource_options
  [Sat Jun 22 13:44:18.994661 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050] Traceback (most recent call last):
  [Sat Jun 22 13:44:18.994668 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]   File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 41, in inner
  [Sat Jun 22 13:44:18.994673 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]     response = get_response(request)
  [Sat Jun 22 13:44:18.994678 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]   File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 187, in _get_response
  [Sat Jun 22 13:44:18.994683 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]     response = self.process_exception_by_middleware(e, request)
  [Sat Jun 22 13:44:18.994689 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]   File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 185, in _get_response
  [Sat Jun 22 13:44:18.994694 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
  [Sat Jun 22 13:44:18.994699 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]   File "/usr/lib/python3/dist-packages/horizon/decorators.py", line 36, in dec
  [Sat Jun 22 13:44:18.994704 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]     return view_func(request, *args, **kwargs)
  [Sat Jun 22 13:44:18.994709 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]   File "/usr/lib/python3/dist-packages/horizon/decorators.py", line 52, in dec
  [Sat Jun 22 13:44:18.994714 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]     return view_func(request, *args, **kwargs)
  [Sat Jun 22 13:44:18.994719 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]   File "/usr/lib/python3/dist-packages/horizon/decorators.py", line 36, in dec
  [Sat Jun 22 13:44:18.994724 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]     return view_func(request, *args, **kwargs)
  [Sat Jun 22 13:44:18.994729 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]   File "/usr/lib/python3/dist-packages/horizon/decorators.py", line 113, in dec
  [Sat Jun 22 13:44:18.994734 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]     return view_func(request, *args, **kwargs)
  [Sat Jun 22 13:44:18.994739 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]   File "/usr/lib/python3/dist-packages/horizon/decorators.py", line 84, in dec
  [Sat Jun 22 13:44:18.994744 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]     return view_func(request, *args, **kwargs)
  [Sat Jun 22 13:44:18.994749 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]   File "/usr/lib/python3/dist-packages/django/views/generic/base.py", line 68, in view
  [Sat Jun 22 13:44:18.994754 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]     return self.dispatch(request, *args, **kwargs)
  [Sat Jun 22 13:44:18.994759 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]   File "/usr/lib/python3/dist-packages/django/views/generic/base.py", line 88, in dispatch
  [Sat Jun 22 13:44:18.994772 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]     return handler(request, *args, **kwargs)
  [Sat Jun 22 13:44:18.994777 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]   File "/usr/lib/python3/dist-packages/heat_dashboard/content/template_generator/views.py", line 30, in get
  [Sat Jun 22 13:44:18.994789 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]     return HttpResponse(api.get_resource_options(request),
  [Sat Jun 22 13:44:18.994795 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]   File "/usr/lib/python3/dist-packages/heat_dashboard/content/template_generator/api.py", line 279, in get_resource_options
  [Sat Jun 22 13:44:18.994800 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]     return json.dumps(options)
  [Sat Jun 22 13:44:18.994805 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]   File "/usr/lib/python3.6/json/__init__.py", line 231, in dumps
  [Sat Jun 22 13:44:18.994810 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]     return _default_encoder.encode(obj)
  [Sat Jun 22 13:44:18.994815 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]   File "/usr/lib/python3.6/json/encoder.py", line 199, in encode
  [Sat Jun 22 13:44:18.994820 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]     chunks = self.iterencode(o, _one_shot=True)
  [Sat Jun 22 13:44:18.994825 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]   File "/usr/lib/python3.6/json/encoder.py", line 257, in iterencode
  [Sat Jun 22 13:44:18.994830 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]     return _iterencode(o, 0)
  [Sat Jun 22 13:44:18.994835 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]   File "/usr/lib/python3.6/json/encoder.py", line 180, in default
  [Sat Jun 22 13:44:18.994840 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050]     o.__class__.__name__)
  [Sat Jun 22 13:44:18.994847 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050] TypeError: Object of type 'bytes' is not JSON serializable
  [Sat Jun 22 13:44:18.994857 2019] [wsgi:error] [pid 429650:tid 140429950613248] [remote 10.232.46.207:49050] 

  ==> /var/log/apache2/ssl_access.log <==
  10.232.46.207 - - [22/Jun/2019:13:44:12 +0000] "GET /project/template_generator/get_resource_options HTTP/1.1" 500 2236 "https://dashboard.maas/project/template_generator/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0"

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1833814/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list