Bug 1202320
Summary: | [atomic] BootLoaderError: failed to write bootloader configuration | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Alexander Todorov <atodorov> | ||||||||||||||||||||||||||||||
Component: | anaconda | Assignee: | Radek Vykydal <rvykydal> | ||||||||||||||||||||||||||||||
Status: | CLOSED DUPLICATE | QA Contact: | Release Test Team <release-test-team-automation> | ||||||||||||||||||||||||||||||
Severity: | medium | Docs Contact: | |||||||||||||||||||||||||||||||
Priority: | medium | ||||||||||||||||||||||||||||||||
Version: | 7.1 | CC: | walters | ||||||||||||||||||||||||||||||
Target Milestone: | rc | ||||||||||||||||||||||||||||||||
Target Release: | --- | ||||||||||||||||||||||||||||||||
Hardware: | x86_64 | ||||||||||||||||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||||||||||||||||
Whiteboard: | abrt_hash:2d4428cfd3000eed227c719ab6fc662ddc637be5064123cadbe29b71a3726251 | ||||||||||||||||||||||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||||||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||||||||||||||||
Last Closed: | 2015-10-01 18:50:46 UTC | Type: | --- | ||||||||||||||||||||||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||||||||||||||||||||||
Documentation: | --- | CRM: | |||||||||||||||||||||||||||||||
Verified Versions: | Category: | --- | |||||||||||||||||||||||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||||||||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||||||||||||||||
Embargoed: | |||||||||||||||||||||||||||||||||
Attachments: |
|
Description
Alexander Todorov
2015-03-16 11:50:56 UTC
Created attachment 1002216 [details]
File: anaconda-tb
Created attachment 1002217 [details]
File: anaconda.log
Created attachment 1002218 [details]
File: environ
Created attachment 1002219 [details]
File: lsblk_output
Created attachment 1002220 [details]
File: nmcli_dev_list
Created attachment 1002221 [details]
File: os_info
Created attachment 1002222 [details]
File: program.log
Created attachment 1002223 [details]
File: storage.log
Created attachment 1002224 [details]
File: syslog
Created attachment 1002225 [details]
File: ifcfg.log
I'm not exactly sure what caused this problem. Initially I've had some partitions on disk which I managed to delete and created the default LVM configuration. Then I've changed the root mount point from LVM to BTRFS, IIRC and proceeded with the install. At the end of the installation I got this traceback. Before going into the installation UI I've also zeroed out the 1st MB of the vda disk using dd. 10:44:05,800 INFO program: Running... grub2-mkconfig -o /boot/grub2/grub.cfg 10:44:05,840 INFO program: /usr/sbin/grub2-probe: error: cannot find a device for / (is /dev mounted?). Looks like it doesn't like the btrfs / for some reason. I doubt this bug should be on InstallPrio list. Colin, is / on btrfs something we should care about much for Atomic? (In reply to Radek Vykydal from comment #13) > I doubt this bug should be on InstallPrio list. > Colin, is / on btrfs something we should care about much for Atomic? Well...btrfs has nicer management than the LVM stack in some cases, so I can imagine some people wanting to use it. But long term I think for Atomic Host/docker, overlayfs is a primary focus. It's OK by me if we just leave this bug open, it's not a priority indeed right now. The reproducer is to create default partitioning in custom partitioning spoke and change '/' to BTRFS. grub2-probe fails to find device '/' is mounted on. I'll post /proc/self/mountinfo of 1) reproducer with atomic installer - fails with the traceback 2) reproducer with rhel installer - doesn't traceback 3) default lvm configuration with atomic installer - doesn't traceback, not sure why The root cause seems to be that grub2-probe in 1) is run in ostree deployment chroot, where physical target root device (the one probe is looking for?) is mounted to /sysroot whereas the probe looks for / and nothing is actually mounted to / in the chroot at the time of grub2-probe (<- grub2-mkconfig <- bootloader.write_config() <- writeBootLoader())? See the mounting before writeBootLoader https://github.com/rhinstaller/anaconda/blob/atomic-rhel-7.1/pyanaconda/install.py#L175 Created attachment 1052633 [details]
1) atomic installer reproducer
# /usr/sbin/grub2-probe -v --target=device /
(run in deployment chroot)
/usr/sbin/grub2-probe: info: adding `hd0' -> `/dev/vda' from device.map.
/usr/sbin/grub2-probe: info: adding `hd1' -> `/dev/vda' from device.map.
/usr/sbin/grub2-probe: info: changing current directory to /dev.
/usr/sbin/grub2-probe: info: changing current directory to rah.
/usr/sbin/grub2-probe: info: changing current directory to virtio-ports.
/usr/sbin/grub2-probe: info: changing current directory to snd.
/usr/sbin/grub2-probe: info: changing current directory to vfio.
/usr/sbin/grub2-probe: info: changing current directory to mqueue.
/usr/sbin/grub2-probe: info: changing current directory to hugepages.
/usr/sbin/grub2-probe: info: changing current directory to bsg.
/usr/sbin/grub2-probe: info: changing current directory to disk.
/usr/sbin/grub2-probe: info: changing current directory to by-label.
/usr/sbin/grub2-probe: info: changing current directory to by-uuid.
/usr/sbin/grub2-probe: info: changing current directory to by-id.
/usr/sbin/grub2-probe: info: changing current directory to block.
/usr/sbin/grub2-probe: info: changing current directory to char.
/usr/sbin/grub2-probe: info: changing current directory to net.
/usr/sbin/grub2-probe: info: changing current directory to mapper.
/usr/sbin/grub2-probe: info: changing current directory to pts.
/usr/sbin/grub2-probe: info: changing current directory to shm.
/usr/sbin/grub2-probe: info: changing current directory to input.
/usr/sbin/grub2-probe: info: changing current directory to by-path.
/usr/sbin/grub2-probe: info: changing current directory to by-id.
/usr/sbin/grub2-probe: info: changing current directory to bus.
/usr/sbin/grub2-probe: info: changing current directory to usb.
/usr/sbin/grub2-probe: info: changing current directory to 001.
/usr/sbin/grub2-probe: info: changing current directory to raw.
/usr/sbin/grub2-probe: info: changing current directory to cpu.
/usr/sbin/grub2-probe: info: changing current directory to 0.
/usr/sbin/grub2-probe: error: cannot find a device for / (is /dev mounted?).
# /usr/sbin/grub2-probe -v --target=device /sysroot
/usr/sbin/grub2-probe: info: adding `hd0' -> `/dev/vda' from device.map.
/usr/sbin/grub2-probe: info: adding `hd1' -> `/dev/vda' from device.map.
/dev/vda3
Created attachment 1052635 [details]
2) reproducer with rhel installer
# /usr/sbin/grub2-probe -v --target=device /
(run in physical target chroot - /mnt/sysimage)
/usr/sbin/grub2-probe: info: adding `hd0' -> `/dev/vda' from device.map.
/usr/sbin/grub2-probe: info: adding `hd1' -> `/dev/vda' from device.map.
/usr/sbin/grub2-probe: info: changing current directory to /dev.
/usr/sbin/grub2-probe: info: changing current directory to rah_office88.
/usr/sbin/grub2-probe: info: changing current directory to virtio-ports.
/usr/sbin/grub2-probe: info: changing current directory to snd.
/usr/sbin/grub2-probe: info: changing current directory to vfio.
/usr/sbin/grub2-probe: info: changing current directory to mqueue.
/usr/sbin/grub2-probe: info: changing current directory to hugepages.
/usr/sbin/grub2-probe: info: changing current directory to bsg.
/usr/sbin/grub2-probe: info: changing current directory to disk.
/usr/sbin/grub2-probe: info: changing current directory to by-label.
/usr/sbin/grub2-probe: info: changing current directory to by-uuid.
/usr/sbin/grub2-probe: info: changing current directory to by-id.
/usr/sbin/grub2-probe: info: changing current directory to block.
/usr/sbin/grub2-probe: info: changing current directory to char.
/usr/sbin/grub2-probe: info: changing current directory to net.
/usr/sbin/grub2-probe: info: changing current directory to mapper.
/dev/mapper/rah_office88-root
Created attachment 1052637 [details] 2) reproducer with rhel installer Pleas disregard comment #17 # /usr/sbin/grub2-probe -v --target=device / (run in physical target chroot - /mnt/sysimage) /usr/sbin/grub2-probe: info: adding `hd0' -> `/dev/vda' from device.map. /usr/sbin/grub2-probe: info: adding `hd1' -> `/dev/vda' from device.map. /dev/vda3 Created attachment 1052638 [details]
3) default lvm configuration with atomic installer
# /usr/sbin/grub2-probe -v --target=device /
(run in deployment chroot)
/usr/sbin/grub2-probe: info: adding `hd0' -> `/dev/vda' from device.map.
/usr/sbin/grub2-probe: info: adding `hd1' -> `/dev/vda' from device.map.
/usr/sbin/grub2-probe: info: changing current directory to /dev.
/usr/sbin/grub2-probe: info: changing current directory to rah_office88.
/usr/sbin/grub2-probe: info: changing current directory to virtio-ports.
/usr/sbin/grub2-probe: info: changing current directory to snd.
/usr/sbin/grub2-probe: info: changing current directory to vfio.
/usr/sbin/grub2-probe: info: changing current directory to mqueue.
/usr/sbin/grub2-probe: info: changing current directory to hugepages.
/usr/sbin/grub2-probe: info: changing current directory to bsg.
/usr/sbin/grub2-probe: info: changing current directory to disk.
/usr/sbin/grub2-probe: info: changing current directory to by-label.
/usr/sbin/grub2-probe: info: changing current directory to by-uuid.
/usr/sbin/grub2-probe: info: changing current directory to by-id.
/usr/sbin/grub2-probe: info: changing current directory to block.
/usr/sbin/grub2-probe: info: changing current directory to char.
/usr/sbin/grub2-probe: info: changing current directory to net.
/usr/sbin/grub2-probe: info: changing current directory to mapper.
/dev/mapper/rah_office88-root
*** This bug has been marked as a duplicate of bug 1267860 *** |