Fix ConsoleAuthTokens API¶
The current ConsoleAuthTokens API allows getting connection info only for tokens which correspond to RDP consoles. We need this API to also work for MKS tokens in order to implement a standalone MKS proxy. The proposal is to change this API to work for all types of tokens.
Standalone console proxies need this API but it is restricted only for RDP. So there is no way to implement a console proxy outside of the Nova tree.
Provide VM consoles for all protocols.
Change the implementation of ConsoleAuthTokens to provide connect information for all types of tokens (not only RDP).
The alternative is to put all proxy implementations in the Nova codebase. This won’t work for many reasons.
Data model impact¶
REST API impact¶
The REST API will remain unchanged, only the implemenation will be changed. It is as simple as removing the following if statement in console_auth_tokens.py:
def show(self, req, id):
if console_type != "rdp-html5":
However, we will need a new API micro version to differentiate from the old behavior which is to return HTTP 401 for non-RDP tokens.
Other end user impact¶
Other deployer impact¶
- Primary assignee:
It will be implemented in a single patch which fixes the API implementation and bumps the micro version.
Unit and functional tests.