Values which can be specified in OPENSTACK_API_VERSIONS are only values defined in openstack_dashbaord code. In nova case, "2" is the only valid value [1]. If other value is specified in OPENSTACK_API_VERSIONS, an exception will be raised. I cannot understand why other values like "2.6" can be specified in OPENSTACK_API_VERSIONS. I believe we don't need to fix this.
[1] https://github.com/openstack/horizon/blob/ebd5649ab409f55f75f5c8d583e2262923c89b3b/openstack_dashboard/api/nova.py#L50 ** Changed in: horizon Status: In Progress => Invalid ** Changed in: horizon Milestone: rocky-1 => None ** Changed in: horizon Assignee: Sam Morrison (sorrison) => (unassigned) -- 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: Remote console doesn't work when specifying nova API V2.6 or later in OPENSTACK_API_VERSIONS Status in OpenStack Dashboard (Horizon): Invalid 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 -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp