Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Bundler 2 release fully broke installation CentOS 7 #6870

Closed
ssbarnea opened this issue Jan 4, 2019 · 3 comments
Closed

Bundler 2 release fully broke installation CentOS 7 #6870

ssbarnea opened this issue Jan 4, 2019 · 3 comments

Comments

@ssbarnea
Copy link

ssbarnea commented Jan 4, 2019

The installer gem install bundler no longer works on CentOS 7 because the ruby version there is 2.0

This is a serious regression as it breaks CI all over the place and people will endup using pinning to avoid it.

Get should install the latest version supported by the current ruby interpreter, which is 1.17.3 if I am correct in this case.

# ruby --version
ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
root@n0:~/.cache/.rmux/puppet-openstack-integration # gem install bundler --no-rdoc --no-ri --verbose
GET https://rubygems.org/latest_specs.4.8.gz
200 OK
GET https://rubygems.org/quick/Marshal.4.8/bundler-2.0.1.gemspec.rz
200 OK
Installing gem bundler-2.0.1
Downloading gem bundler-2.0.1.gem
GET https://rubygems.org/gems/bundler-2.0.1.gem
Fetching: bundler-2.0.1.gem (100%)
200 OK
ERROR:  Error installing bundler:
        bundler requires Ruby version >= 2.3.0.
@greysteil
Copy link
Contributor

Thanks for the issue @ssbarnea.

Since Ruby 2.0 is end-of-life it's not supported by the latest version of Bundler anymore, and rubygems doesn't have the version resolution logic in it to figure out what the latest supported version is.

If you run gem install bundler -v 1.17.3 you'll get a Bundler version that is compatible with Ruby 2.0.

@deivid-rodriguez
Copy link
Member

I think this would be fixed by rubygems/rubygems#2539? It's been closed and requested to be split into separate different PRs because of including a bunch of unrelated bug fixes, but it claims to fix the required_ruby_version resolution logic in rubygems?

/cc @MSP-Greg

@ssbarnea
Copy link
Author

ssbarnea commented Jan 4, 2019

I wrote a small ruby script that can be used to workaround that issue:

#!/usr/bin/env ruby

if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.3.0') then
    system('gem install bundler')
else
    system('gem install bundler -v 1.17.3')
end

openstack-gerrit pushed a commit to openstack/puppet-openstack-integration that referenced this issue Jan 9, 2019
See rubygems/bundler#6870

Bundler 2.x dropped support for Ruby < 2.3 so now we detect ruby
version and install last known to work version.

This means that newer OS will get newer versions of bundler.

Change-Id: I906ad01187ad5b929b378107de065d32d23c5fc2
Closes-Bug: #1810401
openstack-gerrit pushed a commit to openstack/openstack that referenced this issue Jan 9, 2019
* Update puppet-openstack-integration from branch 'master'
  - Merge "Workaround for installing correct version of ruby bundler"
  - Workaround for installing correct version of ruby bundler
    
    See rubygems/bundler#6870
    
    Bundler 2.x dropped support for Ruby < 2.3 so now we detect ruby
    version and install last known to work version.
    
    This means that newer OS will get newer versions of bundler.
    
    Change-Id: I906ad01187ad5b929b378107de065d32d23c5fc2
    Closes-Bug: #1810401
openstack-gerrit pushed a commit to openstack/puppet-openstack-integration that referenced this issue Jan 9, 2019
See rubygems/bundler#6870

Bundler 2.x dropped support for Ruby < 2.3 so now we detect ruby
version and install last known to work version. This means that
newer OS will get newer versions of bundler.

Closes-Bug: #1810401
  (cherry picked from commit 7acca40)

Change-Id: Ibd1ff419d13cace906d4cd9765dc7b5486bc19a7
openstack-gerrit pushed a commit to openstack/puppet-openstack-integration that referenced this issue Jan 10, 2019
See rubygems/bundler#6870

Bundler 2.x dropped support for Ruby < 2.3 so now we detect ruby
version and install last known to work version.

This means that newer OS will get newer versions of bundler.

Change-Id: I906ad01187ad5b929b378107de065d32d23c5fc2
Closes-Bug: #1810401
(cherry picked from commit 7acca40)
openstack-gerrit pushed a commit to openstack/puppet-openstack_spec_helper that referenced this issue Jan 11, 2019
See rubygems/bundler#6870

Bundler 2.x dropped support for Ruby < 2.3 so now we detect ruby
version and install last known to work version. This means that
newer OS will get newer versions of bundler.

Change-Id: I521affb16d8d2312be3ff507a014adddacd6cb8b
Closes-Bug: #1810401
openstack-gerrit pushed a commit to openstack/openstack that referenced this issue Jan 11, 2019
* Update puppet-openstack_spec_helper from branch 'master'
  - Workaround for installing correct version of ruby bundler
    
    See rubygems/bundler#6870
    
    Bundler 2.x dropped support for Ruby < 2.3 so now we detect ruby
    version and install last known to work version. This means that
    newer OS will get newer versions of bundler.
    
    Change-Id: I521affb16d8d2312be3ff507a014adddacd6cb8b
    Closes-Bug: #1810401
openstack-gerrit pushed a commit to openstack/puppet-openstack_spec_helper that referenced this issue Jan 12, 2019
See rubygems/bundler#6870

Bundler 2.x dropped support for Ruby < 2.3 so now we detect ruby
version and install last known to work version. This means that
newer OS will get newer versions of bundler.

Change-Id: I521affb16d8d2312be3ff507a014adddacd6cb8b
Closes-Bug: #1810401
(cherry picked from commit 6185377)
openstack-gerrit pushed a commit to openstack/puppet-openstack_spec_helper that referenced this issue Jan 14, 2019
See rubygems/bundler#6870

Bundler 2.x dropped support for Ruby < 2.3 so now we detect ruby
version and install last known to work version. This means that
newer OS will get newer versions of bundler.

Change-Id: I521affb16d8d2312be3ff507a014adddacd6cb8b
Closes-Bug: #1810401
(cherry picked from commit 6185377)
(cherry picked from commit 9b6f1e1)
openstack-gerrit pushed a commit to openstack/puppet-openstack-cookiecutter that referenced this issue Jan 17, 2019
See rubygems/bundler#6870

Bundler 2.x dropped support for Ruby < 2.3 so now we detect ruby
version and install last known to work version. This means that
newer OS will get newer versions of bundler.

Change-Id: I521affb16d8d2312be3ff507a014adddacd6cb8b
Closes-Bug: #1810401
openstack-gerrit pushed a commit to openstack/openstack that referenced this issue Jan 17, 2019
* Update puppet-openstack-cookiecutter from branch 'master'
  - Workaround for installing correct version of ruby bundler
    
    See rubygems/bundler#6870
    
    Bundler 2.x dropped support for Ruby < 2.3 so now we detect ruby
    version and install last known to work version. This means that
    newer OS will get newer versions of bundler.
    
    Change-Id: I521affb16d8d2312be3ff507a014adddacd6cb8b
    Closes-Bug: #1810401
openstack-gerrit pushed a commit to openstack/puppet-openstack_spec_helper that referenced this issue Feb 7, 2019
See rubygems/bundler#6870

Bundler 2.x dropped support for Ruby < 2.3 so now we detect ruby
version and install last known to work version. This means that
newer OS will get newer versions of bundler.

Change-Id: I521affb16d8d2312be3ff507a014adddacd6cb8b
Closes-Bug: #1810401
(cherry picked from commit 6185377)
(cherry picked from commit 9b6f1e1)
(cherry picked from commit c44a4bb)
openstack-gerrit pushed a commit to openstack/puppet-openstack_spec_helper that referenced this issue Feb 7, 2019
See rubygems/bundler#6870

Bundler 2.x dropped support for Ruby < 2.3 so now we detect ruby
version and install last known to work version. This means that
newer OS will get newer versions of bundler.

Change-Id: I521affb16d8d2312be3ff507a014adddacd6cb8b
Closes-Bug: #1810401
(cherry picked from commit 6185377)
(cherry picked from commit 9b6f1e1)
(cherry picked from commit c44a4bb)
openstack-gerrit pushed a commit to openstack/puppet-openstack-integration that referenced this issue Feb 7, 2019
See rubygems/bundler#6870

Bundler 2.x dropped support for Ruby < 2.3 so now we detect ruby
version and install last known to work version. This means that
newer OS will get newer versions of bundler.

Closes-Bug: #1810401
  (cherry picked from commit 7acca40)

Change-Id: Ibd1ff419d13cace906d4cd9765dc7b5486bc19a7
(cherry picked from commit d83f041)
(cherry picked from commit 44fa397)
openstack-gerrit pushed a commit to openstack/puppet-openstack-integration that referenced this issue Feb 7, 2019
See rubygems/bundler#6870

Bundler 2.x dropped support for Ruby < 2.3 so now we detect ruby
version and install last known to work version. This means that
newer OS will get newer versions of bundler.

Closes-Bug: #1810401
  (cherry picked from commit 7acca40)

Change-Id: Ibd1ff419d13cace906d4cd9765dc7b5486bc19a7
(cherry picked from commit d83f041)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants