get_vnc_console in the driver raises an InternalError exception which isn't handled by the API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova-powervm |
Fix Released
|
Undecided
|
Tyler Blakeslee |
Bug Description
At the moment the API for get_vnc_console is:
def get_vnc_
"""Get text console output."""
context = req.environ[
# If type is not supplied or unknown, get_vnc_console below will cope
instance = common.
try:
output = self.compute_
except exception.
raise webob.exc.
except (exception.
raise webob.exc.
except exception.
raise webob.exc.
except NotImplementedE
The nova-powervm driver method is:
def get_vnc_
"""Get connection info for a vnc console.
:param context: security context
:param instance: nova.objects.
:return: An instance of console.
"""
lpar_uuid = vm.get_
# Build the connection to the VNC.
host = CONF.vnc.
ca_certs = CONF.powervm.
server_key = CONF.powervm.
server_cert = CONF.powervm.
try:
# Open up a remote vterm with the host and certificates configured
# This will only use TLS if the use_x509_auth is set to True
port = pvm_vterm.
except pvm_exc.
raise exception.
except pvm_exc.Error:
# Otherwise wrapper the error in an exception that can be handled
raise exception.
InternalError isn't handled by the API, so you get "Unexpected API Error. Please report this at http://
Changed in nova-powervm: | |
assignee: | Matt Rabe (mdrabe) → Tyler Blakeslee (tblakes) |
description: | updated |
Changed in nova-powervm: | |
status: | New → In Progress |
Looking at subclassing one of the handled exceptions and raising that from the driver in place of InternalError.