Revert fails: cln-switch-channel runs before rhn client packages are reinstalled
まだ誰も着手していません。
評価
- 難易度
- 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_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
- 主要言語
- Python
- スター
- 7
- フォーク
- 5
- 平均マージ
- 11分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
plesk/cloudlinux7to8 のほかの issue
-
難易度 3/5 半日 初心者へのやさしさ 45/100
plesk/cloudlinux7to8#145 ·
-
難易度 3/5 半日 初心者へのやさしさ 55/100
plesk/cloudlinux7to8#144 ·
-
Legacy GRUB 0.97 system passes precheck; leapp system_facts crashes on missing /boot/grub2/grub.cfgオープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
plesk/cloudlinux7to8#143 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
plesk/cloudlinux7to8#141 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
plesk/cloudlinux7to8#140 ·
plesk/cloudlinux7to8 の issue をすべて見る
似ている issue
-
Validate non-divisible effective batch sizes in the Unsloth LoRA backend対応中かも @debesh-biswas が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
`rx.Model` event arguments emit `PydanticDeprecatedSince20` once per payload key対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
reflex-dev/reflex#7634 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
documentation
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
topoteretes/cognee#6239 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ranaroussi/yfinance#3009 ·
メンテナーはふだん 1 日以内に返信
-
Test discovery aborts on GPU builds without cuStateVec: check_cuStateVec expects a failed result but set_config() now raises RuntimeError対応中かも @dmeliksetian が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Qiskit/qiskit-aer#2495 ·
メンテナーはふだん 1 日以内に返信