[bootc 1.15.2 - almalinux-bootc:10.2] Consecutive soft-reboot transitions do not activate the expected target deployment
Les mainteneurs répondent en général sous 2 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 55/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- rust
- Domaine
- operating-systems
Piste de recherche
Commencez par suivre la gestion des soft-reboots consécutifs dans crates/lib/src/bootc_composefs/soft_reboot.rs, puis suivez les flux de mise à niveau par étapes et de rollback dans update.rs et rollback.rs. Reproduisez le problème avec des opérations consécutives de bootc rollback --apply --soft-reboot=required et de mise à niveau, en examinant bootc status --verbose et ostree admin status. C’est terminé lorsque le deployment demandé est activé après la deuxième transition et que l’état correspond au système de fichiers de l’espace utilisateur.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Summary
Consecutive bootc operations using --apply --soft-reboot=required on a ostree-backed system trigger systemd soft-reboots, but the expected target deployment is not activated on the second transition.
This reproduces with both bootc rollback and bootc upgrade.
Environment
- Repository:
bootc-dev/bootc - Backend: ostree with composefs enabled
- Commands tested with
--apply --soft-reboot=required bootc status --verboseshowed both booted and rollback deployments asSoft-reboot: yesbootc --version->1.15.2 (almalinux-bootc:10.2)
Reproduction
Starting state:
- Booted image:
my-repo/my-project/my-image:A - Rollback image:
my-repo/my-project/my-image:B - Both entries reported
Soft-reboot: yes
Then run:
bootc rollback --apply --soft-reboot=required- Verify the system is now booted into
my-image:Band rollback points tomy-image:A - Run
bootc rollback --apply --soft-reboot=requiredagain
A similar issue is observed with consecutive bootc upgrade --apply --soft-reboot=required operations.
Expected behavior
If both the current and target deployments are reported as Soft-reboot: yes, a second consecutive soft-reboot-capable transition should activate the requested target deployment.
For rollback specifically, the second rollback should return the system to the previous deployment.
Actual behavior
The second soft-reboot is triggered by systemd, but the expected target deployment seems not to be activated.
After the second rollback, bootc status --verbose still shows the same booted/rollback pair instead of flipping back.
However, the userspace filesystem seems to be the expected one. So, what is returned by bootc status doesn't match with what is actually done.
Journal output confirms that a second soft-reboot occurred:
Aug 18 14:24:08 ar-node-153 systemd[1]: Soft-rebooting.
Aug 18 14:25:01 ar-node-153 systemd[1]: Soft-reboot finished in 57.036s, counter is now at 1.
...
Aug 18 14:29:18 ar-node-153 systemd[1]: Soft-rebooting.
Aug 18 14:30:25 ar-node-153 systemd[1]: Soft-reboot finished in 1min 11.431s, counter is now at 2.
ostree admin status after preparing the second transition shows a pending soft-reboot deployment:
default ddf9cef2ccbd4637f3f5b4fc9d366aa3273ca3c3b1d5ba9bbff0910d7f19d650.1 (pending) (soft-reboot)
origin: <unknown origin type>
* default cbdc4faca29a53293e0f717abb4d387b89470cd5c618ff68a702de2ba99d233a.0
origin: <unknown origin type>
So the soft-reboot appears to be prepared, but the resulting active deployment after the reboot does not match expectations.
Additional notes
This does not appear to be a generic systemd limitation, because systemd reports completing two consecutive soft-reboots successfully. The problem seems specific to how bootc prepares or consumes the pending deployment for a second consecutive soft-reboot-capable transition.
Relevant implementation areas in the repository include:
crates/lib/src/bootc_composefs/soft_reboot.rscrates/lib/src/bootc_composefs/update.rscrates/lib/src/bootc_composefs/rollback.rs
Possible direction
Investigate consecutive soft-reboot flows for both staged upgrades and rollback/revert flows, especially cases where a new pending (soft-reboot) deployment is prepared after a previous soft-reboot has already occurred.
- Langage dominant
- Rust
- Étoiles
- 2.3k
- Forks
- 230
- Merge moyen
- 2 j 11 h
- PR mergées (30 j)
- 42
Préparer son environnement
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de bootc-dev/bootc
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 2 jours
-
install: improve error message when systemd-boot is selected without composefs backendPeut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 30/100
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de bootc-dev/bootc
Issues similaires
-
[Bug]: layer.move to the place a layer already has fails and stops a script; with several layers it leaves an empty undo stepPeut-être pris @jgregoriorincon l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
opengeos/RustGIS#2621 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
good first issue web
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
Wait for the IDS correction dialog to settle in the stale-audit testPeut-être pris @louistrue l’a pris aujourd’hui. Ouverteready
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Les mainteneurs répondent en général sous 1 jour