Foreman 3.3.0 RC1 is available for testing!

The first release candidate of Foreman 3.3.0 is now available for testing. Special thanks to everyone who contributed and taken part in making this release ready.

Please help by testing and getting it release-ready, and let us know if you hit any issue when upgrading or installing the release candidate either here or on our issue tracker .

There are likely still some updates needed in the installation instructions and other parts of the documentation.

Installation quick start:
https://theforeman.org/manuals/3.3/quickstart_guide.html

Upgrade instructions:
https://theforeman.org/manuals/3.3/index.html#3.6Upgrade

Release notes:
https://theforeman.org/manuals/3.3/index.html#Releasenotesfor3.3

This is also a good time to improve translations for existing locales to ensure full coverage. Help out at: Foreman localization

Packages may be found in the 3.3 directories on both deb.theforeman.org and yum.theforeman.org , and tarballs are on downloads.theforeman.org .

The GPG key used for signing RPMs and tarballs has the following fingerprint:
5E77807805888E7F2F31A50E8321CBCA2A6A4BAA

The GPG key used for signing DEBs has the following fingerprint:
5B7C3E5A735BCB4D615829DC0BDDA991FD7AAC8A.

4 Likes

I followed the upgrade instructions and the dnf upgrade ruby\* foreman\* step failed with

dnf upgrade ruby\* foreman\*

Failed to set locale, defaulting to C.UTF-8
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 0:04:41 ago on Wed May 18 14:48:24 2022.
Error: 
 Problem 1: cannot install both ruby-libs-2.7.3-136.module_el8.5.0+813+054ec265.x86_64 and ruby-libs-2.5.9-107.module_el8.5.0+811+d98a1657.x86_64
  - package rubygem-sqlite3-1.4.2-2.el8.x86_64 requires libruby.so.2.5()(64bit), but none of the providers can be installed
  - cannot install the best update candidate for package ruby-libs-2.5.9-107.module_el8.5.0+811+d98a1657.x86_64
  - problem with installed package rubygem-sqlite3-1.4.2-2.el8.x86_64
  - package ruby-libs-2.5.5-105.module_el8.1.0+214+9be47fd7.x86_64 is filtered out by modular filtering
  - package ruby-libs-2.5.9-107.module_el8.5.0+811+d98a1657.x86_64 is filtered out by modular filtering
  - package ruby-libs-2.5.9-109.module_el8.5.0+1097+b05a0601.x86_64 is filtered out by modular filtering
 Problem 2: cannot install both ruby-libs-2.7.3-136.module_el8.5.0+813+054ec265.x86_64 and ruby-libs-2.5.9-107.module_el8.5.0+811+d98a1657.x86_64
  - package rubygem-sqlite3-1.4.2-2.el8.x86_64 requires libruby.so.2.5()(64bit), but none of the providers can be installed
  - package ruby-2.7.3-136.module_el8.5.0+813+054ec265.x86_64 requires ruby-libs(x86-64) = 2.7.3-136.module_el8.5.0+813+054ec265, but none of the providers can be installed
  - cannot install the best update candidate for package rubygem-sqlite3-1.4.2-2.el8.x86_64
  - cannot install the best update candidate for package ruby-2.5.9-107.module_el8.5.0+811+d98a1657.x86_64
  - package ruby-libs-2.5.5-105.module_el8.1.0+214+9be47fd7.x86_64 is filtered out by modular filtering
  - package ruby-libs-2.5.9-107.module_el8.5.0+811+d98a1657.x86_64 is filtered out by modular filtering
  - package ruby-libs-2.5.9-109.module_el8.5.0+1097+b05a0601.x86_64 is filtered out by modular filtering
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

any thoughts? This is CentOS Stream 8

1 Like

I think it should be happening because the upgrade docs missing steps to reset ruby modules to 2.7 if that is not the state of the module. Can you try,

dnf module reset ruby
dnf module enable ruby:2.7

Thanks for taking a look. Sadly that didn’t really help, here’s the full output

root@foreman:[~]# dnf module reset ruby
Failed to set locale, defaulting to C.UTF-8
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 0:31:02 ago on Wed May 18 14:48:24 2022.
Dependencies resolved.
===========================================================================================================================================================================
 Package                                  Architecture                            Version                                   Repository                                Size
===========================================================================================================================================================================
Resetting modules:
 ruby                                                                                                                                                                     

Transaction Summary
===========================================================================================================================================================================

Is this ok [y/N]: y
Complete!
root@foreman:[~]# dnf module enable ruby:2.7
Failed to set locale, defaulting to C.UTF-8
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 0:31:28 ago on Wed May 18 14:48:24 2022.
Modular dependency problem:

 Problem: module foreman:el8:30320220512203003:fea1c427.x86_64 requires module(ruby:2.7), but none of the providers can be installed
  - module ruby:2.5:8010020191115015821:cdc1202b.x86_64 conflicts with module(ruby:2.7) provided by ruby:2.7:8030020200722170034:30b713e6.x86_64
  - module ruby:2.7:8030020200722170034:30b713e6.x86_64 conflicts with module(ruby:2.5) provided by ruby:2.5:8010020191115015821:cdc1202b.x86_64
  - module ruby:2.5:8010020191115015821:cdc1202b.x86_64 conflicts with module(ruby:2.7) provided by ruby:2.7:8050020210527153100:b4937e53.x86_64
  - module ruby:2.7:8050020210527153100:b4937e53.x86_64 conflicts with module(ruby:2.5) provided by ruby:2.5:8010020191115015821:cdc1202b.x86_64
  - conflicting requests
Dependencies resolved.
===========================================================================================================================================================================
 Package                                  Architecture                            Version                                   Repository                                Size
===========================================================================================================================================================================
Enabling module streams:
 ruby                                                                             2.7                                                                                     

Transaction Summary
===========================================================================================================================================================================

Is this ok [y/N]: y
Complete!
root@foreman:[~]# dnf module enable foreman:el8
Failed to set locale, defaulting to C.UTF-8
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 0:31:51 ago on Wed May 18 14:48:24 2022.
Dependencies resolved.
Nothing to do.
Complete!
root@foreman:[~]# dnf upgrade ruby\* foreman\*
Failed to set locale, defaulting to C.UTF-8
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 0:32:05 ago on Wed May 18 14:48:24 2022.
Error: 
 Problem 1: cannot install both ruby-libs-2.7.3-136.module_el8.5.0+813+054ec265.x86_64 and ruby-libs-2.5.9-107.module_el8.5.0+811+d98a1657.x86_64
  - package rubygem-sqlite3-1.4.2-2.el8.x86_64 requires libruby.so.2.5()(64bit), but none of the providers can be installed
  - cannot install the best update candidate for package ruby-libs-2.5.9-107.module_el8.5.0+811+d98a1657.x86_64
  - problem with installed package rubygem-sqlite3-1.4.2-2.el8.x86_64
  - package ruby-libs-2.5.5-105.module_el8.1.0+214+9be47fd7.x86_64 is filtered out by modular filtering
  - package ruby-libs-2.5.9-107.module_el8.5.0+811+d98a1657.x86_64 is filtered out by modular filtering
  - package ruby-libs-2.5.9-109.module_el8.5.0+1097+b05a0601.x86_64 is filtered out by modular filtering
 Problem 2: cannot install both ruby-libs-2.7.3-136.module_el8.5.0+813+054ec265.x86_64 and ruby-libs-2.5.9-107.module_el8.5.0+811+d98a1657.x86_64
  - package rubygem-sqlite3-1.4.2-2.el8.x86_64 requires libruby.so.2.5()(64bit), but none of the providers can be installed
  - package ruby-2.7.3-136.module_el8.5.0+813+054ec265.x86_64 requires ruby-libs(x86-64) = 2.7.3-136.module_el8.5.0+813+054ec265, but none of the providers can be installed
  - cannot install the best update candidate for package rubygem-sqlite3-1.4.2-2.el8.x86_64
  - cannot install the best update candidate for package ruby-2.5.9-107.module_el8.5.0+811+d98a1657.x86_64
  - package ruby-libs-2.5.5-105.module_el8.1.0+214+9be47fd7.x86_64 is filtered out by modular filtering
  - package ruby-libs-2.5.9-107.module_el8.5.0+811+d98a1657.x86_64 is filtered out by modular filtering
  - package ruby-libs-2.5.9-109.module_el8.5.0+1097+b05a0601.x86_64 is filtered out by modular filtering
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

It’s hard to say, but rubygem-sqlite3-1.4.2-2.el8.x86_64 looks wrong, we do not ship a -2 in our repos, and I guess that one is the culprit here.

Edit: seems this package comes from EPEL8 on your system, but we don’t support EPEL8-enabled setups.

2 Likes

That was the case indeed. Interestingly 3.2 worked just fine :slight_smile: Ok, I dropped the EPEL8 repo and I no longer see the conflict, the rest of the upgrade process went smooth as usual. I’ll report issues (I find any) in the redmine tracker and here.

1 Like