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

Error updating r10k to v. 3.7.0 on Centos 7: "cri requires Ruby version >= 2.5." #1121

Closed
gdubicki opened this issue Feb 1, 2021 · 2 comments
Labels

Comments

@gdubicki
Copy link

gdubicki commented Feb 1, 2021

Describe the Bug

[root@puppetmaster:~]# /opt/puppetlabs/puppet/bin/gem install -v 3.7.0 r10k
ERROR:  Error installing r10k:
        cri requires Ruby version >= 2.5.

Expected Behavior

It should update.

Steps to Reproduce

  1. Have r10k 3.3.1 and cri 2.6.1.
  2. Run /opt/puppetlabs/puppet/bin/gem install -v 3.7.0 r10k

Environment

Puppet: 5.5.22

/opt/puppetlabs/puppet/bin/ruby --version
ruby 2.4.10p364 (2020-03-31 revision 67879) [x86_64-linux]

CentOS Linux release 7.5.1804 (Core)

Additional Context

I did work around this with updating cri to 2.15.6 first and then updating r10k.

But the same r10k update worked on our test puppetmaster in December without such workarounds.

I guess that r10k doesn't pin the cri package version so when updating it tries to install the latest cri which is incompatible with ruby 2.4 bundled with Puppet 5.5. I suppose that pinning the cri version should help.

@gdubicki gdubicki added the bug label Feb 1, 2021
@mwaggett
Copy link
Contributor

Hi @gdubicki, thanks for opening this issue! It looks like cri dropped support for old versions of Ruby in a Z release in December.. 😒

The current version of r10k allows using cri 2.15.10, which is the last version to support the old Ruby versions, so you should be able to continue using it.

I will look into getting this fixed, but we plan to drop support for Ruby < 2.5 in our next major release.

mwaggett added a commit to mwaggett/r10k that referenced this issue Mar 17, 2021
This commit pins cri to 2.15.10 because they dropped support for Ruby 2.3 and
2.4 in cri 2.15.11. This allows us to maintain support for those Ruby versions,
since we still support them in the Puppet 6 stream. We plan to loosen this
dependency and drop support for Ruby < 2.5 in the next major release of r10k.
mwaggett added a commit to mwaggett/r10k that referenced this issue Mar 17, 2021
This commit pins cri to 2.15.10 because they dropped support for Ruby 2.3 and
2.4 in cri 2.15.11. This allows us to maintain support for those Ruby versions,
since we still support them in the Puppet 6 stream. We plan to loosen this
dependency and drop support for Ruby < 2.5 in the next major release of r10k.
justinstoller added a commit that referenced this issue Mar 17, 2021
@mwaggett
Copy link
Contributor

Fixed by #1135

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants