Project

General

Profile

Actions

Bug #30400

open

foreman-release repo files don't include versions in repo ids, requiring yum clean before an update

Added by Evgeni Golov almost 4 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
RPMs
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Currently, the repo files we ship in foreman-release don't contain the Foreman version in the repo ids, thus making yum think it's "the same" repository after the release package was updated. This makes it necessary to call "yum clean" after updating foreman-release and before updating to a new Foreman release.

I had created a PR to fix that (https://github.com/theforeman/foreman-packaging/pull/5316) but Ewoud pointed out that this will require additional changes to Puppet which also can manage repos to be in sync.

Actions #1

Updated by Ewoud Kohl van Wijngaarden over 2 years ago

This only affects EL7 and dnf on EL8 does it right.

[root@244cd2948999 /]# dnf install https://yum.theforeman.org/releases/2.3/el8/x86_64/foreman-release.rpm
Failed to set locale, defaulting to C.UTF-8
CentOS Linux 8 - AppStream                                                                                                                            8.8 MB/s | 8.8 MB     00:01    
CentOS Linux 8 - BaseOS                                                                                                                               3.0 MB/s | 5.6 MB     00:01    
CentOS Linux 8 - Extras                                                                                                                               3.1 kB/s |  10 kB     00:03    
foreman-release.rpm                                                                                                                                    76 kB/s |  12 kB     00:00    
Dependencies resolved.
======================================================================================================================================================================================
 Package                                        Architecture                          Version                                       Repository                                   Size
======================================================================================================================================================================================
Installing:
 foreman-release                                noarch                                2.3.5-1.el8                                   @commandline                                 12 k

Transaction Summary
======================================================================================================================================================================================
Install  1 Package

Total size: 12 k
Installed size: 2.4 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                              1/1 
  Installing       : foreman-release-2.3.5-1.el8.noarch                                                                                                                           1/1 
  Verifying        : foreman-release-2.3.5-1.el8.noarch                                                                                                                           1/1 

Installed:
  foreman-release-2.3.5-1.el8.noarch                                                                                                                                                  

Complete!
[root@244cd2948999 /]# dnf info foreman
Failed to set locale, defaulting to C.UTF-8
Available Packages
Name         : foreman
Version      : 2.3.5
Release      : 1.el8
Architecture : noarch
Size         : 35 M
Source       : foreman-2.3.5-1.el8.src.rpm
Repository   : foreman
Summary      : Systems Management web application
URL          : https://theforeman.org
License      : GPLv3+ with exceptions
Description  : Foreman is aimed to be a Single Address For All Machines Life Cycle Management.
             : Foreman is based on Ruby on Rails, and this package bundles Rails and all
             : plugins required for Foreman to work.

[root@244cd2948999 /]# dnf install -y https://yum.theforeman.org/releases/2.4/el8/x86_64/foreman-release.rpm
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:00:13 ago on Tue Aug 24 09:45:24 2021.
foreman-release.rpm                                                                                                                                   232 kB/s |  12 kB     00:00    
Dependencies resolved.
======================================================================================================================================================================================
 Package                                        Architecture                          Version                                       Repository                                   Size
======================================================================================================================================================================================
Upgrading:
 foreman-release                                noarch                                2.4.1-1.el8                                   @commandline                                 12 k

Transaction Summary
======================================================================================================================================================================================
Upgrade  1 Package

Total size: 12 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                              1/1 
  Upgrading        : foreman-release-2.4.1-1.el8.noarch                                                                                                                           1/2 
  Cleanup          : foreman-release-2.3.5-1.el8.noarch                                                                                                                           2/2 
  Verifying        : foreman-release-2.4.1-1.el8.noarch                                                                                                                           1/2 
  Verifying        : foreman-release-2.3.5-1.el8.noarch                                                                                                                           2/2 

Upgraded:
  foreman-release-2.4.1-1.el8.noarch                                                                                                                                                  

Complete!
[root@244cd2948999 /]# dnf info foreman 
Failed to set locale, defaulting to C.UTF-8
Foreman plugins 2.4                                                                                                                                   2.1 MB/s | 1.1 MB     00:00    
Foreman 2.4                                                                                                                                           2.2 MB/s | 1.8 MB     00:00    
Available Packages
Name         : foreman
Version      : 2.4.1
Release      : 1.el8
Architecture : noarch
Size         : 35 M
Source       : foreman-2.4.1-1.el8.src.rpm
Repository   : foreman
Summary      : Systems Management web application
URL          : https://theforeman.org
License      : GPLv3+ with exceptions
Description  : Foreman is aimed to be a Single Address For All Machines Life Cycle Management.
             : Foreman is based on Ruby on Rails, and this package bundles Rails and all
             : plugins required for Foreman to work.

Given that I'm suggesting we sit it out until we stop supporting EL7.

Actions

Also available in: Atom PDF