[Touch-packages] [Bug 1653936] Re: bogus nilfs2 partition detection breaks /dev/disk/by-partuuid creation

2019-03-20 Thread Konstantin Khlebnikov
udev use builtin blkid so this is bug in systemd:

https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1820874

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1653936

Title:
  bogus nilfs2 partition detection breaks /dev/disk/by-partuuid creation

Status in util-linux package in Ubuntu:
  New

Bug description:
  When my system booted, it failed to create a /dev/disk/by-partuuid
  link for one partition (/dev/nvme0n1p11) that means that ceph is
  unable to start up (the relevant osd looks for
  /var/lib/ceph/osd/ceph-388/journal which is a symlink to /dev/disk/by-
  partuuid/d2ace848-7e2d-4395-a195-a4428631b333 which doesn't exist).
  See the shell outputs below:

  root@sto-3-3:~# file /var/lib/ceph/osd/ceph-388/journal
  /var/lib/ceph/osd/ceph-388/journal: broken symbolic link to 
/dev/disk/by-partuuid/d2ace848-7e2d-4395-a195-a4428631b333
  root@sto-3-3:~# blkid /dev/nvme0n1p11 
  /dev/nvme0n1p11: PARTLABEL="ceph journal" 
PARTUUID="d2ace848-7e2d-4395-a195-a4428631b333"
  root@sto-3-3:~# udevadm info /dev/nvme0n1p11
  P: /devices/pci:00/:00:02.0/:02:00.0/nvme/nvme0/nvme0n1/nvme0n1p11
  N: nvme0n1p11
  E: DEVNAME=/dev/nvme0n1p11
  E: 
DEVPATH=/devices/pci:00/:00:02.0/:02:00.0/nvme/nvme0/nvme0n1/nvme0n1p11
  E: DEVTYPE=partition
  E: ID_PART_TABLE_TYPE=gpt
  E: ID_PART_TABLE_UUID=8c11f541-fdc1-4299-923b-dc57d8a38619
  E: MAJOR=259
  E: MINOR=11
  E: SUBSYSTEM=block
  E: TAGS=:systemd:
  E: USEC_INITIALIZED=7070417

  root@sto-3-3:~# grep nvme0n1p11 /var/log/syslog
  Jan  4 09:17:20 sto-3-3 systemd-udevd[106928]: incorrect nilfs2 checksum on 
/dev/nvme0n1p11

  ...so the bogus nilfs2 checksum failure is causing udev to not create
  the ID_PART_ENTRY_UUID and similar entries (and hence the /dev/disk
  /by-partuuid link) and is breaking my ceph setup.

  I think this is related to this upstream issue:
  https://github.com/karelzak/util-linux/issues/361

  ...this is quite a serious bug, as it's causing unrelated software
  (ceph) to break.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: util-linux 2.27.1-6ubuntu3.1
  ProcVersionSignature: Ubuntu 4.4.0-47.68-generic 4.4.24
  Uname: Linux 4.4.0-47-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.4
  Architecture: amd64
  Date: Wed Jan  4 10:19:19 2017
  InstallationDate: Installed on 2016-11-01 (63 days ago)
  InstallationMedia: Ubuntu-Server 16.04.1 LTS "Xenial Xerus" - Release amd64 
(20160719)
  SourcePackage: util-linux
  UpgradeStatus: No upgrade log present (probably fresh install)

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

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


[Touch-packages] [Bug 1820874] [NEW] [xenial] udev cannot identify fs uuid by builtin blkid (fixed in upstream)

2019-03-19 Thread Konstantin Khlebnikov
Public bug reported:

see upstream bug https://github.com/systemd/systemd/issues/6110

fix
https://github.com/poettering/systemd/commit/e2c48187ccb9668dab9f025c9c4228e97927179f

udev calls libblkid with flag BLKID_SUBLKS_BADCSUM to see all superblocks but
data in filesystem could be detected as broken superblock of other filesystem:

root@vla2-4101:~# wipefs -n /dev/sdf2 
offset   type

0xae9c36ff006nilfs2   [filesystem]
 LABEL:  9-627f5c82-a8f363c9-a716ffb1)  
ea9a210be67212ac0ae104ca29ef
2019-02-14 05:
 UUID:  2c205265-6164-5365-7373-696f6e49643a

0x438ext4   [filesystem]
 LABEL: /yt/disk5
 UUID:  778742b8-1ac6-45cf-a459-2f7919ba5dd4


normal blkid is fine

root@vla2-4101:~# blkid -p /dev/sdf2 
/dev/sdf2: LABEL="/yt/disk5" UUID="778742b8-1ac6-45cf-a459-2f7919ba5dd4" 
VERSION="1.0" TYPE="ext4" USAGE="filesystem" PART_ENTRY_SCHEME="gpt" 
PART_ENTRY_NAME="primary" 
PART_ENTRY_UUID="259f0f4b-eb1e-4c34-a03d-65d04875f10c" 
PART_ENTRY_TYPE="ebd0a0a2-b9e5-4433-87c0-68b6b72699c7" PART_ENTRY_NUMBER="2" 
PART_ENTRY_OFFSET="30720" PART_ENTRY_SIZE="23435786240" PART_ENTRY_DISK="8:80"


builtin blkid sees two different superblocks and cannot decide

root@vla2-4101:~# udevadm test-builtin blkid /class/block/sdf2
calling: test-builtin
=== trie on-disk ===
tool version:  229
file size: 6841781 bytes
header size 80 bytes
strings1755245 bytes
nodes  5086456 bytes
Load module index
Network interface NamePolicy= disabled on kernel command line, ignoring.
timestamp of '/etc/systemd/network' changed
timestamp of '/lib/systemd/network' changed
Parsed configuration file /lib/systemd/network/99-default.link
Created link configuration context.
probe /dev/sdf2 raid offset=0
Unload module index
Unloaded link configuration context.


root@vla2-4101:~# apt-cache policy udev
udev:
  Installed: 229-4ubuntu21.17
  Candidate: 229-4ubuntu21.17

** Affects: systemd (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: xenial

** Tags added: xenial

** Summary changed:

- udev cannot identify fs uuid by builtin blkid (fixed in upstream)
+ [xenial] udev cannot identify fs uuid by builtin blkid (fixed in upstream)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1820874

Title:
  [xenial] udev cannot identify fs uuid by builtin blkid (fixed in
  upstream)

Status in systemd package in Ubuntu:
  New

Bug description:
  see upstream bug https://github.com/systemd/systemd/issues/6110

  fix
  
https://github.com/poettering/systemd/commit/e2c48187ccb9668dab9f025c9c4228e97927179f

  udev calls libblkid with flag BLKID_SUBLKS_BADCSUM to see all superblocks but
  data in filesystem could be detected as broken superblock of other filesystem:

  root@vla2-4101:~# wipefs -n /dev/sdf2 
  offset   type
  
  0xae9c36ff006nilfs2   [filesystem]
   LABEL:  9-627f5c82-a8f363c9-a716ffb1)
ea9a210be67212ac0ae104ca29ef
  2019-02-14 05:
   UUID:  2c205265-6164-5365-7373-696f6e49643a

  0x438ext4   [filesystem]
   LABEL: /yt/disk5
   UUID:  778742b8-1ac6-45cf-a459-2f7919ba5dd4

  
  normal blkid is fine

  root@vla2-4101:~# blkid -p /dev/sdf2 
  /dev/sdf2: LABEL="/yt/disk5" UUID="778742b8-1ac6-45cf-a459-2f7919ba5dd4" 
VERSION="1.0" TYPE="ext4" USAGE="filesystem" PART_ENTRY_SCHEME="gpt" 
PART_ENTRY_NAME="primary" 
PART_ENTRY_UUID="259f0f4b-eb1e-4c34-a03d-65d04875f10c" 
PART_ENTRY_TYPE="ebd0a0a2-b9e5-4433-87c0-68b6b72699c7" PART_ENTRY_NUMBER="2" 
PART_ENTRY_OFFSET="30720" PART_ENTRY_SIZE="23435786240" PART_ENTRY_DISK="8:80"

  
  builtin blkid sees two different superblocks and cannot decide

  root@vla2-4101:~# udevadm test-builtin blkid /class/block/sdf2
  calling: test-builtin
  === trie on-disk ===
  tool version:  229
  file size: 6841781 bytes
  header size 80 bytes
  strings1755245 bytes
  nodes  5086456 bytes
  Load module index
  Network interface NamePolicy= disabled on kernel command line, ignoring.
  timestamp of '/etc/systemd/network' changed
  timestamp of '/lib/systemd/network' changed
  Parsed configuration file /lib/systemd/network/99-default.link
  Created link configuration context.
  probe /dev/sdf2 raid offset=0
  Unload module index
  Unloaded link configuration context.

  
  root@vla2-4101:~# apt-cache policy udev
  udev:
Installed: 229-4ubuntu21.17
Candidate: 229-4ubuntu21.17

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