Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Softlayer is forcing tlsv1_2 for all API calls #1149

Merged
merged 1 commit into from
Mar 1, 2018
Merged

Softlayer is forcing tlsv1_2 for all API calls #1149

merged 1 commit into from
Mar 1, 2018

Conversation

smcavallo
Copy link
Contributor

Softlayer is forcing tlsv1_2 for all API calls. tlsv1 calls will stop working on 3/1/2018

https://softlayer.github.io/release_notes/2018/20180301/

Signed-off-by: S. Cavallo smcavallo@hotmail.com

Description

[Please describe what this change achieves]

Issues Resolved

[List any existing issues this PR resolves, or any Discourse or
StackOverflow discussions that are relevant]

Check List

… working on 3/1/2018

Signed-off-by: S. Cavallo <smcavallo@hotmail.com>
@tas50
Copy link
Contributor

tas50 commented Mar 1, 2018

@smcavallo Has this been tested out on a Softlayer node?

@dal13002
Copy link

dal13002 commented Mar 1, 2018

I have tested it, and this works! @tas50 I changed /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.7.0/lib/ohai/mixin/softlayer_metadata.rb file to the file in this PR, and it works as expected.

@dal13002
Copy link

dal13002 commented Mar 1, 2018

There are no errors directly after running ohai
screen shot 2018-03-01 at 5 12 39 pm
Also, the node attributes get populated correctly. Everything works with this PR

@dal13002
Copy link

dal13002 commented Mar 1, 2018

This is how it looks without the PR merged. Error message right after ohai
screen shot 2018-03-01 at 5 14 27 pm

@smcavallo
Copy link
Contributor Author

@tas50 yes it has been tested. We realized this afternoon that 100% of our servers in softlayer were failing converges. The exception was
ERROR: Unable to fetch softlayer metadata from https://api.service.softlayer.com/rest/v3.1/SoftLayer_Resource_Metadata/getFullyQualifiedDomainName.txt: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: wrong version number
We have defensive code which fails if node['cloud']['platform'] is nil, which is set by ohai.
What would otherwise happen is the converge would continue but none of the ohai attributes will be set in node['cloud'] .
We found the softlayer posting about TLS which is linked in the PR. We manually updated each server with this change and it fixed our converges and we are running fine now.
It has been tested.

What would be better is if the ohai plugin failed if the api call failed instead of handling the exception.
The plugin currently handles some exceptions which should actually be raised instead.

@dal13002
Copy link

dal13002 commented Mar 1, 2018

Hi guys, any update on when this PR will be merged? Sorry to keep posting but this is very important that this works to me.

@lamont-granquist lamont-granquist merged commit 15942e3 into chef:master Mar 1, 2018
@tas50
Copy link
Contributor

tas50 commented Mar 2, 2018

Thanks for putting this together @smcavallo. It's merged into master (chef14) now and I've backported it to the 13-stable branch as well.

@smcavallo
Copy link
Contributor Author

@tas50 Thank you!!!!!!!!!!!!!!!!!!

@aavetis
Copy link

aavetis commented Mar 2, 2018

any intention to include this fix for Chef 12?

@lock
Copy link

lock bot commented Jan 25, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants