Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#142 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
linux, python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
7
Fork
5
Merge medio
11m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di plesk/cloudlinux7to8

Tutte le issue di plesk/cloudlinux7to8

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.