syndicate-storage / syndicate-core

Scalable Software-define Storage System
Apache License 2.0
4 stars 1 forks source link

reload_volume raises a warning #25

Open iychoi opened 7 years ago

iychoi commented 7 years ago
iychoi@demo1:~/appspot_ms$ syndicate reload_volume_cert imicrobe
[2017-06-06 00:18:40,820] [ERROR] [certs:173] (12573) Volume cert downloader errors:
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning

reload_volume_cert command causes warning from urllib3 library and this is shown as an error. The command worked well so the warning needs to be suppressed.

iychoi commented 7 years ago

More warnings from urllib3.

[2017-06-07 07:42:12,510] [ERROR] [certs:231] (587) User cert downloader errors:
/usr/local/lib/python2.7/dist-packages/urllib3/util/ssl_.py:335: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/urllib3/util/ssl_.py:133: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning

Here's the way to suppress or resolve the warning. https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2