Revert fails: cln-switch-channel runs before rhn client packages are reinstalled
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
- Área
- infrastructure
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_checkreturns 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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de plesk/cloudlinux7to8
-
Dificultad 3/5 Medio día Aptitud para principiantes 45/100
plesk/cloudlinux7to8#145 ·
-
Dificultad 3/5 Medio día Aptitud para principiantes 55/100
plesk/cloudlinux7to8#144 ·
-
Legacy GRUB 0.97 system passes precheck; leapp system_facts crashes on missing /boot/grub2/grub.cfgAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
plesk/cloudlinux7to8#143 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 22/100
plesk/cloudlinux7to8#141 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
plesk/cloudlinux7to8#140 ·
Todos los issues de plesk/cloudlinux7to8
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
521xueweihan/HelloGitHub#4063 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Vanilla-OS/apx-gui#112 ·
-
Devstral and Voxtral: section 5 fails in us-east-1 with 400 "Model does not support audio modality"Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
aws-samples/sample-per-model-bedrock#409 ·
Los mantenedores suelen responder en 1 día
-
DuckDB 2.0 breaks to_pyarrow_batchesPosiblemente ocupada @DG47 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ibis-project/ibis#12196 ·
Los mantenedores suelen responder en 1 día