Self-signed certificates are automatically created and installed by the Commvault software. If you use a self-signed certificate, users will see a warning in the browser indicating that it is not safe to proceed. If you have an expired certificate, you can create or import a new certificate, and then configure SSL on the Tomcat Server.
Got above error when tried to integrate EMC Unity cinder driver with TripleO Openstack Newton release.
Workarounded it by adding:
import ssl
and in EMCUnityRESTClient class init:
ssl._create_default_https_context = ssl._create_unverified_context
as was suggested here:
servo/servo#5917
EMC Unity backend: UnityOE V4.0
Error details:
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume Traceback (most recent call last):
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume File '/usr/lib/python2.7/site-packages/cinder/cmd/volume.py', line 99, in main
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume cluster=cluster)
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume File '/usr/lib/python2.7/site-packages/cinder/service.py', line 382, in create
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume cluster=cluster)
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume File '/usr/lib/python2.7/site-packages/cinder/service.py', line 202, in init
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume *args, **kwargs)
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume File '/usr/lib/python2.7/site-packages/cinder/volume/manager.py', line 242, in init
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume active_backend_id=curr_active_backend_id)
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume File '/usr/lib/python2.7/site-packages/oslo_utils/importutils.py', line 44, in import_object
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume return import_class(import_str)(*args, **kwargs)
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume File '/usr/lib/python2.7/site-packages/cinder/volume/drivers/emc/emc_unity.py', line 1455, in init
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume self.helper = EMCUnityHelper(self.configuration)
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume File '/usr/lib/python2.7/site-packages/cinder/volume/drivers/emc/emc_unity.py', line 639, in init
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume ('name', 'softwareVersion'))
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume File '/usr/lib/python2.7/site-packages/cinder/volume/drivers/emc/emc_unity.py', line 314, in get_basic_syste
m_info
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume return self._get_all('basicSystemInfo', fields)
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume File '/usr/lib/python2.7/site-packages/cinder/volume/drivers/emc/emc_unity.py', line 283, in _get_all
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume err, resp = self._request(get_all_url)
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume File '/usr/lib/python2.7/site-packages/cinder/volume/drivers/emc/emc_unity.py', line 201, in _request
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume err, resp = self._send_request(req)
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume File '/usr/lib/python2.7/site-packages/cinder/volume/drivers/emc/emc_unity.py', line 216, in _send_request
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume resp = self.url_opener.open(req)
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume File '/usr/lib64/python2.7/urllib2.py', line 431, in open
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume response = self._open(req, data)
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume File '/usr/lib64/python2.7/urllib2.py', line 449, in _open
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume '_open', req)
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume File '/usr/lib64/python2.7/urllib2.py', line 409, in _call_chain
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume result = func(*args)
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume File '/usr/lib64/python2.7/urllib2.py', line 1258, in https_open
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume context=self._context, check_hostname=self._check_hostname)
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume File '/usr/lib64/python2.7/urllib2.py', line 1214, in do_open
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume raise URLError(err)
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)>
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.138 179185 ERROR cinder.cmd.volume
Nov 17 12:36:00 localhost cinder-volume: 2016-11-17 12:36:00.142 179185 ERROR cinder.cmd.volume [req-f2ec8f11-a69e-45fd-8566-1356d4135822 - - - - -] No volume service(s) started successfully, terminating.
Nov 17 12:36:04 localhost cinder-volume: 2016-11-17 12:36:04.369 179205 ERROR cinder.cmd.volume [req-83747495-b71e-4c3c-a59a-e8023f9440be - - - - -] Volume service overcloud-controller-0@unity failed to sta
rt.