Bug 1414789
Summary: | vagrant can't load "openssl/digest" and fails | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomas Tomecek <ttomecek> |
Component: | rubygem-net-ssh | Assignee: | Vít Ondruch <vondruch> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | lmohanty, madam, pvalena, shreyankg, strzibny, thrcka, vondruch |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rubygem-net-ssh-3.2.0-3.fc26 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-02-06 11:48:47 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1408686 | ||
Bug Blocks: |
Description
Tomas Tomecek
2017-01-19 12:54:40 UTC
OpenSSL was extracted into independent gem in Ruby 2.4, so it should be probably added into vagrant.gemspec. This workaround could help: ``` sed -i '/net-scp/a\ s.add_dependency "openssl", ">= 0"' /usr/share/vagrant/vagrant.gemspec ``` I patched it: diff --git a/vagrant.gemspec b/vagrant.gemspec index 52c77e7..1df3580 100644 --- a/vagrant.gemspec +++ b/vagrant.gemspec @@ -33,6 +33,7 @@ Gem::Specification.new do |s| s.add_dependency "net-ssh", "~> 3.0" s.add_dependency "net-sftp", "~> 2.1" s.add_dependency "net-scp", ">= 1.1.0" + s.add_dependency "openssl", ">= 2.0.2" # Remove BSD specific dependency. # s.add_dependency "rb-kqueue", "~> 0.2.0" s.add_dependency "rest-client", ">= 1.6.0", "< 3.0" And got /usr/share/gems/gems/net-ssh-3.2.0/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb:118:in `generate_key': undefined method `p=' for #<OpenSSL::PKey::DH:0x005617a121fca0> (NoMethodError) Did you mean? p from /usr/share/gems/gems/net-ssh-3.2.0/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb:51:in `initialize' from /usr/share/gems/gems/net-ssh-3.2.0/lib/net/ssh/transport/algorithms.rb:362:in `new' from /usr/share/gems/gems/net-ssh-3.2.0/lib/net/ssh/transport/algorithms.rb:362:in `exchange_keys' from /usr/share/gems/gems/net-ssh-3.2.0/lib/net/ssh/transport/algorithms.rb:206:in `proceed!' from /usr/share/gems/gems/net-ssh-3.2.0/lib/net/ssh/transport/algorithms.rb:154:in `accept_kexinit' It seems that rubygem-net-ssh needs some update to be compatible with Ruby 2.4. Quickly checking the changelog, there are indeed some changes which might be related to this issue: https://github.com/net-ssh/net-ssh/issues/466 So, I fixed rubygem-net-ssh in Rawhide: https://koji.fedoraproject.org/koji/taskinfo?taskID=17630647 It appears to fix the issues. Reassigning and closing the ticket. Feel free to reopen if you encounter any further issues. Well done! Works just fine. (In reply to Tomas Tomecek from comment #5) > Well done! Works just fine. Glad to hear that. Thx for the feedback. |