Bug 1226520
Summary: | ostree does not always switch to the new atomic release after an upgrade | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Todor Todorov <todor.a.todorov> |
Component: | ostree | Assignee: | Colin Walters <walters> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 22 | CC: | agrimm, flipmode, herrold, walters |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | ostree-2015.6-2.fc22 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-06-07 16:04:34 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Todor Todorov
2015-05-30 08:14:56 UTC
ostree-2015.6-2.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/ostree-2015.6-2.fc22 This issue has apparently been lurking a long time. The bug is clearly in OSTree. But my current suspicion is that something changed in the kernel (filesystem/VFS) that changed the ordering from getdents(), and that's how it went undetected for so long. You can run this script to check whether your system is affected: cd curl -O https://raw.githubusercontent.com/cgwalters/ostree/f952c0fcbc5f72f3ac03de8f881b3d8ac1c28dad/tests/grub2-entries-crosscheck.py chmod a+x grub2-entries-crosscheck.py ./grub2-entries-crosscheck.py To address the problem, we currently recommend editing /boot/grub2/grub.cfg and swapping the relevant `menuentry` components. A script may be developed for this. Package ostree-2015.6-2.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing ostree-2015.6-2.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-9288/ostree-2015.6-2.fc22 then log in and leave karma (feedback). This bug is related to Fedora-atomic which currently does not support package management with yum and rpm. Yum does not exist at all. Also, as I can see, yum is deprecated in Fedora 22. I've tried to install the package via docker container. -bash-4.3# docker run -ti --rm --privileged -v /:/chroot:rw fedora:22 dnf update -y http://ftp.linux.cz/pub/linux/fedora/linux/updates/testing/22/x86_64/o/ostree-2015.6-2.fc22.x86_64.rpm --installroot=/chroot Last metadata expiration check performed 1:09:33 ago on Tue Jun 2 06:32:15 2015. Dependencies resolved. =========================================================================================================================================================================== Package Arch Version Repository Size =========================================================================================================================================================================== Upgrading: ostree x86_64 2015.6-2.fc22 @commandline 308 k Transaction Summary =========================================================================================================================================================================== Upgrade 1 Package Total size: 308 k Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Failed to obtain the transaction lock (logged in as: root). Error: Could not run transaction. -bash-4.3# As I can see, I am hitting a bug related to a not released transaction lock: https://bugzilla.redhat.com/show_bug.cgi?id=1204488 Currently can not verify whether Bug 1226520 has been fixed. When do you expect to have the package added to Fedora-atomic tree? (In reply to Todor Todorov from comment #5) > > Failed to obtain the transaction lock (logged in as: root). > Error: Could not run transaction. I'm not sure what's going on there offhand, but I'd continue that conversation in the https://bugzilla.redhat.com/show_bug.cgi?id=1204488 bug. It doesn't work to update ostree in a container, the host must be updated - which in this case obviously presents a circular problem. That circle can be broken by manually editing the bootloader configuration. We will also be producing new images. > Currently can not verify whether Bug 1226520 has been fixed. > When do you expect to have the package added to Fedora-atomic tree? It's now available in updates-testing, see https://lists.projectatomic.io/projectatomic-archives/atomic/2015-June/msg00000.html I have installed Fedora-atomic 22.6 from updates-testing on 5 VMs. Then upgraded to Fedora-atomic 22.7. The boot order on all 5 VMs was correct after the upgrade. * fedora-atomic 6c50aeae140a5284239d3f079b3f12bc6bbda7c462159234b4df0f9570df6fdd.0 Version: 22.7 origin refspec: fedora-atomic:fedora-atomic/f22/x86_64/testing/docker-host fedora-atomic 8448f343e0edd949d3d8bc81c01d3d8003ff779c9273f281395aeedba03c8735.0 Version: 22.6 origin refspec: fedora-atomic:fedora-atomic/f22/x86_64/testing/docker-host Seems ostree-2015.6-2.fc22.x86_64 has resolved Bug 1226520. Thank you very much for the assistance! I've pushed: So on an installed system, running: # atomic run cgwalters/ostree-grub2-fix should either validate or fix it. ostree-2015.6-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. The updates images available at http://atomic-nightly.cloud.fedoraproject.org/composes/ should have this patch as well. *** Bug 1254859 has been marked as a duplicate of this bug. *** |