← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1715542] [NEW] Remove console doesn't work when using nova API V2.1

 

Public bug reported:

Upgraded horizon to Ocata and now remote consoles don't work.

This is due to horizon switching to using the new server-remote-consoles
API see:

https://developer.openstack.org/api-ref/compute/#server-remote-consoles

Also deprecation about the old way at

https://developer.openstack.org/api-ref/compute/#get-vnc-console-os-
getvncconsole-action-deprecated


The error is masked as there is a dangerous catch all exception (removing it shows the following)


  File "/opt/horizon/openstack_dashboard/dashboards/project/instances/views.py", line 312, in get_context_data
    context = super(DetailView, self).get_context_data(**kwargs)
  File "/opt/horizon/horizon/tabs/views.py", line 56, in get_context_data
    exceptions.handle(self.request)
  File "/opt/horizon/horizon/exceptions.py", line 354, in handle
    six.reraise(exc_type, exc_value, exc_traceback)
  File "/opt/horizon/horizon/tabs/views.py", line 54, in get_context_data
    context["tab_group"].load_tab_data()
  File "/opt/horizon/horizon/tabs/base.py", line 128, in load_tab_data
    exceptions.handle(self.request)
  File "/opt/horizon/horizon/exceptions.py", line 354, in handle
    six.reraise(exc_type, exc_value, exc_traceback)
  File "/opt/horizon/horizon/tabs/base.py", line 125, in load_tab_data
    tab._data = tab.get_context_data(self.request)
  File "/opt/horizon/openstack_dashboard/dashboards/project/instances/tabs.py", line 74, in get_context_data
    request, console_type, instance)
  File "/opt/horizon/openstack_dashboard/dashboards/project/instances/console.py", line 53, in get_console
    console = api_call(request, instance.id)
  File "/opt/horizon/openstack_dashboard/api/nova.py", line 504, in server_vnc_console
    instance_id, console_type)['console'])
KeyError: 'console'

** Affects: horizon
     Importance: Undecided
     Assignee: Sam Morrison (sorrison)
         Status: In Progress

-- 
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/1715542

Title:
  Remove console doesn't work when using nova API V2.1

Status in OpenStack Dashboard (Horizon):
  In Progress

Bug description:
  Upgraded horizon to Ocata and now remote consoles don't work.

  This is due to horizon switching to using the new server-remote-
  consoles API see:

  https://developer.openstack.org/api-ref/compute/#server-remote-
  consoles

  Also deprecation about the old way at

  https://developer.openstack.org/api-ref/compute/#get-vnc-console-os-
  getvncconsole-action-deprecated

  
  The error is masked as there is a dangerous catch all exception (removing it shows the following)

  
    File "/opt/horizon/openstack_dashboard/dashboards/project/instances/views.py", line 312, in get_context_data
      context = super(DetailView, self).get_context_data(**kwargs)
    File "/opt/horizon/horizon/tabs/views.py", line 56, in get_context_data
      exceptions.handle(self.request)
    File "/opt/horizon/horizon/exceptions.py", line 354, in handle
      six.reraise(exc_type, exc_value, exc_traceback)
    File "/opt/horizon/horizon/tabs/views.py", line 54, in get_context_data
      context["tab_group"].load_tab_data()
    File "/opt/horizon/horizon/tabs/base.py", line 128, in load_tab_data
      exceptions.handle(self.request)
    File "/opt/horizon/horizon/exceptions.py", line 354, in handle
      six.reraise(exc_type, exc_value, exc_traceback)
    File "/opt/horizon/horizon/tabs/base.py", line 125, in load_tab_data
      tab._data = tab.get_context_data(self.request)
    File "/opt/horizon/openstack_dashboard/dashboards/project/instances/tabs.py", line 74, in get_context_data
      request, console_type, instance)
    File "/opt/horizon/openstack_dashboard/dashboards/project/instances/console.py", line 53, in get_console
      console = api_call(request, instance.id)
    File "/opt/horizon/openstack_dashboard/api/nova.py", line 504, in server_vnc_console
      instance_id, console_type)['console'])
  KeyError: 'console'

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1715542/+subscriptions


Follow ups