[Bug 1965566] [NEW] grub-install fails if ZFS root pool is in degraded state
Public bug reported: I have a system with a root ZFS pool that's DEGRADED: $ zpool status -v pool: rpool state: DEGRADED status: One or more devices has experienced an unrecoverable error. An attempt was made to correct the error. Applications are unaffected. action: Determine if the device needs to be replaced, and clear the errors using 'zpool clear' or replace the device with 'zpool replace'. see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-9P config: NAMESTATE READ WRITE CKSUM rpool DEGRADED 0 0 0 sda1 DEGRADED 0 0 0 too many errors errors: No known data errors In this state, "grub-install" will fail: grub-install: error: failed to get canonical path of `rpool/grub'. If I apply the following patch, "grub-install" works properly: --- a/grub-core/osdep/unix/getroot.c +++ b/grub-core/osdep/unix/getroot.c @@ -296,7 +296,7 @@ grub_util_find_root_devices_from_poolname (char *poolname) && !sscanf (name, "raidz1%u", &dummy) && !sscanf (name, "raidz2%u", &dummy) && !sscanf (name, "raidz3%u", &dummy) - && !strcmp (state, "ONLINE")) + && (!strcmp (state, "ONLINE") || !strcmp (state, "DEGRADED"))) { if (ndevices >= devices_allocated) { ** Affects: grub2 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1965566 Title: grub-install fails if ZFS root pool is in degraded state To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1965566/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1769937] Re: Error reported when creating ZFS pool with "-t" option, despite successful pool creation
Looks good to me; thanks! $ sudo zpool create -f -O canmount=off -O mountpoint=none -R /mnt/rpool-25582 -t rpool-25582 rpool /dev/mapper/loop5p1 $ sudo zfs list NAME USED AVAIL REFER MOUNTPOINT rpool-25582 105K 7.69G24K none $ sudo zpool export rpool-25582 $ sudo zpool import -d /dev/mapper rpool $ sudo zfs list NAMEUSED AVAIL REFER MOUNTPOINT rpool 110K 7.69G24K none $ uname -r 4.15.0-1024-aws $ dmesg | grep ZFS [8.129843] ZFS: Loaded module v0.7.5-1ubuntu16.4, ZFS pool version 5000, ZFS filesystem version 5 ** Tags removed: verification-needed-bionic ** Tags added: verification-done-bionic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1769937 Title: Error reported when creating ZFS pool with "-t" option, despite successful pool creation To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1769937/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1769937] Re: Error reported when creating ZFS pool with "-t" option, despite successful pool creation
I still see the failure: $ sudo zpool create -O canmount=off -O mountpoint=none -R /mnt/rpool-25582 -t rpool-25582 rpool /dev/mapper/loop4p1 cannot create 'rpool': no such pool or dataset $ dpkg -l | grep zfs ii libzfs2linux0.7.5-1ubuntu16.4 amd64 OpenZFS filesystem library for Linux ii zfs-zed 0.7.5-1ubuntu16.4 amd64 OpenZFS Event Daemon ii zfsutils-linux 0.7.5-1ubuntu16.4 amd64 command-line tools to manage OpenZFS filesystems $ dpkg -l | grep linux-aws ii linux-aws 4.15.0.1023.23amd64 Complete Linux kernel for Amazon Web Services (AWS) systems. ii linux-aws-headers-4.15.0-1007 4.15.0-1007.7 all Header files related to Linux kernel version 4.15.0 ii linux-aws-headers-4.15.0-1010 4.15.0-1010.10all Header files related to Linux kernel version 4.15.0 ii linux-aws-headers-4.15.0-1021 4.15.0-1021.21all Header files related to Linux kernel version 4.15.0 ii linux-aws-headers-4.15.0-1023 4.15.0-1023.23all Header files related to Linux kernel version 4.15.0 $ uname -r 4.15.0-1023-aws $ dmesg | grep ZFS [8.174263] ZFS: Loaded module v0.7.5-1ubuntu16.3, ZFS pool version 5000, ZFS filesystem version 5 The running zfs kernel module is version "v0.7.5-1ubuntu16.3" (these modules come from the kernel package, afaik) while the userspace packages are version "0.7.5-1ubuntu16.4". Is this correct? FWIW, I added this line to /etc/apt/sources.list: deb http://archive.ubuntu.com/ubuntu/ bionic-proposed restricted main multiverse universe and then I ran the following to update my system: $ sudo apt-get update $ sudo apt-get dist-upgrade Please let me know if I did anything incorrectly. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1769937 Title: Error reported when creating ZFS pool with "-t" option, despite successful pool creation To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1769937/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1769937] Re: Error reported when creating ZFS pool with "-t" option, despite successful pool creation
Thank you! I'm new to the Ubuntu process/terminology, so I wasn't sure how to interpret the other comments. Thanks for the clarification. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1769937 Title: Error reported when creating ZFS pool with "-t" option, despite successful pool creation To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1769937/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1769937] Re: Error reported when creating ZFS pool with "-t" option, despite successful pool creation
Will the fix for this eventually go into the Bionic release? Thanks! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1769937 Title: Error reported when creating ZFS pool with "-t" option, despite successful pool creation To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1769937/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1686338] Re: cloud-init fails if no network config is set
Attached is the cloud init logs generated by "cloud-init collect-logs". I can provide the QCOW2 image I used too, if it's useful, although it's over 700M in size. ** Attachment added: "cloud-init collect-logs" https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1686338/+attachment/5139916/+files/cloud-init.tar.gz ** Changed in: cloud-init (Ubuntu) Status: Incomplete => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1686338 Title: cloud-init fails if no network config is set To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1686338/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1686338] Re: cloud-init fails if no network config is set
Sorry, I didn't mean to post that yet. The QCOW2 image we're using is based on Ubuntu 18.04, and I can give any details about how we're generating it, and/or it's contents (ubuntu-minimal plus some minor configuration changes). I can gather the logs requested from "cloud-init collect-logs" if that'd help, but based on Serapheim's comment and the easy reproducer, maybe logs aren't necessary? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1686338 Title: cloud-init fails if no network config is set To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1686338/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1686338] Re: cloud-init fails if no network config is set
Hi Scott, The error Serapheim described above was hit when running under QEMU; e.g. with the following command: $ sudo qemu-system-x86_64 -nographic -m 1G -drive file=ubuntu.qcow2 We're definitely not using OpenStack. The QCOW -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1686338 Title: cloud-init fails if no network config is set To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1686338/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1769937] [NEW] Error reported when creating ZFS pool with "-t" option, despite successful pool creation
Public bug reported: When creating a pool with the -t option on Ubuntu 18.04 LTS, it will report an error and return a non-zero exit code, but the pool appears to be successfully created. For example: # zpool create -O canmount=off -O mountpoint=none -R /mnt/rpool-25582 -t rpool-25582 rpool /dev/mapper/loop2p1 cannot create 'rpool': no such pool or dataset # zpool list NAME SIZE ALLOC FREE EXPANDSZ FRAGCAP DEDUP HEALTH ALTROOT rpool-25582 69.5G 92.5K 69.5G - 0% 0% 1.00x ONLINE /mnt/rpool-25582 # zpool export rpool-25582 # zpool import rpool # zpool list NAMESIZE ALLOC FREE EXPANDSZ FRAGCAP DEDUP HEALTH ALTROOT rpool 69.5G 134K 69.5G - 0% 0% 1.00x ONLINE - I opened an upstream bug against ZFS on Linux, here: https://github.com/zfsonlinux/zfs/issues/7502 And it has been recently fixed, here: https://github.com/zfsonlinux/zfs/pull/7509 Can this upstream fix be pulled into the Ubuntu 18.04 LTS packages? Thanks, Prakash ** Affects: zfs-linux (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1769937 Title: Error reported when creating ZFS pool with "-t" option, despite successful pool creation To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1769937/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs