mojo dependencies cause SSL: CERTIFICATE_VERIFY_FAILED failure websocket-client
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mojo: Continuous Delivery for Juju |
Triaged
|
Medium
|
Unassigned | ||
OpenStack Charm Test Infra |
Confirmed
|
High
|
Ryan Beisner | ||
python-jujuclient |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
If one creates a fresh python virtualenv and installs mojo, the version of websocket-client (0.44.0) causes mojo to fail as below.
If one restricts that version to 0.40.0, it succeeds.
Mojo should re-evaluate it's declared python dependencies.
Example:
virtualenv foo
. foo/bin/activate
pip install bzr bzr+lp:codetree#egg=codetree bzr+lp:mojo#egg=mojo websocket-client
...
(foo) jenkins@
argcomplete==1.9.2
asn1crypto==0.22.0
Babel==2.5.0
bzr==2.7.0
certifi=
cffi==1.10.0
chardet==3.0.4
cryptography==2.0.3
debtcollector=
enum34==1.1.6
funcsigs==1.0.2
futures==3.1.1
idna==2.6
ipaddress==1.0.18
iso8601==0.1.12
Jinja2==2.9.6
juju-deployer=
jujuclient==0.54.0
keystoneauth1=
MarkupSafe==1.0
mojo==0.4.5
monotonic==1.3
netaddr==0.7.19
netifaces==0.10.6
oslo.i18n==3.17.0
oslo.utils==3.28.0
pbr==3.1.1
pkg-resources=
positional==1.2.1
prettytable==0.7.2
pycparser==2.18
pylxd==2.0.5
pyparsing==2.2.0
python-
python-
python-
pytz==2017.2
PyYAML==3.12
requests==2.18.4
requests-
simplejson==3.11.1
six==1.10.0
stevedore==1.25.0
urllib3==1.22
websocket-
wrapt==1.10.11
ws4py==0.4.2
...
https:/
2017-08-29 22:08:20 [ERROR] There was an unrecognised problem with running a deploy phase
2017-08-29 22:08:20 [ERROR] Error found during deployment phase
2017-08-29 22:08:19 [DEBUG] deployer.cli: Using runtime GoEnvironment on auto-osci-
2017-08-29 22:08:19 [INFO] deployer.cli: Starting deployment of xenial-mitaka
2017-08-29 22:08:19 [DEBUG] deployer.import: Getting charms...
2017-08-29 22:08:19 [DEBUG] deployer.deploy: Resolving configuration
2017-08-29 22:08:20 [DEBUG] deployer.env: Connecting to auto-osci-
Traceback (most recent call last):
File "/var/lib/
sys.
File "/var/lib/
run()
File "/var/lib/
importer.
File "/var/lib/
self.
File "/var/lib/
self.client = self.client_
File "/var/lib/
return connector(
File "/var/lib/
cert_path, data.get(
File "/var/lib/
env = cls(endpoint, name=name, ca_cert=cert_path, env_uuid=env_uuid)
File "/var/lib/
super(
File "/var/lib/
endpoint, self._ca_cert)
File "/var/lib/
endpoint, origin=endpoint, sslopt=sslopt)
File "/var/lib/
websock.
File "/var/lib/
options.
File "/var/lib/
sock = _ssl_socket(sock, options.sslopt, hostname)
File "/var/lib/
sock = _wrap_sni_
File "/var/lib/
server_
File "/usr/lib/
_context=self)
File "/usr/lib/
self.
File "/usr/lib/
self.
ssl.SSLError: [SSL: CERTIFICATE_
jenkins@
2.2.2-xenial-amd64
jenkins@
Use --refresh flag with this command to see the latest information.
Controller Model User Access Cloud/Region Models Machines HA Version
auto-osci-sv07* auto-osci-sv07 admin superuser serverstack/
jenkins@
Controller: auto-osci-sv07
Model Cloud/Region Status Machines Cores Access Last connection
auto-osci-sv07* serverstack/
controller serverstack/
default serverstack/
Related branches
- David Britton (community): Approve
-
Diff: 14 lines (+4/-0)1 file modifiedjujuclient/connector.py (+4/-0)
Changed in charm-test-infra: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Ryan Beisner (1chb1n) |
Changed in mojo: | |
status: | New → Triaged |
importance: | Undecided → High |
importance: | High → Medium |
Changed in python-jujuclient: | |
status: | New → Fix Committed |
FYI, this dependency issue is coming from jujuclient:
Collecting websocket- client> =0.18.0 (from jujuclient> =0.0.7- >mojo) client- 0.44.0- py2.py3- none-any. whl
Using cached websocket_