Project

General

Profile

Actions

Bug #26915

closed

Problems updating after subscription

Added by Alex Losa almost 5 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

I have a Katello client host with Centos 7
Before subscribe the host in Foreman Katello, I get updates executing "yum update", but, after subscription, I get this executing it:

[root@vmcentos7 yum.repos.d]# yum update
Complementos cargados:changelog, package_upload, priorities, product-id, search-disabled-repos,
: subscription-manager
IECA_Centos_7_CentOS-Base_7_x86_64 | 2.1 kB 00:00:00
IECA_Centos_7_CentOS-Extras_7_x86_64 | 2.1 kB 00:00:00
IECA_Centos_7_CentOS-Updates_7_x86_64 | 2.1 kB 00:00:00
IECA_Centos_7_PostgreSQL_10_RHEL_7_x86_64 | 2.5 kB 00:00:00
IECA_Centos_7_PostgreSQL_9_3_RHEL_7_x86_64 | 2.5 kB 00:00:00
IECA_Centos_7_PostgreSQL_9_6_RHEL_7_x86_64 | 2.5 kB 00:00:00
IECA_EPEL_7_EPEL_7_x86_64 | 2.5 kB 00:00:00
No packages marked for update

And I know that they are packets to be updated...

Actions #1

Updated by Jonathon Turel almost 5 years ago

  • Tracker changed from Bug to Support
  • Assignee set to Jonathon Turel

Can you provide the output of `yum repolist` from the client machine? That might provide some insight. Thanks!

Actions #2

Updated by Alex Losa almost 5 years ago

I have registered in this Foreman 3 machines:
- CentOS release 6.10 (Final)
- CentOS Linux release 7.6.1810 (Core)
- Oracle Linux Server release 7.6

These are the "yum repolist" of every machine, and "yum update" while they are registered in Katello

Centos 6:

[root@vmcentos6 ~]# yum repolist
Complementos cargados:changelog, package_upload, priorities, product-id, security, subscription-manager
'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
IECA_Centos_6_CentOS-Base_6_x86_64 | 2.1 kB 00:00
IECA_Centos_6_CentOS-Extras_6_x86_64 | 2.1 kB 00:00
IECA_Centos_6_CentOS-Updates_6_x86_64 | 2.1 kB 00:00
IECA_Centos_6_PostgreSQL_10_RHEL_6_x86_64 | 2.1 kB 00:00
IECA_Centos_6_PostgreSQL_9_3_RHEL_6_x86_64 | 2.1 kB 00:00
IECA_Centos_6_PostgreSQL_9_6_RHEL_6_x86_64 | 2.1 kB 00:00
IECA_ELGIS_6_ELGIS_6_x86_64 | 2.1 kB 00:00
IECA_EPEL_6_EPEL_6_x86_64 | 2.1 kB 00:00
id del repositorio nombre del repositorio estado
IECA_Centos_6_CentOS-Base_6_x86_64 CentOS-Base 6 x86_64 5.149+1.564
IECA_Centos_6_CentOS-Extras_6_x86_64 CentOS-Extras 6 x86_64 46
IECA_Centos_6_CentOS-Updates_6_x86_64 CentOS-Updates 6 x86_64 366+72
IECA_Centos_6_PostgreSQL_10_RHEL_6_x86_64 PostgreSQL 10 RHEL 6 x86_64 479
IECA_Centos_6_PostgreSQL_9_3_RHEL_6_x86_64 PostgreSQL 9.3 RHEL 6 x86_64 429
IECA_Centos_6_PostgreSQL_9_6_RHEL_6_x86_64 PostgreSQL 9.6 RHEL 6 x86_64 575
IECA_ELGIS_6_ELGIS_6_x86_64 ELGIS 6 x86_64 198
IECA_EPEL_6_EPEL_6_x86_64 EPEL 6 x86_64 10.250+2.277
group_qpid-qpid Copr repo for qpid owned by @qpid 25+3
repolist: 17.517

[root@vmcentos6 ~]# yum update
Complementos cargados:changelog, package_upload, priorities, product-id, security, subscription-manager
'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
Configurando el proceso de actualización
IECA_Centos_6_CentOS-Base_6_x86_64 | 2.1 kB 00:00
IECA_Centos_6_CentOS-Extras_6_x86_64 | 2.1 kB 00:00
IECA_Centos_6_CentOS-Updates_6_x86_64 | 2.1 kB 00:00
IECA_Centos_6_PostgreSQL_10_RHEL_6_x86_64 | 2.1 kB 00:00
IECA_Centos_6_PostgreSQL_9_3_RHEL_6_x86_64 | 2.1 kB 00:00
IECA_Centos_6_PostgreSQL_9_6_RHEL_6_x86_64 | 2.1 kB 00:00
IECA_ELGIS_6_ELGIS_6_x86_64 | 2.1 kB 00:00
IECA_EPEL_6_EPEL_6_x86_64 | 2.1 kB 00:00
No se han seleccionando paquetes para ser actualizados


Centos 7:

[root@vmcentos7 ~]# yum repolist
Complementos cargados:changelog, priorities, product-id, search-disabled-repos, subscription-manager
id del repositorio nombre del repositorio estado
!IECA_Centos_7_CentOS-Base_7_x86_64 CentOS-Base 7 x86_64 7.761+2.258
!IECA_Centos_7_CentOS-Extras_7_x86_64 CentOS-Extras 7 x86_64 371
!IECA_Centos_7_CentOS-Updates_7_x86_64 CentOS-Updates 7 x86_64 983+218
!IECA_Centos_7_PostgreSQL_10_RHEL_7_x86_64 PostgreSQL 10 RHEL 7 x86_64 521
!IECA_Centos_7_PostgreSQL_9_3_RHEL_7_x86_64 PostgreSQL 9.3 RHEL 7 x86_64 461
!IECA_Centos_7_PostgreSQL_9_6_RHEL_7_x86_64 PostgreSQL 9.6 RHEL 7 x86_64 604
!IECA_EPEL_7_EPEL_7_x86_64 EPEL 7 x86_64 12.981
repolist: 23.682

[root@vmcentos7 ~]# yum update
Complementos cargados:changelog, priorities, product-id, search-disabled-repos, subscription-manager
IECA_Centos_7_CentOS-Base_7_x86_64 | 2.1 kB 00:00:00
IECA_Centos_7_CentOS-Extras_7_x86_64 | 2.1 kB 00:00:00
IECA_Centos_7_CentOS-Updates_7_x86_64 | 2.1 kB 00:00:00
IECA_Centos_7_PostgreSQL_10_RHEL_7_x86_64 | 2.5 kB 00:00:00
IECA_Centos_7_PostgreSQL_9_3_RHEL_7_x86_64 | 2.5 kB 00:00:00
IECA_Centos_7_PostgreSQL_9_6_RHEL_7_x86_64 | 2.5 kB 00:00:00
IECA_EPEL_7_EPEL_7_x86_64 | 2.5 kB 00:00:00
No packages marked for update


Oracle 7:

[root@vmoracle7 ~]# yum repolist
Complementos cargados:changelog, langpacks, priorities, product-id, search-disabled-repos, subscription-
: manager
id del repositorio nombre del repositorio estado
!IECA_Oracle_7_Oracle-Base_7_x86_64 Oracle-Base 7 x86_64 12.486
!IECA_Oracle_7_Oracle-Optional_7_x86_64 Oracle-Optional 7 x86_64 9.598
!IECA_Oracle_7_Oracle-UEK4_7_x86_64 Oracle-UEK4 7 x86_64 110
repolist: 22.194

[root@vmoracle7 ~]# yum update
Complementos cargados:changelog, langpacks, priorities, product-id, search-disabled-repos, subscription-
: manager
IECA_Oracle_7_Oracle-Base_7_x86_64 | 1.8 kB 00:00:00
IECA_Oracle_7_Oracle-Optional_7_x86_64 | 1.8 kB 00:00:00
IECA_Oracle_7_Oracle-UEK4_7_x86_64 | 1.8 kB 00:00:00
No packages marked for update


These are the "yum repolist" of every machine, and "yum update" while they are NOT registered in Katello

Centos 6:

[root@vmcentos6 ~]# yum repolist
Complementos cargados:changelog, package_upload, priorities, product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
87 packages excluded due to repository priority protections
id del repositorio nombre del repositorio estado
base CentOS-6 - Base 5.149+1.564
epel Extra Packages for Enterprise Linux 6 - x86_64 10.185+2.356
group_qpid-qpid Copr repo for qpid owned by @qpid 11+17
updates CentOS-6 - Updates 389+76
repolist: 15.734

[root@vmcentos6 ~]# yum update
Complementos cargados:changelog, package_upload, priorities, product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Configurando el proceso de actualización
87 packages excluded due to repository priority protections
No se han seleccionando paquetes para ser actualizados


Centos 7:

[root@vmcentos7 ~]# yum repolist
Complementos cargados:changelog, priorities, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
88 packages excluded due to repository priority protections
id del repositorio nombre del repositorio estado
base/7/x86_64 CentOS-7 - Base 7.761+2.258
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13.130+88
updates/7/x86_64 CentOS-7 - Updates 1.582+400
repolist: 22.473

[root@vmcentos7 ~]# yum update
Complementos cargados:changelog, priorities, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
88 packages excluded due to repository priority protections
No packages marked for update


Oracle 7:

[root@vmoracle7 ~]# yum repolist
Complementos cargados:changelog, langpacks, priorities, product-id, search-disabled-repos, subscription-
: manager
206 packages excluded due to repository priority protections
id del repositorio nombre del repositorio estado
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13.218
ol7_UEKR4/x86_64 Latest Unbreakable Enterprise Kernel Release 4 for Oracle Linu 89+21
ol7_latest/x86_64 Oracle Linux 7Server Latest (x86_64) 9.857+3.222
ol7_optional_latest/x86_64 Oracle Linux 7Server Optional Latest (x86_64) 7.878+2.072
ol7_spacewalk24_client/x86_64 Spacewalk Client 2.4 for Oracle Linux 7 (x86_64) 29+21
repolist: 31.071

[root@vmoracle7 ~]# yum update
Complementos cargados:changelog, langpacks, priorities, product-id, search-disabled-repos, subscription-
: manager
206 packages excluded due to repository priority protections
Resolviendo dependencias
--> Ejecutando prueba de transacción
---> Paquete device-mapper.x86_64 7:1.02.149-10.0.3.el7_6.7 debe ser actualizado
---> Paquete device-mapper.x86_64 7:1.02.149-10.0.3.el7_6.8 debe ser una actualización
---> Paquete device-mapper-event.x86_64 7:1.02.149-10.0.3.el7_6.7 debe ser actualizado
---> Paquete device-mapper-event.x86_64 7:1.02.149-10.0.3.el7_6.8 debe ser una actualización
---> Paquete device-mapper-event-libs.x86_64 7:1.02.149-10.0.3.el7_6.7 debe ser actualizado
---> Paquete device-mapper-event-libs.x86_64 7:1.02.149-10.0.3.el7_6.8 debe ser una actualización
---> Paquete device-mapper-libs.x86_64 7:1.02.149-10.0.3.el7_6.7 debe ser actualizado
---> Paquete device-mapper-libs.x86_64 7:1.02.149-10.0.3.el7_6.8 debe ser una actualización
---> Paquete glib2.x86_64 0:2.56.1-2.el7 debe ser actualizado
---> Paquete glib2.x86_64 0:2.56.1-4.el7_6 debe ser una actualización
---> Paquete kernel.x86_64 0:3.10.0-957.21.2.el7 debe ser instalado
---> Paquete kernel-tools.x86_64 0:3.10.0-957.12.2.el7 debe ser actualizado
---> Paquete kernel-tools.x86_64 0:3.10.0-957.21.2.el7 debe ser una actualización
...
...
Dependencias resueltas

========================================================================================================
Package Arquitectura Versión Repositorio Tamaño ========================================================================================================
Instalando:
kernel x86_64 3.10.0-957.21.2.el7 ol7_latest 48 M
kernel-uek x86_64 4.1.12-124.28.1.el7uek ol7_UEKR4 44 M
kernel-uek-firmware noarch 4.1.12-124.28.1.el7uek ol7_UEKR4 1.0 M
Actualizando:
device-mapper x86_64 7:1.02.149-10.0.3.el7_6.8 ol7_latest 293 k
device-mapper-event x86_64 7:1.02.149-10.0.3.el7_6.8 ol7_latest 188 k
device-mapper-event-libs x86_64 7:1.02.149-10.0.3.el7_6.8 ol7_latest 188 k
device-mapper-libs x86_64 7:1.02.149-10.0.3.el7_6.8 ol7_latest 320 k
glib2 x86_64 2.56.1-4.el7_6 ol7_latest 2.5 M
kernel-tools x86_64 3.10.0-957.21.2.el7 ol7_latest 7.1 M
kernel-tools-libs x86_64 3.10.0-957.21.2.el7 ol7_latest 7.0 M
...
...
systemd-python x86_64 219-62.0.4.el7_6.7 ol7_latest 133 k
systemd-sysv x86_64 219-62.0.4.el7_6.7 ol7_latest 84 k
teamd x86_64 1.27-6.el7_6.1 ol7_latest 112 k
Eliminando:
kernel x86_64 3.10.0-862.el7 @ol7_latest 62 M
kernel-uek x86_64 4.1.12-124.15.2.el7uek @ol7_UEKR4 166 M
kernel-uek-firmware noarch 4.1.12-124.15.2.el7uek @ol7_UEKR4 2.9 M

Resumen de la transacción ========================================================================================================
Instalar 3 Paquetes
Actualizar 19 Paquetes
Eliminar 3 Paquetes

Tamaño total de la descarga: 132 M
Is this ok [y/d/N]:


In this case, Oracle7 is the only one that find updates without Katello.
Usually, Centos 6 and Centos 7 find updates without katello too.

Actions #3

Updated by Jonathon Turel almost 5 years ago

Hi Alex,

It looks like you're using the 'priorities' plugin for yum. Can you try disabling it and share the output again? Let's talk in the context of your Centos7 machine only to keep things simpler. My inclination, though, is that this isn't a Foreman/Katello bug or behavior - but we can make sure.

Actions #4

Updated by Alex Losa almost 5 years ago

I'm gonna continue with my Oracle7 example.

I have disabled the priorities as you said changing to enabled = 0 at /etc/yum/pluginconf.d/priorities.conf

I have the same result.

UNREGISTERED
------------

[root@vmoracle7 ~]# yum repolist
Complementos cargados:changelog, enabled_repos_upload, langpacks, package_upload, product-id, search-
: disabled-repos, subscription-manager
id del repositorio nombre del repositorio estado
!epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13.225
!ol7_UEKR4/x86_64 Latest Unbreakable Enterprise Kernel Release 4 for Oracle Linux 7Se 110
!ol7_latest/x86_64 Oracle Linux 7Server Latest (x86_64) 13.094
!ol7_optional_latest/x86_64 Oracle Linux 7Server Optional Latest (x86_64) 9.956
!ol7_spacewalk24_client/x86_64 Spacewalk Client 2.4 for Oracle Linux 7 (x86_64) 50
repolist: 36.435
Uploading Enabled Repositories Report
Cannot upload enabled repos report, is this client registered?

[root@vmoracle7 ~]# yum update
Complementos cargados:changelog, enabled_repos_upload, langpacks, package_upload, product-id, search-
: disabled-repos, subscription-manager
epel/x86_64/metalink | 32 kB 00:00:00
epel | 5.3 kB 00:00:00
ol7_UEKR4 | 2.5 kB 00:00:00
ol7_latest | 2.7 kB 00:00:00
ol7_optional_latest | 2.5 kB 00:00:00
ol7_spacewalk24_client | 1.2 kB 00:00:00
(1/2): epel/x86_64/updateinfo | 977 kB 00:00:00
(2/2): epel/x86_64/primary_db | 6.8 MB 00:00:01
Resolviendo dependencias
--> Ejecutando prueba de transacción
---> Paquete device-mapper.x86_64 7:1.02.149-10.0.3.el7_6.7 debe ser actualizado
---> Paquete device-mapper.x86_64 7:1.02.149-10.0.3.el7_6.8 debe ser una actualización
---> Paquete device-mapper-event.x86_64 7:1.02.149-10.0.3.el7_6.7 debe ser actualizado
---> Paquete device-mapper-event.x86_64 7:1.02.149-10.0.3.el7_6.8 debe ser una actualización
---> Paquete device-mapper-event-libs.x86_64 7:1.02.149-10.0.3.el7_6.7 debe ser actualizado
---> Paquete device-mapper-event-libs.x86_64 7:1.02.149-10.0.3.el7_6.8 debe ser una actualización
---> Paquete device-mapper-libs.x86_64 7:1.02.149-10.0.3.el7_6.7 debe ser actualizado
---> Paquete device-mapper-libs.x86_64 7:1.02.149-10.0.3.el7_6.8 debe ser una actualización
---> Paquete glib2.x86_64 0:2.56.1-2.el7 debe ser actualizado
---> Paquete glib2.x86_64 0:2.56.1-4.el7_6 debe ser una actualización
---> Paquete glibc.x86_64 0:2.17-260.0.17.el7_6.5 debe ser actualizado
---> Paquete glibc.x86_64 0:2.17-260.0.17.el7_6.6 debe ser una actualización
---> Paquete glibc-common.x86_64 0:2.17-260.0.17.el7_6.5 debe ser actualizado
..............
---> Paquete teamd.x86_64 0:1.27-6.el7_6.1 debe ser una actualización
--> Resolución de dependencias finalizada
--> Ejecutando prueba de transacción
---> Paquete kernel.x86_64 0:3.10.0-862.el7 debe ser eliminado
---> Paquete kernel-uek.x86_64 0:4.1.12-124.15.2.el7uek debe ser eliminado
---> Paquete kernel-uek-firmware.noarch 0:4.1.12-124.15.2.el7uek debe ser eliminado
--> Resolución de dependencias finalizada

Dependencias resueltas

=========================================================================================================
Package Arquitectura Versión Repositorio Tamaño =========================================================================================================
Instalando:
kernel x86_64 3.10.0-957.21.2.el7 ol7_latest 48 M
kernel-uek x86_64 4.1.12-124.28.1.el7uek ol7_UEKR4 44 M
kernel-uek-firmware noarch 4.1.12-124.28.1.el7uek ol7_UEKR4 1.0 M
Actualizando:
device-mapper x86_64 7:1.02.149-10.0.3.el7_6.8 ol7_latest 293 k
device-mapper-event x86_64 7:1.02.149-10.0.3.el7_6.8 ol7_latest 188 k
device-mapper-event-libs x86_64 7:1.02.149-10.0.3.el7_6.8 ol7_latest 188 k
device-mapper-libs x86_64 7:1.02.149-10.0.3.el7_6.8 ol7_latest 320 k
glib2 x86_64 2.56.1-4.el7_6 ol7_latest 2.5 M
glibc x86_64 2.17-260.0.17.el7_6.6 ol7_latest 3.7 M
glibc-common x86_64 2.17-260.0.17.el7_6.6 ol7_latest 12 M
kernel-tools x86_64 3.10.0-957.21.2.el7 ol7_latest 7.1 M
kernel-tools-libs x86_64 3.10.0-957.21.2.el7 ol7_latest 7.0 M
libgudev1 x86_64 219-62.0.4.el7_6.7 ol7_latest 96 k
libteam x86_64 1.27-6.el7_6.1 ol7_latest 48 k
lvm2 x86_64 7:2.02.180-10.0.3.el7_6.8 ol7_latest 1.3 M
lvm2-libs x86_64 7:2.02.180-10.0.3.el7_6.8 ol7_latest 1.1 M
python x86_64 2.7.5-79.0.1.el7_6 ol7_latest 94 k
python-libs x86_64 2.7.5-79.0.1.el7_6 ol7_latest 5.6 M
python-perf x86_64 3.10.0-957.21.2.el7 ol7_latest 7.1 M
systemd x86_64 219-62.0.4.el7_6.7 ol7_latest 5.1 M
systemd-libs x86_64 219-62.0.4.el7_6.7 ol7_latest 407 k
systemd-python x86_64 219-62.0.4.el7_6.7 ol7_latest 133 k
systemd-sysv x86_64 219-62.0.4.el7_6.7 ol7_latest 84 k
teamd x86_64 1.27-6.el7_6.1 ol7_latest 112 k
Eliminando:
kernel x86_64 3.10.0-862.el7 @ol7_latest 62 M
kernel-uek x86_64 4.1.12-124.15.2.el7uek @ol7_UEKR4 166 M
kernel-uek-firmware noarch 4.1.12-124.15.2.el7uek @ol7_UEKR4 2.9 M

Resumen de la transacción =========================================================================================================
Instalar 3 Paquetes
Actualizar 21 Paquetes
Eliminar 3 Paquetes

Tamaño total de la descarga: 148 M
Is this ok [y/d/N]:

I'll take as example the packet
systemd x86_64 219-62.0.4.el7_6.7 ol7_latest 5.1 M

Now, I register the host into Foreman

REGISTERED
----------

[root@vmoracle7 ~]# yum repolist
Complementos cargados:changelog, enabled_repos_upload, langpacks, package_upload, product-id, search-
: disabled-repos, subscription-manager
id del repositorio nombre del repositorio estado
!IECA_Oracle_7_Oracle-Base_7_x86_64 Oracle-Base 7 x86_64 12.486
!IECA_Oracle_7_Oracle-Optional_7_x86_64 Oracle-Optional 7 x86_64 9.598
!IECA_Oracle_7_Oracle-UEK4_7_x86_64 Oracle-UEK4 7 x86_64 110
repolist: 22.194
Uploading Enabled Repositories Report
Complementos cargados:langpacks, product-id, subscription-manager
Complementos cargados:langpacks, product-id, subscription-manager
Complementos cargados:langpacks, product-id, subscription-manager

[root@vmoracle7 ~]# yum update
Complementos cargados:changelog, enabled_repos_upload, langpacks, package_upload, product-id, search-
: disabled-repos, subscription-manager
IECA_Oracle_7_Oracle-Base_7_x86_64 | 1.8 kB 00:00:00
IECA_Oracle_7_Oracle-Optional_7_x86_64 | 1.8 kB 00:00:00
IECA_Oracle_7_Oracle-UEK4_7_x86_64 | 1.8 kB 00:00:00
No packages marked for update
Uploading Enabled Repositories Report
Complementos cargados:langpacks, product-id, subscription-manager
Complementos cargados:langpacks, product-id, subscription-manager
Complementos cargados:langpacks, product-id, subscription-manager

Nothing... Host doesn't update while is registered in Foreman.

If I search the packet
systemd x86_64 219-62.0.4.el7_6.7 ol7_latest 5.1 M
in Foreman, it exists, but doesn's update...

In Foreman, If I go to the packet systemd-219-62.0.4.el7_6.7.x86_64, it tells me that is applicable for 9 hosts (the Oracle7 hosts), but if I try to Hosts/Content Hosts/vmoracle7/Packages/actions/update, if I try to update this packet by Katello Agent, the task stays at 25% and don't move....

If I try to update by remote execution, tells me: " 1:
Failed to initialize: RuntimeError - Failed rendering template: error during rendering: ERF18-8334 [InputTemplateRenderer::RenderError]: Unsupported or no operating system found for this host."

If I try to install instead of update, the task stays at 17%

What Could I do?

Actions #5

Updated by Jonathon Turel almost 5 years ago

Alex,

Thanks for the extra output. We don't really support OEL as Katello clients with respect to the client tooling, so whether it works or not involves some luck and dedication from your side. Nevertheless it appears that something is disabling the repos on this host:

ol7_UEKR4 | 2.5 kB 00:00:00
ol7_latest | 2.7 kB 00:00:00
ol7_optional_latest | 2.5 kB 00:00:00
ol7_spacewalk24_client | 1.2 kB 00:00:00
(1/2): epel/x86_64/updateinfo | 977 kB 00:00:00
(2/2): epel/x86_64/primary_db

They don't show up in yum repolist after you've registered. Can you tell me which version of subscription-manager is installed on this machine, and also the contents of /etc/yum.repos.d/redhat.repo? Feel free to hide any private hostnames.

Curious - have you tried yum clean all && rm -rf /var/cache/yum ?

Actions #6

Updated by Alex Losa almost 5 years ago

it has been a mistake with repolist, this is the correct:

When I have my host UNregistered from Katello, this is my repolist:

[root@vmoracle7 ~]# yum repolist
Complementos cargados:changelog, enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
id del repositorio nombre del repositorio estado
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13.232
ol7_UEKR4/x86_64 Latest Unbreakable Enterprise Kernel Release 4 for Oracle Linux 7Server (x86_64) 110
ol7_latest/x86_64 Oracle Linux 7Server Latest (x86_64) 13.094
ol7_optional_latest/x86_64 Oracle Linux 7Server Optional Latest (x86_64) 9.956
ol7_spacewalk24_client/x86_64 Spacewalk Client 2.4 for Oracle Linux 7 (x86_64) 50
repolist: 36.442
Uploading Enabled Repositories Report
Cannot upload enabled repos report, is this client registered?

When I have my host registered at Katello, this is my repolist:

[root@vmoracle7 ~]# yum repolist
Complementos cargados:changelog, enabled_repos_upload, langpacks, package_upload,
: product-id, search-disabled-repos, subscription-manager
id del repositorio nombre del repositorio estado
!IECA_Oracle_7_Oracle-Base_7_x86_64 Oracle-Base 7 x86_64 12.486
!IECA_Oracle_7_Oracle-Optional_7_x86_64 Oracle-Optional 7 x86_64 9.598
!IECA_Oracle_7_Oracle-UEK4_7_x86_64 Oracle-UEK4 7 x86_64 110
repolist: 22.194
Uploading Enabled Repositories Report
Complementos cargados:langpacks, product-id, subscription-manager
Complementos cargados:langpacks, product-id, subscription-manager
Complementos cargados:langpacks, product-id, subscription-manager

When the host is unregistered, yum update shows me a lot of update packets, but while is registered in Katello, there's not packets to update.

This is my subscription-manager:

[root@vmoracle7 ~]# rpm -qa | grep subscription
subscription-manager-rhsm-1.21.10-2.el7.centos.x86_64
subscription-manager-rhsm-certificates-1.21.10-2.el7.centos.x86_64
subscription-manager-1.21.10-2.el7.centos.x86_64

[root@vmoracle7 ~]# cat /etc/yum.repos.d/redhat.repo
[IECA_Oracle_7_Oracle-Optional_7_x86_64]
metadata_expire = 1
sslclientcert = /etc/pki/entitlement/1230525981822562514.pem
baseurl = https://foreman.gestion.ieca.junta-andalucia.es/pulp/repos/IECA/IECA_Produccion/Oracle_7/custom/Oracle_7/Oracle-Optional_7_x86_64
sslverify = 1
name = Oracle-Optional 7 x86_64
sslclientkey = /etc/pki/entitlement/1230525981822562514-key.pem
gpgkey = https://foreman.gestion.ieca.junta-andalucia.es/katello/api/v2/repositories/11/gpg_key_content
enabled = 1
sslcacert = /etc/rhsm/ca/katello-server-ca.pem
gpgcheck = 1

[IECA_Oracle_7_Oracle-UEK4_7_x86_64]
metadata_expire = 1
sslclientcert = /etc/pki/entitlement/1230525981822562514.pem
baseurl = https://foreman.gestion.ieca.junta-andalucia.es/pulp/repos/IECA/IECA_Produccion/Oracle_7/custom/Oracle_7/Oracle-UEK4_7_x86_64
sslverify = 1
name = Oracle-UEK4 7 x86_64
sslclientkey = /etc/pki/entitlement/1230525981822562514-key.pem
gpgkey = https://foreman.gestion.ieca.junta-andalucia.es/katello/api/v2/repositories/12/gpg_key_content
enabled = 1
sslcacert = /etc/rhsm/ca/katello-server-ca.pem
gpgcheck = 1

[IECA_Oracle_7_Oracle-Base_7_x86_64]
metadata_expire = 1
sslclientcert = /etc/pki/entitlement/1230525981822562514.pem
baseurl = https://foreman.gestion.ieca.junta-andalucia.es/pulp/repos/IECA/IECA_Produccion/Oracle_7/custom/Oracle_7/Oracle-Base_7_x86_64
sslverify = 1
name = Oracle-Base 7 x86_64
sslclientkey = /etc/pki/entitlement/1230525981822562514-key.pem
gpgkey = https://foreman.gestion.ieca.junta-andalucia.es/katello/api/v2/repositories/20/gpg_key_content
enabled = 1
sslcacert = /etc/rhsm/ca/katello-server-ca.pem
gpgcheck = 1

I have done yum clean all && rm -rf /var/cache/yum but I have the same result

[root@vmoracle7 ~]# yum update
Complementos cargados:changelog, enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
IECA_Oracle_7_Oracle-Base_7_x86_64 | 1.8 kB 00:00:00
IECA_Oracle_7_Oracle-Optional_7_x86_64 | 1.8 kB 00:00:00
IECA_Oracle_7_Oracle-UEK4_7_x86_64 | 1.8 kB 00:00:00
No packages marked for update
Uploading Enabled Repositories Report
Complementos cargados:langpacks, product-id, subscription-manager
Complementos cargados:langpacks, product-id, subscription-manager
Complementos cargados:langpacks, product-id, subscription-manager

Actions #7

Updated by Jonathon Turel almost 5 years ago

Alex,

Not sure if you mentioned already - can you also tell me which version of Katello you are running?

The repositories you've enabled on these clients - have you synced them? And also: what Download Policy do you have set on the repositories?

Thanks for the information you have shared, but I haven't been able to make any conclusions yet.

Actions #8

Updated by Alex Losa almost 5 years ago

My Katello is: katello-3.10.0-7.el7.noarch
My Foreman is: foreman-1.20.2-1.el7.noarch

All my repos were synced 6 days ago.
And they synces weekly

Actions #9

Updated by Jonathon Turel almost 5 years ago

Thanks for the info. I noticed something you said earlier:

In Foreman, If I go to the packet systemd-219-62.0.4.el7_6.7.x86_64, it tells me that is applicable for 9 hosts

When you look at this package do you also see '9' (including the OEL7 client) under 'Upgradable'? It's possible that the applicable packages are not actually present in the Content View & Environment assigned to the host so they can't be installed.

You can verify this by temporarily moving the client to the Default Organization View & Library environment follow by yum clean all && yum repolist. Another way is to publish a new version of the content view which the host is currently assigned to which will bring in the latest packages. Then try installing the expected packages again.

Actions #10

Updated by Chris Roberts over 4 years ago

  • Tracker changed from Support to Bug
  • Status changed from New to Need more information
Actions #11

Updated by Jonathon Turel over 4 years ago

  • Tracker changed from Bug to Support

Hey Alex, any updates on this as far as the requested info - or maybe you got it working?

Actions #12

Updated by Alex Losa over 4 years ago

Yes, sorry. Yesterday I decided to reinstall all completly from zero, with the last versions, and it works...

In my last installation I tried to update postgresql to v.10 because Foreman installs v.9.2, maybe the problem was that...

Actions #13

Updated by Jonathon Turel over 4 years ago

  • Target version set to Katello Recycle Bin

Thank you for getting back to me. I'm glad you got it working even if the reason why it works now isn't so clear. If you have any support needs in the future I recommend starting a discussion in our community forum as the audience is much wider and solutions are more readily available there to help others if they're having the same problems. That can be found at https://community.theforeman.org/c/support

I'll close this out now since the problem is resolved. Take care!

Actions #14

Updated by Jonathon Turel over 4 years ago

  • Tracker changed from Support to Bug
  • Status changed from Need more information to Resolved
Actions #15

Updated by Jonathon Turel over 4 years ago

  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF