Deployer 0.7.1 on trusty cannot talk to Juju2 because :tlsv1 alert protocol version

Bug #1576695 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Invalid
Critical
Unassigned
juju-deployer
Fix Released
Undecided
Unassigned

Bug Description

As seen in
    http://reports.vapour.ws/releases/issue/572365e1749a562e4e58d451

Deployer cannot talk to Juju2 (on maas2) because :tlsv1 alert protocol version

This issue relates to bug 1443704 in Ubuntu trusty. trusty's py 3.4 does support PROTOCOL_TLSv1_2.

Related branches

Revision history for this message
Nate Finch (natefinch) wrote :

This is almost certainly because this is running on trusty, which uses python 2.7.6, and thus doesn't have TLS 1.2, as noted here: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1443704

Curtis Hovey (sinzui)
summary: - Deployer cannot talk to Juju2 (on maas2) because :tlsv1 alert protocol
+ Deployer 2 cannot talk to Juju2 (maa 1.9) because :tlsv1 alert protocol
version
summary: - Deployer 2 cannot talk to Juju2 (maa 1.9) because :tlsv1 alert protocol
+ Deployer 2 on trusty cannot talk to Juju2 because :tlsv1 alert protocol
version
Curtis Hovey (sinzui)
description: updated
description: updated
tags: added: python2.7
Revision history for this message
Nate Finch (natefinch) wrote : Re: Deployer 2 on trusty cannot talk to Juju2 because :tlsv1 alert protocol version

This is going to be handled by Marco Ceppi and Tim Vansteenburgh by porting deployer to python 3.

Changed in juju-core:
status: Triaged → Invalid
Curtis Hovey (sinzui)
summary: - Deployer 2 on trusty cannot talk to Juju2 because :tlsv1 alert protocol
- version
+ Deployer 0.7.1 on trusty cannot talk to Juju2 because :tlsv1 alert
+ protocol version
Revision history for this message
Tim Van Steenburgh (tvansteenburgh) wrote :

python 3 support for deployer is up for review, but I think I need to make a small change to python-jujuclient as well. Do I assume correctly that we should use TLSv1.2 for juju2, but continue to use TLSv1 for juju1?

Revision history for this message
Tim Van Steenburgh (tvansteenburgh) wrote :

On second thought, I guess python-jujuclient should always use TLSv1.2 now, for juju1 and juju2, right? Which means python 2.7.9+ or 3.4+.

Revision history for this message
Tim Van Steenburgh (tvansteenburgh) wrote :

The linked python-jujuclient branch changes jujuclient to always use TLSv1.2 if it's available. If it's not available, attempt to use TLSv1, but also issue a runtime warning about it, including a message that it may not actually work (Juju might not handshake). Someone that wants to connect to a version of Juju that doesn't support TLSv1.2 will need to use and older version of python-jujuclient.

Revision history for this message
Marco Ceppi (marcoceppi) wrote :

What's the first version of Juju which supports TLSv1.2?

Marco Ceppi (marcoceppi)
Changed in juju-deployer:
status: New → In Progress
Changed in juju-deployer:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta7 → none
Changed in juju-deployer:
milestone: none → 0.8.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.