Hitachi: Trace REST API input/output logs

Trace REST API input/output to determine the cause when a problem
occurs.

Change-Id: Id0fb2133e767334cd769c852090befa92b605a8b
This commit is contained in:
Kazumasa Nomura 2021-02-25 11:44:02 +00:00
parent c6b2ea4253
commit 5e5ae07643
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ from oslo_utils import timeutils
import requests
from cinder.volume.drivers.hitachi import hbsd_utils as utils
from cinder.volume import volume_utils
_LOCK_WAITTIME = 2 * 60 * 60
_EXEC_MAX_WAITTIME = 30
@ -234,6 +235,7 @@ class RestApiClient():
}
return req
@volume_utils.trace
def _request(self, method, url, params=None, body=None,
async_=False, **kwargs):
"""Transmit the request to REST API server."""