Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Revert fails: cln-switch-channel runs before rhn client packages are reinstalled

Abierto
#142 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
linux, python

Línea de trabajo

Reproduce by running --revert after a failed leapp preupgrade, then read the stage-ordering code that runs reverts in reverse. Find where /usr/sbin/cln-switch-channel is called in the "Repositories handling" stage and where "Remove conflicting packages" reinstalls the CLN client packages. Done when the revert succeeds, with packages restored before the channel switch or the switch skipped and rerun afterwards.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Environment

  • cloudlinux7to8 v1.2.1
  • CloudLinux 7.9 (TuxCare ELS), Plesk Obsidian 18.0.81.3, server registered in CLN (rhn_check returns 0)

Describe the bug
During the convert phase, the action "removing unused CLN client packages" removes rhn-client-tools, rhn-check and rhn-setup (/etc/sysconfig/rhn/up2date is saved as up2date.rpmsave).

After a failure in leapp preupgrade, ./cloudlinux7to8 --revert failed in the "Repositories handling" stage:

Do: switching CLN channel
Running: ['/usr/sbin/cln-switch-channel', '-t', '7', '-o', '-f']. Output:
ERROR - Failed: switching CLN channel. The reason: [Errno 2] No such file or directory: '/usr/sbin/cln-switch-channel': '/usr/sbin/cln-switch-channel'

The CLN client packages are reinstalled by the revert of an earlier stage ("Remove conflicting packages"), which runs after "Repositories handling" in the reversed order, so the command is not available yet when the channel switch is attempted. A previous revert on the same server (failure before the "Repositories handling" stage) worked fine.

Expected behavior
Reinstall the CLN client packages (and restore up2date) before switching the CLN channel back during revert, or skip the channel switch gracefully and run it after the packages are back.

Workaround
yum install rhn-client-tools rhn-check rhn-setup, restore /etc/sysconfig/rhn/up2date from up2date.rpmsave if it differs, then run --revert again.

Related: #26

Lenguaje dominante
Python
Estrellas
7
Forks
5
Merge medio
11 min
PR fusionados (30 d)
1

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de plesk/cloudlinux7to8

Todos los issues de plesk/cloudlinux7to8

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.