bcache: overflow in stripe number calculations for devices with small io_opt

Bug #1910201 reported by Frode Nordahl
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Undecided
Unassigned
linux (Ubuntu)
Fix Committed
Undecided
Unassigned

Bug Description

Ubuntu Focal
ga kernel

This problem was originally reported here:
https://bugzilla.redhat.com/show_bug.cgi?id=1783075

Using the linux-generic-hwe-20.04-edge packages resolves the issue.

We hit this while exploring storage options for PS5 where we would like to put a Optane as cache device in front of a NVMe SSD backing device with 512 byte optimum I/O size.

While the problem appears to be fixed for the kernel we file this bug to document a need for Focal hwe-edge images for commissioning/deploy in MAAS.

Excerpt from MAAS deploy log:
register_bcache: /dev/nvme1n1 > /sys/fs/bcache/register bcache dev /dev/nvme1n1 not ready, waiting 0.2s check just created bcache /dev/nvme1n1 if it is registered, try=60 Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False) TIMED udevadm_settle(): 0.015 bcache device path not found: /sys/class/block/nvme1n1/bcache bcache device was not registered, registering /dev/nvme1n1 at /sys/fs/bcache/register register_bcache: /dev/nvme1n1 > /sys/fs/bcache/register bcache dev /dev/nvme1n1 not ready, waiting 0.2s Repetitive error registering the bcache dev /dev/nvme1n1 An error occured handling 'bcache0': RuntimeError - bcache device /dev/nvme1n1 can't be registered finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: configuring bcache: bcache0 TIMED BLOCK_META: 28.332 finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta Traceback (most recent call last): File "/curtin/curtin/commands/main.py", line 202, in main ret = args.func(args) File "/curtin/curtin/log.py", line 97, in wrapper return log_time("TIMED %s: " % msg, func, *args, **kwargs) File "/curtin/curtin/log.py", line 79, in log_time return func(*args, **kwargs) File "/curtin/curtin/commands/block_meta.py", line 111, in block_meta return meta_custom(args) File "/curtin/curtin/commands/block_meta.py", line 1911, in meta_custom handler(command, storage_config_dict) File "/curtin/curtin/commands/block_meta.py", line 1652, in bcache_handler bcache_dev = bcache.create_backing_device(backing_device, cache_device, File "/curtin/curtin/block/bcache.py", line 479, in create_backing_device ensure_bcache_is_registered(backing_device, target_sysfs_path) File "/curtin/curtin/block/bcache.py", line 436, in ensure_bcache_is_registered raise RuntimeError("bcache device %s can't be registered" % RuntimeError: bcache device /dev/nvme1n1 can't be registered bcache device /dev/nvme1n1 can't be registered

Tags: ps5
Frode Nordahl (fnordahl)
Changed in linux (Ubuntu):
status: New → Fix Released
Frode Nordahl (fnordahl)
Changed in linux (Ubuntu):
status: Fix Released → Fix Committed
Frode Nordahl (fnordahl)
description: updated
Revision history for this message
Frode Nordahl (fnordahl) wrote :

Marking as fix released for MAAS as artifacts to deploy Focal with hwe-20.04-edge kernel are now available.

Changed in maas:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.