[Kernel-packages] [Bug 1769937] Re: Error reported when creating ZFS pool with "-t" option, despite successful pool creation

2018-10-03 Thread Prakash Surya
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 Kernel
Packages, which is subscribed to zfs-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1769937

Title:
  Error reported when creating ZFS pool with "-t" option, despite
  successful pool creation

Status in linux package in Ubuntu:
  Fix Committed
Status in zfs-linux package in Ubuntu:
  Fix Released
Status in linux source package in Xenial:
  Incomplete
Status in zfs-linux source package in Xenial:
  New
Status in linux source package in Bionic:
  Fix Committed
Status in zfs-linux source package in Bionic:
  Fix Committed
Status in linux source package in Cosmic:
  Fix Committed
Status in zfs-linux source package in Cosmic:
  Fix Released

Bug description:
  == SRU Justification, Xenial, Bionic ==

  Bug:

  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

  == Fix ==

  Upstream zfs commit 4ceb8dd6fdfd ("Fix 'zpool create -t '")

  == Test ==

  Without the fix, creating a pool with -t will show an error message
  such as:

  "cannot create 'rpool': no such pool or dataset" and will return an
  error number even though it successfully created the pool. With the
  fix, the error is not shown and it exits with 0.

  E.g.

  pool 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

  == Regression Potential ==

  Small. This is an upstream fix that is know to fix the error. There
  are no known subsequent changes to the fix hence suggesting it is a
  good fix. The change is very limited and testing shows it does not
  break any of the kernel team's ZFS regression testing.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1769937/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1769937] Re: Error reported when creating ZFS pool with "-t" option, despite successful pool creation

2018-09-27 Thread Prakash Surya
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 Kernel
Packages, which is subscribed to zfs-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1769937

Title:
  Error reported when creating ZFS pool with "-t" option, despite
  successful pool creation

Status in linux package in Ubuntu:
  Fix Committed
Status in zfs-linux package in Ubuntu:
  Fix Released
Status in linux source package in Xenial:
  Incomplete
Status in zfs-linux source package in Xenial:
  New
Status in linux source package in Bionic:
  Incomplete
Status in zfs-linux source package in Bionic:
  Fix Committed
Status in linux source package in Cosmic:
  Fix Committed
Status in zfs-linux source package in Cosmic:
  Fix Released

Bug description:
  == SRU Justification, Xenial, Bionic ==

  Bug:

  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

  == Fix ==

  Upstream zfs commit 4ceb8dd6fdfd ("Fix 'zpool create -t '")

  == Test ==

  Without the fix, creating a pool with -t will show an error message
  such as:

  "cannot create 'rpool': no such pool or dataset" and will return an
  error number even though it successfully created the pool. With the
  fix, the error is not shown and it exits with 0.

  E.g.

  pool 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

  == Regression Potential ==

  Small. This is an upstream fix that is know to fix the error. There
  are no known subsequent changes to the fix hence suggesting it is a
  good fix. The change is very limited and testing shows it does not
  break any of the kernel team's ZFS regression testing.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1769937/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1769937] Re: Error reported when creating ZFS pool with "-t" option, despite successful pool creation

2018-09-14 Thread Prakash Surya
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 Kernel
Packages, which is subscribed to zfs-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1769937

Title:
  Error reported when creating ZFS pool with "-t" option, despite
  successful pool creation

Status in linux package in Ubuntu:
  Fix Committed
Status in zfs-linux package in Ubuntu:
  Fix Released
Status in linux source package in Xenial:
  Incomplete
Status in zfs-linux source package in Xenial:
  New
Status in linux source package in Bionic:
  Incomplete
Status in zfs-linux source package in Bionic:
  New
Status in linux source package in Cosmic:
  Fix Committed
Status in zfs-linux source package in Cosmic:
  Fix Released

Bug description:
  == SRU Justification, Xenial, Bionic ==

  Bug:

  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

  == Fix ==

  Upstream zfs commit 4ceb8dd6fdfd ("Fix 'zpool create -t '")

  == Test ==

  Without the fix, creating a pool with -t will show an error message
  such as:

  "cannot create 'rpool': no such pool or dataset" and will return an
  error number even though it successfully created the pool. With the
  fix, the error is not shown and it exits with 0.

  E.g.

  pool 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

  == Regression Potential ==

  Small. This is an upstream fix that is know to fix the error. There
  are no known subsequent changes to the fix hence suggesting it is a
  good fix. The change is very limited and testing shows it does not
  break any of the kernel team's ZFS regression testing.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1769937/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1769937] Re: Error reported when creating ZFS pool with "-t" option, despite successful pool creation

2018-09-14 Thread Prakash Surya
Will the fix for this eventually go into the Bionic release? Thanks!

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to zfs-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1769937

Title:
  Error reported when creating ZFS pool with "-t" option, despite
  successful pool creation

Status in linux package in Ubuntu:
  Fix Committed
Status in zfs-linux package in Ubuntu:
  Fix Released
Status in linux source package in Xenial:
  Incomplete
Status in zfs-linux source package in Xenial:
  New
Status in linux source package in Bionic:
  Incomplete
Status in zfs-linux source package in Bionic:
  New
Status in linux source package in Cosmic:
  Fix Committed
Status in zfs-linux source package in Cosmic:
  Fix Released

Bug description:
  == SRU Justification, Xenial, Bionic ==

  Bug:

  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

  == Fix ==

  Upstream zfs commit 4ceb8dd6fdfd ("Fix 'zpool create -t '")

  == Test ==

  Without the fix, creating a pool with -t will show an error message
  such as:

  "cannot create 'rpool': no such pool or dataset" and will return an
  error number even though it successfully created the pool. With the
  fix, the error is not shown and it exits with 0.

  E.g.

  pool 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

  == Regression Potential ==

  Small. This is an upstream fix that is know to fix the error. There
  are no known subsequent changes to the fix hence suggesting it is a
  good fix. The change is very limited and testing shows it does not
  break any of the kernel team's ZFS regression testing.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1769937/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1769937] [NEW] Error reported when creating ZFS pool with "-t" option, despite successful pool creation

2018-05-08 Thread Prakash Surya
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 Kernel
Packages, which is subscribed to zfs-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1769937

Title:
  Error reported when creating ZFS pool with "-t" option, despite
  successful pool creation

Status in zfs-linux package in Ubuntu:
  New

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1769937/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp