The 3PAR driver creates new SSH connection to the backend for each
operation (eg. create/delete volume).
There is a limit on maximum number of SSH connections from 3PAR
backend i.e 24 connections.
The problem is that when multiple concurrent operations are
performed, this limit gets reached & further operations get
errored out.
This patch performs two things:
[a] Instead of creating new session for each operation, an attempt is
made to reuse existing session for as most operations.
[b] Since WSAPI of 3PAR has evolved, wsapi (http/https) requests are
used; thus SSH connections are no longer required.
Reviewed: https:/ /review. opendev. org/c/openstack /cinder/ +/804698 /opendev. org/openstack/ cinder/ commit/ 1daded795109b9c c8e3954befe5134 00fe1ef036
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 1daded795109b9c c8e3954befe5134 00fe1ef036
Author: stack <email address hidden>
Date: Mon Aug 16 11:10:55 2021 +0000
HPE 3PAR: Reuse existing session
The 3PAR driver creates new SSH connection to the backend for each
operation (eg. create/delete volume).
There is a limit on maximum number of SSH connections from 3PAR
backend i.e 24 connections.
The problem is that when multiple concurrent operations are
performed, this limit gets reached & further operations get
errored out.
This patch performs two things:
[a] Instead of creating new session for each operation, an attempt is
made to reuse existing session for as most operations.
[b] Since WSAPI of 3PAR has evolved, wsapi (http/https) requests are
used; thus SSH connections are no longer required.
Closes-Bug: #1940069 e9ab2e5e9165651 173d9b2afd0
Change-Id: Ica59db93a0153b