Current status:
find cinder/cinder/volume/drivers -name '*.py' | while read file ; do echo "$file" ; nl $file | grep http_client ; done
cinder/cinder/volume/drivers/blockbridge.py 24 from six.moves import http_client 128 connection = http_client.HTTPSConnection(cfg['host'], cfg['port']) cinder/cinder/volume/drivers/dell_emc/vmax/https.py 28 from six.moves import http_client 63 Supplies an additional 'makefile' method which http_client requires 74 class HTTPSConnection(http_client.HTTPSConnection): 86 http_client.HTTPSConnection.__init__(self, host, port, 222 response in XML. Uses Python's build-in http_client. x509 may be a 282 except http_client.BadStatusLine as arg: cinder/cinder/volume/drivers/falconstor/rest_proxy.py 23 from six.moves import http_client 821 connection = http_client.HTTPConnection(self.hostip, 80, timeout=60) cinder/cinder/volume/drivers/prophetstor/dplcommon.py 31 from six.moves import http_client 90 connection = http_client.HTTPSConnection(self.ip, 108 except http_client.CannotSendRequest as e: 111 connection = http_client.HTTPSConnection(self.ip, 131 if response.status == http_client.SERVICE_UNAVAILABLE: 140 except http_client.ResponseNotReady as e: 151 and response.status == http_client.NOT_FOUND): 158 'response': http_client.responses[response.status], 160 if response.status == http_client.UNAUTHORIZED: 164 elif retcode == 0 and response.status is http_client.NOT_FOUND: 166 elif retcode == 0 and response.status is http_client.ACCEPTED: 180 response.status in [http_client.OK, http_client.CREATED] and 181 http_client.NO_CONTENT not in expected_status): 211 [http_client.OK, http_client.ACCEPTED]) 233 [http_client.OK, http_client.ACCEPTED, 234 http_client.CREATED]) 253 [http_client.OK, http_client.ACCEPTED, 254 http_client.CREATED]) 264 [http_client.OK, http_client.ACCEPTED, 265 http_client.NOT_FOUND, http_client.NO_CONTENT]) 290 [http_client.OK, http_client.ACCEPTED, 291 http_client.CREATED]) 307 [http_client.OK, http_client.ACCEPTED, 308 http_client.CREATED]) 312 return self._execute(method, url, None, [http_client.OK]) 317 [http_client.OK, http_client.ACCEPTED]) 341 [http_client.OK, http_client.CREATED, 342 http_client.ACCEPTED]) 361 [http_client.OK, http_client.CREATED, 362 http_client.ACCEPTED]) 368 [http_client.OK, http_client.ACCEPTED, 369 http_client.NOT_FOUND]) 376 [http_client.OK, http_client.NOT_FOUND]) 383 [http_client.OK, http_client.NOT_FOUND]) 406 [http_client.OK, http_client.ACCEPTED, 407 http_client.CREATED]) 427 [http_client.OK, http_client.ACCEPTED, 428 http_client.CREATED]) 445 [http_client.OK, http_client.ACCEPTED, 446 http_client.NO_CONTENT, http_client.NOT_FOUND]) 462 [http_client.OK, http_client.ACCEPTED, 463 http_client.NO_CONTENT, http_client.NOT_FOUND]) 477 [http_client.OK, http_client.ACCEPTED, 478 http_client.NO_CONTENT, http_client.NOT_FOUND]) 486 [http_client.OK, http_client.ACCEPTED]) 497 [http_client.OK]) 508 [http_client.OK]) 524 return self._execute(method, url, params, [http_client.OK]) 528 return self._execute(method, url, None, [http_client.OK]) 534 [http_client.OK, http_client.ACCEPTED, 535 http_client.NOT_FOUND]) 543 return self._execute(method, url, None, [http_client.OK]) 551 return self._execute(method, url, params, [http_client.OK]) 570 [http_client.OK, http_client.ACCEPTED, 571 http_client.CREATED]) 578 return self._execute(method, url, None, [http_client.OK]) 582 return self._execute(method, url, None, [http_client.OK]) 591 [http_client.NO_CONTENT, http_client.NOT_FOUND]) 602 [http_client.OK, http_client.ACCEPTED]) 613 [http_client.OK, http_client.ACCEPTED]) cinder/cinder/volume/drivers/qnap.py 34 from six.moves import http_client 694 connection = http_client.HTTPSConnection(management_ip, 698 connection = http_client.HTTPSConnection(management_ip, 702 http_client.HTTPConnection(management_ip, management_port)) 721 connection = http_client.HTTPSConnection(nas_ip, 725 connection = http_client.HTTPSConnection( 728 connection = http_client.HTTPConnection(nas_ip, self.port) cinder/cinder/volume/drivers/zfssa/restclient.py 22 from six.moves import http_client 31 OK = http_client.OK 33 CREATED = http_client.CREATED 35 ACCEPTED = http_client.ACCEPTED 37 NO_CONTENT = http_client.NO_CONTENT 39 BAD_REQUEST = http_client.BAD_REQUEST 41 UNAUTHORIZED = http_client.UNAUTHORIZED 43 FORBIDDEN = http_client.FORBIDDEN 45 NOT_FOUND = http_client.NOT_FOUND 47 NOT_ALLOWED = http_client.METHOD_NOT_ALLOWED 49 TIMEOUT = http_client.REQUEST_TIMEOUT 51 CONFLICT = http_client.CONFLICT 53 BUSY = http_client.SERVICE_UNAVAILABLE 72 self.data = http_client.responses[self.status] 96 if status in http_client.responses: 97 self.msg = http_client.responses[status] 140 if result.status == http_client.CREATED: 146 elif result.status == http_client.NOT_FOUND: 243 if err.code == http_client.NOT_FOUND: 247 if err.code == http_client.SERVICE_UNAVAILABLE and \ 253 if (err.code == http_client.UNAUTHORIZED or 254 err.code == http_client.INTERNAL_SERVER_ERROR) and \ 275 (response.getcode() == http_client.SERVICE_UNAVAILABLE and cinder/cinder/volume/drivers/zfssa/webdavclient.py 19 from six.moves import http_client 28 http_client.UNAUTHORIZED: _('User not authorized to perform WebDAV ' 30 http_client.BAD_GATEWAY: bad_gateway_err, 31 http_client.FORBIDDEN: _('Check access permissions for the ZFS share ' 33 http_client.NOT_FOUND: _('The source volume for this WebDAV operation not ' 35 http_client.INSUFFICIENT_STORAGE: _('Not enough storage space in the ZFS ' 59 if error in http_client.responses: 60 msg = http_client.responses[error] 97 if err.code == http_client.INTERNAL_SERVER_ERROR: 112 except http_client.BadStatusLine as err: 114 code = 'http_client.BadStatusLine'
Current status:
find cinder/ cinder/ volume/ drivers -name '*.py' | while read file ; do echo "$file" ; nl $file | grep http_client ; done
cinder/ cinder/ volume/ drivers/ blockbridge. py HTTPSConnection (cfg['host' ], cfg['port']) cinder/ volume/ drivers/ dell_emc/ vmax/https. py (http_client. HTTPSConnection ): HTTPSConnection .__init_ _(self, host, port, BadStatusLine as arg: cinder/ volume/ drivers/ falconstor/ rest_proxy. py HTTPConnection( self.hostip, 80, timeout=60) cinder/ volume/ drivers/ prophetstor/ dplcommon. py HTTPSConnection (self.ip, CannotSendReque st as e: HTTPSConnection (self.ip, SERVICE_ UNAVAILABLE: ResponseNotRead y as e: NOT_FOUND) : responses[ response. status] , UNAUTHORIZED: NOT_FOUND: ACCEPTED: CREATED] and NO_CONTENT not in expected_status): ACCEPTED] ) ACCEPTED, CREATED] ) ACCEPTED, CREATED] ) ACCEPTED, NOT_FOUND, http_client. NO_CONTENT] ) ACCEPTED, CREATED] ) ACCEPTED, CREATED] ) method, url, None, [http_client.OK]) ACCEPTED] ) CREATED, ACCEPTED] ) CREATED, ACCEPTED] ) ACCEPTED, NOT_FOUND] ) NOT_FOUND] ) NOT_FOUND] ) ACCEPTED, CREATED] ) ACCEPTED, CREATED] ) ACCEPTED, NO_CONTENT, http_client. NOT_FOUND] ) ACCEPTED, NO_CONTENT, http_client. NOT_FOUND] ) ACCEPTED, NO_CONTENT, http_client. NOT_FOUND] ) ACCEPTED] ) method, url, params, [http_client.OK]) method, url, None, [http_client.OK]) ACCEPTED, NOT_FOUND] ) method, url, None, [http_client.OK]) method, url, params, [http_client.OK]) ACCEPTED, CREATED] ) method, url, None, [http_client.OK]) method, url, None, [http_client.OK]) NO_CONTENT, http_client. NOT_FOUND] ) ACCEPTED] ) ACCEPTED] ) cinder/ volume/ drivers/ qnap.py HTTPSConnection (management_ ip, HTTPSConnection (management_ ip, HTTPConnection( management_ ip, management_port)) HTTPSConnection (nas_ip, HTTPSConnection ( HTTPConnection( nas_ip, self.port) cinder/ volume/ drivers/ zfssa/restclien t.py ACCEPTED NO_CONTENT BAD_REQUEST UNAUTHORIZED FORBIDDEN NOT_FOUND METHOD_ NOT_ALLOWED REQUEST_ TIMEOUT CONFLICT SERVICE_ UNAVAILABLE responses[ self.status] responses: responses[ status] CREATED: NOT_FOUND: NOT_FOUND: SERVICE_ UNAVAILABLE and \ UNAUTHORIZED or INTERNAL_ SERVER_ ERROR) and \ SERVICE_ UNAVAILABLE and cinder/ volume/ drivers/ zfssa/webdavcli ent.py UNAUTHORIZED: _('User not authorized to perform WebDAV ' BAD_GATEWAY: bad_gateway_err, FORBIDDEN: _('Check access permissions for the ZFS share ' NOT_FOUND: _('The source volume for this WebDAV operation not ' INSUFFICIENT_ STORAGE: _('Not enough storage space in the ZFS ' responses: responses[ error] INTERNAL_ SERVER_ ERROR: BadStatusLine as err: BadStatusLine'
24 from six.moves import http_client
128 connection = http_client.
cinder/
28 from six.moves import http_client
63 Supplies an additional 'makefile' method which http_client requires
74 class HTTPSConnection
86 http_client.
222 response in XML. Uses Python's build-in http_client. x509 may be a
282 except http_client.
cinder/
23 from six.moves import http_client
821 connection = http_client.
cinder/
31 from six.moves import http_client
90 connection = http_client.
108 except http_client.
111 connection = http_client.
131 if response.status == http_client.
140 except http_client.
151 and response.status == http_client.
158 'response': http_client.
160 if response.status == http_client.
164 elif retcode == 0 and response.status is http_client.
166 elif retcode == 0 and response.status is http_client.
180 response.status in [http_client.OK, http_client.
181 http_client.
211 [http_client.OK, http_client.
233 [http_client.OK, http_client.
234 http_client.
253 [http_client.OK, http_client.
254 http_client.
264 [http_client.OK, http_client.
265 http_client.
290 [http_client.OK, http_client.
291 http_client.
307 [http_client.OK, http_client.
308 http_client.
312 return self._execute(
317 [http_client.OK, http_client.
341 [http_client.OK, http_client.
342 http_client.
361 [http_client.OK, http_client.
362 http_client.
368 [http_client.OK, http_client.
369 http_client.
376 [http_client.OK, http_client.
383 [http_client.OK, http_client.
406 [http_client.OK, http_client.
407 http_client.
427 [http_client.OK, http_client.
428 http_client.
445 [http_client.OK, http_client.
446 http_client.
462 [http_client.OK, http_client.
463 http_client.
477 [http_client.OK, http_client.
478 http_client.
486 [http_client.OK, http_client.
497 [http_client.OK])
508 [http_client.OK])
524 return self._execute(
528 return self._execute(
534 [http_client.OK, http_client.
535 http_client.
543 return self._execute(
551 return self._execute(
570 [http_client.OK, http_client.
571 http_client.
578 return self._execute(
582 return self._execute(
591 [http_client.
602 [http_client.OK, http_client.
613 [http_client.OK, http_client.
cinder/
34 from six.moves import http_client
694 connection = http_client.
698 connection = http_client.
702 http_client.
721 connection = http_client.
725 connection = http_client.
728 connection = http_client.
cinder/
22 from six.moves import http_client
31 OK = http_client.OK
33 CREATED = http_client.CREATED
35 ACCEPTED = http_client.
37 NO_CONTENT = http_client.
39 BAD_REQUEST = http_client.
41 UNAUTHORIZED = http_client.
43 FORBIDDEN = http_client.
45 NOT_FOUND = http_client.
47 NOT_ALLOWED = http_client.
49 TIMEOUT = http_client.
51 CONFLICT = http_client.
53 BUSY = http_client.
72 self.data = http_client.
96 if status in http_client.
97 self.msg = http_client.
140 if result.status == http_client.
146 elif result.status == http_client.
243 if err.code == http_client.
247 if err.code == http_client.
253 if (err.code == http_client.
254 err.code == http_client.
275 (response.getcode() == http_client.
cinder/
19 from six.moves import http_client
28 http_client.
30 http_client.
31 http_client.
33 http_client.
35 http_client.
59 if error in http_client.
60 msg = http_client.
97 if err.code == http_client.
112 except http_client.
114 code = 'http_client.