nova/nova/console
melanie witt b1b28169af Move create of ComputeAPI object in websocketproxy
Currently, we create a compute.rpcapi.ComputeAPI object during
NovaProxyRequestHandler.__init__ in order to make calls to nova-compute
for console token authorizations (port validation). This is problematic
in the event that we receive a TCP RST as it results in constructing a
ComputeAPI object only to throw it away and a large number of TCP RST
sent can cause excessive resource consumption.

This moves the creation of the ComputeAPI object from __init__ to being
lazily instantiated upon first use by access of a property, thus
avoiding creation of ComputeAPI objects when we receive TCP RST
messages.

Closes-Bug: #1816727

Change-Id: I3fe5540ea460fb32767b5e681295fdaf89ce17c5
(cherry picked from commit e4fa061f17)
2019-04-02 15:43:18 +00:00
..
rfb Fix accumulated nits 2018-01-16 14:54:04 +00:00
securityproxy remove unnecessary conf imports 2018-03-09 14:30:10 -05:00
__init__.py Improve hacking rule to avoid author markers 2014-05-05 14:35:20 +02:00
api.py remove unnecessary conf imports 2018-03-09 14:30:10 -05:00
manager.py trivial: fix a comment typo 2018-04-11 18:05:46 +08:00
rpcapi.py conf: remove *_topic config opts 2017-07-17 21:27:02 -07:00
serial.py Remove translation of log messages 2017-07-18 09:03:39 +00:00
type.py Add MKS console support 2015-07-25 15:01:44 +03:00
websocketproxy.py Move create of ComputeAPI object in websocketproxy 2019-04-02 15:43:18 +00:00
xvp.conf.template Port Cheetah templates to Jinja2 2013-09-02 16:03:34 +02:00
xvp.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00