Bug 1779584 - Spacewalk client keep trying to reinstall latest kernel
Summary: Spacewalk client keep trying to reinstall latest kernel
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 2.9
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On: 1644241 1720690
Blocks: space210
TreeView+ depends on / blocked
 
Reported: 2019-12-04 10:15 UTC by Igor Bajo
Modified: 2020-03-19 12:16 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-19 12:16:52 UTC
Embargoed:


Attachments (Terms of Use)

Description Igor Bajo 2019-12-04 10:15:14 UTC
Description of problem:
When you get more than one kernel on client system the spacewalk dnf plugin tries to reinstall the latest kernel over and over.

Version-Release number of selected component (if applicable):
Spacewalk 2.9

How reproducible:
Before update to a new kernel

Steps to Reproduce:
1. dnf update;

Actual results:
ter dez 03 06:46 f4352737@exl1lnxdskibd1:~ [0] $ dnf -y update
This system is receiving updates from Spacewalk server.
Última verificação de data de vencimento de metadados: 1:47:57 atrás em ter 03 dez 2019 04:58:15 -03.
Dependências resolvidas.

 Problema 1: cannot install both kernel-5.3.13-300.fc31.x86_64 and kernel-5.3.13-300.fc31.x86_64
  - cannot install the best update candidate for package kernel-5.3.13-300.fc31.x86_64
  - cannot install the best update candidate for package kernel-5.3.12-300.fc31.x86_64
 Problema 2: cannot install both kernel-core-5.3.13-300.fc31.x86_64 and kernel-core-5.3.13-300.fc31.x86_64
  - cannot install the best update candidate for package kernel-core-5.3.13-300.fc31.x86_64
  - cannot install the best update candidate for package kernel-core-5.3.12-300.fc31.x86_64
 Problema 3: cannot install both kernel-devel-5.3.13-300.fc31.x86_64 and kernel-devel-5.3.13-300.fc31.x86_64
  - cannot install the best update candidate for package kernel-devel-5.3.13-300.fc31.x86_64
  - cannot install the best update candidate for package kernel-devel-5.3.12-300.fc31.x86_64
 Problema 4: cannot install both kernel-modules-5.3.13-300.fc31.x86_64 and kernel-modules-5.3.13-300.fc31.x86_64
  - cannot install the best update candidate for package kernel-modules-5.3.13-300.fc31.x86_64
  - cannot install the best update candidate for package kernel-modules-5.3.12-300.fc31.x86_64
 Problema 5: cannot install both kernel-modules-extra-5.3.13-300.fc31.x86_64 and kernel-modules-extra-5.3.13-300.fc31.x86_64
  - cannot install the best update candidate for package kernel-modules-extra-5.3.13-300.fc31.x86_64
  - cannot install the best update candidate for package kernel-modules-extra-5.3.12-300.fc31.x86_64
=======================================================================================
 Package                  Arch       Version                Repository            Size
=======================================================================================
Reinstalando:
 kernel                   x86_64     5.3.13-300.fc31        fedora-31-x86_64      41 k
 kernel-core              x86_64     5.3.13-300.fc31        fedora-31-x86_64      30 M
 kernel-devel             x86_64     5.3.13-300.fc31        fedora-31-x86_64      12 M
 kernel-modules           x86_64     5.3.13-300.fc31        fedora-31-x86_64      28 M
 kernel-modules-extra     x86_64     5.3.13-300.fc31        fedora-31-x86_64     1.9 M

Resumo da transação
=======================================================================================

Tamanho total do download: 72 M
Tamanho depois de instalado: 150 M
Baixando pacotes:
(1/5): kernel-5.3.13-300.fc31.x86_64.rpm               1.2 MB/s |  41 kB     00:00    
(2/5): kernel-devel-5.3.13-300.fc31.x86_64.rpm         4.6 MB/s |  12 MB     00:02    
(3/5): kernel-modules-extra-5.3.13-300.fc31.x86_64.rpm 2.9 MB/s | 1.9 MB     00:00    
(4/5): kernel-modules-5.3.13-300.fc31.x86_64.rpm       4.6 MB/s |  28 MB     00:06    
(5/5): kernel-core-5.3.13-300.fc31.x86_64.rpm          4.4 MB/s |  30 MB     00:06    
---------------------------------------------------------------------------------------
Total                                                   11 MB/s |  72 MB     00:06     
Executando verificação da transação
Verificação de transação completa.
Executando teste de transação
Teste de transação completo
Executando a transação
  Preparando          :                                                            1/1 
  Reinstalando        : kernel-core-5.3.13-300.fc31.x86_64                        1/10 
  Executando scriptlet: kernel-core-5.3.13-300.fc31.x86_64                        1/10 
  Reinstalando        : kernel-modules-5.3.13-300.fc31.x86_64                     2/10 
  Executando scriptlet: kernel-modules-5.3.13-300.fc31.x86_64                     2/10 
  Reinstalando        : kernel-5.3.13-300.fc31.x86_64                             3/10 
  Reinstalando        : kernel-modules-extra-5.3.13-300.fc31.x86_64               4/10 
  Executando scriptlet: kernel-modules-extra-5.3.13-300.fc31.x86_64               4/10 
  Reinstalando        : kernel-devel-5.3.13-300.fc31.x86_64                       5/10 
  Executando scriptlet: kernel-devel-5.3.13-300.fc31.x86_64                       5/10 
  Limpeza             : kernel-5.3.13-300.fc31.x86_64                             6/10 
  Executando scriptlet: kernel-5.3.13-300.fc31.x86_64                             6/10 
  Limpeza             : kernel-devel-5.3.13-300.fc31.x86_64                       7/10 
  Limpeza             : kernel-modules-extra-5.3.13-300.fc31.x86_64               8/10 
  Executando scriptlet: kernel-modules-extra-5.3.13-300.fc31.x86_64               8/10 
  Limpeza             : kernel-modules-5.3.13-300.fc31.x86_64                     9/10 
  Executando scriptlet: kernel-modules-5.3.13-300.fc31.x86_64                     9/10 
  Executando scriptlet: kernel-core-5.3.13-300.fc31.x86_64                       10/10 
  Limpeza             : kernel-core-5.3.13-300.fc31.x86_64                       10/10 
  Executando scriptlet: kernel-core-5.3.13-300.fc31.x86_64                       10/10 
  Executando scriptlet: kernel-core-5.3.13-300.fc31.x86_64                                                                                       10/10 
  Verificando         : kernel-5.3.13-300.fc31.x86_64                                                                                             1/10 
  Verificando         : kernel-5.3.13-300.fc31.x86_64                                                                                             2/10 
  Verificando         : kernel-core-5.3.13-300.fc31.x86_64                                                                                        3/10 
  Verificando         : kernel-core-5.3.13-300.fc31.x86_64                                                                                        4/10 
  Verificando         : kernel-devel-5.3.13-300.fc31.x86_64                                                                                       5/10 
  Verificando         : kernel-devel-5.3.13-300.fc31.x86_64                                                                                       6/10 
  Verificando         : kernel-modules-5.3.13-300.fc31.x86_64                                                                                     7/10 
  Verificando         : kernel-modules-5.3.13-300.fc31.x86_64                                                                                     8/10 
  Verificando         : kernel-modules-extra-5.3.13-300.fc31.x86_64                                                                               9/10 
  Verificando         : kernel-modules-extra-5.3.13-300.fc31.x86_64                                                                              10/10 

Reinstalado:
  kernel-5.3.13-300.fc31.x86_64                   kernel-core-5.3.13-300.fc31.x86_64                    kernel-devel-5.3.13-300.fc31.x86_64          
  kernel-modules-5.3.13-300.fc31.x86_64           kernel-modules-extra-5.3.13-300.fc31.x86_64          

Concluído!
ter dez 03 06:47 f4352737@exl1lnxdskibd1:~ [1] $ rpm -qa | grep kernel
kernel-devel-5.3.12-300.fc31.x86_64
kernel-core-5.3.13-300.fc31.x86_64
kernel-core-5.3.12-300.fc31.x86_64
kernel-modules-extra-5.3.12-300.fc31.x86_64
abrt-addon-kerneloops-2.13.0-1.fc31.x86_64
kernel-headers-5.3.11-300.fc31.x86_64
libreport-plugin-kerneloops-2.11.3-1.fc31.x86_64
kernel-5.3.13-300.fc31.x86_64
kernel-5.3.12-300.fc31.x86_64
kernel-modules-5.3.13-300.fc31.x86_64
kernel-modules-5.3.12-300.fc31.x86_64
kernel-devel-5.3.13-300.fc31.x86_64
kernel-modules-extra-5.3.13-300.fc31.x86_64
ter dez 03 06:47 f4352737@exl1lnxdskibd1:~ [0] $ dnf remove kernel-devel-5.3.12-300.fc31.x86_64 kernel-core-5.3.12-300.fc31.x86_64 kernel-modules-extra-5.3.12-300.fc31.x86_64 kernel-5.3.12-300.fc31.x86_64 kernel-modules-5.3.12-300.fc31.x86_64
This system is receiving updates from Spacewalk server.
Dependências resolvidas.
=======================================================================================================================================================
 Package                                  Architecture               Version                               Repository                             Size
=======================================================================================================================================================
Removendo:
 kernel                                   x86_64                     5.3.12-300.fc31                       @fedora-31-x86_64                       0  
 kernel-core                              x86_64                     5.3.12-300.fc31                       @fedora-31-x86_64                      67 M
 kernel-devel                             x86_64                     5.3.12-300.fc31                       @fedora-31-x86_64                      54 M
 kernel-modules                           x86_64                     5.3.12-300.fc31                       @fedora-31-x86_64                      28 M
 kernel-modules-extra                     x86_64                     5.3.12-300.fc31                       @fedora-31-x86_64                     1.9 M

Resumo da transação
=======================================================================================================================================================
Remover  5 Pacotes

Espaço liberado: 150 M
Correto? [s/N]: s
Executando verificação da transação
Verificação de transação completa.
Executando teste de transação
Teste de transação completo
Executando a transação
  Preparando          :                                                                                                                            1/1 
  Apagando            : kernel-5.3.12-300.fc31.x86_64                                                                                              1/5 
  Executando scriptlet: kernel-5.3.12-300.fc31.x86_64                                                                                              1/5 
  Apagando            : kernel-devel-5.3.12-300.fc31.x86_64                                                                                        2/5 
  Apagando            : kernel-modules-extra-5.3.12-300.fc31.x86_64                                                                                3/5 
  Executando scriptlet: kernel-modules-extra-5.3.12-300.fc31.x86_64                                                                                3/5 
  Apagando            : kernel-modules-5.3.12-300.fc31.x86_64                                                                                      4/5 
  Executando scriptlet: kernel-modules-5.3.12-300.fc31.x86_64                                                                                      4/5 
  Executando scriptlet: kernel-core-5.3.12-300.fc31.x86_64                                                                                         5/5 
  Apagando            : kernel-core-5.3.12-300.fc31.x86_64                                                                                         5/5 
aviso: file /lib/modules/5.3.12-300.fc31.x86_64/updates: remove failed: Arquivo ou diretório inexistente

  Executando scriptlet: kernel-core-5.3.12-300.fc31.x86_64                                                                                         5/5 
  Verificando         : kernel-5.3.12-300.fc31.x86_64                                                                                              1/5 
  Verificando         : kernel-core-5.3.12-300.fc31.x86_64                                                                                         2/5 
  Verificando         : kernel-devel-5.3.12-300.fc31.x86_64                                                                                        3/5 
  Verificando         : kernel-modules-5.3.12-300.fc31.x86_64                                                                                      4/5 
  Verificando         : kernel-modules-extra-5.3.12-300.fc31.x86_64                                                                                5/5 

Removido(s):
  kernel-5.3.12-300.fc31.x86_64                   kernel-core-5.3.12-300.fc31.x86_64                    kernel-devel-5.3.12-300.fc31.x86_64          
  kernel-modules-5.3.12-300.fc31.x86_64           kernel-modules-extra-5.3.12-300.fc31.x86_64          

Concluído!
ter dez 03 06:48 f4352737@exl1lnxdskibd1:~ [0] $ dnf -y update
This system is receiving updates from Spacewalk server.
Última verificação de data de vencimento de metadados: 1:50:21 atrás em ter 03 dez 2019 04:58:15 -03.
Dependências resolvidas.
Nada para fazer.
Concluído!
ter dez 03 06:48 f4352737@exl1lnxdskibd1:~ [0] $ 

Expected results:
ter dez 03 06:48 f4352737@exl1lnxdskibd1:~ [0] $ dnf -y update
This system is receiving updates from Spacewalk server.
Última verificação de data de vencimento de metadados: 1:50:21 atrás em ter 03 dez 2019 04:58:15 -03.
Dependências resolvidas.
Nada para fazer.
Concluído!
ter dez 03 06:48 f4352737@exl1lnxdskibd1:~ [0] $

Comment 1 Michael Mráka 2020-03-11 13:20:53 UTC
Can you verify this behavior without Spacewalk (i.e. with plain Fedora repo)?

It seems to be more dnf / modularity issue.

Comment 2 Igor Bajo 2020-03-12 20:18:58 UTC
The same machine don't get this behavior without spacewalk client.

Comment 3 Michael Mráka 2020-03-13 09:46:40 UTC
It seems to be a combination of the bug 1720690 and bug 1644241.

Comment 4 Michael Mráka 2020-03-19 12:16:52 UTC
Spacewalk 2.10 has been released.
https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes210


Note You need to log in before you can comment on or make changes to this bug.