-
Notifications
You must be signed in to change notification settings - Fork 37
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
TLS protocol version issue #1007
Comments
@jmg011 |
@Hardikl @rahulguptajss Hey, no we did not make any changes. There are so many 7mode filers having this issue. I debugged this further to check the timeline on when this stopped working. It aligns with the exact time I upgraded Harvest to the latest version. Is there any change in new Harvest version that could pose such issue? |
hi @jmg011 we're not aware of any changes in this area. We can do a git bisect if you let us know which version worked and what version doesn't.
I double checked and
What if we remove Harvest from the loop altogether and use a recent version of curl to verify filer connectivity and auth? Can you try this, replace username/pass and ip? curl --version
curl 7.83.0 (x86_64-apple-darwin21.3.0) libcurl/7.83.0 (SecureTransport) OpenSSL/1.1.1n zlib/1.2.11 brotli/1.0.9 zstd/1.5.2 libidn2/2.3.2 libssh2/1.10.0 nghttp2/1.47.0 librtmp/2.3 OpenLDAP/2.6.1
Release-Date: 2022-04-27
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL TLS-SRP UnixSockets zstd curl --insecure --verbose --include --user user:pass --data '<?xml version="1.0" encoding="UTF-8"?> <netapp xmlns="http://www.netapp.com/filer/admin" version="1.21"> <system-get-version/> </netapp>' -H "Content-Type: text/xml" https://10.65.51.134/servlets/netapp.servlets.admin.XMLrequest_filer output
|
Current Harvest Version:
This is set to true
7mode filers are not using vault and no changes were made to filers. I noticed 7-mode filers with NetApp Release 8.2P4 or Less does not work with this version of Harvest. Rest of the 7mode work fine. That is the case with our environment. CURL output:
|
thanks @jmg011 that's very helpful. @rahulguptajss found this Go change log note that we're confident is effecting you. It would be best if you upgraded your ONTAP versions to support TLS 1.2+ since the whole industry is trying to phase out TLS 1.0. We'll take a look at adding a TLS minVersion flag to Harvest. In the meantime, can you try the env var workaround?
|
Fixed in #1017 |
@cgrinds @rahulguptajss @Hardikl - I could fix it with the workaround. Thank you for your quick response on this and updating the next release to support this old version. WIP to get rid of those systems so hopefully in the future releases we won't face the same issue. |
This issue is returned with the upgrade to the 22.11.0-1 version. I set this env variable but did not help! export GODEBUG=tls10default=1 2023-01-25T18:21:06Z DBG ./poller.go:1130 > Failed to upgrade to Rest. Use collector error="connection error Get "https:///api/cluster?return_records=true&fields=*": tls: server selected unsupported protocol version 301" Poller= collector=Zapi Any idea what I can do to fix this issue quickly? |
hi @jmg011 is this happening for your 7-mode filers or cdot ones? Try editing your Pollers:
mycluster:
datacenter: dc-1
addr: 10.X.X.X
auth_style: basic_auth
tls_min_version: tls10 # <=== see https://netapp.github.io/harvest/22.11/configure-harvest-basic/#pollers
|
@cgrinds - Thank you. This happened for 7mode clusters. I applied the fix you suggested and it worked. Environment variable stopped working though, just fyi. |
Awesome, glad that worked. Go removed the Harvest |
Started seeing harvest failures on 7mode filers. Any idea about this issue? Is it TLS version issue?
I'm not aware of any TLS update on 7mode systems.
{"level":"warn","Poller":"netappfiler","caller":"./poller.go:660","time":"2022-05-05T18:11:48-07:00","message":"init collector-object (Zapi:Node): connection error => connection error => Post "https://netappfilerFQDN:443/servlets/netapp.servlets.admin.XMLrequest_filer\": tls: server selected unsupported protocol version 301"}
The text was updated successfully, but these errors were encountered: