Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#142 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
linux, python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Python
スター
7
フォーク
5
平均マージ
11分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

plesk/cloudlinux7to8 のほかの issue

plesk/cloudlinux7to8 の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。