[Bug 2107381] Re: zfs + encryption fails with plucky iso dated 20250415 - Requested offset is beyond real size of device /dev/zvol/rpool/keystore

Dan Bungert 2107381 at bugs.launchpad.net
Wed Jul 30 22:43:23 UTC 2025


> Hey, what is the status of this one in Noble?

Server is unaffected because the running kernel doesn't trigger this bug.  Server still has the bugfix.
The fix was merged to noble for subiquity in https://github.com/canonical/subiquity/pull/2241 and further merged to noble for bootstrap in https://github.com/canonical/ubuntu-desktop-provision/pull/1136

Just now I confirmed that the version of ./curtin/block/zfs.py in
bootstrap build 413, as found on 24.04/stable, indeed matches the
expected copy of that file.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to subiquity in Ubuntu.
https://bugs.launchpad.net/bugs/2107381

Title:
  zfs + encryption fails with plucky iso dated 20250415  - Requested
  offset is beyond real size of device /dev/zvol/rpool/keystore

Status in curtin:
  Fix Committed
Status in subiquity:
  Fix Released
Status in Ubuntu:
  Fix Released
Status in subiquity package in Ubuntu:
  Fix Released
Status in The Noble Numbat:
  Fix Committed
Status in subiquity source package in Noble:
  Fix Committed

Bug description:
  Title, log attached, installer crashes simply with system problem
  detected etc

  ```
  An error occured handling 'zpool-1': ProcessExecutionError - Unexpected error while running command.
          Command: ['cryptsetup', 'open', '--type', 'luks', '/dev/zvol/rpool/keystore', 'keystore-rpool', '--key-file', '/tmp/zpool-key-p4shdf2v']
          Exit code: 1
          Reason: -
          Stdout: ''
          Stderr: Requested offset is beyond real size of device /dev/zvol/rpool/keystore.
                  
          finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: configuring zpool: zpool-1
          TIMED BLOCK_META: 22.242
          finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta
          Traceback (most recent call last):
            File "/snap/ubuntu-desktop-bootstrap/361/lib/python3.12/site-packages/curtin/commands/main.py", line 202, in main
              ret = args.func(args)
                    ^^^^^^^^^^^^^^^
            File "/snap/ubuntu-desktop-bootstrap/361/lib/python3.12/site-packages/curtin/log.py", line 97, in wrapper
              return log_time("TIMED %s: " % msg, func, *args, **kwargs)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            File "/snap/ubuntu-desktop-bootstrap/361/lib/python3.12/site-packages/curtin/log.py", line 79, in log_time
              return func(*args, **kwargs)
                     ^^^^^^^^^^^^^^^^^^^^^
            File "/snap/ubuntu-desktop-bootstrap/361/lib/python3.12/site-packages/curtin/commands/block_meta.py", line 128, in block_meta
              return meta_custom(args)
                     ^^^^^^^^^^^^^^^^^
            File "/snap/ubuntu-desktop-bootstrap/361/lib/python3.12/site-packages/curtin/commands/block_meta.py", line 2284, in meta_custom
              handler(command, storage_config_dict, context)
            File "/snap/ubuntu-desktop-bootstrap/361/lib/python3.12/site-packages/curtin/commands/block_meta.py", line 2041, in zpool_handler
              zfs.zpool_create(poolname, vdevs_byid,
            File "/snap/ubuntu-desktop-bootstrap/361/lib/python3.12/site-packages/curtin/block/zfs.py", line 303, in zpool_create
              encryption.setup(storage_config, context)
            File "/snap/ubuntu-desktop-bootstrap/361/lib/python3.12/site-packages/curtin/block/zfs.py", line 114, in setup
              util.subp(cmd, capture=True)
            File "/snap/ubuntu-desktop-bootstrap/361/lib/python3.12/site-packages/curtin/util.py", line 323, in subp
              return _subp(*args, **kwargs)
                     ^^^^^^^^^^^^^^^^^^^^^^
            File "/snap/ubuntu-desktop-bootstrap/361/lib/python3.12/site-packages/curtin/util.py", line 172, in _subp
              raise ProcessExecutionError(stdout=out, stderr=err,
          curtin.util.ProcessExecutionError: Unexpected error while running command.
          Command: ['cryptsetup', 'open', '--type', 'luks', '/dev/zvol/rpool/keystore', 'keystore-rpool', '--key-file', '/tmp/zpool-key-p4shdf2v']
          Exit code: 1
          Reason: -
          Stdout: ''
          Stderr: Requested offset is beyond real size of device /dev/zvol/rpool/keystore.
                  
          Unexpected error while running command.
          Command: ['cryptsetup', 'open', '--type', 'luks', '/dev/zvol/rpool/keystore', 'keystore-rpool', '--key-file', '/tmp/zpool-key-p4shdf2v']
          Exit code: 1
          Reason: -
          Stdout: ''
          Stderr: Requested offset is beyond real size of device /dev/zvol/rpool/keystore.
                  
          
  Stderr: ''

  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/2107381/+subscriptions




More information about the foundations-bugs mailing list